OPEN-SOURCE SCRIPT

MalcolmX

xc xc xbsjhydygf shdbfklhsbdklasdbfa dfsabdfhibsadkhfbsadfsad fsad fas dfas dfsa dfsadfsad fsa df asdfnput for lunch session time
lunchStartHour = input.int(12, title="Lunch Start Hour", minval=0, maxval=23, group="Session")
lunchStartMinute = input.int(0, title="Lunch Start Minute", minval=0, maxval=59, group="Session")
lunchEndHour = input.int(13, title="Lunch End Hour", minval=0, maxval=23, group="Session")
lunchEndMinute = input.int(0, title="Lunch End Minute", minval=0, maxval=59, group="Session")

// STYLE
colorTwo = input.color(color.new(color.black, 65), title="Lunch:", inline="s_2", group="Style")
colorTwoFill = input.color(color.new(color.orange, 90), title="-", inline="s_2", group="Style")
lineStyleTwo = input.string(title="-", defval=line.style_solid, options=[line.style_dotted, line.style_dashed, line.style_solid], inline="s_2", group="Style")

// Get current bar time in the specified timezone
barHour = hour(time, i_tz)
barMinute = minute(time, i_tz)

// Check if current bar is within the lunch time range
in_lunch = (barHour > lunchStartHour or (barHour == lunchStartHour and barMinute >= lunchStartMinute)) and
(barHour < lunchEndHour or (barHour == lunchEndHour and barMinute < lunchEndMinute))

// PLOTTING LUNCH SESSION
var line lunchOpen = na, var line lunchCl sad fasdfasdfasdfsad fsadfs
Chart patterns

開源腳本

在真正的TradingView精神中,這個腳本的作者以開源的方式發佈,這樣交易員可以理解和驗證它。請向作者致敬!您可以免費使用它,但在出版物中再次使用這段程式碼將受到網站規則的約束。 您可以收藏它以在圖表上使用。

想在圖表上使用此腳本?

免責聲明