Trading view aftervhours/premarket high/low indicator

Encerrado Postado há 4 anos Pago na entrega
Encerrado Pago na entrega

Hi,

I would like an indicator that records the high/low of an after hours/premarket session on tradingview.

I already have an example script, but it does not seem to plot the high/low.

//@version=3

study("Extended Session High/Low", overlay=true)

t = time("1440","1600-1600") // 1440=60*24 is the number of minutes in a whole day. You may use "0930-1600" as second session parameter

is_first = na(t[1]) and not na(t) or t[1] < t

ending_hour = input(defval=9, title="Ending Hour", type=integer)

ending_minute = input(defval=30, title="Ending Minute", type=integer)

LastOnly = input(title="Last only", type=bool, defval=false)

day_high = na

day_low = na

k = na

if is_first and [login to view URL] and ((hour < ending_hour or hour >= 16) or (hour == ending_hour and minute < ending_minute))

day_high := high

day_low := low

else

day_high := day_high[1]

day_low := day_low[1]

if high > day_high and ((hour < ending_hour or hour >= 16) or (hour == ending_hour and minute < ending_minute))

day_high := high

if low < day_low and ((hour < ending_hour or hour >= 16) or (hour == ending_hour and minute < ending_minute))

day_low := low

if LastOnly==true

k:=-9999

else

k:=0

plot(day_high, style=circles, trackprice=true, offset=k, color=lime, linewidth=2)

plot(day_low, style=circles, trackprice=true, offset=k, color=red, linewidth=2)

Matemática Desenvolvimento de Software

ID do Projeto: #20779313

Sobre o projeto

6 propostas Projeto remoto Ativo em há 4 anos

6 freelancers estão ofertando em média £170 nesse trabalho

Piao217

Hi This is Wang from China. I am an MSc majored in mathematics. (Probability and Statistics) I have deep understandings of trading algorithms. I have developed many strategies and indicators using TradingView and MT4/ Mais

£200 GBP in 3 dias
(36 Comentários)
6.8
p4logics

Dear Sir, I am interested in your project. I have gone through your project requirement, I already worked on similar indicator on tradingview or binance. I'm expert in java desktop and web application also in web sc Mais

£250 GBP in 7 dias
(5 Comentários)
5.1
buildorbust

hi.......................................................................................................................

£50 GBP in 3 dias
(5 Comentários)
3.8
html5css3php5

My background as a Full Stack Developer, along with my education in Computer Science, have allowed me to attain a strong foundation of technical skills. In addition to my Web Development skills, I also possess a grea Mais

£135 GBP in 7 dias
(1 Comentário)
1.4
dapsonadek

I am a senior software developer who has carried out many tasks related to Amibroker, Pinescript, Tradingview and Metatrader, Ninjatrader working on brokers, Crypto-Trading bot and Telegram. Some of my developments inc Mais

£135 GBP in 3 dias
(0 Comentários)
2.2