For Long Trades, place stop loss 5 pips below the lowest low of last 4 bars.
For Short Trades, place stop loss 5 pips above the highest high of last 4 bars.
The take profit is calculated :
1. Calculate the distance between the resistance and the support level. This is
the size of the box.
2. Deduct this distance from the support level (for short trades), or add this
distance to the resistance level (for long trades).
3. This is the profit target for your trade.