OPEN-SOURCE SCRIPT

5m Gold Strategy - Session Break + Previous Day High/Low

362
Here is your complete Pine Script v5 code for TradingView that:

Implements your 5-minute Gold breakout strategy.

Uses previous day high/low levels.

Confirms entry based on 15-minute SMA trend (SMA 9 > SMA 21).

Marks session time.

Filters news time (pause trading 15 minutes before/after major red news from ForexFactory).

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.