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
- Published by:
- Vladimir Karputov
- Views:
- 2803
- Rating:
- Published:
- 2018.10.25 15:30
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
The author of the idea - Scriptor
mq5 code author - barabashkakvn
The EA checks entry opportunities only when a new bar appears, while trailing works on each tick. When checking a signal, there is another verification apart from comparing the values of the main and signal line on the current and previous bar: the main line value is converted into points and compared to the MACD open level parameter. When a BUY open signal arrives, close SELL positions, and vice versa.
Open signals
BUY:
bool open_buy_signal=(main[0]<0 && main[0]>signal[0] && main[1]<signal[1] && MathAbs(main[0])>(MACDOpenLevel*m_symbol.Point()));
SELL:
bool open_sell_signal=(main[0]>0 && main[0]<signal[0] && main[1]>signal[1] && MathAbs(main[0])>(MACDOpenLevel*m_symbol.Point()));
EURUSD, M15
USDJPY, M15:
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/22087

Grid of pending orders. The EA applies iADX (Average Directional Movement Index, ADX) indicator.

Modified Advance Decline line indicator