OPEN-SOURCE SCRIPT
SuperTrend Oscillator MTF

█ OVERVIEW
SuperTrend Oscillator MTF is a multi-timeframe version of the classic SuperTrend converted into an oscillator. Instead of drawing the SuperTrend line on the price chart, it displays the distance of the close from the SuperTrend line simultaneously for the current timeframe and two additional timeframes. This allows you to instantly see the trend direction and strength across three selected timeframes in a single window.
█ CONCEPT
The classic SuperTrend value is subtracted from price and normalized so that trend direction can be directly compared across different timeframes without switching charts.
- Value above zero = price below SuperTrend line → bearish trend
- Value below zero = price above SuperTrend line → bullish trend
- The further away from zero, the stronger the trend.
█ FEATURES
- Three SuperTrend Oscillator lines: current TF, TF1 and TF2
- Automatic detection of 3-timeframe agreement
- BUY and SELL labels that appear only when all three timeframes turn in the same direction at the same moment
- Circle signals on every zero-line cross of the current timeframe
- Configurable soft gradient fill (can be disabled)
- Zero line changes color (green/red/gray) depending on 3-TF agreement
- Fully customizable colors for each timeframe
- Built-in alerts for all signal types
█ HOW TO USE
Add the indicator to the chart → set two additional timeframes and adjust ATR Period and Factor to suit your trading style.
Main settings:
- ATR Period → default 10
- Factor → default 3.0 (higher = fewer signals)
- TF 1 and TF 2 → any timeframes (e.g. 1H+4H, 4H+D, D+W, etc.)
- Enable gradient → turn fill on/off
- Show BUY/SELL labels (3 TF agreement) → enable/disable the strongest signals
Interpretation:
Two types of signals:
- Green/red circles → current timeframe changes trend direction (faster signal)
- BUY/SELL labels → all three timeframes simultaneously switch to the same direction (strongest confluence)
- Additionally, the zero line turns green or red when all three trends are aligned.
█ APPLICATIONS
Perfect for:
- Trend-following with multi-timeframe confirmation
- Filtering false breakouts on lower timeframes
- Scalping & day trading (use fast circle signals)
- Swing & position trading (wait for full 3-TF agreement)
Best combined with:
- Support/resistance levels and supply/demand zones – enter long after a confirmed breakout and retest of a key level (e.g. Change of Character, Break of Structure, Order Block, 0.618–0.786 Fibonacci) only when the oscillator shows 3-TF agreement or at least a bullish circle. Hold the trade to the next significant resistance/supply zone.
- Volume and Volume Profile – confirm move strength with rising volume and high-volume nodes at the breakout level. Declining volume while moving away from zero may signal trend exhaustion.
- Classic oscillators (RSI, Stochastic, MACD) – use primarily for spotting divergences and overbought/oversold conditions. One of the safest exits is when a regular or hidden divergence appears on RSI/Stochastic in an extreme zone, even if SuperTrend Oscillator MTF still shows alignment.
█ NOTES
- Works on all markets and all timeframes
- BUY/SELL labels (3-TF agreement) are the cleanest and strongest signals
- Circle signals are faster but more prone to noise
- Higher ATR Period = fewer signals, higher quality
SuperTrend Oscillator MTF is a multi-timeframe version of the classic SuperTrend converted into an oscillator. Instead of drawing the SuperTrend line on the price chart, it displays the distance of the close from the SuperTrend line simultaneously for the current timeframe and two additional timeframes. This allows you to instantly see the trend direction and strength across three selected timeframes in a single window.
█ CONCEPT
The classic SuperTrend value is subtracted from price and normalized so that trend direction can be directly compared across different timeframes without switching charts.
- Value above zero = price below SuperTrend line → bearish trend
- Value below zero = price above SuperTrend line → bullish trend
- The further away from zero, the stronger the trend.
█ FEATURES
- Three SuperTrend Oscillator lines: current TF, TF1 and TF2
- Automatic detection of 3-timeframe agreement
- BUY and SELL labels that appear only when all three timeframes turn in the same direction at the same moment
- Circle signals on every zero-line cross of the current timeframe
- Configurable soft gradient fill (can be disabled)
- Zero line changes color (green/red/gray) depending on 3-TF agreement
- Fully customizable colors for each timeframe
- Built-in alerts for all signal types
█ HOW TO USE
Add the indicator to the chart → set two additional timeframes and adjust ATR Period and Factor to suit your trading style.
Main settings:
- ATR Period → default 10
- Factor → default 3.0 (higher = fewer signals)
- TF 1 and TF 2 → any timeframes (e.g. 1H+4H, 4H+D, D+W, etc.)
- Enable gradient → turn fill on/off
- Show BUY/SELL labels (3 TF agreement) → enable/disable the strongest signals
Interpretation:
Two types of signals:
- Green/red circles → current timeframe changes trend direction (faster signal)
- BUY/SELL labels → all three timeframes simultaneously switch to the same direction (strongest confluence)
- Additionally, the zero line turns green or red when all three trends are aligned.
█ APPLICATIONS
Perfect for:
- Trend-following with multi-timeframe confirmation
- Filtering false breakouts on lower timeframes
- Scalping & day trading (use fast circle signals)
- Swing & position trading (wait for full 3-TF agreement)
Best combined with:
- Support/resistance levels and supply/demand zones – enter long after a confirmed breakout and retest of a key level (e.g. Change of Character, Break of Structure, Order Block, 0.618–0.786 Fibonacci) only when the oscillator shows 3-TF agreement or at least a bullish circle. Hold the trade to the next significant resistance/supply zone.
- Volume and Volume Profile – confirm move strength with rising volume and high-volume nodes at the breakout level. Declining volume while moving away from zero may signal trend exhaustion.
- Classic oscillators (RSI, Stochastic, MACD) – use primarily for spotting divergences and overbought/oversold conditions. One of the safest exits is when a regular or hidden divergence appears on RSI/Stochastic in an extreme zone, even if SuperTrend Oscillator MTF still shows alignment.
█ NOTES
- Works on all markets and all timeframes
- BUY/SELL labels (3-TF agreement) are the cleanest and strongest signals
- Circle signals are faster but more prone to noise
- Higher ATR Period = fewer signals, higher quality
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.