Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Views:
12858
Rating:
(46)
Published:
2015.01.21 13:19
Updated:
2016.11.22 07:32
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

The robot opens two positions, profit and loss of which overlap each other. In other words two positions are opened: one has positive profit, while the other has negative profit. After that the robot waits for positive profit of these orders and closes positions.

The robot is capable of trading in two modes: manual and automatic (when the robot itself makes decision upon purchase or sale depending on a trade session). You shall state the symbols you have (pair or mirror) to work in the automatic mode.

You have pair symbols if symbol charts are similar.

You have mirror symbols if symbol charts are reflected specularly.

The robot provides profits statistics:


 

Attention!

You will need correlation indicators for the EA. It shall be installed in terminal data folder\MQL5\Indicators as in the figure:


Key parameters

  • Correlation bail for orders opening - correlation value according to which positions are opened.
  • How many times you can try to open an order - if your agency does not open a position on the first try, this parameter will state how many times one position can be opened .
  • Lots for the 1st symbol, Lots for the 2nd symbol - number of lots is selected in such a way that profit of one pair overlaps loss of the other pair. I.e. symbol profit shall be equal to zero (but during "tranquil" correlation only (see the figure)).

EURUSD and USDCHF Statistics


This statistic data is obtained from MetaTrader 5 tester. In practice such statistic can appear only on stocks, futures, options, and Forts markets (the latter is more volatile). As for FOREX, suitable markets were found abroad (for instance www.swissquote-fx.com, https://www.tradeking.com or http://pricemarkets.com). Why abroad? Because at night Russian agencies close and then open your positions, meanwhile loss taking (in the course of pairs trading) can happen.

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/11777

IcqMessenger IcqMessenger

System of receiving information concerning opened positions' current state, account, etc., as well as automatic notification about operations via ICQ.

Exp_ExchangePrice Exp_ExchangePrice

The Exp_ExchangePrice EA is based on the signals of the ExchangePrice trend indicator.

Exp_CronexMFI Exp_CronexMFI

The Exp_CronexMFI is based on the signals generated by the CronexMFI oscillator.

Exp_CronexRSI Exp_CronexRSI

The Exp_CronexRSI is based on the signals generated by the CronexRSI oscillator.