I wanted to check if there is a steep drop in prices and the I have to look for a candle which is red (or black) and has a long body.
Accordingly, the code would be
REF(OPEN,1) > REF(CLOSE,1) AND (Check if the candle is red)
CSP()=LONG_BODY (But this checks only the current candle)
How check against the previous candle has long body?
Thank you for any inputs