This Expert Advisor moves 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 50% of the range (Set it at 0 if you want it exactly at 50% of the range).
Once the Expert Advisor 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 have to attach it to charts of pairs that have opened orders. Example: If you have orders on EURUSD it will not work if you attach it to AUDUSD chart.
NOTE: This is a demo version that only works on AUDJPY charts. If you want the full version buy the HalfRangeTrailStopLoss Expert Advisor.