Alert based on 2 Horizonal Lines

goi

New Member
#1
hi

is it possible to set an alert for following

1 - i am using fib retracement 0 & 100% as 2 horizontal lines
2 - Plot based on few candles
3 - Do it manually for various scrip

now, i want an alert when price touches or crosses 0% & 100%




Example when price reaches 251.94 or crosses 251.48, i will get an alert pop up.


is that possible in amibroker?

pls help & oblige
 

goi

New Member
#2
This formula is not working...can someone please help.?

_SECTION_BEGIN("Alert");
//price crosses from below to above of the F6 line

Buy = Cross( Study("F6", GetChartID() ), Close );

//generate alert based on BUY condition

AlertIf( Buy, "SOUND C:\\Windows\\Media\\Ding.wav", "Audio alert", 1 );
_SECTION_END();

_SECTION_BEGIN("Alert1");
//price crosses from above to below of the F6 line

Buy = Cross( Study("F6", GetChartID() ), Close );

//generate alert based on BUY condition

AlertIf( Buy, "SOUND C:\\Windows\\Media\\Ding.wav", "Audio alert", 1 );
_SECTION_END();

_SECTION_BEGIN("Alert2");
//price crosses from below to above of the F0 line

Buy = Cross( Study("F0", GetChartID() ), Close );

//generate alert based on BUY condition

AlertIf( Buy, "SOUND C:\\Windows\\Media\\Ding.wav", "Audio alert", 1 );
_SECTION_END();

_SECTION_BEGIN("Alert3");
//price crosses from above to below of the F0 line

Buy = Cross( Study("F0", GetChartID() ), Close );

//generate alert based on BUY condition

AlertIf( Buy, "SOUND C:\\Windows\\Media\\Ding.wav", "Audio alert", 1 );
_SECTION_END();