Sessions Full Markets [TradingFinder] Forex Stocks Index 7 Times

TradingFinder · study · 514 行 · 点赞 3,489 · TradingView 原页

本页源码来自 TradingView 公开发布的开源脚本,版权归原作者所有, 请遵循其原始许可(Pine 脚本常见 CC BY-NC-SA / MPL-2.0 / MIT)。 本项目仅用于研究检索与许可范围内的移植。

Pine Script

// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © TFlab
//@version=5
 
 
indicator("Sessions Full Markets [TradingFinder] Forex Stocks  Index 7 Times", "TFlab Sessions Daylight Saving", overlay = true, max_bars_back = 5000, max_boxes_count = 500,max_labels_count = 500,max_lines_count = 500)
 
MarketMode = input.string('Forex', 'Market Mode', options = ['Forex', 'Stock', 'User Custom', 'TFlab suggestion'],group = 'Basic Setting')
TimeZoneMode = input.string('UTC', 'Time Zone Mode', options = ['UTC', 'Session Local Time', 'Your Time Zone'],group = 'Basic Setting')
YourTZ = input.string('UTC-4:00', 'Your Time Zone',group = 'Basic Setting')
CustomTZ = input.string('UTC-4:00', 'Custom Time Zone',group = 'Basic Setting')
ShowDST = input.bool(true, 'Show Start & End of DST')
 
 
//Session Asia
show_sesasia = input(true, 'Asia Session', group = 'Asia Session', tooltip = 'Sydney + Tokyo')
sesasia_ses = input.session('1800-0300', '', inline = 'sesasia', group = 'Asia Session')
sesasia_color = input.color(#8bbcfc, 'Color', inline = 'sesasia', group = 'Asia Session')
sesasia_text = 'Asia'
 
//Session Sydney
show_sesSydney = input(true, 'Sydney Session', group = 'Sydney Session') 
sesSydney_ses = input.session('1800-0200', '', inline = 'sesSydney', group = 'Sydney Session')
sesSydney_color = input.color(#F0B884, 'Color', inline = 'sesSydney', group = 'Sydney Session')
sesSydney_text = 'Sydney'
 
//Session Tokyo
show_sesTokyo = input(true, 'Tokyo Session', group = 'Tokyo Session') 
sesTokyo_ses = input.session('1900-0300', '', inline = 'sesTokyo', group = 'Tokyo Session')
sesTokyo_color = input.color(#0CC1C0, 'Color', inline = 'sesTokyo', group = 'Tokyo Session')
sesTokyo_text = 'Tokyo'
 
//Session Shanghai
show_sesShanghai = input(false, 'Shanghai Session', group = 'Shanghai Session') 
sesShanghai_ses = input.session('2100-0500', '', inline = 'sesShanghai', group = 'Shanghai Session')
sesShanghai_color = input.color(#fc0000c7, 'Color', inline = 'sesShanghai', group = 'Shanghai Session')
sesShanghai_text = 'Shanghai'
 
//Session Europe
show_sesEuro = input(true, 'Europe Session',  group = 'Europe Session', tooltip = 'Frankfurt + London') 
sesEuro_ses = input.session('0200-1100', '', inline = 'sesEuro', group = 'Europe Session')
sesEuro_color = input.color(#BBE8B5, 'Color', inline = 'sesEuro', group = 'Europe Session')
sesEuro_text = 'Europe'
 
show_seslondon = input(true, 'London Session',  group = ' London Session') 
seslondon_ses = input.session('0300-1100' , 'Fall', inline = 'seslondon', group = ' London Session')
seslondon_color = input.color(#ACBBE8, 'Color', inline = 'seslondon', group = ' London Session')
seslondon_text = 'London'
 
//Session NewYork
show_sesNewyork = input(true, 'Newyork Session',  group = 'Newyork Session') 
sesNewyork_ses = input.session('0800-1600', '', inline = 'sesNewyork', group = 'Newyork Session')
sesNewyork_color = input.color(#C5ACE8, 'Color', inline = 'sesNewyork', group = 'Newyork Session')
sesNewyork_text = 'New York' 
 
 
//Info Table
Show_Info_Table = input(true, 'Info Table', group   = 'Table')
Size = input.string(size.small , 'Table Text Size' , options = [size.small, size.normal])
Position = input.string(position.top_right, 'Table Position', options = [position.top_left, position.top_center, position.top_right, position.middle_left, position.middle_center, position.middle_right, position.bottom_left, position.bottom_center, position.bottom_right] )
 
 
//Daylight Saving Time
DST_Detector(Start_Month, Start_Day, Start_CountDay, End_Month, End_Day, End_CountDay, TimeZone) =>
    var int StartCountDay = 0
    var int EndCountDay   = 0
    var bool S_PermitCount = true
    var bool E_PermitCount = true
    var bool SS_PermitCount = true
    var bool EE_PermitCount = true
    var int S = Start_CountDay
    var int E = End_CountDay   
    Y = year
    M = month
    D = dayofweek
    //dayofmonth counter
    if M[1] != M
        StartCountDay := 0
        EndCountDay   := 0
        SS_PermitCount := true
        EE_PermitCount := true       
    if D[1] != D
        S_PermitCount := true
        E_PermitCount := true
 
    if D == Start_Day and S_PermitCount
        StartCountDay  := StartCountDay + 1
        S_PermitCount := false
 
    if D == End_Day and E_PermitCount
        EndCountDay    := EndCountDay + 1
        E_PermitCount := false
    if Start_CountDay < 4 and SS_PermitCount == true
        S := Start_CountDay
    else if Start_CountDay == 4 and SS_PermitCount == true
        if StartCountDay < 4
            S := 4
        else if (StartCountDay[1] == 3 and StartCountDay == 4) and dayofmonth > 23
            S := 4
            SS_PermitCount := false
        else 
            S := 5
    
    if End_CountDay < 4 and EE_PermitCount == true
        E := End_CountDay
    else if End_CountDay == 4 and EE_PermitCount == true
        if EndCountDay < 4
            E := 4
        else if (EndCountDay[1] == 3 and EndCountDay == 4) and dayofmonth > 23
            E := 4
            EE_PermitCount := false
        else 
            E := 5
 
    if  M == Start_Month and StartCountDay >= S
     or  (M > Start_Month and M < End_Month)
     or M == End_Month and  EndCountDay < E 
        TimeZone == "Australia/Sydney" ? 'Inactive' : 'Active'
    else 
        TimeZone == "Australia/Sydney" ? 'Active' : 'Inactive'
    
Sydney_DST  = DST_Detector( 4  , dayofweek.sunday, 1, 10, dayofweek.sunday, 1, "Australia/Sydney")
London_DST  = DST_Detector(3 , dayofweek.sunday, 4, 10 , dayofweek.sunday, 4,    "Europe/London")
NewYork_DST = DST_Detector(3 , dayofweek.sunday, 2, 11 , dayofweek.sunday, 1, "America/New_York")
 
//Session Timing
Market_TimeZone_Calculator(MarketMode, TimeZoneMode) =>
    var string Sydney   = na
    var string Tokyo    = na
    var string Shanghai = na
    var string Asia     = na
    var string Europe   = na
    var string London   = na
    var string NewYork  = na
    if MarketMode == 'Forex'
        if TimeZoneMode == 'UTC'
 
            if Sydney_DST == 'Inactive'
                Sydney   := '2200-0600'
                Asia     := '2200-0700'
 
            else if Sydney_DST == 'Active'
                Sydney   := '2100-0500'
                Asia     := '2100-0700'
 
 
            if London_DST == 'Inactive'
                Europe   := '0700-1600'
                London   := '0800-1600'
 
            else if London_DST == 'Active'
                Europe   := '0600-1500'
                London   := '0700-1500'
 
 
            if NewYork_DST == 'Inactive'
                NewYork  := '1300-2100'
            else if NewYork_DST == 'Active'
                NewYork  := '1200-2000'
 
 
            Tokyo    := '2300-0700'
            Shanghai := '0100-0900'
 
        else if TimeZoneMode == 'Session Local Time'  or TimeZoneMode == 'Your Time Zone'
            Sydney   := '0800-1600'
            Tokyo    := '0800-1600'
            Shanghai := '0900-1700'
            Europe   := '0700-1600'
            London   := '0800-1600'
            NewYork  := '0800-1600'
            if Sydney_DST == 'Inactive'
                Asia     := '2200-0700'
            if Sydney_DST == 'Active'
                Asia     := '2100-0700'
 
    if MarketMode == 'Stock'
        if TimeZoneMode == 'UTC'
 
            if Sydney_DST == 'Inactive'
                Sydney   := '0000-0600'
                Asia     := '0000-0600'
 
            else if Sydney_DST == 'Active'
                Sydney   := '2300-0500' 
                Asia     := '2300-0600'
 
 
            if London_DST == 'Inactive'
                Europe   := '0700-1630'
                London   := '0800-1630'
 
            else if London_DST == 'Active'
                Europe   := '0600-1530'
                London   := '0700-1530'
 
 
            if NewYork_DST == 'Inactive'
                NewYork  := '1430-2100'
            else if NewYork_DST == 'Active'
                NewYork  := '1330-2000' 
 
            
            Tokyo    := '0000-0600'
            Shanghai := '0130-0700'
 
            
        else if TimeZoneMode == 'Session Local Time' or TimeZoneMode == 'Your Time Zone'
            Sydney   := '1000-1600'
            Tokyo    := '0900-1500'
            Shanghai := '0930-1500'
            Europe   := '0700-1630'
            London   := '0800-1630'
            NewYork  := '0930-1600'
            if Sydney_DST == 'Inactive'
                Asia     := '0000-0600'
            else if Sydney_DST == 'Active'
                Asia     := '2300-0600'    
 
    else if MarketMode == 'TFlab suggestion'
        if TimeZoneMode == 'UTC'
 
            if Sydney_DST == 'Inactive'
                Sydney   := '2300-0500'
                Asia     := '2300-0600'
 
            else if Sydney_DST == 'Active'
                Sydney   := '2200-0400'
                Asia     := '2200-0600'
 
 
            if London_DST == 'Inactive'
                Europe   := '0700-1600'
                London   := '0800-1600'
 
            else if London_DST == 'Active'
                Europe   := '0600-1500'
                London   := '0700-1500'
 
 
            if NewYork_DST == 'Inactive'
                NewYork  := '1300-2100'
            else if NewYork_DST == 'Active'
                NewYork  := '1200-2000'
 
 
            Tokyo    := '0000-0600'
            Shanghai := '0100-0900'
 
        else if TimeZoneMode == 'Session Local Time'  or TimeZoneMode == 'Your Time Zone'
            Sydney   := '0900-1600'
            Tokyo    := '0900-1500'
            Shanghai := '0900-1700'
            Europe   := '0700-1600'
            London   := '0800-1600'
            NewYork  := '0800-1600'
            if Sydney_DST == 'Inactive'
                Asia     := '2300-0600'
            if Sydney_DST == 'Active'
                Asia     := '2200-0600'
                
    else if MarketMode == 'User Custom'
        Sydney   := sesSydney_ses
        Tokyo    := sesTokyo_ses
        Shanghai := sesShanghai_ses
        Asia     := sesasia_ses
        Europe   := sesEuro_ses
        London   := seslondon_ses
        NewYork  := sesNewyork_ses
 
    [Sydney, Tokyo, Shanghai, Asia, Europe, London, NewYork]
 
 
//zones
 
[Sydney, Tokyo, Shanghai, Asia, Europe, London, NewYork] = Market_TimeZone_Calculator(MarketMode, TimeZoneMode)
 
 
AsiaTZ     = MarketMode == 'User Custom' ? CustomTZ :TimeZoneMode == 'Session Local Time' or TimeZoneMode == 'Your Time Zone' ?  'UTC+0': TimeZoneMode == 'UTC' ? 'UTC+0' :  na
SydneyTZ   = MarketMode == 'User Custom' ? CustomTZ :TimeZoneMode == 'Session Local Time' or TimeZoneMode == 'Your Time Zone'? "Australia/Sydney" : TimeZoneMode == 'UTC' ? 'UTC+0' :  na
TokyoTZ    = MarketMode == 'User Custom' ? CustomTZ :TimeZoneMode == 'Session Local Time' or TimeZoneMode == 'Your Time Zone'?  "Asia/Tokyo" : TimeZoneMode == 'UTC' ? 'UTC+0' :  na
ShanghaiTZ = MarketMode == 'User Custom' ? CustomTZ :TimeZoneMode == 'Session Local Time' or TimeZoneMode == 'Your Time Zone'?  "Asia/Shanghai" : TimeZoneMode == 'UTC' ? 'UTC+0' :  na
EuropeTZ   = MarketMode == 'User Custom' ? CustomTZ :TimeZoneMode == 'Session Local Time' or TimeZoneMode == 'Your Time Zone'?  "Europe/London" : TimeZoneMode == 'UTC' ? 'UTC+0' :  na
LondonTZ   = MarketMode == 'User Custom' ? CustomTZ :TimeZoneMode == 'Session Local Time' or TimeZoneMode == 'Your Time Zone'?  "Europe/London" : TimeZoneMode == 'UTC' ? 'UTC+0' :  na
NewYorkTZ  = MarketMode == 'User Custom' ? CustomTZ :TimeZoneMode == 'Session Local Time' or TimeZoneMode == 'Your Time Zone'?  "America/New_York" : TimeZoneMode == 'UTC' ? 'UTC+0' :  na
 
 
On_sesasia = math.sign(nz(time(timeframe.period, Asia, AsiaTZ)))
On_sesSydney = math.sign(nz(time(timeframe.period, Sydney, SydneyTZ)))
On_sesTokyo = math.sign(nz(time(timeframe.period, Tokyo, TokyoTZ)))
On_sesShanghai = math.sign(nz(time(timeframe.period, Shanghai, ShanghaiTZ)))
On_sesEuro = math.sign(nz(time(timeframe.period, Europe, EuropeTZ)))
On_seslondon = math.sign(nz(time(timeframe.period, London, LondonTZ)))
On_sesNewyork = math.sign(nz(time(timeframe.period, NewYork, NewYorkTZ)))
 
 
//High & Low Session Detector 
LowHighSessionDetector(On_Session, Color_Session, Text_Session) =>
    var int Bar = 0
    var float High = 0.0 
    var float Low = 0.0
    var box BoX = na
    var label LabeL = na 
    if  (On_Session[1] == 0 and On_Session == 1)
        Bar := bar_index
        High := high
        Low := low
    else if (On_Session[1] == 1 and On_Session == 1)
        High := math.max(high , High) 
        Low :=   math.min(low , Low)
    else if On_Session == 0
        High := 0.0 
        Low := 0.0
        Bar := 0
 
    if On_Session > On_Session[1] and str.tonumber(timeframe.period) <= 60
        BoX := box.new(bar_index,High, bar_index , Low, bgcolor = color.new(Color_Session, 85),
         border_color = color.rgb(34, 101, 155),
         border_style = line.style_dotted)
        
        LabeL := label.new(Bar, High , text = Text_Session ,xloc = xloc.bar_index, yloc = yloc.price, size = size.small ,
         style = (Text_Session == 'Sydney' or Text_Session == 'Europe' ) ? label.style_label_lower_right  : 
         Text_Session == 'Asia' ?  label.style_label_down :  label.style_label_lower_left,
         textcolor = Color_Session, color = color.rgb(255, 255, 255, 100))
    if On_Session and On_Session == On_Session[1]
        box.set_top(BoX, High)
        box.set_bottom(BoX, Low)
        box.set_right(BoX, bar_index)
        label.set_x(LabeL,math.round(math.avg(Bar,bar_index)))
        label.set_y(LabeL, High)
 
 
    [High , Low ]
  
 
if show_sesasia 
    [HighA, LowA]  = LowHighSessionDetector(On_sesasia, sesasia_color,sesasia_text)
 
if show_sesSydney 
    [HighS, LowS]  = LowHighSessionDetector(On_sesSydney,sesSydney_color,sesSydney_text)
 
if show_sesTokyo 
    [HighT, LowT]  = LowHighSessionDetector(On_sesTokyo,sesTokyo_color,sesTokyo_text)
 
if show_sesShanghai 
    [HighSh, LowSh]  = LowHighSessionDetector(On_sesShanghai,sesShanghai_color,sesShanghai_text)
 
if show_sesEuro 
    [HighE, LowE]  = LowHighSessionDetector(On_sesEuro,sesEuro_color,sesEuro_text)
 
if show_seslondon 
    [HighL, LowL]  = LowHighSessionDetector(On_seslondon,seslondon_color,seslondon_text)
 
if show_sesNewyork 
    [HighN, LowN]  = LowHighSessionDetector(On_sesNewyork,sesNewyork_color,sesNewyork_text)
 
 
 
//Drawing Vline Function
ATR = ta.atr(55)
StartLine(Width,Text ,Color) =>
    var line Line = na
    var label Label = na
    Line := line.new(bar_index, open - 1 , bar_index, open + 1 , xloc.bar_index, extend.both,  Color , line.style_dashed, Width)
    Label:= label.new(bar_index , (high + (ATR)* 5 ) , Text, color = na, yloc=yloc.price, textcolor = color.rgb(133, 134, 136))
 
if ShowDST
    if (Sydney_DST[1] == 'Inactive' and Sydney_DST == 'Active')
        StartLine(2,'Sydney DST Started' ,color.green)
 
    if (London_DST[1] == 'Inactive' and London_DST == 'Active')
        StartLine(2,'London DST Started' ,color.green)
 
    if (NewYork_DST[1] == 'Inactive' and NewYork_DST == 'Active')
        StartLine(2,'New York DST Started' ,color.green)
 
    if (Sydney_DST == 'Inactive' and Sydney_DST[1] == 'Active')
        StartLine(2,'Sydney DST Ended' ,color.orange)
 
    if (London_DST == 'Inactive' and London_DST[1] == 'Active')
        StartLine(2,'London DST Ended' ,color.orange)
 
    if (NewYork_DST == 'Inactive' and NewYork_DST[1] == 'Active')
        StartLine(2,'New York DST Ended' ,color.orange)
 
//Info Table
 
// Start and Enf Time in Info Table
SplitFunction(x, TZ ,YourTZ) =>
    Text  = str.split(x, '-')
    STime = Text.size() > 0 ? (Text.get(0)) : '0000'
    ETime = Text.size() > 0 ? (Text.get(1)) : '0000'
    SHour = str.substring(STime ,0,2)
    SMin  = str.substring(STime ,2,4)
    EHour = str.substring(ETime ,0,2)
    EMin  = str.substring(ETime ,2,4)
    SUTCTimestamp = timestamp(TZ, year, month, dayofmonth, int(str.tonumber(SHour)), int(str.tonumber(SMin)), 0)
    EUTCTimestamp = timestamp(TZ, year, month, dayofmonth, int(str.tonumber(EHour)), int(str.tonumber(EMin)), 0)
    SconvertedHour = hour(SUTCTimestamp, YourTZ)
    SconvertedMinute = minute(SUTCTimestamp, YourTZ)
    EconvertedHour = hour(EUTCTimestamp, YourTZ)
    EconvertedMinute = minute(EUTCTimestamp, YourTZ)
    YourStart = str.tostring(SconvertedHour) + ':' + str.tostring(SconvertedMinute < 10 ? '0' + 
     str.tostring(SconvertedMinute) : str.tostring(SconvertedMinute))
    YourEnd = str.tostring(EconvertedHour) + ':' + str.tostring(EconvertedMinute < 10 ? '0' + 
     str.tostring(EconvertedMinute) : str.tostring(EconvertedMinute))
 
    Start = TimeZoneMode == 'Your Time Zone' and MarketMode != 'User Custom' ? YourStart  : (SHour + ':' + SMin)
    End   = TimeZoneMode == 'Your Time Zone' and MarketMode != 'User Custom' ? YourEnd : (EHour + ':' + EMin)
    [Start, End]
 
[Sydney_Start, Sydney_End]     = SplitFunction(Sydney, SydneyTZ, YourTZ)
[Tokyo_Start, Tokyo_End]       = SplitFunction(Tokyo, TokyoTZ, YourTZ)
[Shanghai_Start, Shanghai_End] = SplitFunction(Shanghai, ShanghaiTZ, YourTZ)
[Asia_Start, Asia_End]         = SplitFunction(Asia, AsiaTZ, YourTZ)
[Europe_Start, Europe_End]     = SplitFunction(Europe, EuropeTZ, YourTZ)
[London_Start, London_End]     = SplitFunction(London, LondonTZ, YourTZ)
[NewYork_Start, NewYork_End]   = SplitFunction(NewYork, NewYorkTZ, YourTZ)
 
 
 
var Info_Table = table.new(Position, 5, 11, bgcolor = #0d1a3f, border_color = color.rgb(28, 48, 109), border_width = 1, 
 frame_color = #373a46 , frame_width = 1)
 
if Show_Info_Table
    table.cell(Info_Table, 0, 0, MarketMode == 'Stock' ? 'Stock Market Trading Hours' :MarketMode == 'Forex' ? 'FOREX Session' : MarketMode == 'User Custom' ? 'User Custom Session' : 'TFlab suggestion', 
     text_color = color.white, text_size = Size)
    table.merge_cells(Info_Table, 0, 0, 4, 0)
    table.cell(Info_Table, 0, 1, 'Session', text_color = color.white, text_size = Size)
    table.cell(Info_Table, 1, 1, 'Daylight Saving', text_color = color.white, text_size = Size)
    table.cell(Info_Table, 2, 1, MarketMode == 'User Custom' ? 'Start(' + CustomTZ + ')' : 'Start(' + TimeZoneMode + ')', text_color = color.white, text_size = Size)
    table.cell(Info_Table, 3, 1, MarketMode == 'User Custom' ? 'End(' + CustomTZ + ')' : 'End(' + TimeZoneMode + ')', text_color = color.white, text_size = Size)
    table.cell(Info_Table, 4, 1, 'Status', text_color = color.white, text_size = Size)
 
    table.cell(Info_Table, 0, 2, sesasia_text, text_color = sesasia_color, text_size = Size)
    table.cell(Info_Table, 0, 3, sesSydney_text, text_color = sesSydney_color, text_size = Size)
    table.cell(Info_Table, 0, 4, sesTokyo_text, text_color = sesTokyo_color, text_size = Size)
    table.cell(Info_Table, 0, 5, sesShanghai_text, text_color = color.new(sesShanghai_color, 1), text_size = Size)   
    table.cell(Info_Table, 0, 6, sesEuro_text, text_color = sesEuro_color, text_size = Size)
    table.cell(Info_Table, 0, 7, seslondon_text, text_color = seslondon_color, text_size = Size)
    table.cell(Info_Table, 0, 8, sesNewyork_text, text_color = sesNewyork_color, text_size = Size)
 
 
    
    //Status
    table.cell(Info_Table, 4, 2, (On_sesasia ? 'Open' : 'Closed')
      , bgcolor = On_sesasia ? #56a3a6 : #db504a
      , text_color = color.rgb(0, 0, 0)
      , text_size = Size)
    table.cell(Info_Table, 4, 3, (On_sesSydney ? 'Open' : 'Closed')
      , bgcolor = On_sesSydney ? #56a3a6 : #db504a
      , text_color = color.rgb(0, 0, 0)
      , text_size = Size)
    table.cell(Info_Table, 4, 4, (On_sesTokyo ? 'Open' : 'Closed')
      , bgcolor = On_sesTokyo ? #56a3a6 : #db504a
      , text_color = color.rgb(0, 0, 0)
      , text_size = Size)
    table.cell(Info_Table, 4, 5, (On_sesShanghai ? 'Open' : 'Closed')
      , bgcolor = On_sesShanghai ? #56a3a6 : #db504a
      , text_color = color.rgb(0, 0, 0)
      , text_size = Size)
    table.cell(Info_Table, 4, 6, (On_sesEuro ? 'Open' : 'Closed')
      , bgcolor = On_sesEuro ? #56a3a6 : #db504a
      , text_color = color.rgb(0, 0, 0)
      , text_size = Size)
    table.cell(Info_Table, 4, 7, (On_seslondon ? 'Open' : 'Closed')
      , bgcolor = On_seslondon ? #56a3a6 : #db504a
      , text_color = color.rgb(0, 0, 0)
      , text_size = Size)
    table.cell(Info_Table, 4, 8, (On_sesNewyork ? 'Open' : 'Closed')
      , bgcolor = On_sesNewyork ? #56a3a6 : #db504a
      , text_color = color.rgb(0, 0, 0)
      , text_size = Size)
 
 
    //Daylight Saving Time
    table.cell(Info_Table, 1, 2, (Sydney_DST == 'Active' ? 'Active' + '🌞' : 'Inactive' + '🍂')
      , text_color = color.white
      , text_size = Size)
    table.cell(Info_Table, 1, 3, (Sydney_DST == 'Active' ? 'Active' + '🌞' : 'Inactive' + '🍂')
      , text_color = color.white
      , text_size = Size)
    table.cell(Info_Table, 1, 4, ('Not Observed')
      , text_color = color.white
      , text_size = Size)
    table.cell(Info_Table, 1, 5, ('Not Observed')
      , text_color = color.white
      , text_size = Size)
    table.cell(Info_Table, 1, 6, (London_DST == 'Active' ? 'Active' + '🌞' : 'Inactive' + '🍂')
      , text_color = color.white
      , text_size = Size)
    table.cell(Info_Table, 1, 7, (London_DST == 'Active' ? 'Active' + '🌞' : 'Inactive' + '🍂')
      , text_color = color.white
      , text_size = Size)
    table.cell(Info_Table, 1, 8, (NewYork_DST == 'Active' ? 'Active' + '🌞' : 'Inactive' + '🍂')
      , text_color = color.white
      , text_size = Size)
    //Start Time
    table.cell(Info_Table, 2, 2, Asia_Start , text_color = color.white, text_size = Size)
    table.cell(Info_Table, 2, 3, Sydney_Start , text_color = color.white, text_size = Size)
    table.cell(Info_Table, 2, 4, Tokyo_Start , text_color = color.white, text_size = Size) 
    table.cell(Info_Table, 2, 5, Shanghai_Start , text_color = color.white, text_size = Size)  
    table.cell(Info_Table, 2, 6, Europe_Start , text_color = color.white, text_size = Size)
    table.cell(Info_Table, 2, 7, London_Start , text_color = color.white, text_size = Size)
    table.cell(Info_Table, 2, 8, NewYork_Start , text_color = color.white, text_size = Size)
 
    //End Time
    table.cell(Info_Table, 3, 2, Asia_End , text_color = color.white, text_size = Size)
    table.cell(Info_Table, 3, 3, Sydney_End , text_color = color.white, text_size = Size)
    table.cell(Info_Table, 3, 4, Tokyo_End , text_color = color.white, text_size = Size) 
    table.cell(Info_Table, 3, 5, Shanghai_End , text_color = color.white, text_size = Size)  
    table.cell(Info_Table, 3, 6, Europe_End , text_color = color.white, text_size = Size)
    table.cell(Info_Table, 3, 7, London_End , text_color = color.white, text_size = Size)
    table.cell(Info_Table, 3, 8, NewYork_End , text_color = color.white, text_size = Size)

← 返回列表