Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Thank for this very useful code. Can you explain how to use variables "ratio"?
typically in hedging EA's there will be a ratio of lots. In this function it does not need to be reduced so you can pass in any value such as:
EURUSD = 1
USDCHF = 1.3
or
EURUSD = 30
USDCHF = 39
When it's all said and done the lots ratio will come out to be 1:1.3
This answer your question?
Ratios
Am I understood right - this is for currencies investment ratios (for every 1 lot of EURUSD will trade 1.3 lots of USDJPY)?
.................