Safe Trading
Key cost
for 1 year 9500 rub
no time limit 14500 rub
Fully automatic trading! The Expert Advisor takes care of all the basic calculations and decision-making on trading. Your task is just to select the necessary trading tools and specify them the lot as a percentage of the deposit (Lot_Percent). The approximate percentage for the minimum lot is 0.005% for a 500 usd deposit. Be sure to set up and check the lot size in the tester or on the demo account. You can download ready-made sets for some couples on the telegram channel.
The ADVISER combines two strategies. The risk-free strategy of pair trading is enhanced by averaging. Due to hedging, the ADVISER insures his trades, but at the moment of a large currency divergence, he turns on averaging and earns thanks to this even on uncorrelation!
The Expert Advisor analyzes the movement of currencies on the last X bars (set in the BarsCorrelation parameter) I recommend putting it at least 300, preferably 800-1000. But for each pair of tools, it is better to choose your optimal value in the tester. The pairs should be selected taking into account the correlation. You can use the correlation calculation script to select such pairs. Next, the ADVISER calculates by what percentage the pairs have diverged and at the specified value (Open Delta Percent, for example 70%), counter transactions are opened. When the instruments converge to the value (CloseDeltaPercent = 30%), the ADVISER closes the trades. If After the opening of transactions there is a de-correlation and the pairs diverge further from each other, then the adviser averages transactions through a step (Step – set as % of the average daily price movement).
The Expert Advisor trades on any instruments with a positive correlation. For example, on any cryptocurrencies.

You can use the CORR script to select the tools .
The Expert Advisor analyzes the movement of currencies on the last X bars (set in the BarsCorrelation parameter). I recommend putting it at least 300, preferably 800-1000. But for each pair of tools, it is better to choose your optimal value in the tester. Next, the ADVISER calculates by what percentage the pairs have diverged and at the specified value (Open Delta Percent, for example 70%), counter transactions are opened. When the instruments converge to the value (Closedeltapercent = 30%), the ADVISER closes the trades. If After the opening of transactions there is a de-correlation and the pairs diverge further from each other, then the adviser averages transactions through a step (Step – set as % of the average daily price movement). Additional positions can be opened with a lot multiplied by a coefficient. You can set it within 0.5 – 3 (I don’t recommend it anymore)
parameters:
The first two parameters are the instruments on which we trade. at the same time, it does not matter at all which pair the adviser himself is on, trading will still be conducted only on these two instruments.
SYMBOL_1 = “EURUSD”;
SYMBOL_2 = “GBPUSD”;
Adviser’s working hours
TimeStart = 1;
TimeEnd = 23;
The number of candles on which we analyze the correlation
BarsCorrelation = 600;
Timeframe for analysis
TimeFrames = 5;
Minimum delta of divergence for opening positions
OpenDeltaMin = 0;
The percentage of divergence of instruments from its maximum value for opening positions.
OpenDeltaPercent = 70;
The percentage of divergence of instruments from its maximum value for closing positions.
CloseDeltaPercent = 10;
input double MinProfit = 0.1;
The volume of positions as a percentage of the deposit
Lot_Percent = 0.000000;
Fixed volume of the first instrument
Lot_1 = 0.01;
Fixed volume of the second instrument
Lot_2 = 0.01;
The step of topping up as a percentage of the average daily movement. To exclude topping up, just set an unreachable value, for example 999999
Step = 100;//Step % ADR period 14
Forcibly hedge (open a position on the second instrument when opening the first one and vice versa. Exclude the possibility of skewing)
hedgeStep = false;
The distance to the virtual pending order as a percentage of the average daily price movement.
LevelOrder = 5;//0 – pozicion, > 0 level pending order % ADR
// if 0, then immediately open a position, if more than 0, then place a pending order at a distance
Lot increase ratio
K_Lot = 2.00;
The total profit at which we close all transactions
ProfitClose = 0;
Minimum correlation level for opening (in earlier versions)
MinCorrel = 0.5;//Minimum correlation for opening (range 0-1)
slippage (in earlier versions)
slippage = 30;
The unique number of the Adviser’s orders is calculated automatically by a combination of instruments. To change it (for example, in order to put the same pairs on the same account), you can use an increase in the number (the magic will be increased by this number)
Magic Plus = 0;
Tool drawing colors
color1 = clrAqua;
color2 = clrLime;
Resolution of alert type messages
AlertON = false;
Sending a signal to the mail
SendMailInfo = false;
Saving a screenshot with each action of the adviser
ScreenShot = false;
read more about setting up and optimizing the parameters of this Expert Advisor on the page https://cmillion.ru/en/optimization-of-the-expert-advisor-safe-trading/
The Expert Advisor trades on any instruments with a positive correlation. For example, on any cryptocurrencies.
You can download Expert Advisors for free to test it on a demo account. For real trading, you need to buy a key.
The cost of the key for 1 trading account:
- for 1 year 9500 rubles
- no time limit 14500 rub
Payment methods: https://cmillion.ru/en/pay/
About its acquisition, write to me
- Email: ea@cmillion.ru
- WhatsApp +79283690333
- Telegram: @mqlcmillion
- Skype: https://join.skype.com/invite/ECy7v3T9fmCh






telegram group
https://t.me/joinchat/SerHr0lGDQVjMDA6