TradingView
CapnOscar
29 Haz 2015 09:52

USDIndex 

Euro Fx/U.S. DollarFXCM

Açıklama

Just seeing folks asking a lot about USD INDEX I just wanted to help little bit
Yorumlar
FX_Baba
can I ask where does the 50.14348112 comes from
SunnyBOT0
Good thinking Batman
CapnOscar
was simple solution I thought :)
Sinuhet
thx a lot! would be great if you could modify it to get it the same absolute value as the official USD index. Aka "fix it to the start date". Following could help you (credit to Ricardo Santos) by it as inspiration:

study("My Script"
_day = input(title='day', type=integer, defval=0)
_month = input(title='month', type=integer, defval=0)
_year = input(title='year', type=integer, defval=0)

check_time(_dd, _mm, _yyyy) => _dd == dayofmonth and _mm == month and _yyyy == year ? true : false
sec = security(tickerid, period, valuewhen(check_time(_day, _month, _year), close, 0))
plot(sec)

Daha Fazla