SmartHedge
- Uzman Danışmanlar
- Vladimir Khlystov
- Sürüm: 6.94
- Güncellendi: 10 Aralık 2019
- Etkinleştirmeler: 5
The EA compares two instruments and opens opposite positions when these instruments diverge. Further, when the instruments converge, the EA closes positions on the total profit. The EA works on any instruments. Select couples can be on the table. Advisor enough to put on one pair of bundles. For example, for trading on GBPUSD — EURUSD, it is enough to put the EA on GBPUSD or EURUSD. On the chart, the EA draws both currencies and the bars indicate the distance between them.
The parameters of the EA:
- extern string Instrument_2 = "GBPJPY";
- extern bool direct_correlation = true;//direct correlation)
- extern double Lot1 = 0.01; // 1 order volume order volume
- extern double Lot2 = 0.01; // 2 order volume order volume (0-auto)
- extern ENUM_TIMEFRAMES TF_Trade=5;//TF (the EA will trade only on it)
- extern double K_Lot = 1.0; // lot factor lot ratio
- extern int StartDelta1 = 10; // the minimum delta of opening positions 1 minimum Delta of opening positions
- extern int StartDelta2 = 10; // the minimum delta of opening positions 2 minimum Delta of opening positions
- extern int StartDelta3 = 10; // the minimum delta of opening positions 3 minimum Delta of opening positions
- extern double LossClose = 0; // close when receiving a loss (0-off) (in the deposit currency)close at loss (0-off) (in the Deposit currency)
- extern double ProfitClose = 0; // close when receiving a profit (0-auto) (in the deposit currency)close when receiving a profit (0-auto) (in the deposit currency)
- extern double K_ProfitClose = 1; // K profit K profit
- extern double MinProfit = 0.5; // the minimum closing profit for 0 delta (in the deposit currency)minimum closing profit at 0 Delta (in the Deposit currency)
- extern int BarsWind = 300; // number of candles for calculating the correlationcol-in candles for calculating correlation PCs
- extern double K_Max_Points = 1.01;//K_Max_Points (coefficient of rollback from the maximum Delta to open positions)
- extern bool filterTF=false;//filter by Delta of another TF
- extern ENUM_TIMEFRAMES TF_F = 15; //filter TF
- extern int BarsWindF = 300; //filter number of candles for calculating the correlation
- extern int StartDeltaF = 10; //filter the minimum delta of opening positions 1
- extern bool filtervelosity=false;//filter by Delta of another TF
- extern int BarsWindVelosity = 10; //velocity filter number of candles
- extern int Slippage = 10; // slippage
- extern int Magic = 100;
- extern color color1 = clrPink;
- extern color color2 = clrPaleTurquoise;
- extern color color_fon = clrLemonChiffon;
- extern color color_fon1 = clrWhite;
- extern int TrailingStop = 30;//trawl length in points
- extern int MaxSpread = 30;//maximum spread (5 sign auto-increase)
- extern int SleepAfteOpen = 1000;//delay after opening positions
- extern bool AlertOn = true;//disable alert
If after opening the first pair of positions, the divergence of instruments increases, the EA opens the second pair of orders
The EA does NOT work in the tester because the MT4 tester is not designed for pair trading.
Definitely, it is a very good EA. I have been testing it on a live account for 2 months, it is working very well. I am going to add updates every month:
08/21/19 : Around 10% profit monthly with a small DD (Max. 15%).