OPEN-SOURCE SCRIPT

ALGO X LIMITLESS

118
//version=6
indicator("ICT NY Midnight Open", "ICT NY", overlay=true, max_lines_count=500, max_bars_back=5000)

// Heure New York
nyHour = hour(time, "America/New_York")
nyMinute = minute(time, "America/New_York")

// Détection minuit NY
isNYMidnight = (nyHour == 0 and nyMinute == 0)

// Tracer une seule ligne par jour
if isNYMidnight and not isNYMidnight[1]
line.new(
bar_index,
open,
bar_index + 1,
open,
extend = extend.right,
color = color.blue,
width = 2
)

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.