The lime area is a downward shift in price.
The red area is a price shift up.
Yellow background - signal for opening position.
If the lime range is less than the long parameter, open the long position.
If the candle is green, close the long position.
If the red range is more than a short parameter, open a short position.
If the candle is red, close the short position.