Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

Experts

3MACross EA - expert for MetaTrader 5

| English Русский 中文 Español Deutsch Português

Published by:
Vladimir Karputov
Views:
673
Rating:
votes: 15
Published:
2018.01.22 09:57
3MACross EA.mq5 (55.07 KB)view

Author of the idea: bobby, mq5 code author: barabashkakvn.

The EA uses two indicators: MA Cross 3MACross Alert WarnSig and Price Channel.

The following three options are available for setting stop loss and take profit:

  1. Trailing Stop is greater than zero. In this case a usual trailing stop function will be applied to positions;
  2. Auto SL/TP is set to 'true'. In this case the TP and SL levels are determined based on the "Price Channel" indicator;
  3. BreakEven is greater than zero: if a position has reached 'BreakEven' points of profit, the position is moved to BreakEven points.

Important note: only one of the three options can be selected. If one of the options is selected, the other two must be disabled. For example BreakEven is set to 15. Then the Trailing Stop parameter must be set to zero, and Auto SL/TP must be set to false (these are the default EA parameters).

Also, there are two options for setting position volume: fixed lot equal to Lots or risk percent of free margin Risk in percent for a deal from a free margin. Only one option can be selected: if Lots is equal to or less than zero, risk percent per trade will be used.

The EA was optimized for USDJPY,H1 (these parameters are used in the EA by default):

3MACross EA USDJPY, H1


Input Parameters

  • Trade parameters:
    • Lots (if <=0 -> use risk from a free margin) - position volume;
    • Stop Loss
    • Take Profit
    • Trailing Stop
    • Risk - risk per trade as percent of free margin;
    • Auto SL/TP - stop loss and take profit based on the "Price Channel" indicator;
    • Trade at close bar - trading on a closed bar: if 'true' the EA uses data of bar #1, if 'false' the EA trades on bar #0;
    • BreakEven;
    • Max open positions - the maximum allowed number of positions in one direction.
  • MA Cross 3MACross Alert WarnSigindicator parameters:
    • Parameters of the first Moving Average:
      • Period of the first Moving Average;
      • Shift of the first Moving Average;
      • Method of the first Moving Average.
    • Parameters of the second Moving Average:
      • Period of the second Moving Average;
      • Shift of the second Moving Average;
      • Method of the second Moving Average.
    • Parameters of the Third Moving Average:
      • Period of the third Moving Average;
      • Shift of the third Moving Average;
      • Method of the third Moving Average.
  • crossesOnCurrent;
  • alertsOn;
  • alertsMessage;
  • alertsSound;
  • alertsEmail;
  • Price Channel indicator parameters:
    • InpChannelPeriod - calculation period (the number of bars).

Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/19525

MA Cross 3MACross Alert WarnSig MA Cross 3MACross Alert WarnSig

Crossover of three iMAs (Moving Average, MA). Alert, sound notification and email notification of the first crossover. Arrows mark the crossover.

Precipice MartIn Precipice MartIn

A trading strategy using the Martingale system.

Dealers Trade v 7.74 MACD Dealers Trade v 7.74 MACD

The EA trades using signals of the iMACD (Moving Average Convergence/Divergence, MACD) indicator. Lot is increased when the number of position grows (Martingale)

Show Pips Show Pips

Information about profit, points, percent, spread and time remaining until the close the bar on the current currency pair and timeframe in a compact and convenient form.