Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
403 B
6
Indexable
isOpen = (time_close > time_market_open) and (time_close <= time_market_close)

if isOpen
    bar_index_30m := if not isOpen[1]
        low_of_day_ticks := init_tpos(open, tpo_strings, tpo_ints, "A")
        1
    else if time_close > time_market_open + bar_index_30m*30*60000
        current_letter := get_next_letter(current_letter)
        bar_index_30m + 1  
    else
        bar_index_30m