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

2017.01.19 17:09
Experts

DoubleUp с изгибом - expert for MetaTrader 5

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

Published by:
Vladimir Karputov
Views:
520
Rating:
votes: 15
DoubleUp2.mq5 (9.59 KB)view

Author of the idea — Hazem, author of the MQL5 code — barabashkakvn.

The main difficulty of the code is comparing iCCI and iMACD values with the "Buy Sell Level" variable. The indicator values may be different several or even dozens of times. 

For example, for EURUSD, USDJPY and USDSEK symbols as well as for all period values available in MetaTrader 5:

iCCI max min 

 

iMACD max min 

As you can see, iCCI is stable enough in its readings, while iMACD is highly dependent on the symbol price. To solve that, we may multiply iMACD values by a ratio:

void OnTick()
  {
//----
   m_ext_lot=NormalizeDouble(m_account.Balance()/50001.0,2);
   if(m_ext_lot<0.1)
      m_ext_lot=0.1;

   m_cci=iCCIGet(0);
   m_macd=iMACDGet(MAIN_LINE,0)*1000000;

   m_buy_total=0;
   m_sell_total=0;


DoubleUp2 Open and Close

Tip: EURUSD M30 is recommended.

Results from 2016.01.08 to 2016.11.06, EURUSD M30, initial deposit — 10 000:

DoubleUp2 Open and Close tester 

 

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

Opening and Сlosing on time v2 Opening and Сlosing on time v2

The Expert Advisor opens and closes at a certain time comparing two iMA indicators having different periods. A trade having a specified volume is opened at a specified symbol. Setting Stop Loss and Take Profit. Select position type: Buy or Sell.

Exp_Bezier_ReOpen Exp_Bezier_ReOpen

The Exp_Bezier_ReOpen trading system is based on the Bezier indicator color change with adding to trend-following positions.

Exp_JBrainTrend1Stop_ReOpen Exp_JBrainTrend1Stop_ReOpen

The Exp_JBrainTrend1Stop_ReOpen trading system is based on the JBrainTrend1Stop indicator color change with adding to trend-following positions.

JBrainTrend1Stop_Alert JBrainTrend1Stop_Alert

JBrainTrend1Stop trend indicator features alerts, emails and push notifications.