_N(Title = StrFormat("{{NAME}} -"+ EncodeColor(colorBlue)+""+ EncodeColor(colorBlue)+" {{INTERVAL}} "+ EncodeColor(colorWhite)+"{{DATE}} \n Op=> %g, \n Hi=> %g, \n Lo=> %g, \n Cl=> %g
{{VALUES}}", O, H, L, C ));
Plot( C, "", ParamColor("Color", colorBlack ), ParamStyle("Style",styleCandle,maskAll) );
Sell=Ref(C,-1)>Ref(O,-1) //previous candle bullish candle
AND Ref(C,-1)>Ref(C,-2) //previous candle closed abv it's prior candle
.
.
.
People may differ with my views.
but this suits me.[/QUOTE]
[B][COLOR="Blue"]Added Exrem for removing excessive signals.[/COLOR][/B]
[CODE]
_N(Title = StrFormat("{{NAME}} -"+ EncodeColor(colorBlue)+""+ EncodeColor(colorBlue)+" {{INTERVAL}} "+ EncodeColor(colorWhite)+"{{DATE}} \n Op=> %g, \n Hi=> %g, \n Lo=> %g, \n Cl=> %g
{{VALUES}}", O, H, L, C ));
Plot( C, "", ParamColor("Color", colorBlack ), ParamStyle("Style",styleCandle,maskAll) );
Sell=Ref(C,-1)>Ref(O,-1) //previous candle bullish candle
AND Ref(C,-1)>Ref(C,-2) //previous candle closed abv it's prior candle
AND C<O //current candle bearish
AND Ref(H,-1)>C
AND C>Ref(L,-1) //current candle closes within the H-L range of previous candle
AND H>Ref(H,-1) ; //current candle high crosses previous candle high
Buy=Ref(C,-1)<Ref(O,-1) //previous candle bearish candle
AND Ref(C,-1)<Ref(C,-2) //previous candle closed bellow it's prior candle
AND C>O //current candle bullish
AND Ref(H,-1)>C
AND C>Ref(L,-1) //current candle closes within the H-L range of previous candle
AND L<Ref(L,-1) ; //current candle low crosses previous candle low
Buy = ExRem(Buy, Sell);
Sell = ExRem(Sell, Buy);
PlotShapes(Buy*shapeUpTriangle, colorBrightGreen, 0, C);
PlotShapes(Sell*shapeDownTriangle, colorRed, 0, C);