Hi guys ,
pls add an exploration to this afl i need the exploration to show what color the previous candle was and what color the current candle is
This is the code
pls add an exploration to this afl i need the exploration to show what color the previous candle was and what color the current candle is
This is the code
Code:
_SECTION_BEGIN("rdma spl");
_N(Title = StrFormat(EncodeColor( colorWhite) + "{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
SetChartOptions(0,chartShowArrows|chartShowDates);
SetChartBkColor(colorBlack ) ;
ToolTip = "High = " + H + "\nOpen = " + O + "\nClose = " + C + "\nLow = " + L;
Col=IIf( C<MA(C,21) AND C<EMA(C,8) ,colorRed,IIf( C>MA(C,21) AND C>EMA(C,8),colorBlueGrey,IIf(( C<MA(C,21) AND C>EMA(C,8)) OR ( C>MA(C,21) AND C<EMA(C,8)) ,colorYellow,colorYellow)));
Plot( C, "Close", col, styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
Plot(MA(Close,21), "MA1", colorYellow,styleLine|styleDashed|styleThick);
Plot(MA(Close,55), "MA2", colorDarkRed,styleLine|styleDashed|styleThick);
Plot(EMA(Close,8), "EMA1", colorBlue,styleLine|styleDashed|styleThick);
Plot(EMA(Close,15), "EMA2", colorSkyblue,styleLine|styleDashed|styleThick);
_SECTION_END();