Trading view aftervhours/premarket high/low indicator

Lezárva Kiadva: 4 évvel ezelőtt Kiszállításkor fizetve
Lezárva Kiszállításkor fizetve

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)

Matematika Szoftver fejlesztés

Projektazonosító: #20779313

A projektről

6 ajánlat Távolról teljesíthető projekt Utoljára aktív: 4 évvel ezelőtt

6 szabadúszó tett átlagosan 170£ összegű árajánlatot erre a munkára

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/ Továbbiak

£200 GBP 3 napon belül
(36 vélemény)
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 Továbbiak

£250 GBP 7 napon belül
(5 vélemény)
5.1
buildorbust

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

£50 GBP 3 napon belül
(5 vélemény)
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 Továbbiak

£135 GBP 7 napon belül
(1 Visszajelzés)
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 Továbbiak

£135 GBP 3 napon belül
(0 vélemény)
2.2