Dear All,
Happy Dushera to you all.
I need a little for 'AlertIF' function help as I am very weak in Amibroker coding.
Consider the following example formula:
Here an external application, for example, Calc.exe or Notepad.exe will execute when the signal bar will complete, i.e., at the beginning of the next bar.
Now what I want is to insert some delay before this EXE triggeres, i.e. Signal bar completes, wait 5 seconds, and then execute the EXE files; something like:
How to achieve this? Please help.
May God Bless all of us,
Warm Regards,
GG
Happy Dushera to you all.
I need a little for 'AlertIF' function help as I am very weak in Amibroker coding.
Consider the following example formula:
Code:
Buy = Cross( MACD(), Signal() );
Sell = Cross( Signal(), MACD() );
Short = Sell;
Cover = Buy;
barcomplete = BarIndex() < LastValue(BarIndex());
AlertIf( barcomplete AND Short, "EXEC Calc.exe", "Launching external application", 3);
AlertIf( barcomplete AND Cover, "EXEC Notepad.exe", "Launching external application", 3);
Now what I want is to insert some delay before this EXE triggeres, i.e. Signal bar completes, wait 5 seconds, and then execute the EXE files; something like:
Code:
Buy = Cross( MACD(), Signal() );
Sell = Cross( Signal(), MACD() );
Short = Sell;
Cover = Buy;
barcomplete = BarIndex() < LastValue(BarIndex());
[COLOR="Blue"]WAIT 5000 MILISECOND[/COLOR]
AlertIf( barcomplete AND Short, "EXEC Calc.exe", "Launching external application", 3);
AlertIf( barcomplete AND Cover, "EXEC Notepad.exe", "Launching external application", 3);
May God Bless all of us,
Warm Regards,
GG