Quantcast
Channel: Traderji.com
Viewing all articles
Browse latest Browse all 10287

Buy/sell Signal and Exploration result is not same

$
0
0
Would someone plz rectify the problem. The buy/sell signal in the chart and the scan buy/sell signal is not simillar.

Thanks.


_SECTION_BEGIN("MA High Low");
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", colorGreen ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );

MAHighPeriod=Param("MA High Period",5,5,150,1);
MALowPeriod=Param("MA Low Period",15,5,150,1);
Price=Close;
MAHigh=MA(Close,MAHighPeriod);
MALow=MA(Close,MALowPeriod);

Plot(MAHigh,"MA-High", colorGreen,styleLine,styleThick);
Plot(MALow,"MA-Low", colorRed,styleLine,styleThick);

Buy = Cross(Price,MAHigh);
Sell = Cross(MALow,Price);


Filter = Buy OR Sell;

PlotShapes(IIf(Buy,shapeUpArrow,shapeNone),colorGr een,0,Graph0);
PlotShapes(IIf(Sell,shapeDownArrow,shapeNone),colo rRed,0,Graph1);

Viewing all articles
Browse latest Browse all 10287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>