Afl that gives sound alert when a drawn support or resistance is crossed.

#1
Hi everyone, I want an afl that gives sound alerts when a support or resistance line drawn by me manually is crossed.

I have searched many times but haven't found any afl that alerts for manual levels.

Thanks in advance for your help.
 

trash

Well-Known Member
#2
Code:
chartid = GetChartID();

Buy = Cross( Close, Study( "RE", chartid ) );
Sell = Cross( Study( "SU", chartid ), Close );

// generating audio alerts when condition is detected 
AlertIF( Buy, "SOUND C:\\Windows\\Media\\Ding.wav", "Audio alert", 1, 15, 1 );
AlertIF( Sell, "SOUND C:\\Windows\\Media\\Ding.wav", "Audio alert", 2, 15, 1 );
In addition read about study IDs in the AB manual.
Or see knowledge base http://www.amibroker.com/kb/2007/05...ssover-for-multiple-symbols-with-use-of-scan/
 
#3
Code:
chartid = GetChartID();

Buy = Cross( Close, Study( "RE", chartid ) );
Sell = Cross( Study( "SU", chartid ), Close );

// generating audio alerts when condition is detected 
AlertIF( Buy, "SOUND C:\\Windows\\Media\\Ding.wav", "Audio alert", 1, 15, 1 );
AlertIF( Sell, "SOUND C:\\Windows\\Media\\Ding.wav", "Audio alert", 2, 15, 1 );
In addition read about study IDs in the AB manual.
Or see knowledge base http://www.amibroker.com/kb/2007/05...ssover-for-multiple-symbols-with-use-of-scan/
Can you tell me that if I merge contracts of every month(talking about MCX) then will it give me 1 year chart.

Say I have contracts from January to October of Crude Oil.

Should I merge them to get the 1 year IEOD data, is that the correct way, please answer this.
 

Similar threads