Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Experts

Ingrit - expert for MetaTrader 5

Published by:
Vladimir Karputov
Views:
5287
Rating:
(17)
Published:
2019.02.07 08:58
Ingrit.mq5 (72.94 KB) view
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Idea by: Ingrit

mq5 code by: barabashkakvn

BUY opening condition.

Bar #1 is bearish

Difference between the High price of bar #14 and the Low price of bar #1 exceeds the value of parameter "Step"

   if(rates_m5[1].open>rates_m5[1].close)
      if((rates_m5[14].high-rates_m5[1].low)>ExtStep)
        {
         if(!InpReverse)
            m_need_open_buy=true;
         else
            m_need_open_sell=true;
        }


SELL opening condition.

Bar #1 is bullish

Difference between the High price of bar #14 and the Low price of bar #1 exceeds the value of parameter "Step"

   if(rates_m5[1].close>rates_m5[1].open)
      if((rates_m5[1].high-rates_m5[14].low)>ExtStep)
        {
         if(!InpReverse)
            m_need_open_sell=true;
         else
            m_need_open_buy=true;
        }


Testing at EURUSD, H1:

Ingrit

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/23499

Starter Starter

Three timeframes. One iMA (Moving Average, MA) and one iStochastic (Stochastic Oscillator) on each timeframe

XXDPO_Candle XXDPO_Candle

Indicator XXDPO represented as candles

hedger hedger

Protecting a position (hedging)

Stochastic_Convergence_Divergence Stochastic_Convergence_Divergence

Indicator Two Stochastics with MA Smoothing and Convergence Divergence line