Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Join our fan page
You liked the script? Try it in the MetaTrader 5 terminal
- Views:
- 34444
- Rating:
- Published:
- 2016.07.01 10:26
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/8661

Attempt to more or less fully automate the opening of Buy and Sell orders

Simple Expert Advisor that simultaneously opens two positions in different directions, provided that the stop loss of the losing position triggers 5 points earlier than the take profit of the profitable one.

The MACD is not required to be present on the chart. However, if a standard MACD is attached, the divergence lines will be drawn both on the chart and in the indicator window, and the indicator will use the MACD settings.

Example of plotting a function spectrum using the FFT library