Scnner scipt for big candle

i want to scan chart when the candle formed has body greater than 50 percent of full range (wick to wick)

i am using following code giving me error

SET R = (HIGH - LOW)
SET B = ABS (OPEN - CLOSE)

signal should be generated when

B X 2 > R

please help

For the above condition

SET A = (HIGH+LOW)/2
LAST > 2*A

no actually i want to genetrate signal after candle close
the range ie high - low should be smaller than 2 x body of candle (high - low)
its just the candle should not be doji and should be solid body candle