215 2 22
Plots daily open, high, low and close levels on charts
Remove from Favorite Scripts Add to Favorite Scripts
//Created By DisciplinedTrader.co.uk -- Updated 16.09.2016
//Updated for Forex and Intraday traders.  Previous Day OHLC
//Daily Session To be used on IntraDay Charts
study(title="DT_OHLC", shorttitle="DT_OHLC", overlay=true)
sy = input(false, title="Show Yesterdays OHLC?")


//PRevious OHLC
pdo = security(tickerid, 'D', open[1])
pdc = security(tickerid, 'D', close[1])
pdh = security(tickerid, 'D', high[1])
pdl = security(tickerid, 'D', low[1])



//Daily Plots
offs_daily = 0 
plot(pdo, title="PDO", style=line, linewidth=2, color=blue)
plot(pdc, title="PDC", style=line, linewidth=2, color=orange)
plot(pdh, title="PDH", style=line, linewidth=2, color=lime)
plot(pdl, title="PDL", style=line, linewidth=2, color=red)
If I wanted to automatically calculate and/or plot certain time periods? In effect make a templated layout plot the high/low of x time period from today?

Cheers, It is a big question, but I believe you would be the one to give me a yes or no or feedback. Cheers, Charles
Reply
Yeah I think that could be done mate
Reply
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 Contact Support Ideas Published Followers Following Private Messages Chat Sign Out