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.
Phân tích Xu hướng
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 :)
Cartera SuperTrends v4 PublicDescription
This script creates a screener with a list of ETFs ordered by their average ROC in three different periods representing 4, 6 and 8 months by default. The ETF
BIL
is always included as a reference.
The previous average ROC value shows the calculation using the closing price from last month.
The current average ROC value shows the calculation using the current price.
The previous average column background color represents if the ETF average ROC is positive or negative.
The current average column background color represents if the ETF average ROC is positive or negative.
The current average column letters color represents if the current ETF average ROC is improving or not from the previous month.
Changes from V2 to V3
Added the option to make the calculation monthly, weekly or daily
Changes from V3 to V4
Adding up to 25 symbols
Highlight the number of tickers selected
Highlight the sorted column
Complete refactor of the code using a matrix of arrays
Options
The options available are:
Make the calculation monthly, weekly or daily
Adjust Data for Dividends
Manual calculation instead of using ta.roc function
Sort table
Sort table by the previous average ROC or the current average ROC
Number of tickers selected to highlight
First Period in months, weeks or days
Second Period in months, weeks or days
Third Period in months, weeks or days
Select the assets (max 25)
Usage
Just add the indicator to your favorite indicators and then add it to your chart.
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. 🔥
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.
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.
Regime Filter IndicatorRegime Filter – Crypto Market Trend Indicator
📊 Overview
The Regime Filter is a powerful market analysis indicator designed specifically for crypto trading. It helps traders identify whether the market is in a bullish or bearish phase by analyzing key assets in the cryptocurrency market, including Bitcoin (BTC), Bitcoin Dominance (BTC.D), and the Altcoin Market (TOTAL3). The indicator compares these assets against their respective Simple Moving Averages (SMA) to determine the overall market regime, allowing traders to make more informed decisions.
🔍 How It Works
The Regime Filter evaluates three main components to determine the market's sentiment:
1. BTC Dominance (BTC.D) vs. 40 SMA (Medium Timeframe)
The Bitcoin Dominance (BTC.D) is compared to its 40-period SMA on a mid-timeframe (e.g.,
1-hour). If BTC.D is below the 40 SMA, it indicates that altcoins are performing well relative
to Bitcoin, suggesting a bullish altcoin market. If BTC.D is above the 40 SMA, Bitcoin is
gaining dominance, indicating a potential bearish phase for altcoins.
2. TOTAL3 Market Cap vs. 100 SMA (Medium Timeframe)
The TOTAL3 index, which tracks the total market capitalization of all cryptocurrencies except
Bitcoin and Ethereum, is compared to its 100-period SMA. A bullish signal occurs when TOTAL3
is above the 100 SMA, indicating strength in altcoins, while a bearish signal occurs when
TOTAL3 is below the 100 SMA, signaling a potential weakness in the altcoin market.
3. BTC Price vs. 200 SMA (Higher Timeframe)
The current Bitcoin price is compared to its 200-period Simple Moving Average (SMA) on a
higher timeframe (e.g., 4-hour). A bullish signal is given when the BTC price is above the 200
SMA, and a bearish signal when it's below.
🟢 Bullish Market Conditions
The market is considered bullish when:
- BTC Dominance (BTC.D) is below the 40 SMA, suggesting altcoins are gaining momentum.
- TOTAL3 Market Cap is above the 100 SMA, signaling strength in the altcoin market.
- BTC price is above the 200 SMA, indicating an uptrend in Bitcoin.
In these conditions, the background turns green 🟢, and a "Bullish" label is displayed on the chart.
🔴 Bearish Market Conditions
The market is considered bearish when:
- BTC Dominance (BTC.D) is above the 40 SMA, indicating Bitcoin is outperforming altcoins.
- TOTAL3 Market Cap is below the 100 SMA, signaling weakness in altcoins.
- BTC price is below the 200 SMA, indicating a downtrend in Bitcoin.
In these conditions, the background turns red 🔴, and a "Bearish" label appears on the chart.
⚙ Customization Options
- The Regime Filter offers flexibility for traders:
- Enable or Disable Specific SMAs: Customize the indicator by enabling or disabling the 200 SMA for Bitcoin, the 40 SMA for BTC Dominance, and the 100 SMA for TOTAL3.
- Adjust Timeframes: Choose the timeframes for each of the moving averages to suit your preferred trading strategy.
- Real-Time Data Adjustments: The indicator updates in real-time to reflect current market conditions, ensuring timely analysis.
📈 Best Use Cases
- Trend Confirmation: The Regime Filter is ideal for confirming the market's overall trend,
helping traders to align their positions with the dominant market sentiment.
- Trade Entry/Exit Signals: Use the indicator to identify favorable entry or exit points based on
whether the market is in a bullish or bearish phase.
- Market Overview: Gain a quick understanding of the broader crypto market, with a focus on
Bitcoin and altcoins, to make more strategic decisions.
⚠️ Important Notes
Trend-Following Indicator: The Regime Filter is a trend-following tool, meaning it works best in strong trending markets. It may not perform well in choppy, sideways markets.
Risk Management: This indicator is designed to assist in identifying market trends, but it does not guarantee profits. Always apply sound risk management strategies and use additional indicators when making trading decisions.
Not a Profit Guarantee: While this indicator can help identify potential market trends, no trading tool or strategy guarantees profits. Please trade responsibly and ensure that your decisions are based on comprehensive analysis and risk tolerance.
Saral TrendSaral Trend
### Overview
The Saral Trend Indicator is a price-action-based tool designed to measure trend strength dynamically. Unlike traditional trend following indicators that rely solely on moving averages or fixed formulas, Saral Trend integrates Directional Movement, price positioning within the bar range, and volatility-adjusted trend weighting to create a clearer visualization of market momentum. By refining the classic trend following approach, this indicator provides more responsive and adaptive trend analysis across various timeframes.
### Key Features
Trend Histogram: Four types of bars indicate trend strength and momentum.
- Bullish Up: Higher than the previous bar; signals a strong uptrend; Color: Dark Blue.
- Bullish Down: Lower than the previous bar; suggests weakening momentum in an uptrend; Color: Light Blue.
- Bearish Up: Higher than the previous bar; signals a strong downtrend; Color: Dark Red.
- Bullish Down: Lower than the previous bar; suggests weakening momentum in a downtrend; Color: Light Red.
Trend Strength Line: A smoothed reference line that provides additional confirmation of momentum strength.
- When histogram bars are above this line, the trend is strong.
- When they fall below, momentum weakens.
Trend Pause Dots: Appear when the trend shows signs of temporary exhaustion, suggesting a possible short-term pause or reversal.
- A bullish pause dot on a bearish bar indicates a temporary halt in an uptrend before continuation or a reversal.
- A bearish pause dot on a bullish bar indicates a temporary halt in a downtrend before continuation or a reversal.
Oscillator Functionality: No fixed upper limit, but extreme bar values (e.g., above 100) suggest overbought or oversold conditions.
### Calculation Methodology
Analyzing Price Movement:
- The indicator calculates the difference between the highest and lowest prices over a period to determine price movement.
- It smooths these values using an Exponential Moving Average (EMA) to filter out short-term noise.
Identifying Trend:
- It compares the current high and low prices with their moving averages to determine whether the market is trending up or down.
- If the high price moves further from its average compared to the low price, it indicates bullish strength. Conversely, if the low price moves further from its average compared to high price, it signals bearish strength.
Evaluating Closing Price Position:
- The indicator analyzes where the closing price is within the high-low range.
- If the closing price is near the high, bullish strength is emphasized. If it is near the low, bearish strength is given more weight.
Measuring Trend Strength:
- The indicator applies volatility based smoothing techniques to measure positive and negative trend strength separately.
- A higher positive trend value suggests strong buying pressure, while a higher negative trend value indicates strong selling pressure.
- A dynamic smoothing approach ensures trend signals remain stable while reacting quickly to market shifts.
Visualizing Trend Strength with a Histogram:
- The indicator plots a positive and negative strength in form of histogram to represent the strength and direction of the trend.
- The color of the histogram bars changes based on whether the trend is strengthening or weakening.
- Blue shades indicate bullish trends, while red shades represent bearish trends.
Trend Reversal Detection: A trend pause or potential reversal is identified when the histogram weakens sharply, with dots appearing on bars as early warnings.
### How to Use It
Trend Direction: The colors of the histogram bars provide a visual clue about the ongoing trend - whether it's bullish or bearish - allowing traders to assess market sentiment at a glance.
Trend Confirmation: When histogram bars are consistently above the Trend Strength Line, it indicates strong momentum, confirming trade direction.
Momentum Shifts: A color shift (e.g., from Dark Blue to Light Blue) suggests weakening strength, which could indicate a pullback or reversal.
Reversal Signals: Trend Pause Dots highlight areas where momentum stalls, helping traders prepare for possible reversals or consolidations.
Timeframe Flexibility:
- Long-term traders can use weekly/monthly charts for macro trends.
- Swing traders can use daily/hourly charts to capture medium-term opportunities.
- Day traders can use 15-minute or lower timeframes for precise intraday entries.
### What Makes Saral Trend Unique?
Unlike conventional trend indicators that rely solely on moving averages, Saral Trend improves upon existing methods by:
Integrating price positioning within the range to make trend strength more responsive.
Applying volatility-adjusted trend weighting, ensuring trends are measured dynamically rather than through fixed lookback periods.
Providing multiple visual cues (histogram, strength line, and pause dots) to help traders make informed decisions.
This indicator is optimized for simplicity and efficiency , making it suitable for traders across different styles, from long-term investors to intraday scalpers.
By combining trend structure, momentum shifts, and volatility adaptation , Saral Trend delivers a comprehensive and actionable trend analysis tool for TradingView users.
TICK Bias Timer with EMA Position📌 Description
This indicator tracks the time in minutes that the Exponential Moving Average (EMA) of the NYSE USI:TICK remains above or below the zero line. It serves as a powerful market breadth confirmation tool to support your intraday directional bias.
Rather than focusing on momentary TICK spikes, this tool emphasizes duration and persistence of buying/selling pressure across the entire NYSE – helping traders stay on the right side of the flow.
🔧 Features
✅ Measures how long the EMA of TICK stays above or below 0
✅ Visual plots of upward and downward pressure duration (in minutes)
✅ Background color changes based on EMA position relative to 0
✅ Automatic daily reset at a customizable time (e.g. 15:30 for RTH open)
✅ Gap filter to avoid spikes during overnight or weekend sessions
✅ Clean, minimalist design – built for real-time decision making
🎯 How to Use
EMA > 0 for 10+ minutes → sustained bullish breadth → intraday bullish bias
EMA < 0 for 10+ minutes → sustained bearish breadth → intraday bearish bias
Frequent flip between sides → uncertain or choppy market → trade with caution
Can be used in confluence with Volume Profile, VWAP, price action, and Bookmap to reinforce trade setups.
💡 Ideal For:
Scalpers looking for flow confirmation
Day traders who want to filter fake strength/weakness
Professionals using TICK, USI:ADD , USI:VOLD , and other internals for decision-making
SuperTrader Trend Analysis and Trade Study DashboardSuperTrader Trend Analysis and Trade Study Dashboard
Overview
This script offers a multi-faceted look at market behavior. It combines signals from different momentum indicators, daily cross checks, and a specialized dashboard to reveal trend strength, potential divergences, and how far price has traveled from its recent averages.
Three Musketeers Method
This script uses a special set of three indicators (the “Three Musketeers”) to determine bullish or bearish pressure on the current chart.
Trend Condition – Compares fast vs. slow EMAs (50 and 200) and checks which side of the line price is favoring.
Mean Reversion Condition – Watches RSI crossing typical oversold or overbought thresholds (e.g., crossing above 30 or below 70).
Bollinger Condition – Checks whether price pushes above/below the Bollinger Bands (based on a 20 SMA + standard deviations).
When at least two out of these three conditions align in a bullish way, the script issues a Buy Signal . Conversely, if at least two align in a bearish way, a Sell Signal is triggered. This “Three Musketeers” synergy ensures multiple confirmations before calling a potential market turn.
Mag 8 Daily Performance
The script tracks eight highly influential stocks (AAPL, AMZN, GOOG, NFLX, NVDA, TSLA, META, MSFT) to see which are green (higher) or red (lower) compared to yesterday’s close. It then prints a quick tally – helpful in gauging overall market mood via these major players.
Golden / Death Cross Signals
On a daily time frame, the script notes when the 50-day SMA crosses above or below the 200-day SMA. A “Golden Cross” often signals rising momentum, while a “Death Cross” can hint at oncoming weakness.
RSI & Divergence Checks
RSI helps identify hidden turning points. Whenever a bullish or bearish divergence is spotted, the script updates you via a concise readout.
Hardcoded Settings
EMA lengths for trend checks, Bollinger parameters, etc., are locked in, letting you focus on adjusting only the pivotal study inputs (e.g., RSI length, VIDYA momentum).
VIDYA Trend Line & Fill
Built on an adaptive Variable Index Dynamic Average, it plots a line that quickly reacts to changing momentum. Users can set a “Trend Band Distance” to mark ATR-based thresholds around that line, identifying possible breakouts or breakdowns.
YoYo Distance
This concept measures how far price strays from SMA(10). If it’s too far, the script colors your display to indicate potential snapbacks.
Gap Up/Down Probability
By weighing volume, MACD signals, and whether price sits above/below its midrange, the script estimates probabilities of a gap up or down on the next daily candle.
Table Output & Trend Label
Turning on Show Table Widget reveals a quick dashboard on the chart detailing RSI, CCI, divergences, bull/bear scores, and more. A label on the last bar further summarizes overall trend, gap distance, and the Mag 8 snapshot – perfect for a fast read of current market posture.
Use this script to unify multiple signals in one place, see how far price has ventured from typical patterns, and get daily cross signals plus real-time bullish/bearish calls – all at a glance.
MA SniperThis indicator automatically finds the most effective moving average to use in a price crossover strategy—so you can focus on trading, not testing. It continuously evaluates a wide range of moving average periods, ranks them based on real-time market performance, and selects the one delivering the highest quality signals. The result? A smarter, adaptive tool that shows you exactly when price crosses its optimal moving average—bullish signals in green, bearish in red.
What makes it unique is the way it thinks.
Under the hood, the script doesn’t just pick a random MA or let you choose one manually. Instead, it backtests a large panel of moving average lengths for the current asset and timeframe. It evaluates each one by calculating its **Profit Factor**—a key performance metric used by pros to measure the quality of a strategy. Then, it assigns each MA a score and ranks them in a clean, built-in table so you can see, at a glance, which ones are currently most effective.
From that list, it picks the top-performing MA and uses it to generate live crossover signals on your chart. That MA is plotted automatically, and the signals adapt in real-time. This isn’t a static setup—it’s a dynamic system that evolves as the market evolves.
Even better: the indicator detects the type of instrument you’re trading (forex, stocks, etc.) and adjusts its internal calculations accordingly, including how many bars per day to consider. That means it remains highly accurate whether you’re trading EURUSD, SPX500, or TSLA.
You also get a real-time dashboard (via the table) that acts as a transparent scorecard. Want to see how other MAs are doing? You can. Want to understand why a certain MA was selected? The data is right there.
This tool is for traders who love crossover strategies but want something smarter, faster, and more precise—without spending hours manually testing. Whether you're scalping or swing trading, it offers a data-driven edge that’s hard to ignore.
Give it a try—you’ll quickly see how powerful it can be when your MA does the thinking for you.
This tool is for informational and educational purposes only. Trading involves risk, and past performance does not guarantee future results. Use responsibly.
MA Trend ScoreA Trend Score Indicator inspired by an interview by Navy Ramavat, where I liked the idea presented and decided to publish a script for it.
Disclaimer: I am not associated with Navy Ramavat in any manner.
The goal is to objectify the trend of an instrument and calculate a score which represents the trend strength and direction.
The score is calculated as follows:
If price is > EMA 20 add 1 to the score
If price is > EMA 50 add 1 to the score
If price is > EMA 100 add 1 to the score
If EMA 20 is > EMA 50 add 1 to the score
If EMA 20 is > EMA 100 add 1 to the score
If EMA 50 is > EMA 100 add 1 to the score
If EMA 20 is < EMA 50 deduct 1 from the score
If EMA 20 is < EMA 100 deduct 1 from the score
If EMA 50 is < EMA 100 deduct 1 from the score
The highest score can be 6, and lowest score can be -6
The trend score can be used as per your discretion on the long and short side.
An example of using the trend score on the long side for position sizing is:
100% position size if Score greater than 4
75% position size if Score between 2-4
50% position size if Score between 0-2
25% position size if Score between 0 and -2
0% position size if Score is less than -2
Supertrend + MACD with Advanced FiltersDetailed Guide
1. Indicator Overview
Purpose:
This enhanced indicator combines Supertrend and MACD to signal potential trend changes. In addition, it now includes several extra filters for more reliable signals:
Multi-Timeframe (MTF) Confirmation: Checks a higher timeframe’s trend.
ADX (Momentum) Filter: Ensures the market is trending strongly.
Dynamic Factor Adjustment: Adapts the Supertrend sensitivity to current volatility.
Volume Filter: Verifies that current volume is above average.
Each filter can be enabled or disabled according to your preference.
How It Works:
The Supertrend calculates dynamic support/resistance levels based on ATR and an adjustable factor, while MACD identifies momentum shifts via its crossovers. The additional filters then confirm whether the conditions meet your criteria for a trend change. If all enabled filters align, the indicator plots a shape and triggers an alert.
2. Supertrend Component with Dynamic Factor
Base Factor & ATR Period:
The Supertrend uses these inputs to compute its dynamic bands.
Dynamic Factor Toggle:
When enabled, the factor is adjusted by comparing the current ATR to its simple moving average. This makes the indicator adapt to higher or lower volatility conditions, helping to reduce false signals.
3. MACD Component
Parameters:
Standard MACD settings (Fast MA, Slow MA, Signal Smoothing) determine the responsiveness of the MACD line. Crossovers between the MACD line and its signal line indicate potential trend reversals.
4. Multi-Timeframe (MTF) Filter
Function:
If enabled, the indicator uses a higher timeframe’s simple moving average (SMA) to confirm the prevailing trend.
Bullish Confirmation: The current close is above the higher timeframe SMA.
Bearish Confirmation: The current close is below the higher timeframe SMA.
5. ADX Filter (Momentum)
Custom Calculation:
Since the built-in ta.adx function may not be available, a custom ADX is calculated. This involves:
Determining positive and negative directional movements (DMs).
Smoothing these values to obtain +DI and -DI.
Calculating the DX and then smoothing it to yield the ADX.
Threshold:
Only signals where the ADX exceeds the set threshold (default 20) are considered valid, ensuring that the market is trending strongly enough.
6. Volume Filter
Function:
Checks if the current volume exceeds the average volume (SMA) multiplied by a specified factor. This helps confirm that a price move is supported by sufficient trading activity.
7. Combined Signal Logic & Alerts
Final Signal:
A bullish signal is generated when:
MACD shows a bullish crossover,
Supertrend indicates an uptrend,
And all enabled filters (MTF, ADX, volume) confirm the signal.
The bearish signal is generated similarly in the opposite direction.
Alerts:
Alert conditions are set so that TradingView can notify you via pop-up, email, or SMS when these combined conditions are met.
8. User Adjustments
Toggle Filters:
Use the on/off switches for MTF, ADX, and Volume filters as needed.
Parameter Tuning:
Adjust the ATR period, base factor, higher timeframe settings, ADX period/threshold, and volume multiplier to match your trading style and market conditions.
Backtesting:
Always backtest your settings to ensure that they perform well with your strategy.
TrendWave Bands [BigBeluga]This is a trend-following indicator that dynamically adapts to market trends using upper and lower bands. It visually highlights trend strength and duration through color intensity while providing additional wave bands for deeper trend analysis.
🔵Key Features:
Adaptive Trend Bands:
➣ Displays a lower band in uptrends and an upper band in downtrends to indicate trend direction.
➣ The bands act as dynamic support and resistance levels, helping traders identify potential entry and exit points.
Wave Bands for Additional Analysis:
➣ A dashed wave band appears opposite the main trend band for deeper trend confirmation.
➣ In an uptrend, the upper dashed wave band helps analyze momentum, while in a downtrend, the lower dashed wave band serves the same purpose.
Gradient Color Intensity:
➣ The trend bands have a color gradient that fades as the trend continues, helping traders visualize trend duration.
➣ The wave bands have an inverse gradient effect—starting with low intensity at the trend's beginning and increasing in intensity as the trend progresses.
Trend Change Signals:
➣ Circular markers appear at trend reversals, providing clear entry and exit points.
➣ These signals mark transitions between bullish and bearish phases based on price action.
🔵Usage:
Trend Following: Use the lower band for confirmation in uptrends and the upper band in downtrends to stay on the right side of the market.
Trend Duration Analysis: Gradient wavebands give an idea of the duration of the current trend — new trends will have high-intensity colored wavebands and as time goes on, trends will fade.
Trend Reversal Detection: Circular markers highlight trend shifts, making it easier to spot entry and exit opportunities.
Volatility Awareness: Volatility-based bands help traders adjust their strategies based on market volatility, ensuring better risk management.
TrendWave Bands is a powerful tool for traders seeking to follow market trends with enhanced visual clarity. By combining trend bands, wave bands, and gradient-based color scaling, it provides a detailed view of market dynamics and trend evolution.
Daily ProtractorDaily Protractor Indicator
Overview
The Daily Protractor is a visually intuitive tool designed for traders who want to analyze price action through angular measurements on a 5-minute chart. By overlaying a protractor on the chart, this indicator helps identify potential support, resistance, and trend directions based on angular relationships from the first 5-minute candle of each day. It’s particularly useful for intraday traders looking to incorporate geometric analysis into their strategies for spot or strike charts.
Key Features
Dynamic Protractor Overlay: Draws a protractor centered on the low of the first 5-minute candle of each day, with customizable radius in both bars (horizontal) and price units (vertical).
Angular Measurements: Displays angles in 5-degree increments, covering a full 360° circle or a 105° to -105° (91° to 269°) half-circle, depending on user preference.
Customizable Display:
Adjust the number of days to display protractors (up to 5 days).
Customize line colors for different angle ranges (0° to 180°, 180° to 360°, and 0° specifically).
Modify line thickness, label size, and label colors for better visibility.
Center Point Highlight: Marks the center of each protractor with a labeled point for easy reference.
Efficient Design:
Optimized with max_lines_count, max_labels_count, and max_bars_back to ensure smooth performance on TradingView.
How It Works
The indicator identifies the first 5-minute candle of each day and uses its low price as the center point for a protractor. It then draws lines at 5-degree intervals, radiating from the center, with each line representing an angle from 0° to 360°. Labels at the end of each line display the angle in degrees, with negative values shown for angles between 195° and 345° (e.g., 270° is displayed as -90°). The protractor’s radius can be adjusted in both time (bars) and price units, allowing traders to scale the tool to their chart’s characteristics.
Usage Instructions
Add to Chart:
Apply the indicator to a 5-minute chart of your chosen instrument (e.g., spot or strike charts).
Interpret the Protractor:
Use the angular lines to identify potential price levels or trend directions.
The 0° line (horizontal) can act as a reference for horizontal support/resistance.
Angles between 0° and 180° (upper half) and 180° and 360° (lower half) are color-coded for quick identification.
Customize Settings:
Toggle the Show 105° to -105° option to display a half-circle (91° to 269°) instead of a full 360° protractor.
Adjust the Radius in Bars and Radius in Price Units to scale the protractor to your chart.
Set the Maximum Days to Display to control how many daily protractors are shown.
Modify line thickness, colors, and label settings to suit your visual preferences.
Customization Options
Protractor Settings:
Show 105° to -105° (91° to 269°): Toggle between a full circle or a half-circle protractor.
Radius in Bars: Set the horizontal span of the protractor (default: 75 bars).
Radius in Price Units: Set the vertical span in price units (default: 1000.0).
Maximum Days to Display: Limit the number of protractors shown (default: 5 days).
Line Settings:
Line Thickness: Adjust the thickness of the protractor lines (1 or 2).
Line Color (0° to 180°): Color for the upper half (default: light blue).
Line Color (180° to 360°): Color for the lower half (default: light red).
Line Color (0°): Color for the 0° line (default: black).
Label Settings:
Label Size: Choose between small, normal, or large labels.
Label Color (0° to 180°): Color for labels in the upper half (default: red).
Label Color (180° to 360°): Color for labels in the lower half (default: green).
Notes
The indicator was designed with the help of Grok3 for use on 5-minute charts only, as it relies on the first 5-minute candle of the day to set the protractor’s center.
For best results, adjust the radius settings to match the volatility and price scale of your instrument. However, where the price is in single digits it is advised to switch off the labels or I would suggest not to use the same.
The protractor can be used alongside other technical tools to confirm trends, reversals, or key price levels.
Limitations: This cannot be used on instruments that trade for more than 75 candles with a timeframe of 5 minutes as the angles would not cover the entire trading window. I am working coming up with a script to address this limitation.
Feedback
I’d love to hear your thoughts! If you find the Daily Protractor helpful or have suggestions for improvements, please leave a comment or reach out. Happy trading!
EMA 10/55/200 - LONG ONLY MTF (4h with 1D & 1W confirmation)Title: EMA 10/55/200 - Long Only Multi-Timeframe Strategy (4h with 1D & 1W confirmation)
Description:
This strategy is designed for trend-following long entries using a combination of exponential moving averages (EMAs) on the 4-hour chart, confirmed by higher timeframe trends from the daily (1D) and weekly (1W) charts.
🔍 How It Works
🔹 Entry Conditions (4h chart):
EMA 10 crosses above EMA 55 and price is above EMA 55
OR
EMA 55 crosses above EMA 200
OR
EMA 10 crosses above EMA 500
These entries indicate short-term momentum aligning with medium/long-term trend strength.
🔹 Confirmation (multi-timeframe alignment):
Daily (1D): EMA 55 is above EMA 200
Weekly (1W): EMA 55 is above EMA 200
This ensures that we only enter long trades when the higher timeframes support an uptrend, reducing false signals during sideways or bearish markets.
🛑 Exit Conditions
Bearish crossover of EMA 10 below EMA 200 or EMA 500
Stop Loss: 5% below entry price
⚙️ Backtest Settings
Capital allocation per trade: 10% of equity
Commission: 0.1%
Slippage: 2 ticks
These are realistic conditions for crypto, forex, and stocks.
📈 Best Used On
Timeframe: 4h
Instruments: Trending markets like BTC/ETH, FX majors, or growth stocks
Works best in volatile or trending environments
⚠️ Disclaimer
This is a backtest tool and educational resource. Always validate on demo accounts before applying to real capital. Do your own due diligence.
Today, Previous Day, and Two Days Ago LevelsOverview
This indicator plots key price levels from the current trading day, the previous day, and two days ago directly on your chart. Designed for traders who rely on daily price action, it displays the high, low, and close of the previous day, as well as the high and low of two days ago, alongside the developing high and low of the current day. Each level is drawn as a horizontal line with customizable visibility and distinct colors for easy identification.
Features
Today’s Levels: Shows the current day’s high (green) and low (red) as they develop during the regular trading session (9:30 AM–4:00 PM EDT).
Previous Day Levels: Plots the high (blue), low (light blue), and close (purple) of the most recent completed trading day, updating after 4:00 PM EDT.
Two Days Ago Levels: Displays the high (orange) and low (light orange) from two trading days prior.
Customizable Display: Toggle each level on or off via input settings to focus on the data that matters to you.
Session-Based Accuracy: Uses the regular U.S. equity session (9:30 AM–4:00 PM EDT) to ensure levels reflect standard trading hours.
How It Works
The indicator fetches daily price data based on the regular trading session (9:30 AM–4:00 PM EDT, Monday–Friday). After the session closes at 4:00 PM EDT, the "Previous Day" levels shift to reflect the just-completed day’s high, low, and close, while "Two Days Ago" levels update to the day before that. This makes it ideal for pre-market analysis the next morning, ensuring you’re always working with the latest completed session data.
Usage
Intraday Trading: Use on 1-minute, 5-minute, or 15-minute charts to monitor key levels during the day or in pre-market.
Daily Analysis: View on daily charts to assess historical levels, with updates reflecting the latest session after 4:00 PM EDT.
Support/Resistance: Leverage these levels as potential support and resistance zones for your trading strategy.
Limitations
Timeframe Consistency: Works best on intraday charts (e.g., 1-min, 5-min, 15-min, 30-min, 60-min). On higher timeframes (e.g. daily , weekly, monthly), the levels may not align as expected due to the daily session focus.
Securities Traded: Optimized for U.S. equities with a 9:30 AM–4:00 PM EDT session (e.g., stocks like SPY, AAPL). May not work correctly for:
Futures or Forex: These markets have different session hours (e.g., 5:00 PM EDT close for some futures), which could misalign the levels.
Non-U.S. Markets: Securities with different trading hours (e.g., European or Asian exchanges) won’t match the hardcoded EDT session.
Time Zone Dependency: Assumes a UTC-4 (EDT) timezone. If your chart or TradingView settings use a different timezone (e.g., EST, UTC), the session close detection (4:00 PM EDT) may be off.
Extended Hours: Excludes pre-market and after-hours data, focusing only on regular session prices. If you need extended hours, this indicator won’t reflect those levels.
Notes
Published under the Mozilla Public License 2.0.
Created on November 20, 2024, with updates for accuracy as of March 27, 2025.
If you encounter issues (e.g., levels not updating correctly), check your symbol’s session hours and chart timezone match the U.S. equity standard (9:30 AM–4:00 PM EDT).
Enjoy trading with clearer daily levels!
Composite Reversal IndicatorOverview
The "Composite Reversal Indicator" aggregates five technical signals to produce a composite score that ranges from -5 (strongly bearish) to +5 (strongly bullish). These signals come from:
Relative Strength Index (RSI)
Moving Average Convergence Divergence (MACD)
Accumulation/Distribution (A/D)
Volume relative to its moving average
Price proximity to support and resistance levels
Each signal contributes a value of +1 (bullish), -1 (bearish), or 0 (neutral) to the total score. The raw score is plotted as a histogram, and a smoothed version is plotted as a colored line to highlight trends.
Step-by-Step Explanation
1. Customizable Inputs
The indicator starts with user-defined inputs that allow traders to tweak its settings. These inputs include:
RSI: Length (e.g., 14), oversold level (e.g., 30), and overbought level (e.g., 70).
MACD: Fast length (e.g., 12), slow length (e.g., 26), and signal length (e.g., 9).
Volume: Moving average length (e.g., 20) and multipliers for high (e.g., 1.5) and low (e.g., 0.5) volume thresholds.
Price Levels: Period for support and resistance (e.g., 50) and proximity percentage (e.g., 2%).
Score Smoothing: Length for smoothing the score (e.g., 5).
These inputs make the indicator adaptable to different trading styles, assets, or timeframes.
2. Indicator Calculations
The script calculates five key indicators using the input parameters:
RSI: Measures momentum and identifies overbought or oversold conditions.
Formula: rsi = ta.rsi(close, rsi_length)
Example: With a length of 14, it analyzes the past 14 bars of closing prices.
MACD: Tracks trend and momentum using two exponential moving averages (EMAs).
Formula: = ta.macd(close, macd_fast, macd_slow, macd_signal)
Components: MACD line (fast EMA - slow EMA), signal line (EMA of MACD line).
Accumulation/Distribution (A/D): A volume-based indicator showing buying or selling pressure.
Formula: ad = ta.accdist
Reflects cumulative flow based on price and volume.
Volume Moving Average: A simple moving average (SMA) of trading volume.
Formula: vol_ma = ta.sma(volume, vol_ma_length)
Example: A 20-bar SMA smooths volume data.
Support and Resistance Levels: Key price levels based on historical lows and highs.
Formulas:
support = ta.lowest(low, price_level_period)
resistance = ta.highest(high, price_level_period)
Example: Over 50 bars, it finds the lowest low and highest high.
These calculations provide the raw data for generating signals.
3. Signal Generation
Each indicator produces a signal based on specific conditions:
RSI Signal:
+1: RSI < oversold level (e.g., < 30) → potential bullish reversal.
-1: RSI > overbought level (e.g., > 70) → potential bearish reversal.
0: Otherwise.
Logic: Extreme RSI values suggest price may reverse.
MACD Signal:
+1: MACD line > signal line → bullish momentum.
-1: MACD line < signal line → bearish momentum.
0: Equal.
Logic: Crossovers indicate trend shifts.
A/D Signal:
+1: Current A/D > previous A/D → accumulation (bullish).
-1: Current A/D < previous A/D → distribution (bearish).
0: Unchanged.
Logic: Rising A/D shows buying pressure.
Volume Signal:
+1: Volume > high threshold (e.g., 1.5 × volume MA) → strong activity (bullish).
-1: Volume < low threshold (e.g., 0.5 × volume MA) → weak activity (bearish).
0: Otherwise.
Logic: Volume spikes often confirm reversals.
Price Signal:
+1: Close near support (within proximity %, e.g., 2%) → potential bounce.
-1: Close near resistance (within proximity %) → potential rejection.
0: Otherwise.
Logic: Price near key levels signals reversal zones.
4. Composite Score
The raw composite score is the sum of the five signals:
Formula: score = rsi_signal + macd_signal + ad_signal + vol_signal + price_signal
Range: -5 (all signals bearish) to +5 (all signals bullish).
Purpose: Combines multiple perspectives into one number.
5. Smoothed Score
A smoothed version of the score reduces noise:
Formula: score_ma = ta.sma(score, score_ma_length)
Example: With a length of 5, it averages the score over 5 bars.
Purpose: Highlights the trend rather than short-term fluctuations.
6. Visualization
The indicator plots two elements:
Raw Score: A gray histogram showing the composite score per bar.
Style: plot.style_histogram
Color: Gray.
Smoothed Score: A line that changes color:
Green: Score > 0 (bullish).
Red: Score < 0 (bearish).
Gray: Score = 0 (neutral).
Style: plot.style_line, thicker line (e.g., linewidth=2).
These visuals make it easy to spot potential reversals.
How It Works Together
The indicator combines signals from:
RSI: Momentum extremes.
MACD: Trend shifts.
A/D: Buying/selling pressure.
Volume: Confirmation of moves.
Price Levels: Key reversal zones.
By summing these into a composite score, it filters out noise and provides a unified signal. A high positive score (e.g., +3 to +5) suggests a bullish reversal, while a low negative score (e.g., -3 to -5) suggests a bearish reversal. The smoothed score helps traders focus on the trend.
Practical Use
Bullish Reversal: Smoothed score is green and rising → look for buying opportunities.
Bearish Reversal: Smoothed score is red and falling → consider selling or shorting.
Neutral: Score near 0 → wait for clearer signals.
Traders can adjust inputs to suit their strategy, making it versatile for stocks, forex, or crypto.
Custom Gold Pivot LevelsThis indicator plots custom resistance and support levels based on a central Ziro Pivot Level. The levels are adjusted dynamically based on whether you're preparing for a Buy or Sell trade. The script allows you to set percentage-based levels for both resistance and support, making it a versatile tool for traders.
Features:
Pivot Level: Set the central pivot level (Ziro Pivot) around which resistance and support levels are calculated.
Dynamic Resistance & Support Levels: Input your preferred percentages for Resistance 1, Resistance 2, Support 1 , and Support 2 .
For Buy: Resistance levels are higher, and support levels are lower.
For Sell: Resistance levels are adjusted lower, and support levels are adjusted higher.
Label Display: The indicator will display a Buy label in green above the pivot level or a Sell label in red below the pivot level, depending on the trade type you select.
Adjustable Parameters:
Ziro Pivot Level: Set the central pivot level.
Resistance & Support Levels: Adjust resistance and support levels using percentages.
Trade Type: Choose between "Buy" and "Sell" to dynamically adjust resistance and support levels.
Inputs:
1- Trade Type: Select between Buy or Sell to set the relevant resistance and support levels.
Ziro Pivot Level: Set the main pivot level around which all other levels are calculated.
Resistance Level 1 & 2: Input percentages for Resistance 1 and Resistance 2.
Support Level 1 & 2: Input percentages for Support 1 and Support 2.
How to Use:
1- Select "Buy" or "Sell" from the input options.
For Buy: The indicator will plot higher resistance levels and lower support levels.
For Sell: The indicator will plot lower resistance levels and higher support levels.
2- Adjust the Pivot Level: Set the central pivot level for the levels to be calculated around.
3- Adjust the Resistance & Support Percentages: Modify the resistance and support levels to fit your trading strategy.
4- Visual Feedback: The indicator will show a Buy label in green above the pivot level or a Sell label in red below the pivot level, making it easy to identify the trade direction at a glance.
Use Cases:
Gold & Commodity Trading: This tool is particularly useful for traders working with commodities like gold, where pivot levels can help determine potential price action points.
Swing & Day Trading: The dynamic nature of this indicator makes it great for both swing and day traders who want to monitor short-term market movements.
Support and Resistance Strategy: Traders who rely on support and resistance levels to make buy/sell decisions can use this indicator to automate and visualize these levels more effectively.
Power Struggle [GOODY]📊 Power Struggle – Gauge the Battle Between Bulls & Bears
"Power Struggle " is an advanced, multi-layered market strength and momentum analysis tool. It combines the classic Elder Impulse System and Elder-Ray Power Columns with modern enhancements like visual gauges, momentum shift alerts, and volume-based divergence detection — all in one clean and intuitive interface.
________________________________________
🧠 What This Indicator Shows You:
✅ Bull vs Bear Power Columns
• Visualize who’s in control with clean columns showing Bull and Bear dominance.
• Fully integrated with EMA-based Impulse logic to detect trend conviction.
✅ Buy/Sell Signal Labels & Alerts
• Trend-following signals based on dynamic power thresholds.
• Green = Bull Confirmed | Red = Bear Confirmed
• Alerts included for all signal and divergence conditions.
✅ Dynamic Volume Gauge (Horizontal or Vertical)
• A powerful gauge showing real-time buyer/seller strength.
• Includes divergence detection when volume and price disagree, often a warning sign.
• 🔄 Fully customizable layout, position, flip, rotation, and gradient styling.
✅ Active Column Gauge
• Tracks real-time momentum shifts within each candle.
• Highlights power shifts with emoji markers (🐂/🐻), and calculates where price closes within each candle's range.
✅ Volume-in-Candle Labels (Optional)
• See raw Buy vs Sell volume numbers inside the candles.
• Easily spot if price moves are supported by actual volume.
________________________________________
⚙️ Customizable Settings
• 🎚️ Set thresholds for signal strictness
• 🔔 Use built-in alerts for:
o Bullish/Bearish Impulse
o Bull/Bear Power Thresholds
o Bullish/Bearish Divergences
o Momentum Shifts