מעודכן
Contra Supertrend MTF System by SNIPERMONKEY

Contra Supertrend MTF System
A dual-timeframe Supertrend indicator built for a contrarian (mean-reversion) entry model: it looks for the lower timeframe to reverse against the prevailing direction of a higher timeframe, then rides the trade using the lower timeframe alone for the exit.
Core Logic
Most multi-timeframe Supertrend setups look for both timeframes to agree before entering. This one does the opposite on purpose — it enters when they disagree:
Long entry — the higher (confirmation) timeframe Supertrend is still in a downtrend, and the lower (entry) timeframe Supertrend flips into an uptrend. The lower-TF flip is read as an early reversal signal against the higher-TF trend.
Short entry — the mirror case: higher timeframe still in an uptrend, lower timeframe flips into a downtrend.
Exit — once in a trade, only the entry (lower) timeframe governs the exit. The position closes on the next opposite flip of the entry-timeframe Supertrend, regardless of what the higher timeframe is doing by then. A configurable force-exit time also flattens any open position at end of session.
If both timeframes are already aligned in the same direction, no signal fires — the indicator waits for a genuine contra setup rather than trading with the trend.
Signals
Exactly four, plotted on the chart and available as alerts:
BUY — contra long entry
SELL — contra short entry
BUY EXIT — long position closed
SELL EXIT — short position closed
Key Features
Fully independent timeframe settings — separate timeframe, ATR length and factor for the entry (lower) and confirmation (higher) Supertrend, so any combination (1m/5m, 3m/15m, 5m/1H, etc.) can be configured without touching the chart's own timeframe.
Non-repainting MTF data — both Supertrend calculations are pulled through request.security with barmerge.gaps_off and barmerge.lookahead_off, and all signals are gated on barstate.isconfirmed, so nothing fires early or repaints after the fact.
Session entry window — configurable start/end time restricts new entries to a defined trading window.
Forced flat time — a separate configurable time forces any open position closed, independent of the Supertrend signal.
Carry-forward on session open — if the contra condition (opposite-direction Supertrends) is already true the moment the entry window opens, a signal fires immediately rather than waiting for a fresh flip.
Inputs
Entry Timeframe group: timeframe, ATR length, factor
Confirmation Timeframe group: timeframe, ATR length, factor, toggle to show/hide its plot
Session Settings: entry window start/end (hour/minute), forced exit time (hour/minute)
How to Use
Add to any chart — the chart's own timeframe doesn't need to match either Supertrend setting, since both are fetched independently. Set your entry (lower) and confirmation (higher) timeframes, tune ATR length/factor per side, and set your session window to match your trading hours. Use the four alert conditions to automate notifications.
Disclaimer
This is a technical analysis tool, not financial advice. Backtest and forward-test thoroughly on your instrument and timeframe combination before using in live trading. Past behavior of any indicator does not guarantee future results. Trade at your own risk.
A dual-timeframe Supertrend indicator built for a contrarian (mean-reversion) entry model: it looks for the lower timeframe to reverse against the prevailing direction of a higher timeframe, then rides the trade using the lower timeframe alone for the exit.
Core Logic
Most multi-timeframe Supertrend setups look for both timeframes to agree before entering. This one does the opposite on purpose — it enters when they disagree:
Long entry — the higher (confirmation) timeframe Supertrend is still in a downtrend, and the lower (entry) timeframe Supertrend flips into an uptrend. The lower-TF flip is read as an early reversal signal against the higher-TF trend.
Short entry — the mirror case: higher timeframe still in an uptrend, lower timeframe flips into a downtrend.
Exit — once in a trade, only the entry (lower) timeframe governs the exit. The position closes on the next opposite flip of the entry-timeframe Supertrend, regardless of what the higher timeframe is doing by then. A configurable force-exit time also flattens any open position at end of session.
If both timeframes are already aligned in the same direction, no signal fires — the indicator waits for a genuine contra setup rather than trading with the trend.
Signals
Exactly four, plotted on the chart and available as alerts:
BUY — contra long entry
SELL — contra short entry
BUY EXIT — long position closed
SELL EXIT — short position closed
Key Features
Fully independent timeframe settings — separate timeframe, ATR length and factor for the entry (lower) and confirmation (higher) Supertrend, so any combination (1m/5m, 3m/15m, 5m/1H, etc.) can be configured without touching the chart's own timeframe.
Non-repainting MTF data — both Supertrend calculations are pulled through request.security with barmerge.gaps_off and barmerge.lookahead_off, and all signals are gated on barstate.isconfirmed, so nothing fires early or repaints after the fact.
Session entry window — configurable start/end time restricts new entries to a defined trading window.
Forced flat time — a separate configurable time forces any open position closed, independent of the Supertrend signal.
Carry-forward on session open — if the contra condition (opposite-direction Supertrends) is already true the moment the entry window opens, a signal fires immediately rather than waiting for a fresh flip.
Inputs
Entry Timeframe group: timeframe, ATR length, factor
Confirmation Timeframe group: timeframe, ATR length, factor, toggle to show/hide its plot
Session Settings: entry window start/end (hour/minute), forced exit time (hour/minute)
How to Use
Add to any chart — the chart's own timeframe doesn't need to match either Supertrend setting, since both are fetched independently. Set your entry (lower) and confirmation (higher) timeframes, tune ATR length/factor per side, and set your session window to match your trading hours. Use the four alert conditions to automate notifications.
Disclaimer
This is a technical analysis tool, not financial advice. Backtest and forward-test thoroughly on your instrument and timeframe combination before using in live trading. Past behavior of any indicator does not guarantee future results. Trade at your own risk.
הערות שחרור
Just the Chart updateכתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.