is it possible to code previous range breakout using tradescript?

is it possible to code previous range breakout using tradescript?