Dear All
I have the AFL code for Buy/Sell signal for EMA, STO and RSI Crossover.
However when i plot this afl, Buy Sell arrows are not visible. Also when I scan the Formula in Analysis Section, I dont get the results. Can someone help me out on this. I need this badly.
--------------------------------------------------------------------------
_SECTION_BEGIN("STOCHA_RSI_EMA_SAR_4NP");
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() );
Sell = Short = Cross( EMA( Close, 34 ), EMA( Close, 12 )) AND (StochD(40 , 1, 1) < 50 ) AND (RSI(14) < 50);
Buy = Cover = Cross( EMA( Close, 12 ), EMA( Close, 34 )) AND (StochD(40 , 1, 1) > 50 ) AND (RSI(14) > 50);
Buy = ExRem( Buy, Sell );
Sell = ExRem( Sell, Buy );
shape = Buy * shapeUpArrow + Sell * shapeDownArrow;
PlotShapes( shape, IIf( Buy, colorGreen, colorRed ), 0, IIf( Buy, Low-1, High+1));
_SECTION_END();
--------------------------------------------------------------------------
Best regards and Happy New Year
I have the AFL code for Buy/Sell signal for EMA, STO and RSI Crossover.
However when i plot this afl, Buy Sell arrows are not visible. Also when I scan the Formula in Analysis Section, I dont get the results. Can someone help me out on this. I need this badly.
--------------------------------------------------------------------------
_SECTION_BEGIN("STOCHA_RSI_EMA_SAR_4NP");
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() );
Sell = Short = Cross( EMA( Close, 34 ), EMA( Close, 12 )) AND (StochD(40 , 1, 1) < 50 ) AND (RSI(14) < 50);
Buy = Cover = Cross( EMA( Close, 12 ), EMA( Close, 34 )) AND (StochD(40 , 1, 1) > 50 ) AND (RSI(14) > 50);
Buy = ExRem( Buy, Sell );
Sell = ExRem( Sell, Buy );
shape = Buy * shapeUpArrow + Sell * shapeDownArrow;
PlotShapes( shape, IIf( Buy, colorGreen, colorRed ), 0, IIf( Buy, Low-1, High+1));
_SECTION_END();
--------------------------------------------------------------------------
Best regards and Happy New Year