Indicator Based - HTTP Alerts on Multiple Symbols (40 - 60) - Realtime

Hi,

Everyday I have about 40 to 60 symbols, which monitor for certain signals using a custom AFL script. And in the script when the Buy signal is received, it sends a webhook to auto-trade.

I would like to continuously have this indicator active on all of these symbols and get the real time http requests when the conditions are met real time in any of the 40 symbols. What I have tried so far is to keep each of the symbol loaded on a new tab. And have ensured the indicator is added to that tab, and the symbol is locked.

And currently it appears as if - only the active tab is updating the indicator continuously. Is there a way to achieve the above outcome - where all 40 symbols are monitored continuously and a buy signal in any of them at any time sends the http request.

I am running on a 1second timeframe. My database is set to tick level interval. And here is a the webhook code.

function ta_http(alertmessage)
{
	InternetSetHeaders("Content-Type: application/json");
   ih = InternetPostRequest(
        webhookURL,
        alertmessage
       // "Content-Type: application/json"
    );
    printf("\nta_http function called with message: " + alertmessage); // Debug line
    if( ih ) 
	 { 
		  while( ( str = InternetReadString( ih ) ) != "" ) 
		  { 
			  printf( "%s", str ); 
		  } 
		  InternetClose( ih ); 
	 } 
}

Instead of using chart,
Look at the Amibroker Analysis feature.

There is scan/exploration which is designed to for such tasks

https://www.amibroker.com/guide/h_newanalysis.html

Then you don't need to keep so many tabs, and tabs that are not active may not run to conserve computing resources.

1 Like

That's what I wrote him over support email.

1 Like