HI friends,
Here is one afl code simple depend upon price movement. When price go above or below mention level sound alert is active.
But problem is that when i work on another window the sound alert is not active and i miss these alert.
Here is code
_SECTION_BEGIN("SR_Xross");
su = Study("SU", GetChartID() );
re = Study("RE", GetChartID() );
PlotOHLC( re, re, su, su, "", colorLightYellow,styleCloud );
AlertIf(Cross(H, Study( "RE",GetChartID())),"SOUND C:\\Windows\\Media\\Ding.wav", "Breakout Buy Alert", 2 );
AlertIf(Cross(Study( "SU",GetChartID()), L),"SOUND C:\\Windows\\Media\\Ding.wav", "Breakdown Sell Alert", 2 );
_SECTION_END();
After you include the above code. Plot 2 lines on your chart.
Double click on the line to get the property dialog box
Select "RE" as StudyID for resistance line
Similarly Select "SU" as StudyID for support line
Can any one change these afl
requirment is sound alert is active when amibroker is not active window. when i work on other window at the same time if price go above re line amibroker give sound alert.
Thanks
Here is one afl code simple depend upon price movement. When price go above or below mention level sound alert is active.
But problem is that when i work on another window the sound alert is not active and i miss these alert.
Here is code
_SECTION_BEGIN("SR_Xross");
su = Study("SU", GetChartID() );
re = Study("RE", GetChartID() );
PlotOHLC( re, re, su, su, "", colorLightYellow,styleCloud );
AlertIf(Cross(H, Study( "RE",GetChartID())),"SOUND C:\\Windows\\Media\\Ding.wav", "Breakout Buy Alert", 2 );
AlertIf(Cross(Study( "SU",GetChartID()), L),"SOUND C:\\Windows\\Media\\Ding.wav", "Breakdown Sell Alert", 2 );
_SECTION_END();
After you include the above code. Plot 2 lines on your chart.
Double click on the line to get the property dialog box
Select "RE" as StudyID for resistance line
Similarly Select "SU" as StudyID for support line
Can any one change these afl
requirment is sound alert is active when amibroker is not active window. when i work on other window at the same time if price go above re line amibroker give sound alert.
Thanks