The Expert Advisor is rewritten from MQL4, the author is RickD, link to the source –
How it works
The Expert Advisor “catches” rollbacks after a strong movement. If we observe one direction N bars with the increasing size of body, the position will be opened in the back direction.
The image displays the work of the Expert Advisor in the strategy tester’s visual mode.
Β
Parameters
- N – Number of bars of one direction with the increasing size of body.
- Lots – lot; when 0, the MaxrR parameter is used.
- StopLoss – Stop Loss in points, 0 – without Stop Loss.
- TakeProfit – Take Profit in point, 0 – without Take Profit.