Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Join our fan page
You liked the script? Try it in the MetaTrader 5 terminal
- Published by:
- Vladimir Karputov
- Views:
- 7164
- Rating:
- Published:
- 2017.01.26 09:25
- Updated:
- 2018.02.27 13:08
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
Author of the idea — Collector, author of the MQL5 code — barabashkakvn.
Uses signals from the indicators: ATR, MACD.
Block of getting the indicators:
Range=iATRGet(1);
rr=Range*LEVEL;
Delta=iMACDGet(MAIN_LINE,0)-iMACDGet(SIGNAL_LINE,0);
Delta1=iMACDGet(MAIN_LINE,1)-iMACDGet(SIGNAL_LINE,1);
rr=Range*LEVEL;
Delta=iMACDGet(MAIN_LINE,0)-iMACDGet(SIGNAL_LINE,0);
Delta1=iMACDGet(MAIN_LINE,1)-iMACDGet(SIGNAL_LINE,1);
Open Buy if:
if(Delta>rr && Delta1<rr)
Open Sell if:
if(Delta<-rr && Delta1>-rr)
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/17080

Increasing the lot after a losing trade. Entry signals are based on the DeMarker indicator.

The simplest EA based on the WeightOscillator weighted oscillator.

The Chart on Chart indicator displays a chart of other symbol on the current chart.

The Fractional_Bands indicator with the timeframe selection option available in the input parameters.