sever-seven

Trader
Apr 25, 2024
2
0
6
53
Version 1.02 released to simplify the MT5 indicator and introduce minor improvements into the MT4 indicator.
Hello.
It seems to me that there is a typo in the code and it needs to be swapped.
MQL5:
input string IndexPairs = "EURUSD, USDJPY, GBPUSD, USDCAD, USDSEK, USDCHF";
IndexCoefficients = "-0.576, 0.136, -0.119, 0.091, 0.036, 0.042"; // Index coefficients: do not change for USDX.
...
USDSEK^0,042*USDCHF^0,036
 
Last edited by a moderator:

Enivid

Administrator
Staff member
Nov 30, 2008
18,812
1,419
144
Odesa
www.earnforex.com
Hello.
It seems to me that there is a typo in the code and it needs to be swapped.
MQL5:
input string IndexPairs = "EURUSD, USDJPY, GBPUSD, USDCAD, USDSEK, USDCHF";
IndexCoefficients = "-0.576, 0.136, -0.119, 0.091, 0.036, 0.042"; // Index coefficients: do not change for USDX.
...
USDSEK^0,042*USDCHF^0,036
Yes, you right! Thanks for reporting!