You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Find two well correlated pairs.
Find the moment of big price divergence. Buy one pair and sell the other.
I am writing an Expert Advisor for auto trading.
The correlation indicator gives the value of the correlation (approximately 1...-0.2). I set the threshold of permission to trade.
Two orders will be opened. Lots are set in proportion to the prices of pairs that would create a lock.
When the sum of profits of two pairs reaches the specified positive value, two orders are closed.
Again, the Expert Advisor waits for a signal from the indicator to start trading.
I want to add an auto-tracking of price. I can also try to close orders when the correlation returns to the specified value.
Look here https://www.mql5.com/ru/code/9484