Tradescript: to check if a previous candle has long body

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

A workaround will be

REF(OPEN,1) > REF(CLOSE,1) AND 
(REF(HIGH,1) - REF(LOW,1) > ((REF(HIGH,2) - REF(LOW,2)) * 3)