OPEN-SOURCE SCRIPT
Elite 30 Min Pivot - by TenAM Trader.

🔍 How It Works
Trend Detection:
A trend is defined when a configurable number (default: 3) of same-colored candles (green or red) appear in a row.
The pivot is marked by the first opposite-color candle after the trend.
Signal Logic:
After the pivot forms, the script watches the next few candles (default: 2) for a breakout or close beyond the pivot high/low.
A BUY signal is triggered when price breaks/closes above a pivot high from a downtrend.
A SELL signal is triggered when price breaks/closes below a pivot low from an uptrend.
Entry & Risk Tools:
Optional features include:
Pivot Line – dashed level showing pivot entry point.
Stop Loss Line – opposite side of the pivot candle.
Labels – toggle labels for clarity on entry and risk.
Time Filter – exclude signals during specific hours (e.g. 11 AM–2 PM) to avoid lunchtime chop.
Alerts:
Enable alerts for automated notifications when buy or sell conditions are met.
⚙️ Customizable Settings
Consecutive candles required before pivot
Max bars allowed after pivot for signal
Signal trigger: Break or Close
Toggle visibility of pivot lines, stop loss, and labels
Set excluded time blocks
Enable/disable real-time alerts
✅ Use Case Example
If you set trend length to 3 and signal trigger to “Break,” the script will look for 3 consecutive red candles, then a green candle (pivot). If price breaks above the pivot high within the next 2 candles, a Buy signal will fire.
⚠️ Legal Note
This script is provided for educational and informational purposes only and does not constitute financial advice. Always do your own research before making trading decisions. Use at your own risk.
Trend Detection:
A trend is defined when a configurable number (default: 3) of same-colored candles (green or red) appear in a row.
The pivot is marked by the first opposite-color candle after the trend.
Signal Logic:
After the pivot forms, the script watches the next few candles (default: 2) for a breakout or close beyond the pivot high/low.
A BUY signal is triggered when price breaks/closes above a pivot high from a downtrend.
A SELL signal is triggered when price breaks/closes below a pivot low from an uptrend.
Entry & Risk Tools:
Optional features include:
Pivot Line – dashed level showing pivot entry point.
Stop Loss Line – opposite side of the pivot candle.
Labels – toggle labels for clarity on entry and risk.
Time Filter – exclude signals during specific hours (e.g. 11 AM–2 PM) to avoid lunchtime chop.
Alerts:
Enable alerts for automated notifications when buy or sell conditions are met.
⚙️ Customizable Settings
Consecutive candles required before pivot
Max bars allowed after pivot for signal
Signal trigger: Break or Close
Toggle visibility of pivot lines, stop loss, and labels
Set excluded time blocks
Enable/disable real-time alerts
✅ Use Case Example
If you set trend length to 3 and signal trigger to “Break,” the script will look for 3 consecutive red candles, then a green candle (pivot). If price breaks above the pivot high within the next 2 candles, a Buy signal will fire.
⚠️ Legal Note
This script is provided for educational and informational purposes only and does not constitute financial advice. Always do your own research before making trading decisions. Use at your own risk.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.