Pairs Trading Ultimate
This Expert Advisor operates based on binary combinations of conjugated currency pairs, including two modes: opening two orders in mutually opposite directions and opening one order on an adjacent pair (cross). By default, the EA uses parameters for the EURUSD-GBPUSD combination, optimized for working on EURUSD H1. To work on other currency pairs or periods, preliminary testing and optimization in the strategy tester are required.
Adjustable Parameters
- TradeEnabled - if true, enables trading;
- PairFirst - the first currency pair of the combination;
- PairSecond - the second currency pair of the combination;
- MagicNumberPairFirst - magic number of the first pair or cross;
- MagicNumberPairSecond - magic number of the first pair or cross when TradeCrossReverse = true;
- TradeCross - enable the cross trading mode;
- TradeCrossReverse - change orders for the opposite when TradeCross = true;
- ECN - if true, the opening/modification rules for ECN accounts will be used;
- Lots - fixed trading lot;
- Risk - percentage of the balance to be used in trading;
- MaxLots - maximum lot;
- MaxSlippage - maximum price slippage;
- MaxSpread - maximum spread;
- TestMode - testing and optimization mode;
- PeriodRecalculated - recalculation period in testing and optimization mode;
- TakeProfit - fixed take profit in points;
- StopLoss - fixed stop loss in points;
- PendingOrders - use pending orders;
- PendingOrderLevel - fixed level of the pending order in points;
- MaxTimePendingOrders - expiration time (in seconds) of the pending order, after which it is deleted;
- MinLevelOpen - the minimum correlation level for opening orders;
- MinLevelPair - the minimum correlation level for each currency pair;
- MinLevelClose - the minimum correlation level for closing orders;
- IncreaseDiscrepancyClose - close the order when correlation increases;
- IncreaseLevel - deviation of the correlation indicator to close the order;
- Discrepancy - the number of the indicator for calculating the correlation (from 0 to 3);
- Shift - shift of the price series (Discrepancy = 0);
- PeriodFirstMA - period of the first moving average (Discrepancy = 1);
- PeriodSecondMA - period of the second moving average (Discrepancy = 1);
- PeriodRSI - period of the RSI indicator (Discrepancy = 2);
- PeriodWPR - period of the WPR indicator (Discrepancy = 3);
- AverageOsc - if true, the averaged values of oscillators will be used (Discrepancy = 1 or Discrepancy = 2)
- PeriodAvgOsc - averaging period for oscillators;
- SymmetryCondition - additional condition for entering the market when signals are symmetric;
- SynchroCondition - additional condition for entering the market when signals are simultaneous;
- VolumeCondition - additional condition for entering the market when the volume is allowable;
- ZoneVolume - the number of bars to estimate the volume;
- MaxAccVolume - the maximum allowable volume;
- Grid - if true, activates the order grid;
- GridSpread - step of the correlation indicator for opening additional orders in the grid;
- Rebound - if true, the deviation of the correlation indicator from the maximum value at which the order is opened is taken into account;
- ReboundLevel - the deviation level of the correlation indicator from the maximum value for opening orders;
- Trailing - if true, trailing stop will be used;
- TrailingStop - trailing stop in points.
- InfoMode - display information on the screen.
Recommend conditions and settings
- Broker: ECN/STP;
- Instrument: any, EURUSD is recommended;
- Period: any, H1 is recommended.
联系方式
公司:顺水的鱼外汇EA
状态:离线 发送信件 在线交谈
姓名:顺水的鱼(先生)
职位:投机客
电话:18391752892
手机:18391752892
地区:默认地区
地址:西安市高新区软件园
邮件:3313198376@qq.com
QQ:3313198376
微信:18391752892
阿里旺旺:顺水的鱼waterfish
Skype:3313198376@qq.com
状态:离线 发送信件 在线交谈
姓名:顺水的鱼(先生)
职位:投机客
电话:18391752892
手机:18391752892
地区:默认地区
地址:西安市高新区软件园
邮件:3313198376@qq.com
QQ:3313198376
微信:18391752892
阿里旺旺:顺水的鱼waterfish
Skype:3313198376@qq.com

