RobotFX curates the best open-source MetaTrader code to inspire your trading automation.
The operation logic is as follows: Once a local maximum\minimum has been determined several horizontal lines will be drawn. The white one is an entry point, the following lines in its direction are targets. Naturally, the first one is the most reachable.... Red line is a stop line.

Classic MACD strategy made fully automatic – the MACD Expert Advisor for MT4 handles it all. Check it out.
Level up your trading with professional RobotFX expert advisors and indicators. Visit robotfx.org for proven MT4/MT5 tools.
7269