Watch how to download trading robots for free
Find us on Telegram!
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

MARE5.1 - expert for MetaTrader 5

Published by:
Vladimir Karputov
Views:
4638
Rating:
(30)
Published:
2017.03.02 11:50
Updated:
2018.02.28 10:23
MARE5.1.mq5 (16.84 KB) view
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Author of the idea — Collectorauthor of the MQL5 code — barabashkakvn.  

The MARE5.1 Expert Advisor is very easy to use. It uses the values of two Moving Averages (SMA) at the close of 0th, 2nd and 5th bar. The EA is configured to work on the M1 timeframe.

Input Parameters:

  • Lots — entry position volume
  • TakeProfit — the Take Profit level
  • StopLoss — the Stop Loss level
  • MAFastPeriod — averaging period of the first Moving Average
  • MASlowPeriod — averaging period of the second Moving Average
  • MovingShift MA shift (the same for both Moving Averages)
  • HourTimeOpen and HourTimeClose — time (in hours), an interval inside which position opening is allowed
The OnInit() block contains security time validation:

   if((HourTimeOpen<0 || HourTimeClose<0) || (HourTimeOpen>23 || HourTimeClose>23))
     {
      return(INIT_PARAMETERS_INCORRECT);
     }
   if(HourTimeOpen==HourTimeClose)
     {
      return(INIT_PARAMETERS_INCORRECT);
     }
   if(HourTimeOpen>HourTimeClose)
     {
      return(INIT_PARAMETERS_INCORRECT);
     }

It means that time in hours cannot be less than "0" or greater than "23", overlapping is not allowed. 

MARE5.1 tester 

 

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

Session Buy Sell Orders Volume Session Buy Sell Orders Volume

A histogram of minimum and maximum values of the following parameters: SYMBOL_SESSION_BUY_ORDERS_VOLUME - "Total current volume of buy orders" and SYMBOL_SESSION_SELL_ORDERS_VOLUME - "Total current volume of sell orders".

Open Interest Open Interest

The indicator shows t he parameter "Total volume of open positions - SYMBOL_SESSION_INTEREST".

Exp_Fractal_WeightOscillator Exp_Fractal_WeightOscillator

The simplest EA based on the Fractal_WeightOscillator weighted oscillator.

NRTR_Gator_HTF NRTR_Gator_HTF

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