MA Envelopes – EA MetaTrader 5

The author of the ideaΒ –Β ScriptorΒ 

mq5 code authorΒ –Β barabashkakvn

NOTE: The EA works on hedge accounts only! Netting is prohibited!

The Expert Advisor sets pending Buy limit and Stop limit orders. The robot uses data of the iMA (Moving Average, MA) and iEnvelopes (Envelopes) indicators. The EA works only when a new bar appears and has a limitation of the working time range: fromΒ Start hour to End hour.Β 

It is able to set up to three pendingΒ limit orders in each direction forming a grid: a separate magic number is assigned to each order. Magic number assignment rule:Β 

  • for BUY #1:Β magic number + 1
  • for BUY #2: magic number + 2
  • for BUY #3: magic number +3
  • for SELL#1: magic numberΒ – 1
  • for SELL#2: magic numberΒ – 2
  • for SELL#3: magic numberΒ – 3
  Modify SL TP - script MetaTrader 5

If there are non-activated pending orders, and the server timeΒ exceedsΒ End hour, all pending orders are removed.

The default parameters, EURUSD M5:



https://www.mql5.com/ru/code/22353

πŸ“ˆ ROBOTFX MetaTrader Expert Advisors and Indicators to maximize profits and minimize the risks