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 ), чтобы избежать перерисовки.
Идеально подходит для трейдеров, которым нужен инструмент подтверждения с несколькими таймфреймами.
Analisi trend
OG QQE ModDescription:
The QQE MOD is a modernized version of the classic QQE (Quantitative Qualitative Estimation) momentum oscillator, refined for real-time decision-making in today’s volatile markets.
How it works:
Measures smoothed RSI changes with a dynamic trailing stop system.
Provides early momentum shifts and trend continuation signals.
Color-coded zones signal potential buy/sell momentum strength.
Best for:
Momentum-based entries in breakout or continuation trades.
Detecting reversals before traditional indicators confirm.
Works well on crypto, indices, and fast-moving assets.
Pro Tip: Use in combination with trend filters like Supertrend or EMA stack to avoid countertrend traps.
OG Trend MeterDescription:
The OG Trend Meter gives you a visual snapshot of multiple timeframe trends in one glance. Built for speed and clarity, it helps confirm direction across key intraday timeframes: 1m, 5m, 15m, and 30m.
How it works:
Each timeframe analyzes EMA alignment, price action, and momentum.
Displays clear green/red indicators for bullish/bearish trends on each timeframe.
Great for aligning trades with higher timeframe bias.
Best for:
Traders who want multi-timeframe confirmation before pulling the trigger.
Reducing fakeouts by staying with the dominant trend.
Scalping with the 1m chart while respecting 5m–30m direction.
Pair With: OG Supertrend or EMA Stack for high-probability confluence.
OG ST+RSI ComboDescription:
The OG Supertrend + RSI Sniper Combo (Elite Edition) is a precision-based trend and momentum trading system. It fuses a modified Supertrend indicator with RSI-based sniper signals to catch clean entries in trending environments.
How it works:
Supertrend detects trend shifts based on price volatility.
RSI Sniper zones detect high-probability overbought/oversold reversals.
Entry signals appear only when Supertrend direction aligns with RSI zone confirmation, reducing false signals.
Best for:
Traders seeking high-conviction trend entries and exits.
5m, 15m, and 1H scalping or swing trade setups.
Works great on SPY, QQQ, BTC, and Forex pairs.
Use with: Clean chart setups. Avoid overlapping with other trend scripts unless necessary.
OG EMA+VWAPDescription:
The OG EMA Stack + VWAP + Auto Fibonacci Pivots is a powerful trend-following and confluence-based trading tool. It combines 6 key exponential moving averages (8, 21, 50, 100, 200, 400), VWAP, and automatic Fibonacci pivot zones to help traders identify dynamic support/resistance levels, trend strength, and high-probability trade zones.
How it works:
EMAs are color-coded to show bullish/bearish stacking.
VWAP serves as an intraday mean reversion benchmark.
Fibonacci Pivots are automatically plotted based on recent swing highs/lows to reveal key retracement levels.
Best for:
Identifying trend strength and potential reversals.
Spotting confluences of EMAs, VWAP, and Fibonacci levels for sniper entries.
Scalping, swing trading, and intraday setups.
Tip: Use this on clean charts to spot when price bounces between stacked EMAs and VWAP with pivot zone rejections.
Trend V2 (2025 Colorized) /w filterSame trend candle logic from before, but with a linear regression slope filter. The idea is going long when both are green and short when both are red. Simple and seems to be pretty effective.
NBSG Mox-ZThe Mox-Z provides a visual representation of momentum and trend strength, enhanced with statistical bands to identify significant levels based on prior momentum.
What It Does
The indicator calculates the Mox-Z value as (EMA12(close) - EMA26(close)) - EMA9(EMA12(close) - EMA26(close))) * 3 using the higher timeframe's closing prices. This value is plotted as a histogram, with colors indicating its position relative to zero and Z-score bands:
Bright Green: Above +0.7 SD (strong bullish momentum).
Bright Red: Below -0.7 SD (strong bearish momentum).
Dark Green: Above zero but below +0.7 SD (moderate bullish momentum).
Dark Red: Below zero but above -0.7 SD (moderate bearish momentum).
Z-score bands are computed over a 200-period lookback on the higher timeframe, using a 0.7 multiplier on the standard deviation, offering a statistical context for the histogram's values.
How to Use It
Use the histogram to gauge momentum shifts on the selected higher timeframe (e.g., weekly momentum on a daily chart).
Bright colors (green/red) suggest potential overextension or strong trend continuation, useful for timing entries or exits.
Dark colors indicate moderate momentum, often signaling consolidation or early trend development.
The ±0.7 SD bands (gray lines) highlight statistically significant levels, aiding in identifying extremes relative to the past 200 periods of the chosen timeframe.
Originality and Purpose
Unlike standard MACD histograms, this script replicates the Mox-Z Indicator's unique scaling (*3 multiplier) and applies it strictly to higher timeframe data, avoiding current timeframe bias. The addition of Z-score bands provides a statistical edge, making it distinct from typical momentum indicators while maintaining simplicity for practical trading.
Settings
Higher Timeframe: Default is "1W" (weekly), but adjust to any timeframe higher than your chart (e.g., "1D" for daily, "1M" for monthly).
This indicator is ideal for traders seeking a higher timeframe momentum perspective with clear visual cues, without relying on complex multi-indicator setups.
Trend V1(2025 Colorized)Just another way to visualize a trend. It's great for keeping you in a fast trend!
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() .
Auto Trendlines [RG]Auto Trendlines
Overview
Auto Trendlines automatically identifies, draws, and manages dynamic support and resistance trendlines based on pivot points. It continuously monitors price action to validate and update trendlines.
Key Features
Automatically identifies support (green) and resistance (red) trendlines
Validates trendlines against historical price action
Configurable lookback period and maximum active lines
Clean visualization with customizable line widths
How It Works
The indicator detects pivot highs and lows using your specified lookback period
It connects consecutive pivots to create potential trendlines
Lines are extended to the right until a confirmed price break
Older lines are automatically removed when the maximum is reached
Customization Options
Lookback Period: Controls the sensitivity of pivot detection
Maximum Active Lines: Limits the number of trendlines displayed
Line Width: Separate width controls for support and resistance lines
Ideal For
Identifying dynamic support and resistance levels.
Spotting potential reversal zones.
This indicator will help you identify trendlines, which you can then sophisticate and redraw more accurately. Please use this indicator only to identify trendline scenarios. Keep in mind that this is not a buy and sell indicator. Trendline breaks and bounces are not always respected, as prices can turn around at any moment. Happy Trading :)
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() , что делает его надежным для многовременного анализа, хотя производительность может зависеть от доступности данных графика.
SMA Multi-Timeframe Trend Indicator (Enhanced)Here is the description of the "SMA Multi-Timeframe Trend Indicator (Enhanced)" in English, based on the latest version of the code:
Description of the Indicator: SMA Multi-Timeframe Trend Indicator (Enhanced)
Purpose:
The indicator is designed to identify trends based on the price crossing a Simple Moving Average (SMA) on the current timeframe, with additional confirmation of the trend direction across multiple timeframes. It assists traders in finding entry points (Long or Short), displaying signals only at the moment of the first crossing of the candle body through the SMA, avoiding repeated signals until the next opposite crossing.
Indicator Type: Overlay — displayed on top of the price chart.
Key Features:
Entry Signals:
Long (green triangle and "Long" label): Appears when the candle body fully crosses the SMA upward (the candle's low low becomes higher than the SMA) and it is the first crossing after a previous bearish signal or from the chart's start.
Short (red triangle and "Short" label): Appears when the candle body fully crosses the SMA downward (the candle's high high becomes lower than the SMA) and it is the first crossing after a previous bullish signal or from the chart's start.
Signals are shown only once until the next opposite crossing, preventing redundant notifications.
Multi-Timeframe Confirmation:
The indicator analyzes the trend state across 9 timeframes: 1M, 5M, 15M, 30M, 1H, 4H, 8H, 1D, 1W.
For each timeframe, it checks the price position relative to the SMA:
Bullish state (low > SMA) — green color.
Bearish state (high < SMA) — red color.
An entry signal is generated only if all enabled timeframes confirm the trend direction (all bullish for Long, all bearish for Short).
Visualization:
SMA Line: Displayed on the current timeframe chart (green color, RGB: 9, 247, 108, linewidth 1).
Triangles: Green below the candle for Long, red above the candle for Short.
Labels: "Long" (green) or "Short" (red) appear on the last confirmed candle below the chart.
Table: Positioned at the bottom center of the chart, containing 9 cells (one for each timeframe), showing the current state (green or red background).
Customizability:
SMA Length: Users can set the SMA period (default is 20).
Timeframe Selection: Each of the 9 timeframes can be enabled or disabled in the logic settings (default: only 1H enabled).
Alerts:
Two types of notifications are generated:
"Bullish Cross": When the price crosses above the SMA on all enabled timeframes.
"Bearish Cross": When the price crosses below the SMA on all enabled timeframes.
How the Indicator Works:
SMA Calculation:
A Simple Moving Average (SMA) is calculated on the current timeframe with the specified period.
The trend state is determined on each of the 9 timeframes based on the price's position relative to the SMA.
Signal Conditions:
For Long: The low of the current candle (low) crosses the SMA upward (ta.crossover(low, smaCurrent)), and all enabled timeframes show a bullish state.
For Short: The high of the current candle (high) crosses the SMA downward (ta.crossunder(high, smaCurrent)), and all enabled timeframes show a bearish state.
A signal triggers only if the previous signal was in the opposite direction or absent, controlled by the lastSignalWasBullish variable.
Display:
When conditions are met, a triangle and label of the corresponding direction appear on the chart.
The table updates on each candle, reflecting the current state of all timeframes.
Usage:
Timeframe: Suitable for any timeframe, but tested on 1H with all other timeframes disabled.
Default Settings:
smaLength = 20
Only 1H enabled (use1h = true), others disabled (false).
Recommendations:
For more frequent signals, reduce smaLength (e.g., to 10).
To filter noise, enable additional timeframes (e.g., 4H, 1D).
Use alerts for automatic entry point notifications.
Example of Operation:
Scenario on 1H:
The price on the previous bar was below the SMA (high < smaCurrent), and on the current bar, low > smaCurrent. If 1H is the only enabled timeframe, a green triangle and "Long" label appear immediately.
Then the price drops, and high < smaCurrent after crossing downward — a red triangle and "Short" label appear.
Signals do not repeat until the price crosses the SMA in the opposite direction.
Limitations:
If all timeframes are disabled, the indicator will not generate signals (at least one timeframe must be enabled).
On highly volatile markets or with a large smaLength, crossings may be infrequent.
The table always displays the state of all 9 timeframes, even if they are not used in the logic.
Описание индикатора: SMA Multi-Timeframe Trend Indicator (Enhanced)
Назначение:
Индикатор предназначен для определения трендов на основе пересечения цены с простой скользящей средней (SMA) на текущем таймфрейме с дополнительным подтверждением состояния тренда на нескольких таймфреймах. Он помогает трейдерам находить точки входа в позицию (Long или Short), отображая сигналы только в момент первого пересечения тела свечи через SMA, избегая повторных сигналов до следующего противоположного пересечения.
Тип индикатора: Наложение (Overlay) — отображается поверх графика цены.
Основные особенности:
Сигналы входа:
Long (зелёный треугольник и метка "Long"): Появляется, когда тело свечи полностью пересекает SMA вверх (минимум свечи low становится выше SMA) и это первое пересечение после предыдущего медвежьего сигнала или с начала графика.
Short (красный треугольник и метка "Short"): Появляется, когда тело свечи полностью пересекает SMA вниз (максимум свечи high становится ниже SMA) и это первое пересечение после предыдущего бычьего сигнала или с начала графика.
Сигналы отображаются только один раз до следующего противоположного пересечения, что предотвращает избыточные уведомления.
Мультитаймфреймовое подтверждение:
Индикатор анализирует состояние тренда на 9 таймфреймах: 1M, 5M, 15M, 30M, 1H, 4H, 8H, 1D, 1W.
Для каждого таймфрейма проверяется положение цены относительно SMA:
Бычье состояние (low > SMA) — зелёный цвет.
Медвежье состояние (high < SMA) — красный цвет.
Сигнал на вход появляется только если все включённые таймфреймы подтверждают направление тренда (все бычьи для Long, все медвежьи для Short).
Визуализация:
Линия SMA: Отображается на графике текущего таймфрейма (зелёный цвет, RGB: 9, 247, 108, толщина 1).
Треугольники: Зелёные под свечой для Long, красные над свечой для Short.
Метки: "Long" (зелёная) или "Short" (красная) появляются на последней подтверждённой свече внизу графика.
Таблица: Расположена по центру внизу графика, содержит 9 ячеек (по одной для каждого таймфрейма), показывающих текущее состояние (зелёный или красный фон).
Настраиваемость:
Длина SMA: Пользователь может задать период скользящей средней (по умолчанию 20).
Выбор таймфреймов: Каждый из 9 таймфреймов можно включить или выключить в настройках логики (по умолчанию включён только 1H).
Алерты:
Генерируются два типа уведомлений:
"Bullish Cross": Когда цена пересекает SMA вверх на всех включённых таймфреймах.
"Bearish Cross": Когда цена пересекает SMA вниз на всех включённых таймфреймах.
Как работает индикатор:
Расчёт SMA:
На текущем таймфрейме рассчитывается простая скользящая средняя (SMA) с заданным периодом.
На каждом из 9 таймфреймов определяется состояние тренда на основе положения цены относительно SMA.
Условия сигнала:
Для Long: Минимум текущей свечи (low) пересекает SMA вверх (ta.crossover(low, smaCurrent)), и все включённые таймфреймы показывают бычье состояние.
Для Short: Максимум текущей свечи (high) пересекает SMA вниз (ta.crossunder(high, smaCurrent)), и все включённые таймфреймы показывают медвежье состояние.
Сигнал срабатывает только если предыдущий сигнал был противоположным или отсутствовал, что контролируется переменной lastSignalWasBullish.
Отображение:
При выполнении условий на графике появляются треугольник и метка соответствующего направления.
Таблица обновляется на каждой свече, показывая текущее состояние всех таймфреймов.
Использование:
Таймфрейм: Подходит для любого таймфрейма, но протестирован на 1H с отключёнными остальными таймфреймами.
Настройки по умолчанию:
smaLength = 20
Только 1H включён (use1h = true), остальные выключены (false).
Рекомендации:
Для более частых сигналов уменьшите smaLength (например, до 10).
Для фильтрации шума включите дополнительные таймфреймы (например, 4H, 1D).
Используйте алерты для автоматического уведомления о точках входа.
Пример работы:
Сценарий на 1H:
Цена на предыдущем баре была ниже SMA (high < smaCurrent), а на текущем баре low > smaCurrent. Если 1H — единственный включённый таймфрейм, сразу появляется зелёный треугольник и метка "Long".
Затем цена падает, и high < smaCurrent после пересечения вниз — появляется красный треугольник и метка "Short".
Сигналы не повторяются, пока цена не пересечёт SMA в противоположном направлении.
Ограничения:
Если все таймфреймы отключены, индикатор не будет генерировать сигналы (требуется хотя бы один включённый таймфрейм).
На очень волатильных рынках или при большом значении smaLength пересечения могут быть редкими.
Таблица всегда показывает состояние всех 9 таймфреймов, даже если они не используются в логике.
MACD Multi-Timeframe K2Indicator Description: MACD Multi-Timeframe K2
Important! it works best when all timeframes except 1M and 1W on the daily chart are included.
Review
"MACD Multi-Timeframe K2" is a Pine Script v5 indicator designed to monitor convergence crossings and divergences of moving averages (MACDs) on multiple timeframes simultaneously. It provides visual signals on the chart and a dynamic table to help traders identify when the MACD conditions match on selected timeframes, indicating potential bullish or bearish opportunities. This superimposed indicator is ideal for traders who use multi-time frame analysis to confirm trends or reversals.
How it works
MACD calculation : For each timeframe, the indicator calculates the MACD using three components:
Fast EMA : short-term exponential moving average (default length: 12).
Slow EMA : long-term exponential moving average (default length: 26).
Signal line : 9-period EMA of the MACD line (fast EMA - slow EMA).
Crossover detection :
A bullish signal occurs when the MACD line crosses the signal line from bottom to top.
A bearish signal occurs when the MACD line crosses the signal line from bottom to top.
The logic of working with multiple timeframes: the indicator checks the MACD intersections on 11 timeframes (1M, 5M, 15M, 30M, 1H, 2H, 4H, 8H, 12H, 1D, 1W) and gives a signal only when all the included timeframes line up in the same direction (all bullish or all bearish).
Visualization :
Triangles : green triangles under the bars are bullish signals, red triangles above the bars are bearish signals.
Labels: The labels "Long" (green) or "Short" (red) appear on the last confirmed bar when the conditions match.
Table : The dynamic table in the lower central part of the chart shows the MACD status (green for bullish trend, red for bearish) for each included timeframe.
Entrances
MACD Settings :
The length of the fast moving average : the length of the fast EMA (default: 12).
The length of the slow EMA: the length of the slow EMA (default: 26).
The length of the signal : the length of the signal line EMA (default: 9).
Timeframe logic settings : switching timeframes involved in the logic of the signal:
Use 1M, 5M, 15M, 30M, 1H, 2H, 4H, 8H, 12H, 1D, 1W (all default values are true).
Timeframe visualization settings : switching timeframes displayed in the table:
Show 1M, 5M, 15M, 30M, 1H, 2H, 4H, 8H, 12H, 1D, 1W (all default values are true).
Functions
Configurable time frames: Enable or disable specific time frames for independent signal generation and visualization.
Dynamic Table: Adjusts the number of columns based on visible timeframes, displaying only selected columns with real-time color updates (green = bullish, red = bearish).
Alerts : Built-in alert conditions when all included timeframes become bullish ("All Timeframes Bullish") or bearish ("All Timeframes Bearish").
Overlay design: Signals are displayed directly on the price chart, making it easier to integrate with other indicators or price action analysis.
Using
Configure :
Add the indicator to your TradingView chart.
Adjust the length of the MACD (fast, slow, signal) in the settings according to your trading strategy.
Enable/disable timeframes in the "Timeframe Logic Settings" section to determine which of them trigger the signals.
Enable/disable timeframes in the Timeframe Visualization Settings section to customize the table display.
Interpretation of signals :
Bullish (long) : The green triangle below the band and the "Long" label indicate that the MACD line has crossed the signal line from top to bottom on all included timeframes. Consider this as a potential buy signal.
Bearish (short) : The red triangle above the band and the "short" label indicate that the MACD line has crossed the signal line from below on all included timeframes. Consider this as a potential sell signal.
Table : Keep an eye on the table to see the MACD status across all time intervals. Green cells suggest bullish momentum, red cells suggest bearish momentum.
Testing :
Use lower timeframes (e.g., 5M, 15M) for more frequent signals, or higher timeframes (e.g., 1D, 1W) for stronger trend confirmation.
Experiment with the MACD settings (for example, 5, 13, 3) for faster or slower signal generation.
Notes
Performance : When all 11 timeframes are enabled, the indicator makes several calls to request.security(), which may cause a slight delay on very low timeframes of the chart (for example, 1M). For optimal performance, test at 5M or higher or disable unused timeframes.
Signal frequency : MACD crossings tend to occur less frequently than some other indicators (such as the RSI). Adjust the MACD length or timeframe selection to balance sensitivity and reliability.
Setup: If desired, the script can be expanded with additional functions, such as stop loss/take profit fields (as in previous versions of Stoch RSI).
Examples of scenarios
Bullish setup : on the 15-month chart, all included timeframes (for example, 1M, 5M, 15M, 1H) are displayed in the table in green, a green triangle appears under the bar, and the "Long" label confirms the signal.
Bearish setup: on the 1H chart, all included timeframes (for example, 1H, 4H, 1D) turn red, a red triangle appears above the band, and the "Short" label signals a potential downtrend.
Описание индикатора: MACD Multi-Timeframe K2
Важно! работает лучше всего когда включены все таймфреймы кроме 1M и 1W на дневном графике.
Обзор
"MACD Multi-Timeframe K2" - это индикатор Pine Script v5, разработанный для мониторинга пересечений конвергенции и расхождения скользящих средних (MACD) на нескольких таймфреймах одновременно. Он обеспечивает визуальные сигналы на графике и динамическую таблицу, чтобы помочь трейдерам определить, когда условия MACD совпадают на выбранных таймфреймах, указывая на потенциальные бычьи или медвежьи возможности. Этот наложенный индикатор идеально подходит для трейдеров, которые используют многотаймфреймовый анализ для подтверждения трендов или разворотов.
Как это работает
Расчет MACD : для каждого таймфрейма индикатор рассчитывает MACD, используя три компонента:
Быстрая EMA : краткосрочная экспоненциальная скользящая средняя (длина по умолчанию: 12).
Медленная EMA : долгосрочная экспоненциальная скользящая средняя (длина по умолчанию: 26).
Сигнальная линия : 9-периодная EMA линии MACD (быстрая EMA - медленная EMA).
Обнаружение кроссовера :
Бычий сигнал возникает, когда линия MACD пересекает сигнальную линию снизу вверх.
Медвежий сигнал возникает, когда линия MACD пересекает сигнальную линию снизу вверх.
Логика работы с несколькими таймфреймами : индикатор проверяет пересечения MACD на 11 таймфреймах (1M, 5M, 15M, 30M, 1H, 2H, 4H, 8H, 12H, 1D, 1W) и подает сигнал только тогда, когда все включенные таймфреймы выстраиваются в одном направлении (все бычьи или все медвежьи).
Визуализация :
Треугольники : зеленые треугольники под столбиками — бычьи сигналы, красные треугольники над столбиками — медвежьи сигналы.
Метки : метки «Длинный» (зеленый) или «Короткий» (красный) появляются на последнем подтвержденном баре, когда условия совпадают.
Таблица : динамическая таблица в нижней центральной части графика показывает состояние MACD (зеленый — для бычьего тренда, красный — для медвежьего) для каждого включенного таймфрейма.
Входы
Настройки MACD :
Длина быстрой скользящей средней : длина быстрой EMA (по умолчанию: 12).
Длина медленной EMA: длина медленной EMA (по умолчанию: 26).
Длина сигнала : длина сигнальной линии EMA (по умолчанию: 9).
Настройки логики таймфрейма : переключение таймфреймов, участвующих в логике сигнала:
Используйте 1M, 5M, 15M, 30M, 1H, 2H, 4H, 8H, 12H, 1D, 1W (все значения по умолчанию: true).
Настройки визуализации таймфрейма : переключение таймфреймов, отображаемых в таблице:
Показать 1M, 5M, 15M, 30M, 1H, 2H, 4H, 8H, 12H, 1D, 1W (все значения по умолчанию: true).
Функции
Настраиваемые временные рамки : включение или отключение определенных временных рамок для независимой генерации и визуализации сигнала.
Динамическая таблица : регулирует количество столбцов на основе видимых таймфреймов, отображая только выбранные столбцы с обновлением цвета в реальном времени (зеленый = бычий, красный = медвежий).
Оповещения : встроенные условия оповещения, когда все включенные таймфреймы становятся бычьими («All Timeframes Bullish») или медвежьими («All Timeframes Bearish»).
Дизайн наложения : сигналы отображаются непосредственно на ценовом графике, что упрощает интеграцию с другими индикаторами или анализом ценового действия.
Использование
Настраивать :
Добавьте индикатор на свой график TradingView.
Отрегулируйте длину MACD (быстрая, медленная, сигнальная) в настройках в соответствии с вашей торговой стратегией.
Включите/отключите таймфреймы в разделе «Настройки логики таймфрейма», чтобы определить, какие из них запускают сигналы.
Включите/отключите таймфреймы в разделе «Настройки визуализации таймфреймов», чтобы настроить отображение таблицы.
Интерпретация сигналов :
Бычий (длинный) : зеленый треугольник под полосой и метка «Длинный» указывают на то, что линия MACD пересекла сигнальную линию сверху вниз на всех включенных таймфреймах. Рассматривайте это как потенциальный сигнал на покупку.
Медвежий (короткий) : Красный треугольник над полосой и метка «короткий» указывают на то, что линия MACD пересекла сигнальную линию снизу на всех включенных таймфреймах. Рассматривайте это как потенциальный сигнал на продажу.
Таблица : Следите за таблицей, чтобы увидеть состояние MACD по всем временным интервалам. Зеленые ячейки предполагают бычий импульс, красные ячейки предполагают медвежий импульс.
Тестирование :
Используйте более низкие таймфреймы (например, 5M, 15M) для более частых сигналов или более высокие таймфреймы (например, 1D, 1W) для более сильного подтверждения тренда.
Поэкспериментируйте с настройками MACD (например, 5, 13, 3) для более быстрой или медленной генерации сигнала.
Примечания
Производительность : при включении всех 11 таймфреймов индикатор делает несколько вызовов request.security() , что может вызвать небольшую задержку на очень низких таймфреймах графика (например, 1M). Для оптимальной производительности тестируйте на 5M или выше или отключите неиспользуемые таймфреймы.
Частота сигнала : пересечения MACD, как правило, происходят реже, чем некоторые другие индикаторы (например, RSI). Отрегулируйте длину MACD или выбор таймфрейма, чтобы сбалансировать чувствительность и надежность.
Настройка : При желании скрипт можно расширить дополнительными функциями, такими как поля стоп-лосса/тейк-профита (как в предыдущих версиях Stoch RSI).
Примеры сценариев
Бычья установка : на 15-месячном графике все включенные таймфреймы (например, 1M, 5M, 15M, 1H) отображаются в таблице зеленым цветом, под полосой появляется зеленый треугольник, а метка «Длинная» подтверждает сигнал.
Медвежья установка : на графике 1H все включенные таймфреймы (например, 1H, 4H, 1D) становятся красными, над полосой появляется красный треугольник, а метка «Short» сигнализирует о потенциальном нисходящем тренде.
Apex Trend SniperApex Trend Sniper - Advanced Trend Trading Strategy (Pine Script v5)
🚀 Overview
The Apex Trend Sniper is an advanced, fully automated trend-following strategy designed for crypto, forex, and stock markets. It combines momentum analysis, trend confirmation, volume validation, and adaptive risk management to capture high-probability trades. Unlike many strategies, this system is 100% non-repainting, ensuring reliable backtesting and real-time execution.
🔹 How This Strategy Works (Indicator Mashup)
The Apex Trend Sniper leverages multiple indicators to create a robust multi-layered confirmation system:
1️⃣ Trend Identification with RMI & McGinley Dynamic
📌 What It Does: Identifies the dominant trend and prevents trading against market conditions.
✔ McGinley Dynamic Baseline:
A highly adaptive moving average that dynamically reacts to price changes.
Price above the baseline = bullish trend.
Price below the baseline = bearish trend.
✔ Relative Momentum Index (RMI):
A refined Relative Strength Index (RSI) that filters out weak trends.
Above 50 = bullish confirmation.
Below 50 = bearish confirmation.
2️⃣ Trend Strength Confirmation with Vortex Indicator
📌 What It Does: Confirms that a detected trend is strong and valid.
✔ Vortex Indicator (VI):
Measures directional movement and trend strength.
A bullish trend is confirmed when VI+ > VI-.
A bearish trend is confirmed when VI- > VI+.
3️⃣ Volume Spike Detection for Trade Validation
📌 What It Does: Ensures that trades are placed only during strong market participation.
✔ Volume Confirmation:
A trade signal is only valid if volume spikes above the moving average.
Helps avoid false breakouts and weak trends.
4️⃣ Entry & Exit Strategy with Multi-Level Take Profits
📌 What It Does: Enters trades only when all conditions align and manages risk effectively.
✔ Entry Conditions (All must be met):
Price is above/below McGinley Dynamic.
RMI confirms trend direction.
Vortex indicator confirms trend strength.
Volume spike is detected.
✔ Exit Conditions:
Take Profit 1 (TP1): Secures 50% of the position at the first price target.
Take Profit 2 (TP2): Closes the remaining position at the second price target.
Exit Before Reversal: If an opposite trend signal appears, the position is closed early.
Trend Weakness Exit: If momentum weakens, the trade is exited automatically.
📌 Strategy Customization
🔧 Fully customizable to fit any trading style:
✔ McGinley Dynamic Length – Adjust baseline sensitivity.
✔ RMI & Vortex Settings – Fine-tune momentum filters.
✔ Volume Thresholds – Modify spike detection for better accuracy.
✔ Take Profit Levels – Set TP1 & TP2 based on market volatility.
📢 How to Use Apex Trend Sniper
1️⃣ Apply the strategy to any TradingView chart.
2️⃣ Customize the settings to fit your trading approach.
3️⃣ Use the backtest report to evaluate performance.
4️⃣ Monitor the dashboard to track real-time trade execution.
📌 Recommended Timeframes & Markets
✔ Best Markets:
✅ Crypto (BTC, ETH, SOL, etc.)
✅ Forex (EUR/USD, GBP/USD, JPY/USD, etc.)
✅ Stocks & Indices (S&P500, NASDAQ, etc.)
✔ Optimal Timeframes:
✅ Swing Trading: 1H – 4H – 1D
✅ Intraday & Scalping: 5M – 15M – 30M
📌 Backtest Settings for Realistic Performance
✔ Initial Capital: $1000 (or more for scaling).
✔ Commission: 0.05% (to simulate exchange fees).
✔ Slippage: 1-2 (to account for execution delay).
✔ Date Range: Test across different market conditions.
📢 TradingView Disclaimer
📌 This script is for educational purposes only and does not constitute financial advice. Trading carries significant risk, and past performance does not guarantee future results. Always test strategies thoroughly before applying them in a live market. Users are responsible for their own trading decisions.
🚀 Why Choose Apex Trend Sniper?
✅ Non-Repainting – No misleading signals.
✅ Multi-Layer Confirmation – Reduces false trades.
✅ Volume & Trend Strength Validation – Ensures high-probability entries.
✅ Adaptive Risk Management – Secures profits while maximizing trends.
✅ Versatile Across Markets & Timeframes – Works for crypto, forex, and stocks.
📢 Start Trading Smarter with Apex Trend Sniper! 🚀
🔗 Try it now on TradingView and optimize your trend-following strategy. 🔥
Rainbow Bands🌈 Rainbow Bands Indicator 🌈
The Rainbow Bands indicator is a dynamic tool designed to help traders identify potential trends with ease. It uses a series of 15 Exponential Moving Averages (EMAs) ranging from 9 to 51 periods to create a colorful representation of market momentum. When the EMAs align to form a rainbow 🌈, it signals a potential uptrend, while an upside-down rainbow 🌧️ suggests a possible downtrend. This intuitive visual layout helps traders quickly assess the market direction, reducing the need for multiple indicators.
📊 How It Works 📊
The Rainbow Bands indicator smooths out price fluctuations by blending shorter and longer-term EMAs. As the EMAs stack in order from short to long, they create a "rainbow" effect that is easy to spot on the chart. This method not only offers trend confirmation but also shows market strength and potential reversal points. Whether you're a scalper or swing trader, the Rainbow Bands add another layer of clarity to your trading decisions.
🚀 How To Use It 🚀
To step up your trading game, simply use the Rainbow Bands as a confirmation tool in your strategies. Look for the rainbow pattern to indicate a strong uptrend and the upside-down rainbow to highlight possible downtrends. By incorporating this indicator into your toolkit, you'll have a visual, reliable source of confirmation that can help improve your win rate.
Add it to your charts and see how it elevates your trading strategy today!
Fractal BoxesBased on the Nephew Sam Range Boxes indicator, this super charged version adds additional session options and a more customized experience.
BB Session RangesBB Session Ranges Indicator
Overview
The Bender Bot Session Ranges indicator is a powerful tool for traders who want to visualize and analyze important market sessions throughout the trading day. This indicator identifies and tracks price ranges during specific time periods, helping you spot potential trading opportunities based on session breakouts, retests, and range comparisons.
Key Features
• Multiple Session Tracking: Monitor up to 6 different time-based ranges simultaneously (pre-configured for NY AM Open, NY PM Open, Lunch, Premarket, Midnight Open, and a custom session).
• Range Visualization: Clearly displays high and low boundaries for each session with customizable colors and line styles.
• Historical Comparison: Tracks and displays the average size of ranges over time, helping you identify when current ranges are larger or smaller than typical.
• Flexible Time Settings: Easily configure exact session times based on your trading schedule and preferred markets.
• Range Extension Options: Extend range boundaries by bars, days, or weeks to track the longer-term influence of session ranges.
• Sidecar Information Display: Optional labels show range details, including size, percentage of average, and dollar value.
How It Works
The indicator identifies specific time-based sessions (for example, the first 5 minutes of the NY market open) and tracks the high and low prices established during these periods. Once a session is complete, the range boundaries are plotted on your chart and can be extended for further analysis. The indicator calculates the current range size and compares it to historical averages, giving you context for the day’s market behavior.
Sidecar Functionality
The sidecar feature is a key aspect of this indicator that helps keep your charts clean and organized. Instead of cluttering your price action with labels and annotations directly on the ranges, the sidecar system:
• Creates a dedicated information panel offset from the price action.
• Connects to ranges with discreet connecting lines.
• Displays key statistics like range size, dollar value, and percentage of average.
• Can be positioned at custom distances from the main chart (measured in bars).
• Allows you to see important data without interfering with your price analysis.
• Can be completely disabled when you prefer minimal chart elements.
• Helps maintain visual clarity even when tracking multiple sessions simultaneously.
This design philosophy puts trader experience first by separating information display from price action analysis, giving you the best of both worlds: clean charts and detailed information.
Setup Guide
1. Choose Your Sessions: Enable or disable each of the six available ranges by setting the Max Ranges to Plot parameter (use 0 to disable a range).
2. Configure Session Times: Set exact times for each range using standard 24-hour format (for example, 0930-0935 for 9:30-9:35 AM).
3. Customize Display: Select colors, line widths, and information display options for each range.
4. Set Extension Parameters: Choose how far to extend range lines (by a number of bars, days, or weeks, or select Always for continuous extension).
5. Configure Sidecar Labels: Set the offset for the information displays (use 0 to disable sidecar labels entirely).
Trading Applications
• Identify potential support and resistance levels based on session highs and lows.
• Compare current session ranges to historical averages to gauge volatility.
• Look for breakouts from established session ranges.
• Use range extensions to anticipate potential price targets.
• Monitor multiple session ranges to identify pattern correlations.
Advanced Usage
The indicator includes fields that help you assess range size relative to past performance, including dollar value calculations. This can be particularly useful for position sizing and risk management when trading breakouts from these ranges.
Future Development
We’re actively working on expanding this indicator to include robust strategy and alert functionality. This will allow traders to:
• Backtest trading strategies based on session range breakouts and retests.
• Customize entry, exit, and risk management parameters.
• Receive real-time alerts when price interacts with significant range levels.
• Set conditional alerts based on range size compared to historical averages.
• Automate trading decisions based on your specific session-based criteria.
If these strategy and alert features would be valuable for your trading, please let us know in the comments. Your feedback directly influences our development priorities and helps us create tools that best serve the trading community.
Notes
• All times are based on the America/New_York timezone.
• The indicator dynamically adjusts to different timeframes, providing consistent results whether you’re viewing 1-minute or daily charts.
• Range calculations are based on the highs and lows established during the defined sessions.
RSI X WMA X EMA by Brian LeThis powerful indicator combines three popular tools — RSI (Relative Strength Index), EMA (Exponential Moving Average), and WMA (Weighted Moving Average) — to help traders identify potential reversals, overbought/oversold zones, and regular divergences on the RSI chart.
✅ Key Features:
📊 RSI, EMA, and WMA plotted together for clear visual comparison.
🟢 "RSI Cross Above EMA below WMA" Signal: Suggests a potential bullish reversal when RSI crosses above EMA but remains under WMA.
🔴🟢 Highlighted Special Zones:
RSI < WMA < Lower Threshold → Bearish pressure zone.
RSI > WMA > Upper Threshold → Strong bullish zone.
🌈 Dynamic RSI Background Zones:
Colored areas indicate when RSI enters extreme zones (e.g., >80 or <20).
🔍 Regular Divergence Detection:
Bullish Divergence: Price forms lower lows while RSI forms higher lows.
Bearish Divergence: Price forms higher highs while RSI forms lower highs.
Toggle divergence detection on/off as needed.
🔔 Built-in Alert Conditions:
Alerts trigger when regular bullish or bearish divergence is found.
⚙️ Fully Customizable:
Set RSI, EMA, WMA lengths.
Adjust thresholds for zone highlighting.
Enable or disable divergence detection as desired.
Money printer machine update - By Farshid Ehsani]Ready to take your trend-following strategy to the next level?
Say hello to Zero Lag Trend Signals, a precision-engineered Pine Script™ indicator designed to eliminate lag and provide rapid trend insights across multiple timeframes. 💡 This tool blends zero-lag EMA (ZLEMA) logic with volatility bands, trend-shift markers, and dynamic alerts. The result? Timely signals with minimal noise for clearer decision-making, whether you're trading intraday or on longer horizons
How It Works 🧠
The script calculates the zero-lag EMA (ZLEMA) by compensating for data lag, giving traders more responsive moving averages. It checks for volatility shifts using the Average True Range (ATR), multiplied to create upper and lower deviation bands. If the price crosses above or below these bands, it marks the start of new trends. Additionally, the indicator aggregates trend data from up to five configurable timeframes and displays them in a neat summary table. This helps you confirm trends across different intervals—ideal for multi-timeframe analysis. The visual signals include upward and downward arrows on the chart, denoting potential entries or exits when trends align across timeframes. Traders can use these cues to make well-timed trades and avoid lag-related pitfalls.
Auto TrendLines [TradingFinder] Support Resistance Signal Alerts🔵 Introduction
The trendline is one of the most essential tools in technical analysis, widely used in financial markets such as Forex, cryptocurrency, and stocks. A trendline is a straight line that connects swing highs or swing lows and visually indicates the market’s trend direction.
Traders use trendlines to identify price structure, the strength of buyers and sellers, dynamic support and resistance zones, and optimal entry and exit points.
In technical analysis, trendlines are typically classified into three categories: uptrend lines (drawn by connecting higher lows), downtrend lines (formed by connecting lower highs), and sideways trends (moving horizontally). A valid trendline usually requires at least three confirmed touchpoints to be considered reliable for trading decisions.
Trendlines can serve as the foundation for a variety of trading strategies, such as the trendline bounce strategy, valid breakout setups, and confluence-based analysis with other tools like candlestick patterns, divergences, moving averages, and Fibonacci levels.
Additionally, trendlines are categorized into internal and external, and further into major and minor levels, each serving unique roles in market structure analysis.
🔵 How to Use
Trendlines are a key component in technical analysis, used to identify market direction, define dynamic support and resistance zones, highlight strategic entry and exit points, and manage risk. For a trendline to be reliable, it must be drawn based on structural principles—not by simply connecting two arbitrary points.
🟣 Selecting Pivot Types Based on Trend Direction
The first step is to determine the market trend: uptrend, downtrend, or sideways.
Then, choose pivot points that match the trend type :
In an uptrend, trendlines are drawn by connecting low pivots, especially higher lows.
In a downtrend, trendlines are formed by connecting high pivots, specifically lower highs.
It is crucial to connect pivots of the same type and structure to ensure the trendline is valid and analytically sound.
🟣 Pivot Classification
This indicator automatically classifies pivot points into two categories :
Major Pivots :
MLL : Major Lower Low
MHL : Major Higher Low
MHH : Major Higher High
MLH : Major Lower High
These define the primary structure of the market and are typically used in broader structural analysis.
Minor Pivots :
mLL: minor Lower Low
mHL: minor Higher Low
mHH: minor Higher High
mLH: minor Lower High
These are used for drawing more precise trendlines within corrective waves or internal price movements.
Example : In a downtrend, drawing a trendline from an MHH to an mHH creates structural inconsistency and introduces noise. Instead, connect points like MHL to MHL or mLH to mLH for a valid trendline.
🟣 Drawing High-Precision Trendlines
To ensure a reliable trendline :
Use pivots of the same classification (Major with Major or Minor with Minor).
Ensure at least three valid contact points (three touches = structural confirmation).
Draw through candles with the least deviation (choose wicks or bodies based on confluence).
Preferably draw from right to left for better alignment with current market behavior.
Use parallel lines to turn a single trendline into a trendline zone, if needed.
🟣 Using Trendlines for Trade Entries
Bounce Entry: When price approaches the trendline and shows signs of reversal (e.g., a reversal candle, divergence, or support/resistance), enter in the direction of the trend with a logical stop-loss.
Breakout Entry: When price breaks through the trendline with strong momentum and a confirmation (such as a retest or break of structure), consider trading in the direction of the breakout.
🟣 Trendline-Based Risk Management
For bounce entries, the stop-loss is placed below the trendline or the last pivot low (in an uptrend).
For breakout entries, the stop-loss is set behind the breakout candle or the last structural level.
A broken trendline can also act as an exit signal from a trade.
🟣 Combining Trendlines with Other Tools (Confluence)
Trendlines gain much more strength when used alongside other analytical tools :
Horizontal support and resistance levels
Moving averages (such as EMA 50 or EMA 200)
Fibonacci retracement zones
Candlestick patterns (e.g., Engulfing, Pin Bar)
RSI or MACD divergences
Market structure breaks (BoS / ChoCH)
🔵 Settings
Pivot Period : This defines how sensitive the pivot detection is. A higher number means the algorithm will identify more significant pivot points, resulting in longer-term trendlines.
Alerts
Alert :
Enable or disable the entire alert system
Set a custom alert name
Choose how often alerts trigger (every time, once per bar, or on bar close)
Select the time zone for alert timestamps (e.g., UTC)
Each trendline type supports two alert types :
Break Alert : Triggered when price breaks the trendline
React Alert : Triggered when price reacts or bounces off the trendline
These alerts can be independently enabled or disabled for all trendline categories (Major/Minor, Internal/External, Up/Down).
Display :
For each of the eight trendline types, you can control :
Whether to show or hide the line
Whether to delete the previous line when a new one is drawn
Color, line style (solid, dashed, dotted), extension direction (e.g., right only), and width
Major lines are typically thicker and more opaque, while minor lines appear thinner and more transparent.
All settings are designed to give the user full control over the appearance, behavior, and alert system of the indicator, without requiring manual drawing or adjustments.
🔵 Conclusion
A trendline is more than just a line on the chart—it is a structural, strategic, and flexible tool in technical analysis that can serve as the foundation for understanding price behavior and making trading decisions. Whether in trending markets or during corrections, trendlines help traders identify market direction, key zones, and high-potential entry and exit points with precision.
The accuracy and effectiveness of a trendline depend on using structurally valid pivot points and adhering to proper market logic, rather than relying on guesswork or personal bias.
This indicator is built to solve that exact problem. It automatically detects and draws multiple types of trendlines based on actual price structure, separating them into Major/Minor and Internal/External categories, and respecting professional analytical principles such as pivot type, trend direction, and structural location.
Efenhel Indicator – Trend & Trade Zone DetectionEfenhel Indicator – Trend & Trade Zone Detection
🔹 Introduction
The Efenhel Indicator is a powerful trend-following tool designed to help traders identify high-probability buy and sell zones by analyzing market momentum across multiple timeframes. It is particularly useful for traders who rely on trend confirmation, support/resistance levels, and market momentum tracking to make informed trading decisions.
This indicator employs a customized dual-trend smoothing algorithm to highlight trend shifts with high accuracy, eliminating market noise and providing clear entry and exit signals.
📌 Core Features
1️⃣ Dynamic Trend Tracking (Dual Smoothing Algorithm)
The indicator calculates two trend lines:
✔ Short-Term Trend (50-period smoothing)
Reacts quickly to price changes, capturing early trend shifts.
Useful for identifying momentum bursts and potential trend reversals.
✔ Long-Term Trend (150-period smoothing)
Provides a broader market perspective to confirm trend direction.
Acts as a filter to reduce false signals from short-term noise.
Trading Principle:
Bullish Trend: When the short-term trend crosses above the long-term trend → Potential Buy Zone.
Bearish Trend: When the short-term trend crosses below the long-term trend → Potential Sell Zone.
2️⃣ Automated Buy & Sell Zone Identification
To make trade opportunities more visible, the indicator dynamically marks buy and sell zones with color-coded labels and shaded regions.
🔹 Buy Zone (Bullish Confirmation)
Triggered when the short-term trend crosses above the long-term trend.
A blue-shaded area appears below the price to highlight an optimal entry zone.
A label is placed on the chart displaying the entry price for reference.
🔻 Sell Zone (Bearish Confirmation)
Triggered when the short-term trend crosses below the long-term trend.
A purple-shaded area appears above the price, signaling a potential exit or short-selling opportunity.
A label is placed on the chart displaying the exit price for reference.
3️⃣ Real-Time Market Insights with Info Table
To enhance usability, the indicator features a real-time info table that provides critical trade insights at a glance. This allows traders to make quick and informed decisions.
📌 Data Points Included in the Info Table:
1️⃣ BUY Price Area – The last confirmed buy signal price.
2️⃣ SELL Price Area – The last confirmed sell signal price.
3️⃣ Current Price – Live price update for quick reference.
4️⃣ % Profit/Loss Calculation – Shows how much the price has changed since the last buy/sell signal.
5️⃣ Time Since Last Signal – Displays the number of candles that have passed since the last buy/sell event, helping traders gauge momentum shifts.
4️⃣ Automatic Trend Change Alerts (🚨 Stay Ahead of the Market!)
This indicator is equipped with alert conditions to notify traders whenever a trend shift occurs.
🚀 How It Works:
When the short-term trend crosses above the long-term trend, an alert is triggered for a BUY opportunity.
When the short-term trend crosses below the long-term trend, an alert is triggered for a SELL opportunity.
💡 No need to constantly monitor the charts! Simply enable alerts and receive notifications when a new trading opportunity arises.
📈 How to Use the Efenhel Indicator?
🔹 1. Trend Confirmation Strategy
Use the trend shift signals to confirm market direction before entering a trade.
For long trades, enter when the short-term trend crosses above the long-term trend.
For short trades, enter when the short-term trend crosses below the long-term trend.
🔹 2. Support & Resistance Zone Validation
Use buy/sell shaded areas as dynamic support and resistance zones.
Combine with candlestick patterns or other indicators (e.g., RSI, MACD) for stronger confluence.
🔹 3. Momentum & Trend Strength Tracking
Pay attention to the info table to track market conditions and trade performance.
Monitor the time elapsed since the last signal to assess momentum sustainability.
⚠️ Important Notes
1️⃣ This script is invite-only and requires authorization to access.
2️⃣ The Efenhel Indicator is designed for educational purposes and should not be considered financial advice.
3️⃣ Always backtest and combine it with risk management strategies before live trading.
💡 Why Use the Efenhel Indicator?
✅ Advanced Trend Tracking – Uses dual-trend smoothing for superior accuracy.
✅ Clear Buy & Sell Zones – Color-coded labels and shaded areas for easy trade identification.
✅ Real-Time Info Table – Provides quick insights into price action and market trends.
✅ Automated Alerts – Stay notified of trend shifts without constantly checking charts.
✅ TradingView Compliant – No ads, no promotions, just pure value for traders.
Final Thoughts
The Efenhel Indicator is a high-precision trading tool that enhances trend detection, market analysis, and trade execution. Whether you’re a day trader, swing trader, or long-term investor, this indicator provides actionable insights to help you navigate the markets with confidence.
🚀 Ready to improve your trading strategy? Apply the Efenhel Indicator and take your analysis to the next level!
HOSSA High-Low LevelsHOSSA High-Low Levels – How It Works and How to Use It
The HOSSA High-Low Levels indicator gives you three different ways to plot key price levels on your chart, all based on a higher timeframe candle you select. It can help you spot important support and resistance zones, potential expansion levels, or key reference points (high, low, open, close) to aid in your technical analysis.
1. Modes of Operation
Resistance
In this mode, the indicator measures the range between the previous candle’s high and low (on your chosen higher timeframe).
It then projects multiple lines above and below that range (both “positive” and “negative” expansions).
This allows you to visualize potential resistance/support areas at intervals like +25%, +50%, +100%, -25%, -50%, etc., relative to that candle’s range.
Fibonacci
This mode also takes the candle’s high and low, then applies Fibonacci retracement and extension levels (including negative extensions).
You’ll see levels such as 0.236, 0.382, 0.5, 0.618, 1.272, 1.618, and more plotted on your chart.
These can be useful for identifying potential reversal or continuation zones based on Fibonacci theory.
High-Low-Open-Close
In this simpler mode, the script plots just four lines at the higher timeframe candle’s high, low, open, and close.
This gives you clean reference levels for intraday trading or any lower timeframe analysis.
2. Selecting Your Higher Timeframe
Higher Timeframe Input: The script uses the high, low, open, and close of the candle from the timeframe you choose (default is 240 minutes, i.e., 4 hours).
These reference points form the basis of how the indicator calculates its lines in each mode.
3. How to Use It in Your Analysis
Detect Potential Support/Resistance
In Resistance or Fibonacci mode, look for price reactions around these plotted lines. If price stalls or reverses, those levels may act as support or resistance.
Identify Trade Targets and Stop Areas
Projected lines (especially in Resistance or Fibonacci mode) can serve as logical areas for placing stop-loss or take-profit orders.
Combine with Price Action
If using High-Low-Open-Close, you might watch for breakouts or bounces near the higher timeframe candle’s open/close.
Combining these key levels with candlestick patterns or volume can enhance your conviction for entries or exits.
Multi-Timeframe Context
While your main chart might be on a shorter timeframe (e.g., 15 minutes), the lines from a higher timeframe candle (e.g., 4 hours) add valuable “bigger picture” context to refine your trades.
4. Tips for Best Practice
Experiment with Different Timeframes: If the 4-hour candle levels aren’t aligning well with your style, consider daily or weekly candles to see broader market structure.
Color Coding: The script automatically colors lines based on their significance in each mode (e.g., highs in one color, lows in another). This makes it easier to quickly identify critical price references.
Alert Combinations: Although this script doesn’t directly create alerts, you can combine it with TradingView’s alert system (e.g., “Crossing” a plotted level) to get notified if price tests a key zone.
By using HOSSA High-Low Levels, you’ll have a flexible tool to easily project important price lines on your chart – whether those lines are expansions of a range, Fibonacci retracements and extensions, or simply the previous candle’s high, low, open, and close. This can help you trade more confidently by giving you clear, higher timeframe reference points.
Request to Share My Work
Dear Users,
I kindly ask for your support in sharing my work with your friends and networks. Every like, share, or recommendation is extremely valuable to me and helps reach a wider audience.
I would be immensely grateful for any form of support and engagement! Thanks to your help, I can continue developing this project and bring more ideas to life.
With sincere appreciation,
Supertrend + MACD with Advanced Filters & TF OverviewDetailed Guide
1. Overview
This indicator combines Supertrend and MACD with several advanced filters and a comprehensive multi-timeframe overview. In addition to the standard signals, it now includes:
Advanced Filters:
Dynamic Supertrend Factor: Adjusts the base factor based on current ATR relative to its SMA.
MACD Crossover Signal: Detects bullish and bearish crossovers.
Multi-Timeframe (MTF) Filter: Uses a higher timeframe’s SMA to confirm the trend.
Custom ADX Filter: Ensures the market is trending (using a custom ADX calculation).
Volume Filter: Confirms that the move is supported by higher-than-average volume.
Timeframe Overview Table:
A new table is displayed on the chart (bottom-left) that shows the status of several timeframes (5M, 15M, 1H, 4H, 1D, 1W, M). For each enabled timeframe, the table shows:
Column 0: The timeframe label with its trend status ("Bullish" or "Bearish") in white text, left-aligned. The background is green if bullish and red if bearish.
Column 1: A fixed black background cell that displays an icon:
A green checkmark ("✔") if the current bar’s range has touched the EMA5.
A red cross ("❌") if it has not.
Column 2: The EMA5 status text ("EMA5: Touched" or "EMA5: Not Touched") in white text, left-aligned, with the same background color as column 0.
Overall TF Status Label:
When a Supertrend alert (bullish or bearish) is triggered, a label appears above the bar showing a concatenated string of each enabled timeframe’s status. This string summarizes the trend and EMA5 status for each timeframe.
New Toggle for 5M Timeframe:
In addition to the previously available timeframes, you can now also enable/disable a 5M timeframe overview.
2. How It Works
Supertrend & MACD Signal Generation:
The core logic uses ATR-based calculations for the Supertrend and standard MACD crossovers. Additional filters (MTF, ADX, volume) ensure that signals are only generated when all conditions are met.
Timeframe Overview:
The script uses the request.security function to fetch the EMA5, close, low, and high for each specified timeframe. It then determines:
Trend: Whether the close is above (Bullish) or below (Bearish) the EMA5.
EMA5 Touch: Whether the current bar’s low–high range contains the EMA5.
These statuses are then displayed in a table with three columns. The table is built dynamically based on which timeframes are enabled via the toggle inputs.
Visual Enhancements:
Column 1 Centering and Styling:
Column 1 is fixed with a black background and its text (the icon) is centered. It shows a green check if the timeframe’s EMA5 is touched, or a red cross if not.
Overall Status Label:
This label is updated on the chart whenever a Supertrend alert is triggered, providing an at-a-glance summary of the multi-timeframe outlook.
3. User Options
Supertrend Settings:
ATR Period: Determines the ATR calculation period.
Base Factor: Multiplies the ATR for offset calculation.
Dynamic Factor Toggle: When enabled, the factor adapts to volatility.
MACD Settings:
Standard inputs for fast MA, slow MA, and signal smoothing.
Multi-Timeframe Filter:
A toggle to enable higher timeframe confirmation using a specified timeframe (default is Daily) and its SMA period.
ADX and Volume Filters:
Parameters include ADX period and threshold, as well as volume SMA period and multiplier.
Timeframe Overview Toggles:
Separate toggles let you choose which timeframes (5M, 15M, 1H, 4H, 1D, 1W, M) are included in the table.
4. Alerts
Signal Alerts:
Alert conditions are set so that when the combined Supertrend, MACD, and filter conditions are met, you receive a bullish or bearish alert.
Overall TF Status in Alerts:
Although the overall multi-timeframe status label is shown on the chart (with the table data summarized in text), the alert messages themselves remain static (e.g., "All enabled timeframes are Bullish.") due to TradingView restrictions on dynamic alert message content.
5. Customization and Best Practices
Parameter Tuning:
Adjust the ATR period, base factor, MACD parameters, and filter settings to suit your trading style and market conditions.
Backtesting:
Always backtest the indicator on historical data to ensure that the chosen settings work well for your intended market.
Risk Management:
Use appropriate stop-loss orders and position sizing since no indicator is foolproof.