Custom EMAs, SMA y VWAP con Puntos en CrucesHighly configurable moving average indicator for each person's trading strategy.
Medie mobili
Stoch RSI Multi-Timeframe Cross Indicator
Stoch RSI Multi-Timeframe Cross Indicator
Overview
This Pine Script v6 indicator is designed to monitor Stochastic RSI crossovers across multiple timeframes (1-minute, 5-minute, 15-minute, 30-minute, 1-hour, 4-hour, and daily) and provide visual and alert-based signals for trading decisions. It overlays on the chart, displaying:
A table showing the bullish (green) or bearish (red) state of each timeframe.
Triangles and labels ("Long" or "Short") to indicate entry points when all enabled timeframes align in a bullish or bearish direction.
Alerts for when all enabled timeframes turn bullish or bearish.
The indicator tracks crossovers between the Stochastic RSI %K and %D lines, persisting the state (bullish or bearish) until the next crossover occurs, mimicking the behavior of the original RSI-based script but adapted for Stochastic RSI.
Inputs
RSI Length (rsiLength): Length of the RSI calculation (default: 14).
Stochastic Length (stochLength): Lookback period for the Stochastic RSI calculation (default: 14).
Smooth K (smoothK): Smoothing period for the %K line (default: 3).
Smooth D (smoothD): Smoothing period for the %D line (default: 3).
Use in Logic (use1m, use5m, etc.): Boolean toggles to include or exclude each timeframe (1M, 5M, 15M, 30M, 1H, 4H, 1D) in the entry signal logic (default: all true).
Timeframes
The indicator monitors the following timeframes, defined as strings compatible with Pine Script v6:
1-minute ("1")
5-minute ("5")
15-minute ("15")
30-minute ("30")
1-hour ("60")
4-hour ("240")
Daily ("D")
Core Logic
Stochastic RSI Calculation:
For each timeframe, the indicator:
Computes RSI using ta.rsi(close, rsiLength).
Applies the stochastic formula to RSI with ta.stoch(rsi, rsi, rsi, stochLength) to get the raw Stochastic RSI.
Smooths the result with ta.sma() to calculate %K (using smoothK) and %D (using smoothD).
This is done within a stochRsiState function, which is called via request.security() to ensure calculations align with each timeframe’s data.
Crossover Detection:
Detects crossovers using ta.crossover(k, d) (bullish) and ta.crossunder(k, d) (bearish).
Maintains a persistent state (var bool isBullish) for each timeframe, updated only when a crossover occurs:
true (bullish) when %K crosses above %D.
false (bearish) when %K crosses below %D.
Multi-Timeframe States:
Each timeframe’s %K, %D, and isBullish state is fetched independently using request.security(), ensuring accurate crossover detection regardless of the chart’s timeframe.
Visual Outputs
Table:
A static table in the bottom-left corner displays the state of each timeframe:
Columns: "1M", "5M", "15M", "30M", "1H", "4H", "1D".
Background color: Green (color.green) for bullish, Red (color.red) for bearish.
Updates on the last confirmed bar (barstate.islast).
Triangles:
Green upward triangle below the bar when all enabled timeframes are bullish (allBullish).
Red downward triangle above the bar when all enabled timeframes are bearish (allBearish).
Labels:
"Long" label (green) below the bar when allBullish is true.
"Short" label (red) below the bar when allBearish is true.
Displayed only on the last confirmed historical bar (barstate.islastconfirmedhistory).
Alerts
All Timeframes Bullish: Triggers when all enabled timeframes are bullish, with the message: "All Stoch RSI timeframes are bullish (green)!"
All Timeframes Bearish: Triggers when all enabled timeframes are bearish, with the message: "All Stoch RSI timeframes are bearish (red)!"
Conditions for Signals
Bullish Condition (allBullish):
True when all enabled timeframes (use1m ? isBullish1m : true, etc.) are bullish, and at least one timeframe is enabled.
Bearish Condition (allBearish):
True when all enabled timeframes are bearish, and at least one timeframe is enabled.
Disabled timeframes are treated as neutral (always true) in the logic, ensuring they don’t block signals.
Usage
Add the indicator to your TradingView chart.
Adjust input parameters (e.g., rsiLength, stochLength, smoothK, smoothD) to match your trading strategy.
Enable/disable timeframes via the input settings to focus on specific ones.
Watch the table for individual timeframe states and the chart for entry signals ("Long"/"Short") when all enabled timeframes align.
Set up alerts to be notified of full alignment.
Notes
The indicator is designed to persist the crossover state until the next crossover, similar to the original RSI-based script, ensuring stability across chart timeframe switches.
It uses request.security() to fetch data, making it robust for multi-timeframe analysis, though performance may depend on the chart’s data availability.
Stoch RSI Multi-Timeframe Cross Индикатор
Обзор
Этот индикатор Pine Script v6 предназначен для мониторинга пересечений Stochastic RSI на нескольких таймфреймах (1-минутный, 5-минутный, 15-минутный, 30-минутный, 1-часовой, 4-часовой и дневной) и предоставления визуальных и основанных на оповещениях сигналов для принятия торговых решений. Он накладывается на график, отображая:
Таблица, показывающая бычье (зеленый) или медвежье (красный) состояние каждого таймфрейма.
Треугольники и метки («Длинный» или «Короткий») для обозначения точек входа, когда все включенные таймфреймы совпадают в бычьем или медвежьем направлении.
Оповещения о том, когда все включенные таймфреймы становятся бычьими или медвежьими.
Индикатор отслеживает пересечения линий %K и %D стохастического RSI , сохраняя состояние (бычье или медвежье) до тех пор, пока не произойдет следующее пересечение, имитируя поведение исходного скрипта на основе RSI, но адаптированного для стохастического RSI.
Входы
Длина RSI ( rsiLength ): длина расчета RSI (по умолчанию: 14).
Длина стохастика ( stochLength ): период ретроспективного анализа для расчета стохастического RSI (по умолчанию: 14).
Сглаживание K ( smoothK ): период сглаживания для линии %K (по умолчанию: 3).
Smooth D ( smoothD ): период сглаживания для линии %D (по умолчанию: 3).
Использовать в логике ( use1m , use5m и т. д.): логические переключатели для включения или исключения каждого таймфрейма (1M, 5M, 15M, 30M, 1H, 4H, 1D) в логику входного сигнала (по умолчанию: все true).
Временные рамки
Индикатор отслеживает следующие таймфреймы, определенные как строки, совместимые с Pine Script v6:
1 минута ( "1" )
5-минутный ( "5" )
15-минутный ( "15" )
30-минутный ( "30" )
1 час ( "60" )
4-часовой ( "240" )
Ежедневно ( "Д" )
Основная логика
Расчет стохастического RSI :
Для каждого таймфрейма индикатор:
Вычисляет RSI с помощью ta.rsi(close, rsiLength) .
Применяет стохастическую формулу к RSI с ta.stoch(rsi, rsi, rsi, stochLength) для получения необработанного стохастического RSI.
Сглаживает результат с помощью ta.sma() для вычисления %K (используя smoothK ) и %D (используя smoothD ).
Это делается в функции stochRsiState , которая вызывается через request.security(), чтобы гарантировать соответствие расчетов данным каждого таймфрейма.
Обнаружение кроссовера :
Обнаруживает пересечения с помощью ta.crossover(k, d) (бычий) и ta.crossunder(k, d) (медвежий).
Поддерживает постоянное состояние ( var bool isBullish ) для каждого таймфрейма, обновляется только при возникновении пересечения:
истина (бычий тренд), когда %K пересекает %D снизу вверх .
ложно (медвежье), когда %K пересекает %D снизу .
Состояния с несколькими таймфреймами :
Состояние %K , %D и isBullish каждого таймфрейма извлекается независимо с помощью request.security() , что обеспечивает точное обнаружение пересечений независимо от таймфрейма графика.
Визуальные результаты
Стол :
Статическая таблица в нижнем левом углу отображает состояние каждого таймфрейма:
Столбцы: «1M», «5M», «15M», «30M», «1H», «4H», «1D».
Цвет фона: зеленый ( color.green ) для бычьего тренда, красный ( color.red ) для медвежьего тренда.
Обновления по последнему подтвержденному бару ( barstate.islast ).
Треугольники :
Зеленый восходящий треугольник под полосой, когда все включенные таймфреймы являются бычьими ( allBullish ).
Красный нисходящий треугольник над баром, когда все включенные таймфреймы медвежьи ( allBearish ).
Метки :
Метка «Длинная» (зеленая) под полосой, когда allBullish имеет значение true.
Метка «Короткая» (красная) под полосой, когда allBearish имеет значение true.
Отображается только на последнем подтвержденном историческом баре ( barstate.islastconfirmedhistory ).
Оповещения
Все таймфреймы бычьи : срабатывает, когда все включенные таймфреймы бычьи, с сообщением: «Все таймфреймы Stoch RSI бычьи (зеленые)!»
Все таймфреймы медвежьи : срабатывает, когда все включенные таймфреймы медвежьи, с сообщением: «Все таймфреймы Stoch RSI медвежьи (красные)!»
Условия для сигналов
Бычье состояние ( всеБычье ) :
Истинно, когда все включенные таймфреймы ( use1m ? isBullish1m : true и т. д.) являются бычьими и включен хотя бы один таймфрейм.
Медвежьи условия ( всемедвежьи ) :
Истинно, когда все включенные таймфреймы являются медвежьими и включен хотя бы один таймфрейм.
Отключенные таймфреймы рассматриваются в логике как нейтральные (всегда истинные ), что гарантирует, что они не блокируют сигналы.
Использование
Добавьте индикатор на свой график TradingView.
Отрегулируйте входные параметры (например, rsiLength , stochLength , smoothK , smoothD ) в соответствии с вашей торговой стратегией.
Включите/отключите таймфреймы с помощью настроек ввода, чтобы сосредоточиться на определенных из них.
Следите за таблицей для определения состояний отдельных таймфреймов и графиком для определения сигналов на вход («Длинный»/«Короткий»), когда все включенные таймфреймы совпадают.
Настройте оповещения, чтобы получать уведомления о полном выравнивании.
Примечания
Индикатор разработан таким образом, чтобы сохранять состояние пересечения до следующего пересечения, аналогично оригинальному скрипту на основе RSI, обеспечивая стабильность при переключении таймфреймов графика.
Для извлечения данных используется request.security() , что делает его надежным для многовременного анализа, хотя производительность может зависеть от доступности данных графика.
TW SMAa Simple Moving Average (SMA) with a glowing effect. The logic behind this script can be broken down into the following key components:
The result is an SMA with a smooth glowing effect, making it easier to visualize trend direction.
The color change in the SMA itself provides clear bullish and bearish indications.
The glow layers create an appealing and intuitive representation of price movement relative to the SMA.
Average Price Bar (APB) with Dynamic EMATrading Made Simple: APB + Dynamic EMA with Stochastic (8,3,3) Strategy
Introduction
The "Trading Made Simple" strategy, originally developed by BigE on ForexFactory in 2011, is a powerful yet straightforward approach to trading that combines price action, moving averages, and momentum indicators to identify high-probability setups. This enhanced version integrates:
Average Price Bar (APB) – A smoothed candlestick representation that filters market noise.
Dynamic EMA (5-period, HLC3-based) – Acts as a trend filter, changing color based on its position relative to price.
Stochastic (8,3,3) – A fast momentum oscillator to confirm overbought/oversold conditions.
Core Trading Rules (BigE's Original Concept)
Trend Direction: The EMA defines the trend (bullish if price is above, bearish if below).
Stochastic Confirmation:
Long Trades: Look for Stochastic crossing up from oversold (<20) while price is above the EMA.
Short Trades: Look for Stochastic crossing down from overbought (>80) while price is below the EMA.
APB as Entry Confirmation:
A bullish APB close above the EMA strengthens long signals.
A bearish APB close below the EMA strengthens short signals.
Why This Combination Works
APB + EMA provides a clean trend bias, reducing false signals.
Stochastic (8,3,3) adds momentum confirmation, ensuring entries are timed well.
The background color shift (green/red) makes trend reversals visually intuitive.
This system is ideal for swing traders and day traders looking for a rule-based, discretionary approach that removes emotional decision-making while keeping trading simple and effective.
PARKER Currency Strength with RESETS v 3.00PARKER Currency Strength v3.00 is a comprehensive multi-currency strength indicator designed for Forex traders who want detailed insights into major currency performance. Here are some of its key features:
Customizable Session Resets:
The indicator supports automatic resets of currency strength calculations at the start of each major market session (Sydney, Tokyo, London, and New York). You can also enable a custom reset with a user-defined reset time and name.
User-Defined Market Hours:
With the new "Market Settings" section, you can set the open and close times for each market (Sydney, Tokyo, London, and New York) using hour and minute inputs. This allows you to tailor the session times to your local time zone or trading preferences.
Session Shading and Labels:
The background color of the indicator pane changes based on the active market session. Labels are generated at the start of each session to provide clear visual cues. Market session labels and times are also displayed on the chart for quick reference.
Dual Mode Display:
In addition to the reset-based currency strength calculations, the indicator can plot "normal" (continuous) currency strength lines at 50% transparency, allowing you to compare different calculation methods side by side.
Fully Customizable Appearance:
Customize line colors, widths, and offsets for each currency pair via user inputs, enabling a personalized and clear display that fits your trading style.
This indicator is ideal for Forex traders who require a dynamic and highly customizable tool to monitor currency strength, adapt to different market sessions, and make informed trading decisions based on real-time performance data.
EMA + RSI + MACD + Support & Resistance Combined StrategyStrategy: Enhanced EMA + RSI + MACD + Support & Resistance
This strategy combines multiple technical indicators to create a robust system for identifying market opportunities. By leveraging Exponential Moving Averages (EMA), Relative Strength Index (RSI), and Moving Average Convergence Divergence (MACD) for trend confirmation, along with Support and Resistance levels to trigger breakout trades, this strategy aims to capture both trending and breakout movements.
Indicators Used:
EMA (5, 20, 50, 200): Helps identify the prevailing market trend, with short-term EMAs crossing longer-term ones as signals of trend shifts.
RSI (14): Confirms whether the market is in a bullish (RSI > 50) or bearish (RSI < 50) zone, adding additional filter to entries.
MACD (12, 26, 9): Used to confirm the momentum, where a MACD line crossing above the signal line indicates a bullish signal and vice versa for bearish.
Breakout Strategy (Support & Resistance):
Support & Resistance levels are dynamically calculated based on a user-defined period.
Buy Condition: Triggered when price breaks above resistance and confirms bullish indicators (EMA, RSI, MACD).
Sell Condition: Triggered when price breaks below support and confirms bearish indicators (EMA, RSI, MACD).
Exits & Risk Management:
Trailing Stop: A trailing stop is applied to lock in profits as the price moves in favor of the trade. The stop is dynamically adjusted with the market price, providing better protection during strong trends.
Stop Loss: The stop loss is set at key support and resistance levels to ensure a safe exit if the market moves against the trade.
This strategy aims to provide more frequent entries, take advantage of breakouts, and effectively manage risk with trailing stops. It is suitable for traders looking to capture both trends and breakouts across various timeframes.
Daily EMA Cloud on Smaller TimeframesI like to see the daily ema cloud on my intraday charts. This indicator lets you see the daily ema cloud on the any intraday chart. The ema lengths and colors are adjustable.
MDTrader DashboardMDtrader Script that looks at moving averages, weekly and daily levels to help guide the trading day and establish a bias
Global Foreigners SMA, WMA IndicatorThis Indicator is a custom technical analysis tool designed to overlay multiple moving averages on a price chart, helping traders analyze price trends and potential trading opportunities.
It features both a Simple Moving Average (SMA) and Weighted Moving Averages (WMAs) with different period settings.
Key Features:
1. SMA and WMA Calculations:
- SMA 1: A simple moving average (SMA) calculated over a user-defined period (default: 1).
- WMA 1 - WMA 5: Five weighted moving averages (WMA) with different periods (5, 10, 20, 30, 40). WMAs give more importance to recent price movements, helping to identify short-term trends.
2. Customizable Periods:
- The indicator allows users to adjust the lookback period for each moving average via input settings.
3. Color-Coded Moving Averages:
- Each moving average is assigned a unique color for easy differentiation:
- SMA 1 → Black
- WMA 1 (5-period) → Blue
- WMA 2 (10-period) → Peach
- WMA 3 (20-period) → Orange
- WMA 4 (30-period) → Lavender
- WMA 5 (40-period) → Purple
4. Line Thickness:
- Each moving average is plotted with a line width of 2, making them clearly visible on the chart.
How This Indicator is Used:
Trend Analysis:
The alignment of the WMA sequence (e.g., WMA 5 > WMA 4 > WMA 3 > WMA 2 > WMA 1) can
indicate a bullish trend.
The opposite alignment suggests a bearish trend.
Dynamic Support & Resistance:
Shorter-period WMAs (5 & 10) react faster to price changes and can be used as dynamic
support or resistance levels for short-term trades.
Longer-period WMAs (20, 30, 40) smooth out price fluctuations and are useful for detecting
long-term trends.
Signal Confirmation:
The SMA 1 acts as a quick price reference, and traders can look for crossovers between the
WMA lines to confirm trend changes.
Who Can Use This Indicator?
Scalpers & Day Traders:
The faster WMAs (5 & 10) can be used to catch quick price reversals.
Swing Traders & Position Traders:
The combination of short-term and long-term moving averages helps identify key trend
shifts.
Algorithmic Traders:
Can be used alongside other indicators for automated signal generation.
This indicator is not a buy/sell signal generator but rather a trend-following tool that helps traders visually interpret market movements using moving averages. It works well when combined with momentum indicators (e.g., MACD, RSI) to confirm entry and exit points.
SignalCore AI: Double Cloud SMA📈 SignalCore AI: Double Cloud SMA
Visualize market strength through multi-layered precision
The Double Cloud SMA is a visual and strategic module within the SignalCore AI framework, designed to highlight key price zones using two Simple Moving Average (SMA) bands combined with dynamic standard deviation projections.
🧠 What this script does:
Plots two SMA-based “clouds” (short-term and long-term), projecting upper and lower bands based on volatility.
Highlights Buy and Sell Zones (including “Strong” levels) using intuitive visual fills between key lines.
Helps identify compression areas, potential reversals, and trend continuation points.
🔍 Core Components:
Short-term SMA cloud: captures fast market movements.
Long-term SMA cloud: acts as a macro trend filter.
Volatility-based band projections (25% to 125%) create dynamic zones of interest.
Visual mapping of Buy Zones, Sell Zones, Strong Buy/Sell areas.
💼 Ideal for:
Scalpers, day traders, and swing traders who rely on moving averages.
Traders who use confluence strategies with RSI, Bollinger Bands, SAR, etc.
Anyone who wants clearer, smarter decision points on the chart.
⚙️ Customizable Inputs:
Short SMA Period: 224 (default)
Long SMA Period: 3320 (default)
Offset control for projecting into future or past bars
🔔 Pro Tip: Combine this script with other SignalCore AI modules for a complete multi-dimensional market view.
📩 For feedback, custom versions, or collaborations, feel free to reach out to the author.
www.youtube.com
Crypto MA Cross StrategyBuy with MA crossover. Take profit when price reaches your percentage target. Stops at defined percentage below the buy price
SMA 12, 36, 200 with Signals and AlertsFeatures:
✅ Simple Moving Averages:
SMA 12 (short-term)
SMA 36 (mid-term)
SMA 200 (long-term trend filter)
✅ Buy & Sell Signals:
Buy: When SMA 12 crosses above SMA 36
Sell: When SMA 12 crosses below SMA 36
✅ Built-in Alerts:
Receive real-time alerts when a signal is triggered.
🧠 Strategy Overview – Multi-Timeframe Trading
This script is designed to be used with multi-timeframe analysis:
1H Chart – Trend Direction
If the price is above the SMA 200 on the 1-hour chart → look for Long opportunities.
If the price is below the SMA 200 on the 1-hour chart → look for Short opportunities.
5-Min Chart – Entry Timing
Once the higher-timeframe trend is clear, switch to the 5-minute chart.
Use SMA 12 and SMA 36 crossovers to time your entry in the direction of the main trend.
This approach helps filter out false signals and improves overall trade accuracy.
5-Min EMA (5 & 20) + RSI + MACD StrategyThis strategy uses a combination of Exponential Moving Averages (EMA), Relative Strength Index (RSI), and the Moving Average Convergence Divergence (MACD) to identify potential buy (bullish) and sell (bearish) signals on a 5-minute intraday chart_______________By Million mantra Telugu
MA CloudsMA Clouds – Adaptive Moving Average Visualization (with Bollinger bands)
The MA Clouds indicator is designed to help traders visualize multiple moving averages simultaneously, providing a dynamic view of trend direction, momentum, and potential support/resistance zones. This tool overlays Simple Moving Averages (SMA) and Exponential Moving Averages (EMA) in an easy-to-read cloud format, allowing traders to interpret market structure at a glance.
Key Features:
✅ Customizable Moving Averages – Adjust SMA and EMA lengths to suit your strategy.
✅ Cloud-Based Visualization – Color-coded clouds between different moving averages highlight areas of potential trend shifts.
✅ Toggle Price Lines – Option to enable or disable individual price lines for a cleaner chart.
✅ Bollinger Bands Integration – Adds upper and lower bands for additional confluence in volatility analysis.
✅ Quick Trend Identification – Helps traders gauge short-term and long-term trend strength.
✅ Preset View Modes – Toggle between a simplified 5-10 SMA/EMA setup or a full multi-timeframe cloud setup with one click.
This indicator is ideal for traders looking to combine trend-following strategies with dynamic support/resistance insights. Whether you're scalping intraday moves or managing longer-term swing trades, MA Clouds provides an efficient way to keep market structure in focus.
Ichimoku Cloud Auto TF🧠 Timeframe Breakdown for Ichimoku Cloud Auto TF
Each timeframe in this indicator is carefully calibrated to reflect meaningful Ichimoku behavior relative to its scale. Here's how each one is structured and what it's best used for:
⏱️ 1 Minute (1m)
Tenkan / Kijun / Span B: 5 / 15 / 45
Use: Scalping fast price action.
Logic: Quick reaction to short-term momentum. Best for highly active traders or bots.
⏱️ 2 Minutes (2m)
Tenkan / Kijun / Span B: 6 / 18 / 54
Use: Slightly smoother than 1m, still ideal for scalping with a little more stability.
⏱️ 5 Minutes (5m)
Tenkan / Kijun / Span B: 8 / 24 / 72
Use: Intraday setups, quick trend capture.
Logic: Balanced between reactivity and noise reduction.
⏱️ 15 Minutes (15m)
Tenkan / Kijun / Span B: 9 / 27 / 81
Use: Short-term swing and intraday entries with higher reliability.
⏱️ 30 Minutes (30m)
Tenkan / Kijun / Span B: 10 / 30 / 90
Use: Intra-swing entries or confirmation of 5m/15m signals.
🕐 1 Hour (1H)
Tenkan / Kijun / Span B: 12 / 36 / 108
Use: Ideal for swing trading setups.
Logic: Anchored to Daily reference (1H × 24 ≈ 1D).
🕐 2 Hours (2H)
Tenkan / Kijun / Span B: 14 / 42 / 126
Use: High-precision swing setups with better context.
🕒 3 Hours (3H)
Tenkan / Kijun / Span B: 15 / 45 / 135
Use: Great compromise between short and mid-term vision.
🕓 4 Hours (4H)
Tenkan / Kijun / Span B: 18 / 52 / 156
Use: Position traders & intraday swing confirmation.
Logic: Designed to echo the structure of 1D Ichimoku but on smaller scale.
📅 1 Day (1D)
Tenkan / Kijun / Span B: 9 / 26 / 52
Use: Classic Ichimoku settings.
Logic: Standard used globally for technical analysis. Suitable for swing and position trading.
📆 1 Week (1W)
Tenkan / Kijun / Span B: 12 / 24 / 120
Use: Long-term position trading & institutional swing confirmation.
Logic: Expanded ratios for broader perspective and noise filtering.
🗓️ 1 Month (1M)
Tenkan / Kijun / Span B: 6 / 12 / 24
Use: Macro-level trend visualization and investment planning.
Logic: Condensed but stable structure to handle longer data cycles.
📌 Summary
This indicator adapts Ichimoku settings dynamically to your chart's timeframe, maintaining logical ratios between Tenkan, Kijun, and Span B. This ensures each timeframe remains responsive yet meaningful for its respective market context.
STH Unrealized Profit/Loss Ratio (STH-NUPL) | [DeV]STH-NUPL
The Short-Term Holder Net Unrealized Profit/Loss Ratio (STH-NUPL) is an analytical tool designed to approximate the unrealized profit or loss of Bitcoin’s short-term holders (STHs)—typically those holding coins for less than 155 days—within the constraints of TradingView’s price-based environment. Drawing inspiration from the canonical STH-NUPL metric, which assesses the difference between the market value and realized value of STH-held coins, this indicator adapts the concept into a normalized ratio using Bitcoin’s price data as a proxy. It offers a window into the sentiment and behavior of short-term market participants, who are often more sensitive to price fluctuations than long-term holders.
In its raw form, STH-NUPL oscillates around a break-even threshold of 0, where positive values indicate aggregate unrealized profits for STHs (market value exceeds realized value), and negative values suggest losses. This inflection point frequently acts as a key level: in bear markets, it can signal capitulation as STHs sell at break-even or below, while in bull markets, it may reflect reluctance to realize losses, providing support. The indicator enhances this metric with smoothing, a moving average overlay, and sophisticated visualization options, delivering a statistically informed perspective on short-term holder dynamics tailored for institutional-grade analysis.
STH-NUPL Settings -
Lookback Length (Default: 150 days): Defines the SMA period for estimating realized value. This 150-day window aligns with traditional STH definitions (e.g., <155 days), capturing a broad yet relevant historical cost basis for short-term holders, ideal for assessing cyclical behavior.
Smoothing Period (Default: 5 days): Applies an EMA to the raw STH-NUPL ratio, with a short default period to maintain responsiveness to recent price shifts while filtering out daily volatility. This setting is particularly suited for tactical analysis.
Moving Average Settings -
MA Lookback Length (Default: 90 days): Sets the period for the STH-NUPL’s moving average, offering a medium-term trend signal that contrasts with the 150-day lookback, enabling detection of momentum shifts within broader market phases.
MA Type (Default: EMA): Provides six moving average types, from the straightforward SMA to the volume-sensitive VWMA. The default EMA balances smoothness and reactivity, while options like HMA or VWMA cater to specialized needs, such as emphasizing recent action or volume trends.
Display Settings -
Show Moving Average (Default: True): Toggles the visibility of the STH-NUPL MA plot, allowing users to focus solely on the smoothed ratio when desired.
Show Background Colors (Default: True): Activates dynamic background shading to visually reinforce market regimes.
Background Color Source (Default: STH-NUPL): Enables users to tie the background to either the STH-NUPL’s midline (reflecting sthNupl > 0) or the MA’s trend direction (maNupl > maNupl ), aligning the visual context with the chosen analytical focus.
Analytical Applications -
Bear Market Capitulation: When the smoothed STH-NUPL approaches or falls below zero, it often signals loss realization among STHs, a precursor to capitulation in downtrends. A declining MA crossing zero can confirm this selling pressure.
Bull Market Support: Positive STH-NUPL values with a rising MA indicate STHs are in profit and reluctant to sell at a loss, forming support zones in uptrends as sell pressure wanes.
Sentiment Extremes: Significant deviations above or below zero highlight over-optimism or despair among STHs, offering contrarian opportunities when paired with price action or other on-chain metrics.
**Limitations**
As a TradingView-based approximation, this indicator uses price data (close) rather than true on-chain STH supply and realized price, which are available through providers like Glassnode. The 150-day SMA for realized value simplifies the cost basis, potentially underrepresenting the diversity of STH transactions. Despite this, the smoothed ratio and moving average overlay provide a practical proxy for tracking STH sentiment within TradingView’s ecosystem.
Multi-Timeframe EMAsMulti Timeframe EMA's
The 'Multi-Timeframe EMA Band Comparison' indicator is a tool designed to analyze trend direction across multiple timeframes using Exponential Moving Averages. it calculates the 50, 100, and 200 period EMAs for fiver user defined timeframes and compares their relationships to provide a visual snapshot of bullish or bearish momentum.
How it Works:
EMA Calculations: For each selected timeframe, the indicator computes the 50, 100, and 200 period EMAs based on the closing price.
Band Comparisons: Three key relationships are evaluated:
50 EMA vs 100 EMA
100 EMA vs 200 EMA
50 EMA vs 200 EMA
Scoring System: Each comparison is assigned a score:
🟢 (Green Circle): The shorter EMA is above the longer EMA, signaling bullish momentum.
🔴 (Red Circle): The shorter EMA is below the longer EMA, signaling bearish momentum.
⚪️ (White Circle): The EMAs are equal or data is unavailable (rare).
Average Score:
An overall average score is calculated across all 15 comparisons ranging from 1 to -1, displayed with two decimal places and color coded.
Customization:
This indicator is fully customizable from the timeframe setting to the color of the table. The only specific part that is not changeable is the EMA bands.
Scalping Strategy Signal v2 by [INFINITYTRADER]Overview
This Pine Script (v6) implements a scalping strategy that uses higher timeframe data (default: 4H) to generate entry and exit signals, originally designed for the 15-minute timeframe with an option for 30-minute charts. The "Scalping Strategy Signal v2 by " integrates moving averages, RSI, volume, ATR, and candlestick patterns to identify trading opportunities. It features adjustable risk management with ATR-based stop-loss, take-profit, and trailing stops, plus dynamic position sizing based on user-set capital. Trades trigger only on the higher timeframe candle close (e.g., 4H) to limit activity within the same period. This closed-source script offers a structured scalping approach, blending multiple entry methods and risk controls for adaptability across market conditions.
What Makes It Unique
Unlike typical scalping scripts relying on single-indicator triggers (e.g., RSI alone or basic MA crossovers), this strategy combines four distinct entry methods—standard MA crossovers, RSI-based momentum shifts, trend-following shorts, and candlestick pattern logic—evaluated on a 4H timeframe for confirmation. This multi-layered design, paired with re-entry logic after losses and a mix of manual, ATR-based, and trailing exits, aims to balance trade frequency and reliability. The higher timeframe filter adds precision not commonly found in simpler scalping tools, while the 30-minute option enhances consistency by reducing noise.
How It Works
Timeframe Logic
Runs on a base timeframe (designed for 15-minute charts, with a 30-minute option) while pulling data from a user-chosen higher timeframe (default: 4H) for signal accuracy.
Limits entries to the close of each 4H candle, ensuring one trade per period to avoid over-trading in volatile conditions.
Indicators and Data
Moving Averages : Employs 21-period and 50-period simple moving averages on the higher timeframe to detect trends and signal entries/exits.
Volume : Requires volume to exceed 70% of its 20-period average on the higher timeframe for momentum confirmation.
RSI : Uses a 14-period RSI for overbought/oversold filtering and a 6-period RSI for precise entry timing.
ATR : Applies a 14-period Average True Range on the higher timeframe to set adaptive stop-loss and take-profit levels.
Candlestick Patterns : Analyzes consecutive green or red 4H bars for trend continuation signals.
Why These Indicators
The blend of moving averages, RSI, volume, ATR, and candlestick patterns forms a robust scalping framework. Moving averages establish trend context, RSI filters momentum and avoids extremes, volume confirms market activity, ATR adjusts risk to volatility, and candlestick patterns enhance entry timing with price action insights. Together, they target small, frequent moves in flat or trending markets, with the 4H filter reducing false signals common in lower-timeframe scalping.
Entry Conditions
Four entry methods are evaluated at the 4H candle close:
Standard Long Entry: Price crosses above the 21-period moving average, volume exceeds 70% of its 20-period average, and the 1H 14-period RSI is below 70—confirms uptrend momentum.
Special Long Entry: The 6-period RSI crosses above 23, price is more than 1.5 times the ATR from the 21-period moving average, and price exceeds its prior close—targets oversold bounces with a stop-loss at the 4H candle’s low.
Short Entries:
- RSI-Based: The 6-period RSI crosses below 68 with volume support—catches overbought pullbacks.
- Trend-Based: Price crosses below the 21-period moving average, volume is above 70% of its average, and the 1H 14-period RSI is above 30—confirms downtrends.
Red/Green Bar Logic: Two consecutive green 4H bars for longs or red 4H bars for shorts—uses candlestick patterns for continuation, with a tight stop-loss from the base timeframe candle.
Re-Entry Logic
Long : After a losing special long, triggers when the 6-period RSI crosses 27 and price crosses the 21-period moving average.
Short : After a losing short, triggers when the 6-period RSI crosses 50 and price crosses below the 21-period moving average.
Purpose: Offers recovery opportunities with stricter conditions.
Exit Conditions
Manual Exits: Longs close if the 21-period MA crosses below the 50-period MA or the 1H 14-period RSI exceeds 68; shorts close if the 21-period MA crosses above the 50-period MA or RSI drops below 25.
ATR-Based TP/SL: Stop-loss is entry price ± ATR × 1.5 (default); take-profit is ± ATR × 4 (default), checked at 4H close.
Trailing Stop: Adjusts ±6x ATR from peak/trough, closing if price retraces within 1x ATR.
Special/Tight SL: Special longs exit if price opens below the 4H candle’s low; 4th method entries use the base timeframe candle’s low/high, checked every bar.
Position Sizing
Bases trade value on user-set capital (default: 100 USDT), dividing by the higher timeframe close price for dynamic sizing.
Visualization
Displays a table at the bottom-right with current/previous signals, TP/SL levels, equity, trading pair, and trade size—color-coded for clarity (green for buy, red for sell).
Inputs
Initial Capital (USDT): Sets trade value (default: 100, min: 1).
ATR Stop-Loss Multiplier: Adjusts SL distance (default: 1.5, min: 1).
ATR Take-Profit Multiplier: Adjusts TP distance (default: 4, min: 1).
Higher Timeframe: Selects analysis timeframe (options: 1m, 5m, 15m, 30m, 1H, 4H, D, W; default: 4H).
Usage Notes
Intended Timeframe: Designed for 15-minute charts with 4H confirmation for precision and frequency; 30-minute charts improve consistency by reducing noise.
Backtesting: Adjust ATR multipliers and capital to match your asset’s volatility and risk tolerance.
Risk Management: Combines manual, ATR, and trailing exits—monitor to avoid overexposure.
Limitations: 4H candle-close dependency may delay entries in fast markets; RSI/volume filters can reduce trades in low-momentum periods.
Backtest Observations
Tested on BTC/USDT (4H higher timeframe, default settings: Initial Capital: 100 USDT, ATR SL: 1.5x, ATR TP: 4x) across market conditions, comparing 15-minute and 30-minute charts:
Bull Market (Jul 2023 - Dec 2023):
15-Minute: 277 long, 219 short; Win Rate: 42.74%; P&L: 108%; Drawdown: 1.99%; Profit Factor: 3.074.
30-Minute: 257 long, 215 short; Win Rate: 49.58%; P&L: 116.85%; Drawdown: 2.34%; Profit Factor: 3.14.
Notes: Moving average crossovers and green bar patterns suited this bullish phase; 30-minute improved win rate and P&L by filtering weaker signals.
Bear Market (Jan 2022 - Jun 2022):
15-Minute: 262 long, 211 short; Win Rate: 44.4%; P&L: 239.80%; Drawdown: 3.74%; Profit Factor: 3.419.
30-Minute: 250 long, 200 short; Win Rate: 52.22%; P&L: 258.77%; Drawdown: 5.34%; Profit Factor: 3.461.
Notes: Red bar patterns and RSI shorts thrived in the downtrend; 30-minute cut choppy reversals for better consistency.
Flat Market (Jan 2021 - Jun 2021):
15-Minute: 280 long, 208 short; Win Rate: 51.84%; P&L: 340.33%; Drawdown: 9.59%; Profit Factor: 2.924.
30-Minute: 270 long, 209 short; Win Rate: 55.11%; P&L: 315.42%; Drawdown: 7.21%; Profit Factor: 2.598.
Notes: High trade frequency and P&L showed strength in ranges; 30-minute lowered drawdown for better risk control.
Results reflect historical performance on BTC/USDT with default settings—users should test on their assets and timeframes. Past performance does not guarantee future results and is shared only to illustrate the strategy’s behavior.
Why It Works Well in Flat Markets
A "flat market" lacks strong directional trends, with price oscillating around moving averages, as in Jan 2021 - Jun 2021 for BTC/USDT. This strategy excels here because its crossover-based entries trigger frequently in tight ranges. In trending markets, an exit might not be followed by a new entry without a pullback, but flat markets produce multiple crossovers, enabling more trades. ATR-based TP/SL and trailing stops capture these small swings, while RSI and volume filters ensure momentum, driving high P&L and win rates.
Technical Details
Built in Pine Script v6 for TradingView compatibility.
Prevents overlapping trades with long/short checks.
Handles edge cases like zero division and auto-detects the trading pair’s base currency (e.g., BTC from BTCUSDT).
This strategy suits scalpers seeking structured entries and risk management. Test on 15-minute or 30-minute charts to match your style and market conditions.
Spent Output Profit Ratio (SOPR) Z-Score | [DeV]SOPR Z-Score
The Spent Output Profit Ratio (SOPR) is an advanced on-chain metric designed to provide deep insights into Bitcoin market dynamics by measuring the ratio between the combined USD value of all Bitcoin outputs spent on a given day and their combined USD value at the time of creation (typically, their purchase price). As a member of the Realized Profit/Loss family of metrics, SOPR offers a window into aggregate seller behavior, effectively representing the USD amount received by sellers divided by the USD amount they originally paid. This indicator enhances this metric by normalizing it into a Z-Score, enabling a statistically robust analysis of market sentiment relative to historical trends, augmented by a suite of customizable features for precision and visualization.
SOPR Settings -
Lookback Length (Default: 150 days): Determines the historical window for calculating the Z-Score’s mean and standard deviation. A longer lookback captures broader market cycles, providing a stable baseline for identifying extreme deviations, which is particularly valuable for long-term strategic analysis.
Smoothing Period (Default: 100 days): Applies an EMA to the raw SOPR, balancing responsiveness to recent changes with noise reduction. This extended smoothing period ensures the indicator focuses on sustained shifts in seller behavior, ideal for institutional-grade trend analysis.
Moving Average Settings -
MA Lookback Length (Default: 90 days): Sets the period for the Z-Score’s moving average, offering a shorter-term trend signal relative to the 150-day Z-Score lookback. This contrast enhances the ability to detect momentum shifts within the broader context.
MA Type (Default: EMA): Provides six moving average types, from the simple SMA to the volume-weighted VWMA. The default EMA strikes an optimal balance between smoothness and responsiveness, while alternatives like HMA (Hull) or VWMA (volume-weighted) allow for specialized applications, such as emphasizing recent price action or incorporating volume dynamics.
Display Settings -
Show Moving Average (Default: True): Toggles the visibility of the Z-Score MA plot, enabling users to focus solely on the raw Z-Score when preferred.
Show Background Colors (Default: True): Activates dynamic background shading, enhancing visual interpretation of market regimes.
Background Color Source (Default: SOPR): Allows users to tie the background color to either the SOPR Z-Score’s midline (reflecting adjustedZScore > 0) or the MA’s trend direction (zScoreMA > zScoreMA ). This dual-source option provides flexibility to align the visual context with the primary analytical focus.
Analytical Applications -
Bear Market Resistance: When the Z-Score approaches or exceeds zero (raw SOPR near 1), it often signals resistance as sellers rush to exit at break-even, a pattern historically observed during downtrends. A rising Z-Score MA crossing zero can confirm this pressure.
Bull Market Support: Conversely, a Z-Score dropping below zero in uptrends indicates reluctance to sell at a loss, forming support as sell pressure diminishes. The MA’s bullish coloring reinforces confirmation of renewed buying interest.
Extreme Deviations: Values significantly above or below zero highlight overbought or oversold conditions, respectively, offering opportunities for contrarian positioning when paired with other on-chain or price-based metrics.
111D SMA / (350D SMA * 2)Indicator: Pi Cycle Ratio
This custom technical indicator calculates a ratio between two moving averages that are used for the PI Cycle Top indicator. The PI Cycle Top indicator triggers when the 111-day simple moving average (111D SMA) crosses up with the 350-day simple moving average (350D SMA *2).
The line value is ratio is calculated as:
Line Value = 111DSMA / (350D SMA × 2)
When the 111D SMA crosses with the 350D SMA triggering the PI Cycle Top, the value of the ratio between the two lines is 1.
This visualizes the ratio between the two moving averages into a single line. This indicator can be used for technical analysis for historical and future moves.
Combined SMA Cross & RSI Multi-Timeframe Indicator K2Combined SMA Cross & RSI Multi-Timeframe Indicator
This Pine Script v6 indicator combines two popular technical analysis tools—Simple Moving Average (SMA) crossover and Relative Strength Index (RSI) crossover—across multiple timeframes to generate bullish and bearish trading signals. It overlays SMA lines on the chart, displays signals with shapes, and provides a table summarizing SMA crossover states across 11 timeframes.
Features:
SMA Crossover:
Compares a short SMA (default: 20 periods) with a long SMA (default: 50 periods).
Bullish signal: Short SMA crosses above Long SMA.
Bearish signal: Short SMA crosses below Long SMA.
Plotted as green (short) and red (long) lines on the chart.
RSI Crossover:
Calculates RSI (default: 14 periods) and its SMA (default: 14 periods).
Bullish signal: RSI crosses above its SMA.
Bearish signal: RSI crosses below its SMA.
Multi-Timeframe Analysis:
Evaluates SMA and RSI conditions across 11 timeframes: 1M, 5M, 15M, 30M, 1H, 2H, 4H, 8H, 12H, 1D, 1W.
User can toggle which timeframes to include via input settings.
Combined Logic:
Generates a signal only when both SMA and RSI conditions (if enabled) are met across all selected timeframes.
Bullish: All selected timeframes show bullish SMA and RSI crossovers.
Bearish: All selected timeframes show bearish SMA and RSI crossovers.
Logic toggles allow enabling/disabling SMA or RSI components.
Visuals:
Triangles: Green triangle below bar for bullish signals, red triangle above bar for bearish signals.
Arrows: Green upward arrow for "Long" signals, red downward arrow for "Short" signals, ensuring no overlap with previous signals.
Table: Displays SMA crossover states for all 11 timeframes at the bottom center of the chart (green for bullish, red for bearish).
Alerts:
Triggers alerts for combined bullish ("SMA Cross and RSI timeframes are bullish!") and bearish ("SMA Cross and RSI timeframes are bearish!") signals.
Inputs:
SMA Settings: Short SMA length (20), Long SMA length (50).
RSI Settings: RSI length (14), RSI SMA length (14).
Logic Toggles: Enable/disable SMA Cross and RSI logic.
Timeframe Toggles: Enable/disable each of the 11 timeframes.
Usage:
Add the indicator to your chart and adjust inputs as needed.
Use the signals for trend confirmation or entry/exit points, combining multi-timeframe SMA and RSI analysis.
Monitor the table to assess alignment across timeframes.
Notes:
Designed for TradingView with Pine Script v6.
Signals are confirmed on closed bars (barstate.isconfirmed) to avoid repainting.
Ideal for traders seeking a multi-timeframe confirmation tool.
Этот индикатор Pine Script v6 объединяет два популярных инструмента технического анализа — кроссовер Simple Moving Average (SMA) и кроссовер Relative Strength Index (RSI) — на нескольких таймфреймах для генерации бычьих и медвежьих торговых сигналов. Он накладывает линии SMA на график, отображает сигналы с помощью фигур и предоставляет таблицу, обобщающую состояния пересечения SMA на 11 таймфреймах.
Функции:
Кроссовер SMA :
Сравнивает короткую SMA (по умолчанию: 20 периодов) с длинной SMA (по умолчанию: 50 периодов).
Бычий сигнал: короткая SMA пересекает длинную SMA сверху вниз.
Медвежий сигнал: короткая SMA пересекает длинную SMA снизу вверх.
На графике это обозначено зеленой (короткой) и красной (длинной) линиями.
Кроссовер RSI :
Рассчитывает RSI (по умолчанию: 14 периодов) и его SMA (по умолчанию: 14 периодов).
Бычий сигнал: RSI пересекает SMA выше.
Медвежий сигнал: RSI пересекает SMA ниже.
Анализ нескольких таймфреймов :
Оценивает состояния SMA и RSI на 11 таймфреймах: 1M, 5M, 15M, 30M, 1H, 2H, 4H, 8H, 12H, 1D, 1W.
Пользователь может переключать включаемые временные интервалы с помощью настроек ввода.
Комбинированная логика :
Генерирует сигнал только тогда, когда выполняются оба условия SMA и RSI (если они включены) на всех выбранных таймфреймах.
Бычий: все выбранные таймфреймы показывают бычьи пересечения SMA и RSI.
Медвежий: все выбранные таймфреймы показывают медвежьи пересечения SMA и RSI.
Логические переключатели позволяют включать/отключать компоненты SMA или RSI.
Визуальные эффекты :
Треугольники : зеленый треугольник под полосой — бычьи сигналы, красный треугольник над полосой — медвежьи сигналы.
Стрелки : зеленая стрелка вверх для «длинных» сигналов, красная стрелка вниз для «коротких» сигналов, что гарантирует отсутствие наложения с предыдущими сигналами.
Таблица : отображает состояния пересечения SMA для всех 11 таймфреймов в нижней центральной части графика (зеленый для бычьего тренда, красный для медвежьего).
Оповещения :
Запускает оповещения для комбинированных бычьих («Таймфреймы SMA Cross и RSI являются бычьими!») и медвежьих («Таймфреймы SMA Cross и RSI являются медвежьими!») сигналов.
Входные данные:
Настройки SMA : короткая длина SMA (20), длинная длина SMA (50).
Настройки RSI : длина RSI (14), длина RSI SMA (14).
Переключатели логики : включение/выключение логики SMA Cross и RSI.
Переключение таймфреймов : включение/отключение каждого из 11 таймфреймов.
Использование:
Добавьте индикатор на свой график и при необходимости скорректируйте входные данные.
Используйте сигналы для подтверждения тренда или точек входа/выхода, комбинируя многовременной анализ SMA и RSI.
Следите за таблицей, чтобы оценить согласованность по всем временным интервалам.
Примечания:
Разработано для TradingView с использованием Pine Script v6.
Сигналы подтверждаются на закрытых барах ( barstate.isconfirmed ), чтобы избежать перерисовки.
Идеально подходит для трейдеров, которым нужен инструмент подтверждения с несколькими таймфреймами.
HabibiTrades Pro System Strategy Overview
This strategy uses the following conditions:
WMA Crossover: To determine the direction of the market trend.
ADX: To confirm whether the trend is strong enough for trade.
Volume Spike: To validate the trade signal with increased market participation.
Let's break down each component and its role in the strategy.
1. WMA (Weighted Moving Average) Crossover:
The WMA is a type of moving average that gives more weight to recent prices. In this strategy, we use two WMAs:
Fast WMA (short period): Reacts quicker to price changes.
Slow WMA (long period): Reacts slower to price changes.
How it works:
Bullish Entry (Long): The Fast WMA crosses above the Slow WMA, indicating a potential upward price movement (bullish trend).
Bearish Entry (Short): The Fast WMA crosses below the Slow WMA, indicating a potential downward price movement (bearish trend).
2. ADX (Average Directional Index):
The ADX measures the strength of a trend, regardless of whether the trend is up or down.
How it works:
ADX > 20: Indicates a strong trend (either bullish or bearish). This is the threshold for considering a trade.
ADX > 30: Indicates an even stronger trend and is used to indicate high confidence in the trend direction.
3. Volume Spike:
Volume is an important indicator that tells you how much trading activity is happening in the market. A volume spike occurs when the current volume is significantly higher than the average volume over a specified period.
How it works:
Volume Spike Condition: The current volume is compared to the average volume (SMA). If the current volume is greater than the Volume SMA multiplied by the Volume Multiplier, a volume spike is detected.
Volume spikes are used to validate the strength of the trend and increase the likelihood that the trade signal is meaningful.
Strategy Logic
Long Entry Conditions (Buy Signal):
WMA Crossover: The Fast WMA crosses above the Slow WMA (bullish signal).
ADX: The ADX is above 20 (indicating a strong trend).
Volume Spike: The current volume is higher than the Volume SMA multiplied by the Volume Multiplier, confirming market participation.
Short Entry Conditions (Sell Signal):
WMA Crossover: The Fast WMA crosses below the Slow WMA (bearish signal).
ADX: The ADX is above 20 (indicating a strong trend).
Volume Spike: The current volume is higher than the Volume SMA multiplied by the Volume Multiplier, confirming market participation.
Exit Conditions:
Trailing Stop: A trailing stop is used based on the highest price for long trades or the lowest price for short trades since the entry. The position is exited when the price moves against the trade by a set amount (in ticks).
RSI Multi-Timeframe K2Indicator Name: RSI Multi-Timeframe Cross Indicator
Overview:
"RSI Multi-Timeframe Cross Indicator" is a versatile Pine Script (v5) tool developed for TradingView, designed for traders using multi-time frame analysis. It monitors the Relative Strength Index (RSI) cross its Simple Moving Average (SMA) on multiple time frames (1-minute, 5-minute, 15-minute, 30-minute, 1-hour, 4-hour and daily) to identify bullish and bearish conditions. The indicator overlays the signals on the chart and provides a customizable table to visualize the time frame conditions.
Key Features:
RSI Crossover Detection:
Monitors when the RSI crosses above (bullish trend) or below (bearish trend) its SMA on each selected time frame.
Uses constant state tracking to maintain a bullish/bearish state until an opposite crossover occurs.
Configurable Parameters:
RSI Length: Configurable period for calculating RSI (default: 14).
MA Length: Configurable period for SMA applied to RSI (default: 20).
Time Frame Controls:
Logical Switches: Independent switches ( use1m , use5m , etc.) to include/exclude each time frame in the signal logic.
Visualization Switches: Separate switches ( show1m , show5m , etc.) to show/hide each time frame in the table without affecting the logic.
Visuals:
Triangles: Green ascending triangles below the bars indicate bullish signals, red descending triangles above the bars indicate bearish signals.
Labels : Long (green) or Short (red) labels on the last confirmed bar when all enabled timeframes match.
Dynamic Table : A centered table at the bottom of the chart displaying the status of each timeframe with colored boxes (green for bullish, red for bearish). The table size is adjustable based on the visible timeframes.
Alerts :
Trigger alerts when all enabled timeframes are bullish ("All RSI timeframes are bullish (green)!") or bearish ("All RSI timeframes are bearish (red)!").
Input Parameters:
RSI Settings :
RSI Length : Integer (min: 1, default: 14) — Period for RSI calculation.
MA Length : Integer (min: 1, default: 20) — Period for SMA RSI.
Timeframe Logic Settings:
Use 1M in Logic, Use 5M in Logic, etc.: Boolean (default: true) - Enable/Disable each timeframe in signal calculation.
Timeframe Visualization Settings:
Show 1M in Table, Show 5M in Table, etc.: Boolean (default: true) - Show/Hide each timeframe in the table display.
Logic:
Bullish Condition: RSI crosses above SMA on a given timeframe, setting a bullish condition until a bearish crossover occurs.
Bearish Condition: RSI crosses below SMA on a given timeframe, setting a bearish condition until a bullish crossover occurs.
Combination signal: A Long or Short signal is generated only when all enabled timeframes (use the * switches) line up in the same direction (bullish or bearish).
Visualization: The table displays the status of each timeframe, but only shows the fields for the timeframes with the Show* switch enabled.
Visual output:
Chart signals:
A green ascending triangle and a Long label when all enabled timeframes are bullish.
A red downward-pointing triangle and a Short label when all enabled timeframes are bearish.
Table:
Located in the lower center of the chart.
The bars dynamically adjust to the number of visible timeframes (1 to 7).
Each cell displays the time frame name (e.g. "1M", "5M") with a background color indicating its status (green for bullish, red for bearish).
Use:
Trend Confirmation: Used to confirm trends across multiple time frames based on RSI behavior.
Configure: Customize RSI and MA lengths to suit your trading strategy, and turn time frames on/off for both logic and visualization to focus on the relevant periods.
Alerts: Set up alerts to be notified when all selected time frames match, useful for automated trading systems or manual monitoring.
Notes:
The indicator does not display RSI or SMA lines directly on the chart, focusing instead on crossover events and signals.
If all visualization toggles are disabled, the table disappears, but signals and alerts continue to function based on the logic toggles.
Compatible with any chart timeframe, data from later timeframes is retrieved using request.security() .