RobotFX curates the best open-source MetaTrader code to inspire your trading automation.
An indicator lets you specify the number of bars separately before and after the current High / Low (fractal) can.
It uses CalcFrac Class from CalcFrac.mqh Library.
Input parameters:
Classic MACD strategy made fully automatic – the MACD Expert Advisor for MT4 handles it all. Check it out.
| Input parameter | Value |
Description |
|---|---|---|
| CompleteBarsOnly |
true |
Converts only with finished bars |
| FractalsPeriodBefore |
2 |
Number of bars before the current High / Low |
| FractalsPeriodAfter |
5 |
Number of bars after the current High / Low |
| Maxbar |
100 |
Number of bars in the calculation |

Build better strategies with RobotFX professional tools – check them out.
61