This is an Amibroker formula which I use with my trading everyday. Many people use the normal SAR formula or the EMA of past five days. But the accuracy is greater with the formula that I provide here. _SECTION_BEGIN("Modified Sar formula"); 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", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); feb =(LLV(Low,5)*0.764)+(Ref(Low,-1)*0.236); feb2 =(feb*0.764)+(Low*0.236); feb1 = MA(feb2,5); feb10 =MA(feb2,10); Hig = EMA(High,5); Lo = EMA(Low,5); Plot(feb1,"",colorBlue,512 +styleThick ); //Plot(Hig,"",colorBlue,512 +styleThick + styleDashed); //Plot(Lo,"",colorRed,512 +styleThick + styleDashed); Buy = Cross(High,feb1) AND MA(V,20)...
My stock trading Learning