G’day guys,
Am trying to code a confirmation condition of cisd in a candle which is as below:
Bearish condition:
When price creates from 1 to 3 bullish candles (green) and one whole bullish candle (red) closes below the lowest bullish candle.
Bullish condition:
When price creates from 1 to 3 bearish candles (red) and one whole bearish candle (green) closes above the highest bearish candle.
Surely the 1 candle condition meant for htf, I see that on the 15m and above, usually one price candle creation as of a retracement is enough to go after it closes.
If we can alert the user, as well as color the candle that met the condition as yellow for bullish market and orange for bearish market.
I hope I did explain thoroughly.
Let me know guys.
I have tried this simple approach as below
Define red and green candle
Wrote if condition if contains [ bearishconfirm = (CurrentClose < PreviousOpen[1]) and red and green[1]
And vice versa on bullish.
I got error bearishconfirm no end line error.
Couldn’t understand the error.
Steven Bold is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.