This expert advisor move the stop loss at 50%(middle) of the range over specified number of bars. It has the next parameters:
- BarsNum: Number of bars to calculate the range.
- PipDistance: Distance in pips to place the stop loss above/below the middle of the range(Put 0 if you want exactly in the middle).
Once the expert is attached to a chart it will show the next inputs at the top left corner:
- LTS: Stop loss price of buy orders.
- STS: Stop loss price of sell orders.
- This expert do not open orders by itself, it works on opened orders.
- You must attach to charts with orders. Example: If you have orders in EURUSD attach the expert advisor on EURUSD chart.