RicardoSantos

DRWnine hardcoded dataset

77 0 3
example method for reading hardcoded data
Remove from Favorite Scripts Add to Favorite Scripts
study("DRWnine hardcoded dataset", overlay=true)
getValue(_Y, _M, _D)=>
    _return = 
        //  ||  year    ||  Month   ||  Day     ||  Value   ||
        _Y == 0000 and _M == 00 and _D == 00 ? 0000 :
        _Y == 2015 and _M == 04 and _D == 17 ? 2000 :
        _Y == 2015 and _M == 04 and _D == 18 ? 2001 :
        _Y == 2015 and _M == 04 and _D == 19 ? 2002 :
        _Y == 2015 and _M == 04 and _D == 20 ? 2003 :
        _Y == 2015 and _M == 04 and _D == 21 ? 2004 :
        _Y == 2015 and _M == 04 and _D == 22 ? 2005 :
        _Y == 2015 and _M == 04 and _D == 23 ? 2006 :
        _Y == 2015 and _M == 04 and _D == 24 ? 2007 : na
    _return

plot(getValue(year, month, dayofmonth))
Ideas Scripts Chart
United States
United Kingdom
India
España
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Billing Sign Out