OPEN-SOURCE SCRIPT
已更新 Pivot Breakout/Retest Signals[JPT]

🔷 OVERVIEW
The Pivot Breakout/Retest Signals [JPT] indicator identifies potential LONG and SHORT opportunities using confirmed pivot highs and pivot lows.
It detects when price breaks through a previous pivot level, then waits for price to retest that broken level. A signal is generated when the retest holds and price closes back in the breakout direction. An optional EMA Trend Filter can be enabled to help align signals with the prevailing market trend.
🔷 HOW IT WORKS
The indicator works in three main stages:
1. Pivot Detection
Identifies significant swing highs and swing lows using the selected Pivot Length.
The most recent pivot high and pivot low are displayed on the chart as horizontal levels.
2. Breakout Detection
A bullish breakout occurs when price crosses above the latest pivot high.
A bearish breakout occurs when price crosses below the latest pivot low.
After a breakout, the indicator begins waiting for a possible retest of that level.
3. Retest Confirmation
For a bullish setup, price must return toward the broken pivot high, remain within the selected retest tolerance, and close back above the level.
For a bearish setup, price must retest the broken pivot low and close back below it.
When the conditions are satisfied, a Long or Short signal is displayed.
The optional EMA filter further requires:
Long: Price must be above the EMA.
Short: Price must be below the EMA.
🔷 HOW TO USE
LONG SIGNAL 🟢
Look for a sequence where:
Price breaks above a previous pivot high.
Price pulls back toward the breakout level.
The retest occurs within the selected tolerance.
Price closes back above the broken level.
If the EMA filter is enabled, price must also be above the EMA.
A green Long triangle is then displayed below the candle.
SHORT SIGNAL 🔴
Look for a sequence where:
Price breaks below a previous pivot low.
Price moves back toward the broken level.
The retest occurs within the selected tolerance.
Price closes back below the broken level.
If the EMA filter is enabled, price must also be below the EMA.
A red Short triangle is then displayed above the candle.
KEY SETTINGS
Pivot Length: Controls how significant a swing high/low must be before being recognized as a pivot.
Retest Tolerance: Defines how close price needs to come to the breakout level during the retest.
Use EMA Trend Filter: Enables or disables the EMA trend confirmation.
EMA Length: Controls the period of the EMA used for trend filtering.
🔷 IMPORTANT NOTE
Pivot points require confirmation, meaning newly detected pivots are identified only after the selected pivot length has elapsed. Signals should therefore be evaluated in the context of overall market structure, volatility, volume, and other relevant factors.
The Retest Tolerance setting can significantly affect the number of signals:
Lower tolerance = stricter retests and potentially fewer signals.
Higher tolerance = wider retests and potentially more signals.
The Pivot Breakout/Retest Signals [JPT] indicator identifies potential LONG and SHORT opportunities using confirmed pivot highs and pivot lows.
It detects when price breaks through a previous pivot level, then waits for price to retest that broken level. A signal is generated when the retest holds and price closes back in the breakout direction. An optional EMA Trend Filter can be enabled to help align signals with the prevailing market trend.
🔷 HOW IT WORKS
The indicator works in three main stages:
1. Pivot Detection
Identifies significant swing highs and swing lows using the selected Pivot Length.
The most recent pivot high and pivot low are displayed on the chart as horizontal levels.
2. Breakout Detection
A bullish breakout occurs when price crosses above the latest pivot high.
A bearish breakout occurs when price crosses below the latest pivot low.
After a breakout, the indicator begins waiting for a possible retest of that level.
3. Retest Confirmation
For a bullish setup, price must return toward the broken pivot high, remain within the selected retest tolerance, and close back above the level.
For a bearish setup, price must retest the broken pivot low and close back below it.
When the conditions are satisfied, a Long or Short signal is displayed.
The optional EMA filter further requires:
Long: Price must be above the EMA.
Short: Price must be below the EMA.
🔷 HOW TO USE
LONG SIGNAL 🟢
Look for a sequence where:
Price breaks above a previous pivot high.
Price pulls back toward the breakout level.
The retest occurs within the selected tolerance.
Price closes back above the broken level.
If the EMA filter is enabled, price must also be above the EMA.
A green Long triangle is then displayed below the candle.
SHORT SIGNAL 🔴
Look for a sequence where:
Price breaks below a previous pivot low.
Price moves back toward the broken level.
The retest occurs within the selected tolerance.
Price closes back below the broken level.
If the EMA filter is enabled, price must also be below the EMA.
A red Short triangle is then displayed above the candle.
KEY SETTINGS
Pivot Length: Controls how significant a swing high/low must be before being recognized as a pivot.
Retest Tolerance: Defines how close price needs to come to the breakout level during the retest.
Use EMA Trend Filter: Enables or disables the EMA trend confirmation.
EMA Length: Controls the period of the EMA used for trend filtering.
🔷 IMPORTANT NOTE
Pivot points require confirmation, meaning newly detected pivots are identified only after the selected pivot length has elapsed. Signals should therefore be evaluated in the context of overall market structure, volatility, volume, and other relevant factors.
The Retest Tolerance setting can significantly affect the number of signals:
Lower tolerance = stricter retests and potentially fewer signals.
Higher tolerance = wider retests and potentially more signals.
Always use appropriate risk management and stop-loss levels and consider confirming signals with additional technical analysis before entering a trade.
發行說明
Updated long/short signal size from large to small開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
📈 FREE TELEGRAM CHANNEL
🥇 Free Daily Forex, Gold & BTC Trade Signals
📚 Daily Trading Lessons & Technical Analysis
Learn, improve, and follow the market with us — completely FREE.
📲 Join Now: t.me/JosProTrader_050
🥇 Free Daily Forex, Gold & BTC Trade Signals
📚 Daily Trading Lessons & Technical Analysis
Learn, improve, and follow the market with us — completely FREE.
📲 Join Now: t.me/JosProTrader_050
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
📈 FREE TELEGRAM CHANNEL
🥇 Free Daily Forex, Gold & BTC Trade Signals
📚 Daily Trading Lessons & Technical Analysis
Learn, improve, and follow the market with us — completely FREE.
📲 Join Now: t.me/JosProTrader_050
🥇 Free Daily Forex, Gold & BTC Trade Signals
📚 Daily Trading Lessons & Technical Analysis
Learn, improve, and follow the market with us — completely FREE.
📲 Join Now: t.me/JosProTrader_050
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。