EA31337 / EA31337-classes

📦📈 EA31337 framework (MQL library for writing trading Expert Advisors, indicators and scripts)
https://ea31337.github.io/EA31337-classes
GNU General Public License v3.0
178 stars 97 forks source link

Calculate DXY (US Dollar Index) #725

Open kenorb opened 9 months ago

kenorb commented 9 months ago
budiony commented 8 months ago
double CalculateUSDX(double EURUSD, double USDJPY, double GBPUSD, double USDCAD, double USDSEK, double USDCHF)
{
    double USDX = 50.14348112 * MathPow(EURUSD, -0.576) * MathPow(USDJPY, 0.136) * MathPow(GBPUSD, -0.119) * MathPow(USDCAD, 0.091) * MathPow(USDSEK, 0.042) * MathPow(USDCHF, 0.036);
    return USDX;
}