281 2 32
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
Yeah I think that could be done mate
EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
SV Svenska
TR Türkçe
RU Русский
PT Português
ID Bahasa Indonesia
MS Bahasa Melayu
TH ภาษาไทย
VI Tiếng Việt
JA 日本語
KO 한국어
ZH 简体中文
ZH 繁體中文
AR العربية
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