Join our fan page
- Published by:
- Vladimir Karputov
- Views:
- 5047
- Rating:
- Published:
- 2017.01.19 17:09
- Updated:
- 2017.02.21 07:51
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
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:
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:
{
//----
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;
Tip: EURUSD M30 is recommended.
Results from 2016.01.08 to 2016.11.06, EURUSD M30, initial deposit — 10 000:
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/16886

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.

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

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

JBrainTrend1Stop trend indicator features alerts, emails and push notifications.