OPEN-SOURCE SCRIPT
Cập nhật 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.
Phát hành các Ghi chú
Updated long/short signal size from large to smallMã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
📈 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
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
📈 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
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.