Hi,
Is it possible to program: the body of the current candle is > 50% of the previous candle?
If yes, what is the instruction?
JSParticipant
Senior
Hi,
abs(Close-Open) / abs(Close[1]-Open[1]) > 1.5
JSParticipant
Senior
Broken down into “Bullish Candle” (color yellow) and “Bearish Candle” (color red)…
If Close>Open and Close[1]>Open[1] and (Close-Open)/(Close[1]-Open[1])>1.5 then
DrawCandle(Open,High,Low,Close) Coloured("Yellow") //Bullish Candle
elsif Close<Open and Close[1]<Open[1] and (Close-Open)/(Close[1]-Open[1])>1.5 then
DrawCandle(Open,High,Low,Close) Coloured("Red") //Bearish Candle
EndIf
Return