This script of strategy is necessary for testing of parameters of the WhiteBox TradingBot.
Strategy
The blue line is SMA.
The lime line = SMA - the shift parameter (%).
Red line = SMA + shift parameter (%).
Strategy uses limit orders. For opening of positions and for closing of positions.
If the price is lower than the lime line - opens a long position.
If the price is higher than the red line - opens a short position.
The position is closed on the blue line (SMA). Long and short.