user2081405
user2081405

Reputation: 115

Getting The Extended Hours close price of 5m, on daily timeframe chart

On Daily timeframe view I tried this:

t = tickerid(syminfo.prefix, syminfo.ticker, session.extended)
cc = security(t, "5", close, false)

l = label.new(time, high, text=tostring(cc), xloc=xloc.bar_time)
label.delete(l[1]) 

but it always gives me the daily close price, not the 5m chart, what am I doing wrong?

Upvotes: 1

Views: 348

Answers (1)

PineCoders-LucF
PineCoders-LucF

Reputation: 8779

You're not doing anything wrong. Extended session information is not available from daily resolutions and up.

Upvotes: 1

Related Questions