OPEN-SOURCE SCRIPT
Strategy_470 - NY Open 3H Sweep Continuation

Strategy_470 is an intraday opening-session strategy designed to identify liquidity sweeps around the New York open and trade the potential continuation move that follows.
The model uses the previous 3-hour candle as the reference range. During the New York trading window, the strategy watches for price to sweep either the previous 3H high or low. After that sweep, it waits for a confirmation move through a recent swing level before entering.
For long setups, price must sweep below the previous 3H low and then reclaim strength by breaking above a recent swing high.
For short setups, price must sweep above the previous 3H high and then confirm weakness by breaking below a recent swing low.
The strategy includes a fixed risk structure:
Stop loss is placed beyond the sweep extreme.
Take profit is placed at the opposite side of the previous 3H range.
Optional break-even management is triggered once price reaches +1R.
The model can be limited to one trade per day.
Longs and shorts can be enabled or disabled independently.
This strategy is intended to study the behavior of index markets around the New York open, especially instruments such as QQQ, NASDAQ futures, NQ, MNQ, NAS100 or similar products.
It is not based on indicators. The logic focuses on time, liquidity, range structure and price reaction after a sweep.
Core concept:
Liquidity sweep → confirmation break → continuation toward the opposite side of the 3H range.
Recommended use:
5-minute chart, New York session, with session settings adjusted depending on the instrument. For QQQ, regular session testing may work better with a 09:30–10:30 New York window. For futures, 09:00–10:30 New York can be tested.
This script is for research, education and backtesting purposes. It should not be considered financial advice.
The model uses the previous 3-hour candle as the reference range. During the New York trading window, the strategy watches for price to sweep either the previous 3H high or low. After that sweep, it waits for a confirmation move through a recent swing level before entering.
For long setups, price must sweep below the previous 3H low and then reclaim strength by breaking above a recent swing high.
For short setups, price must sweep above the previous 3H high and then confirm weakness by breaking below a recent swing low.
The strategy includes a fixed risk structure:
Stop loss is placed beyond the sweep extreme.
Take profit is placed at the opposite side of the previous 3H range.
Optional break-even management is triggered once price reaches +1R.
The model can be limited to one trade per day.
Longs and shorts can be enabled or disabled independently.
This strategy is intended to study the behavior of index markets around the New York open, especially instruments such as QQQ, NASDAQ futures, NQ, MNQ, NAS100 or similar products.
It is not based on indicators. The logic focuses on time, liquidity, range structure and price reaction after a sweep.
Core concept:
Liquidity sweep → confirmation break → continuation toward the opposite side of the 3H range.
Recommended use:
5-minute chart, New York session, with session settings adjusted depending on the instrument. For QQQ, regular session testing may work better with a 09:30–10:30 New York window. For futures, 09:00–10:30 New York can be tested.
This script is for research, education and backtesting purposes. It should not be considered financial advice.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.