EURUSD/USDX Ratio

If you need an Indicator or Signal developed or translated from other language, please post all Indicator development REQUESTS to this section here.

Moderator: admin

EURUSD/USDX Ratio

Postby isamegrelo » Thu Aug 16, 2018 3:27 pm

USDX - this is US Dollar index

Code:

//study(title="EURUSD/USDX Ratio", shorttitle="Ratio", overlay=false)
//sym(s) => security(s, period, close)
//EURUSDX = (sym("EURUSD") / sym("USDX"))
//len = input(20, minval=1, title="Length")
//out = ema(EURUSD, len)
//plot(out, title="EMA", color=green)
//plot(40, color=red)
//plot(30, color=#EBC87A)
//plot(5, color=blue)
//plot(3.20, color=red)
//plot(EURUSDX, color=navy, linewidth=1)




and finally, please add alert when these 2 lines crossing.
isamegrelo
FXCodeBase: Initiate
 
Posts: 114
Joined: Mon May 29, 2017 3:36 pm

Re: EURUSD/USDX Ratio

Postby Apprentice » Thu Aug 16, 2018 6:20 pm

USDOLLAR m15 (08-16-2018 2318).png

EUR_USD_USDX_Ratio.lua
(5.38 KiB) Downloaded 403 times


I assumed USDOLLAR is USDX.
We have two lines, EMA of Eur / Usd
And "EUR / USD" / "USDOLLAR"

These two are simply not on the same scale.

Try my version.
1. Line is "EUR / USD" / "USDOLLAR"
2. Lime is EMA od 1. Line
viewtopic.php?f=17&t=66531
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Return to Indicator and Signal Requests

Who is online

Users browsing this forum: Majestic-12 [Bot] and 21 guests