Sound Alert Formula Help....

#1
Hi Friends,

These formula give sound alert when price go above RE line or go below SE line.

if( Status("redrawaction") ==1 )
{
_TRACE("nTIMED REFRESH"+Now());
}
RequestTimedRefresh(1);
RequestTimedRefresh( 1, onlyvisible = False );

_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();

_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

These formula give sound alert when price go above RE line or go below SE line.


These formula is very use full for all. But problem is that some time its work fine but some time its meas the alert. Why i dont know.

Any one have solution on these problem.

Any one can modify these formula much better.


Pls try...........
Regards
sarita
 
Last edited:

Similar threads