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


e-Regr - expert for MetaTrader 5

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

Published by:
Vladimir Karputov
votes: 12
2017.01.19 16:53
e-Regr.mq5 (27.06 KB)view

Trading by i-Regr (Regression Channel):

i Regr Buy

i Regr Take Profit 

Regression Channel: Linear Regression Channel, Quadratic (Parabolic) Regression Channel, Cubic Regression Channel.

Implemented the trend protection: if a previous day's D1 exceeds 1500 pips ("protection size D1 bar" input) – disable trading and close all open positions.

Test period: 2016.01.01 — 2016.10.26, initial deposit — 10 000, timeframe — H1:

i Regr tester 

In the below code, it is already assumed that i-Regr indicator is already in the \MQL5\Indicators\ folder:

//| Expert initialization function                                   |
int OnInit()
   m_symbol.Name(Symbol());                  // sets symbol name
   m_trade.SetExpertMagicNumber(m_magic);    // sets magic number
//--- create handle of the indicator i-Regr
//--- if the handle is not created

Translated from Russian by MetaQuotes Software Corp.
Original code:

AutoFibAutoTrend_Zigzag2_R AutoFibAutoTrend_Zigzag2_R

The indicator plots price channel and Fibonacci levels based on the latest Zigzag2_R_Color peaks.

RSI_Histogram_Round_HTF RSI_Histogram_Round_HTF

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

The MasterMind 2 The MasterMind 2

Receive data from two indicators: iStochastic and iWPR.

Artificial Intelligence Artificial Intelligence

The Expert Advisor using artificial intelligence - a single-layer neural network. The "Perceptron" is used for identification of the quotes movement direction. Both iAC indicator and CopyTime calls are used.