101 2 7
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)
smartscope PRO
2 months ago
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
disciplinedtrader smartscope
2 months ago
Yeah I think that could be done mate
Reply
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