RicardoSantos

DRWnine hardcoded dataset

82 0 4
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))
United States
United Kingdom
India
Deutschland
France
España
Italia
Polska
Türkiye
Россия
Brasil
Indonesia
Malaysia
Việt Nam
日本
한국
简体
繁體
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Priority Support Contact Support Ideas Published Followers Following Private Messages Chat Sign Out