Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calculate DXY (US Dollar Index) #725

Open
kenorb opened this issue Oct 3, 2023 · 1 comment
Open

Calculate DXY (US Dollar Index) #725

kenorb opened this issue Oct 3, 2023 · 1 comment
Milestone

Comments

@kenorb
Copy link
Member

kenorb commented Oct 3, 2023

@kenorb kenorb added this to the v3.0?? milestone Oct 3, 2023
@kenorb kenorb added this to EA v3.001 Oct 3, 2023
@budiony
Copy link

budiony commented Nov 6, 2023

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;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants