Fanfans结构加强vwap版 + 极简系统### 中英文双语总结(300字内)
中文:该指标整合Fanfans结构、动态摆动VWAP、高斯GWMA、MACD及极简交易系统,支持趋势过滤(可选GWMA/VWAP/结构维度)、多离场模式(ATR止盈止损/GWMA离场/混合)与移动止损。具备多空信号标注、止损止盈线绘制、多维度共振警报,图表信息面板实时展示结构/VWAP/GWMA/MACD状态,可自定义过滤规则、显示样式及交易参数,适配短周期交易,兼顾趋势判断与信号执行的灵活性。
English: This indicator integrates Fanfans structure, dynamic swing VWAP, Gaussian GWMA, MACD and a simple trading system. It supports trend filtering (GWMA/VWAP/structure optional), multiple exit modes (ATR SL/TP, GWMA exit, hybrid) and trailing stop. Featuring long/short signal labeling, SL/TP line drawing, multi-dimensional resonance alerts, its chart info panel displays real-time status of structure/VWAP/GWMA/MACD. Customizable filter rules, display styles and trading parameters make it suitable for short-term trading, balancing trend judgment and signal execution flexibility.
Phân tích Xu hướng
Parabolic SAR📌 This indicator enhances the traditional Parabolic SAR trend-reversal system by incorporating adjustable strictness filtering based on candle structure, volume confirmation, volatility-based body size, and moving-average bias, enabling cleaner and more selective signals.
■ User Inputs
SAR Start / Increment / Max: Standard Parabolic SAR parameters controlling acceleration and sensitivity.
Strictness Level (1–10): Defines the filtering intensity applied to SAR crossover signals, where higher levels require stronger candle confirmation, higher volume thresholds, and trend-aligned price action relative to moving averages.
■ Base SAR Logic
The script calculates the Parabolic SAR using TradingView’s built-in ta.sar.
Two raw signals form the foundation:
Rising Base: Close crosses above sar.
Bearing Base: Close crosses below sar.
These are not used directly—filters refine them according to the chosen strictness level.
■ Filter Components
The script evaluates multiple market conditions:
Candle Direction:
candle_up = close > open, candle_down = close < open.
Volume Filter:
Volume greater than 10-period SMA.
Body Size Filter:
Normal body: |close-open| > ATR(14) × 0.2
Strong body: |close-open| > ATR(14) × 0.5
Trend Bias:
Price above/below SMA (20 or 50) depending on strictness level.
These elements combine to confirm signal strength and reduce noise.
■ Sensitivity Level Logic (1–10)
Each level progressively increases strictness:
Level 1: Pure SAR crossover only.
Level 2: SAR crossover + candle direction alignment.
Level 3: Adds volume confirmation.
Level 4: Adds minimum body-size requirement.
Level 5: Requires strong candle body + volume.
Level 6: Requires stronger volume (SMA20).
Level 7: Strong body + SMA20 volume confirmation.
Level 8: Strong body + high volume (SMA50).
Level 9: Adds trend bias:
Long = above SMA20
Short = below SMA20
Level 10 (Most Strict):
Very high volume (SMA100)
Strong body
Strong trend alignment (SMA50)
The higher the level, the less likely a breakout signal is to be seen.
■ Visualization
SAR Chart:
A green cross is displayed for an uptrend, and a red cross is displayed for a downtrend, or a custom setting is supported.
Signal Indicators:
Long-term: Green ▲ below the bar
Summary: Red ▼ above the bar
Markers are displayed by default, reflecting the filtered signal output,
or a custom setting is supported.
■ Purpose
This indicator is intended to:
Reduce SAR’s natural noise through strict filtering.
Provide tailored signal reliability based on trader preference.
Enhance candle-confirmation, volume-driven accuracy, and trend alignment.
It does not predict future price nor guarantee profitable trades—filters simply refine.
PEG RSI [Auto EPS Growth]The PEG RSI is a hybrid indicator that combines fundamental valuation with technical momentum. It applies the Relative Strength Index (RSI) directly to the Price/Earnings-to-Growth (PEG) Ratio.
Unlike traditional PEG indicators that require manual input for growth rates, this script automatically calculates the Compound Annual Growth Rate (CAGR) of Earnings Per Share (EPS) based on historical data.
Key Features
- Auto-Calculated Growth: Uses historical TTM Earnings Per Share (EPS) to calculate the CAGR over a user-defined period (Default: 4 years).
- Dynamic Valuation: Converts the static PEG ratio into an oscillator (RSI) to identify relative valuation extremes.
- Trend & Momentum: Visualizes the momentum of the PEG ratio relative to its own history.
Educational Case Study
This indicator is designed for educational purposes and research. Instead of relying on fixed overbought or oversold levels, users are encouraged to study the correlation between the PEG RSI and price action independently.
- Observe how the price reacts when the PEG RSI reaches upper or lower extremes.
- Different stocks may respect different RSI zones based on their growth stability.
- Use this tool to analyze how market valuation momentum shifts over time.
Settings:
- Years for CAGR Growth: Timeframe to calculate EPS growth (Default: 4 years).
- RSI Length: Lookback period for the RSI calculation (Default: 14).
Note: This indicator works best on stocks with a consistent history of earnings. It requires financial data to function (will not work on assets without EPS like Crypto or Forex).
RSS - Reversal Score System v3 [Rulph]OVERVIEW
(Russian version below)
The Reversal Score System v3 (RSS3) is a sophisticated multi-component indicator designed to identify potential market reversal zones by combining volatility pressure analysis, trend momentum measurement, and divergence detection. The system generates a normalized score ranging from -1 (bullish) to +1 (bearish), with visual cloud overlays highlighting high-probability reversal areas. RSS3 integrates multi-timeframe confirmation and adaptive divergence filtering to reduce false signals in strong trends.
CORE COMPONENTS
Volatility Pressure Index (VPI)
VPI measures volatility expansion and price compression by combining:
• RSI distance from neutral (50) to gauge momentum deviation
• Annualized volatility estimation (VIX-style) to detect stress
• Normalized candle range relative to historical volatility
• Bollinger Bands position for price extension analysis
Higher VPI values indicate overbought conditions with volatility pressure, while lower values suggest oversold compression with potential for reversal.
Trend Direction Force Index (TDFI)
TDFI quantifies directional momentum strength by analyzing:
• Divergence between fast (MMA) and slow (SMMA) moving averages
• Average momentum (impetus) between the two moving averages
• Normalized power-weighted trend force
Positive TDFI indicates strong uptrend momentum, negative values indicate downtrend force. Extreme values (>0.7 or <-0.7) trigger impulse signals.
Divergence Detection System
The indicator automatically detects classical and hidden divergences for both VPI and TDFI:
• Bullish divergences: price makes lower low while indicator makes higher low
• Bearish divergences: price makes higher high while indicator makes lower high
• Divergence bonus decays over time (customizable decay period)
• Amplitude-weighted strength multiplier
• Sequential divergence counter for confirmation
Multi-Timeframe Filter (MTF)
Optional higher timeframe analysis helps filter low-probability reversals:
• Off mode : No filtering applied
• Reduce mode : Lowers divergence bonus when counter-trend to HTF (30% reduction)
• Block mode : Completely hides divergence markers against strong HTF trend
MTF calculates VPI and TDFI on higher timeframe and blends scores based on MTF weight parameter.
FINAL SCORE CALCULATION
The final score combines:
Score = (VPI_weight × VPI) + (TDFI_weight × TDFI) - Bull_Div_Bonus + Bear_Div_Bonus
When MTF is enabled:
Final_Score = (1 - MTF_weight) × Base_Score + MTF_weight × MTF_Score
VISUAL FEATURES
Adaptive Score Clouds
Dynamic colored zones appear above/below price when reversal conditions strengthen:
• Green cloud below price : Bullish reversal zone (score < bullish threshold)
• Red cloud above price : Bearish reversal zone (score > bearish threshold)
• Cloud height : Proportional to signal strength (3× ATR maximum)
• Transparency : Decreases with stronger signals (90% weak → 50% strong)
• Threshold mode : Clouds appear only when thresholds exceeded
• Gradient mode : Clouds show accumulation from any score value
Divergence Markers
Triangle markers indicate detected divergences:
• Green/Lime triangles below price: Bullish divergences (lime = both VPI+TDFI)
• Red/Maroon triangles above price: Bearish divergences (maroon = both VPI+TDFI)
• Gray markers: Filtered divergences (when MTF filter is active)
• Offset by pivot lookback period for accuracy
Momentum Impulses
Optional arrow markers highlight strong momentum breakouts:
• Blue arrows down: Bearish momentum impulse
• Orange arrows up: Bullish momentum impulse
Info Table
Real-time statistics display in top-right corner:
• Current final score with color coding
• Individual VPI and TDFI values
• Active divergence bonuses (Bull/Short)
• MTF trend status (when enabled)
• Current filter mode
HOW TO USE
For Reversal Trading
1 — Wait for score to cross bullish threshold (<-0.5) for potential long entries or bearish threshold (>0.5) for shorts
2 — Confirm with divergence markers appearing simultaneously
3 — Look for cloud formation strengthening the signal
4 — Use MTF filter to avoid counter-trend trades
For Trend Continuation
• Impulse arrows indicate strong momentum continuation
• Use as confirmation when trading in direction of established trend
• MTF alignment provides additional confidence
For Multi-Timeframe Analysis
• Enable MTF filter and set higher timeframe (e.g., 4H on 1H chart, Daily on 4H chart)
• Use "Reduce" mode for conservative approach
• Use "Block" mode for strict trend alignment
PARAMETERS GUIDE
Score Group
• VPI Weight (0.5): Balance between volatility and trend components. Increase for volatility-focused signals.
• TDFI Weight (0.5): Balance between volatility and trend components. Increase for trend-focused signals.
• Divergence Bonus Max (0.3): Maximum contribution of divergences to score. Higher = stronger divergence impact.
Divergence Group
• Pivot Lookback (3): 2=aggressive/fast, 3=balanced, 5=conservative/slow
Multi TimeFrame Group
• Higher TF : Typically 4-16× current timeframe (e.g., 4H for 1H chart)
• MTF Weight (0.3): Influence of higher timeframe in final score
• Trend Filter Level (0.5): TDFI threshold defining "strong trend" on HTF
Visual Group
• Cloud Mode : Threshold (traditional) vs Gradient (continuous accumulation)
• Cloud Transparency : Base transparency for weak signals
Advanced Groups
Fine-tune indicator components for specific markets or timeframes. Default values work well for most assets. Increasing periods smooths signals but adds lag; decreasing periods increases sensitivity but may cause noise.
ALERTS
Six alert conditions available:
• Bullish Zone: Score crosses below bullish threshold
• Bearish Zone: Score crosses above bearish threshold
• Strong Bull Div: Both VPI+TDFI show bullish divergence (unfiltered)
• Strong Bear Div: Both VPI+TDFI show bearish divergence (unfiltered)
• Down Impulse: Bearish momentum breakout
• Up Impulse: Bullish momentum breakout
NOTES
• Works on all timeframes and asset classes (crypto, forex, stocks, indices)
• Best results on liquid markets with clear trend/reversal cycles
• Combine with price action, support/resistance, and risk management
• Divergences work best in ranging or weakening trend conditions
• Not a standalone trading system - use as confirmation tool
LIMITATIONS
• Like all indicators, RSS3 can generate false signals in choppy/sideways markets
• Divergence detection requires sufficient historical data (minimum 50-100 bars)
• MTF filter may reduce signal frequency significantly in "Block" mode
• Advanced parameters require understanding of underlying calculations
DISCLAIMER
This indicator is provided for informational and educational purposes only and does not constitute financial, investment, or trading advice. All trading involves risk, and past performance does not guarantee future results. Users are solely responsible for their own trading decisions and should conduct their own research or consult with a qualified financial advisor before making any investment decisions. The author assumes no liability for any losses incurred through the use of this indicator.
═════════════════════════════════════════════════════════════════════════
© Rulph - Reversal Score System v3
ОБЗОР
Reversal Score System v3 (RSS3) — это многокомпонентный индикатор для выявления зон потенциального разворота рынка, объединяющий анализ давления волатильности, измерение силы тренда и обнаружение дивергенций. Система генерирует нормализованный скор от -1 (бычий) до +1 (медвежий) с визуальными облаками, выделяющими зоны высокой вероятности разворота. RSS3 интегрирует подтверждение с высшего таймфрейма и адаптивную фильтрацию дивергенций для снижения ложных сигналов в сильных трендах.
ОСНОВНЫЕ КОМПОНЕНТЫ
Индекс давления волатильности (VPI)
VPI измеряет расширение волатильности и ценовое сжатие, комбинируя:
• Отклонение RSI от нейтрального уровня (50) для оценки моментума
• Оценку годовой волатильности (VIX) для определения стресса
• Нормализованный диапазон свечей относительно исторической волатильности
• Положение относительно полос Боллинджера для анализа растяжения цены
Высокие значения VPI указывают на перекупленность с давлением волатильности, низкие значения — на перепроданность со сжатием и потенциалом разворота.
Индекс силы направления тренда (TDFI)
TDFI количественно оценивает силу направленного моментума через анализ:
• Расхождения между быстрой (MMA) и медленной (SMMA) скользящими средними
• Среднего моментума (импульса) между двумя скользящими
• Нормализованной силы тренда с весовым коэффициентом
Положительный TDFI указывает на сильный восходящий моментум, отрицательные значения — на нисходящую силу. Экстремальные значения (>0.7 или <-0.7) вызывают импульсные сигналы.
Система обнаружения дивергенций
Индикатор автоматически обнаруживает классические и скрытые дивергенции для VPI и TDFI:
• Бычьи дивергенции: цена формирует более низкий минимум, индикатор — более высокий минимум
• Медвежьи дивергенции: цена формирует более высокий максимум, индикатор — более низкий максимум
• Бонус дивергенции затухает со временем (настраиваемый период затухания)
• Множитель силы, взвешенный по амплитуде
• Счётчик последовательных дивергенций для подтверждения
Мультитаймфреймовый фильтр (MTF)
Опциональный анализ высшего таймфрейма помогает отфильтровать развороты с низкой вероятностью:
• Режим Off : Фильтрация не применяется
• Режим Reduce : Снижает бонус дивергенции при контр-тренде к HTF (на 30%)
• Режим Block : Полностью скрывает маркеры дивергенций против сильного тренда HTF
MTF рассчитывает VPI и TDFI на высшем таймфрейме и смешивает скоры на основе параметра MTF weight.
РАСЧЁТ ФИНАЛЬНОГО СКОРА
Финальный скор объединяет:
Скор = (Вес_VPI × VPI) + (Вес_TDFI × TDFI) - Бонус_бычьей_див + Бонус_медвежьей_див
При включённом MTF:
Финальный_скор = (1 - Вес_MTF) × Базовый_скор + Вес_MTF × MTF_скор
ВИЗУАЛЬНЫЕ ФУНКЦИИ
Адаптивные облака скора
Динамические цветные зоны появляются выше/ниже цены при усилении условий разворота:
• Зелёное облако под ценой : Бычья зона разворота (скор < бычьего порога)
• Красное облако над ценой : Медвежья зона разворота (скор > медвежьего порога)
• Высота облака : Пропорциональна силе сигнала (максимум 3× ATR)
• Прозрачность : Уменьшается при усилении сигнала (90% слабый → 50% сильный)
• Режим Threshold : Облака появляются только при превышении порогов
• Режим Gradient : Облака показывают накопление от любого значения скора
Маркеры дивергенций
Треугольные маркеры указывают на обнаруженные дивергенции:
• Зелёные/лаймовые треугольники под ценой: Бычьи дивергенции (лайм = обе VPI+TDFI)
• Красные/бордовые треугольники над ценой: Медвежьи дивергенции (бордо = обе VPI+TDFI)
• Серые маркеры: Отфильтрованные дивергенции (когда активен MTF-фильтр)
• Смещение на период pivot lookback для точности
Импульсы моментума
Опциональные стрелки выделяют сильные импульсные прорывы:
• Синие стрелки вниз: Медвежий импульс моментума
• Оранжевые стрелки вверх: Бычий импульс моментума
Информационная таблица
Статистика в реальном времени в правом верхнем углу:
• Текущий финальный скор с цветовой кодировкой
• Отдельные значения VPI и TDFI
• Активные бонусы дивергенций (Bull/Short)
• Статус тренда MTF (при включении)
• Текущий режим фильтра
КАК ИСПОЛЬЗОВАТЬ
Для торговли на разворотах
1 — Дождитесь пересечения скором бычьего порога (<-0.5) для потенциальных лонгов или медвежьего порога (>0.5) для шортов
2 — Подтвердите одновременным появлением маркеров дивергенций
3 — Ищите формирование облака, усиливающего сигнал
4 — Используйте MTF-фильтр для избегания контр-трендовых сделок
Для продолжения тренда
• Импульсные стрелки указывают на сильное продолжение моментума
• Используйте как подтверждение при торговле в направлении установленного тренда
• Выравнивание MTF даёт дополнительную уверенность
Для мультитаймфреймового анализа
• Включите MTF-фильтр и установите высший таймфрейм (например, 4H на графике 1H, Daily на 4H)
• Используйте режим "Reduce" для консервативного подхода
• Используйте режим "Block" для строгого выравнивания по тренду
РУКОВОДСТВО ПО ПАРАМЕТРАМ
Группа Score
• VPI Weight (0.5): Баланс между компонентами волатильности и тренда. Увеличьте для сигналов, ориентированных на волатильность.
• TDFI Weight (0.5): Баланс между компонентами волатильности и тренда. Увеличьте для сигналов, ориентированных на тренд.
• Divergence Bonus Max (0.3): Максимальный вклад дивергенций в скор. Выше = сильнее влияние дивергенций.
Группа Divergence
• Pivot Lookback (3): 2=агрессивно/быстро, 3=сбалансированно, 5=консервативно/медленно
Группа Multi TimeFrame
• Higher TF : Обычно в 4-16 раз больше текущего таймфрейма (например, 4H для графика 1H)
• MTF Weight (0.3): Влияние высшего таймфрейма в финальном скоре
• Trend Filter Level (0.5): Порог TDFI, определяющий "сильный тренд" на HTF
Группа Visual
• Cloud Mode : Threshold (традиционный) vs Gradient (непрерывное накопление)
• Cloud Transparency : Базовая прозрачность для слабых сигналов
Группы Advanced
Тонкая настройка компонентов индикатора для конкретных рынков или таймфреймов. Значения по умолчанию хорошо работают для большинства активов. Увеличение периодов сглаживает сигналы, но добавляет задержку; уменьшение периодов увеличивает чувствительность, но может вызвать шум.
АЛЕРТЫ
Доступны шесть условий для алертов:
• Bullish Zone: Скор пересекает бычий порог снизу вверх
• Bearish Zone: Скор пересекает медвежий порог сверху вниз
• Strong Bull Div: Обе VPI+TDFI показывают бычью дивергенцию (не отфильтровано)
• Strong Bear Div: Обе VPI+TDFI показывают медвежью дивергенцию (не отфильтровано)
• Down Impulse: Медвежий импульсный прорыв
• Up Impulse: Бычий импульсный прорыв
ПРИМЕЧАНИЯ
• Работает на всех таймфреймах и классах активов (крипто, форекс, акции, индексы)
• Лучшие результаты на ликвидных рынках с чёткими циклами тренд/разворот
• Комбинируйте с price action, уровнями поддержки/сопротивления и риск-менеджментом
• Дивергенции лучше всего работают в условиях флэта или ослабления тренда
• Не является самостоятельной торговой системой - используйте как инструмент подтверждения
ОГРАНИЧЕНИЯ
• Как все индикаторы, RSS3 может генерировать ложные сигналы в изменчивых/боковых рынках
• Обнаружение дивергенций требует достаточного объёма исторических данных (минимум 50-100 баров)
• MTF-фильтр может значительно снизить частоту сигналов в режиме "Block"
• Продвинутые параметры требуют понимания базовых расчётов
ДИСКЛЕЙМЕР
Данный индикатор предоставляется исключительно в информационных и образовательных целях и не является финансовой, инвестиционной или торговой рекомендацией. Любая торговля сопряжена с риском, и прошлые результаты не гарантируют будущей доходности. Пользователи несут полную ответственность за свои торговые решения и должны провести собственное исследование или проконсультироваться с квалифицированным финансовым консультантом перед принятием инвестиционных решений. Автор не несёт ответственности за любые убытки, понесённые в результате использования данного индикатора.
═════════════════════════════════════════════════════════════════════════
© Rulph - Reversal Score System v3
3SPC Setup indicator3SPC Setup Indicator — Trend & Structure Confirmation Tool
The 3SPC Setup Indicator helps traders detect potential trend shifts and continuation phases using a clean 3-step confirmation process. It analyzes market structure to identify transitions between bullish and bearish conditions and visually highlights these phases directly on the chart.
How It Works
Structure Break (SB): Detects a break of a key structural point, signaling possible trend change.
Pullback Confirmation: Confirms intention by identifying whether price respects the new structural direction.
Continuation Phase: Marks potential continuation of the identified bullish or bearish trend.
Features
• Automatic detection of structure shifts
• Clear bullish/bearish continuation labels
• Color-coded trend phases
• Works on all markets and timeframes
• Simple, clean interface for fast decision-making
How to Use
• Apply to any symbol or timeframe
• Green labels indicate potential bullish continuation
• Red labels indicate potential bearish continuation
• Use as part of a broader confirmation strategy
• Always combine signals with proper risk management
Persian Description (Optional)
اندیکاتور 3SPC Setup با بررسی ساختار بازار، سه مرحله شکست ساختار، پولبک و ادامه روند را تشخیص میدهد و فازهای صعودی و نزولی را با رنگبندی نمایش میدهد. این ابزار در تمام تایمفریمها و بازارها قابل استفاده است و برای خوانایی بهتر، سیگنالها را ساده و قابل فهم نشان میدهد.
Notes
This tool provides no financial advice. Use at your own discretion and always manage your risk
Multi-Timeframe Price Zones📌Multi-Timeframe Price Zones
This indicator plots dynamic multi-timeframe price zones—including previous highs/lows, pivot levels, and magnetic support/resistance regions—using auto-updating boxes on the chart, allowing traders to identify high-influence price areas across higher timeframes with clarity and precision.
■ Magnetic Zones 1 – Inputs
Timeframe: Selects the higher timeframe used for generating zones (e.g., D, W, M).
Show Last: Defines how many of the most recent timeframe zones to display.
PDHL: Toggles previous-day-high/low zones.
P: Toggles the pivot level (previous period midpoint).
SR1 / SR2: Enables two sets of magnetic support/resistance zones based on volatility expansion multipliers.
Sub Color: Sets the primary color used for box borders, backgrounds, and text.
■ General Zone Settings
Box Transparency: Adjusts opacity of filled price zones.
Border Style: Selects border style (solid, dashed, dotted).
Text Size: Controls label sizing for zone annotations.
Text Alignment: Positions labels inside boxes (left, center, right).
■ Data Retrieval Logic
The script pulls higher-timeframe timestamps and close times (time, time_close) using request.security, ensuring boxes start exactly at the beginning of the selected timeframe and extend to its closing bar.
A helper function retrieves any higher-timeframe price series (high, low, midpoint, and magnetic zone values).
■ Magnetic Zone Calculation
The script computes magnetic support/resistance levels using previous-bar volatility:
prev_hl_diff = previous high − previous low
Resistance = hl2 + (multiplier × prev_hl_diff)
Support = hl2 − (multiplier × prev_hl_diff)
Two multipliers are used:
0.236 → SR1
0.786 → SR2
These create responsive zones that expand/shrink with volatility.
■ Buffer Zone Expansion
Each level generates a “buffer zone”—a small band above/below the main value—to create visually meaningful zones rather than a single flat line:
top = level + range/8
bottom = level − range/8
Buffers are applied symmetrically around each SR level.
■ Zone Types Displayed
1. PDHL Zones (Previous High / Previous Low)
Retrieved directly from the selected higher timeframe’s last completed bar.
2. Pivot Zone (P)
Based on midpoint (hl2) of the previous period.
3. Magnetic Zones SR1 / SR2
Volatility-based resistance/support zones with buffer expansion.
■ Box Rendering System
The script uses a generalized draw_box() function that draws labeled rectangles using:
timeframe start/end timestamps
top/bottom price boundaries
custom background transparency
border style and width
optional price annotations
All box references are stored in arrays for proper management and future cleanup.
■ Auto-Updating Logic
Whenever the higher timeframe changes (timeframe.change()):
New boxes are created for SR1, SR2, pivot, and PDHL levels.
Boxes extend from the higher timeframe’s opening timestamp to its closing timestamp.
Price labels include the exact value and the timeframe abbreviation.
This ensures zones remain aligned with the boundaries of each higher-timeframe candle.
■ Purpose
This indicator is designed to:
Highlight multi-timeframe price zones such as PDHL, pivots, and magnetic SR ranges.
Provide contextual support/resistance from a higher timeframe while trading lower timeframes.
Visualize volatility-driven price zones that often act as reaction levels.
Draw clean, well-structured, auto-refreshing boxes with customizable styling.
It does not attempt to predict price or generate trade signals—its function is structural visualization.
■ Notes
Zones update only when the higher timeframe completes.
Buffer zones visually emphasize areas of interest rather than single price lines.
Transparency and styling allow integration into any chart layout.
Enhanced ONH / ONL Auto Levels (Fixed Alerts)This script automatically identifies and plots the Overnight High (ONH) and Overnight Low (ONL)—two of the most important liquidity levels for intraday futures and index traders.
The indicator scans the entire overnight session (default: 18:00–09:30 EST for ES) and records the highest wick and lowest wick formed during Globex. These levels are then projected into the regular trading session, giving traders clear reference points for potential reversals, breakouts, liquidity grabs, and high-probability retest setups.
ONH/ONL levels act as magnet zones, liquidity pockets, and institutional decision points—commonly targeted during the opening drive and London/New York overlap. Whether price sweeps, reclaims, or breaks these levels, the reaction often creates reliable trade opportunities for scalpers and day traders.
TRADE ORBIT:-TOP BOTTOM INDICATOR🔵 BUY TRADE (Bottom Reversal Entry)
Enter when the green triangle appears.
Stop Loss (SL)
Below the low of the signal candle
Or below the swing low (safer)
Target (TP)
Choose ANY:
3%–5% move
Next resistance level (red line)
Risk:Reward = 1:2 or 1:3
Position Size
Risk 2% of your capital per trade (written in rules box).
🔴 SELL TRADE (Top Reversal Entry)
Enter on the red triangle.
Stop Loss (SL)
Above the high of the signal candle
Or above swing high (safer)
Target (TP)
Choose any:
3%–5% downward move
Next support level (green line)
RR = 1:2 or 1:3
📊 BEST WAY TO USE
1. Use on 15m / 30m / 1h for intraday
2. Use on Daily for swing trading
3. Always trade WITH weekly trend (if enabled)
4. Combine with trendlines or EMA200 for extra accuracy
Fibonacci Volume Profile [Auto-Anchored & Dynamic]The Concept: Structure Meets Participation Traders often treat Market Structure (Fibonacci Retracements) and Market Participation (Volume) as separate tools. This indicator merges them into a single, cohesive system.
Standard Volume Profiles are often static or require manual placement. Standard Fibonacci tools show where price might reverse, but not how much effort was spent there. This script solves that by automatically anchoring a high-definition Volume Profile to your most recent market swing, giving you a dynamic view of volume distribution relative to Fibonacci structural zones.
How It Works This is not a simple "tick" volume profile. It is a custom-built, array-based engine that:
Identifies the Swing: Automatically scans the last X bars (user-defined) to find the absolute Swing High and Swing Low.
Anchors the Profile: Draws the Volume Profile precisely covering the time duration of that swing.
Calculates Distribution: Using a "Smart Fill" algorithm, it distributes volume across price rows without gaps, ensuring a solid, institutional-grade look even on steep trends.
Dynamic Scaling: The width of the profile is responsive. It occupies a percentage of the swing's duration, meaning it scales perfectly whether you are zooming in, zooming out, or dragging chart margins.
Key Features
Auto-Anchored: No need to manually draw "Fixed Range" tools. The script adapts as new highs/lows are made.
Smart Fill Technology: Eliminates the "barcode" effect seen in basic scripts. Price rows are filled continuously for a solid distribution curve.
Split Volume Analysis: Bars are dual-colored (Teal/Red by default) to visualize Buy (Up Candle) vs. Sell (Down Candle) volume composition at every price level.
Point of Control (POC): Automatically highlights the price level with the highest volume (The "King" line) in Red.
Responsive Geometry: The profile width is defined as a percentage of the swing itself. It breathes with the chart.
Garbage Collection: Optimized for performance. Old drawings are cleared instantly when the chart moves, preventing "ghost" drawings or lag.
Settings Guide
Lookback Length: How far back the script scans for the High/Low (Default: 200). Increase this for higher timeframes or longer trends.
Resolution: The number of rows in the profile. (Default: 100). Higher = smoother definition.
Width (% of Swing): Controls how wide the profile is relative to the trend duration. (Default: 40%).
Colors: Fully customizable Buy, Sell, and POC colors to match your dark/light theme.
Disclaimer This script is for informational and analytical purposes only. It visualizes past market data and does not constitute financial advice or a signal to trade.
Stochastic RSI Forecast [QuantAlgo]🟢 Overview
The Stochastic RSI Forecast extends the classic momentum oscillator by projecting potential future K and D line values up to 10 bars ahead. Unlike traditional indicators that only reflect historical price action, this indicator uses three proprietary forecasting models, each operating on different market data inputs (price structure, volume metrics, or linear trend), to explore potential price paths. This unique approach allows traders to form probabilistic expectations about future momentum states and incorporate these projections into both discretionary and algorithmic trading and/or analysis.
🟢 How It Works
The indicator operates through a multi-stage calculation process that extends the RSI-to-Stochastic chain forward in time. First, it generates potential future price values using one of three selectable forecasting methods, each analyzing different market dimensions (structure, volume, or trend). These projected prices are then processed through an iterative RSI calculation that maintains continuity with historical gain/loss averages, producing forecasted RSI values. Finally, the system applies the full stochastic transformation (calculating the position of each forecasted RSI within its range, smoothing with K and D periods) to project potential future oscillator values.
The forecasting models adapt to market conditions by analyzing configurable lookback periods and recalculating projections on every bar update. The implementation preserves the mathematical properties of the underlying RSI calculation while extrapolating momentum trajectories, creating visual continuity between historical and forecasted values displayed as semi-transparent dashed lines extending beyond the current bar.
🟢 Key Features
1. Market Structure Model
This algorithm applies price action analysis by tracking break of structure (BOS) and change of character (CHoCH) patterns to identify potential order flow direction. The system detects swing highs and lows using configurable pivot lengths, then analyzes sequences of higher highs or lower lows to determine bullish or bearish structure bias. When price approaches recent swing points, the forecast projects moves in alignment with the established structure, scaled by ATR (Average True Range) for volatility adjustment.
Potential Benefits for Traders:
Explores potential momentum continuation scenarios during established trends
Identifies areas where structure changes might influence momentum
Could be useful for swing traders and position traders who incorporate structure-based analysis
The Structure Influence parameter (0-1 scale) allows blending between pure trend following and structure-weighted forecasts
Helps visualize potential trend exhaustion through weakening structure patterns
2. Volume-Weighted Model
This model analyzes volume patterns by combining On-Balance Volume (OBV), Accumulation/Distribution Line, and volume-weighted price returns to assess potential capital flow. The algorithm calculates directional volume momentum and identifies volume spikes above customizable thresholds to determine accumulation or distribution phases. When volume indicators align directionally, the forecast projects stronger potential moves; when volume diverges from price trends, it suggests possible reversals or consolidation.
Potential Benefits for Traders:
Incorporates volume analysis into momentum forecasting
Attempts to filter price action by volume support or lack thereof
Could be more relevant in markets where volume data is reliable (equities, crypto, major forex pairs)
Volume Influence parameter (0-1 scale) enables adaptation to different market liquidity profiles
Highlights volume climax patterns that sometimes precede trend changes
Could be valuable for traders who incorporate volume confirmation in their analysis
3. Linear Regression Model
This mathematical approach applies least-squares regression fitting to project price trends based on recent price data. Unlike the conditional logic of the other methods, linear regression provides straightforward trend extrapolation based on the best-fit line through the lookback period.
Potential Benefits for Traders:
Delivers consistent, reproducible forecasts based on statistical principles
Works better in trending markets with clear directional bias
Useful for systematic traders building quantitative strategies requiring stable inputs
Minimal parameter sensitivity (primarily controlled by lookback period)
Computationally efficient with fast recalculation on every bar
Serves as a baseline to compare against the more complex structure and volume methods
🟢 Universal Applications Across All Models
Each forecasting method projects potential future stochastic RSI values (K and D lines), which traders can use to:
▶ Anticipate potential crossovers: Visualize possible K/D crosses several bars ahead
▶ Explore overbought/oversold scenarios: Forecast when momentum might return from extreme zones
▶ Assess divergences: Evaluate how oscillator divergences might develop
▶ Inform entry timing: Consider potential points along the forecasted momentum curve for trade entry
▶ Develop systematic strategies: Build rules based on forecasted crossovers, slope changes, or threshold levels
▶ Adapt to market conditions: Switch between methods based on current market character (trending vs range-bound, high vs low volume)
In short, the indicator's flexibility allows traders to combine forecasting projections with traditional stochastic signals, using historical K/D for immediate reference while considering forecasted values for planning and analysis. As with all technical analysis tools, the forecasts represent one possible scenario among many and should be used as part of a broader trading methodology rather than as standalone signals.
Professional Market Dashboard [Master Edition].CRYPTOThe Problem: Trading in a Vacuum Most crypto traders fail not because they can't read a chart, but because they ignore the "Weather Report." They buy an Altcoin breakout while Bitcoin Dominance is skyrocketing, or they long a dip while Tether Dominance is spiking.
This dashboard solves that problem. It is designed to act as a Decision Support System, condensing the entire state of the crypto market into a single, institutional-grade panel. It replaces the need to have 5 different tabs open (BTC.D, USDT.D, TOTAL3, etc.) and allows you to trade with full context.
How It Works (The Logic Behind the Data)
This dashboard is divided into specific zones, designed to be scanned in a "Z" pattern:
1. The Engine (Header & Sentiment)
rVol (Relative Volume) : Compares current volume to the 20-period moving average. If rVol is < 100%, the header turns Grey, signaling a "Quiet Day" (low probability for breakouts).
Net Flow ($) : Unlike standard volume indicators that suffer from "unit bias" (where 1M cheap coins looks equal to 1M expensive coins), this calculates Dollar Turnover. It multiplies volume by price to show the actual capital flowing in or out of the asset in USD.
Sentiment: A smart label that combines Net Flow direction with VWAP (Volume Weighted Average Price) context. It only signals "BULLISH" if price is above VWAP and Net Flow is positive.
2. Market Context (The Macro Layer)
USDT.D (Tether Dominance): The "Fear Gauge" of crypto. When this is rising, traders are fleeing to stablecoins (Risk Off). When falling, capital is deploying into assets (Risk On).
BTC.D (Bitcoin Dominance): The "Cycle Gauge."
Rising: Bitcoin is sucking liquidity from the market (Risk of Alts bleeding).
Falling: Capital is rotating into Alts (Potential Altseason).
R S(BTC): Relative Strength against Bitcoin. This calculates the performance spread between the current asset and BTC. If this is RED, the asset is underperforming Bitcoin, suggesting it may be better to just hold BTC.
3. Sector Flow (Capital Rotation)
TOTAL3: The Market Cap of the top 125 coins excluding BTC and ETH. This is the purest chart for "Altcoin Health."
SOL & ETH: Leaders for the L1 and Smart Contract sectors. Monitoring these helps identify if a move is isolated or sector-wide.
4. Trend & Technicals
ADX (Trend Strength): Measures the intensity of the trend, not the direction. If ADX > 25, the background turns red/green, signaling a trending environment. If < 25 (Grey), the market is chopping.
Smart Levels: Automatically calculates the daily Fibonacci Pivot points based on yesterday's High/Low to project the next major Support or Resistance level.
MAs: A quick-glance view of the 9/21 EMAs and 100/200 SMAs to determine trend alignment across timeframes.
Visual Design The panel uses a "Stealth" color palette (Matte Green/Red and Slate Grey) to reduce eye strain during long sessions and prevent "false signals" from overly bright colors during low-volatility periods.
Disclaimer This tool is for informational and educational purposes only. It does not provide financial advice or guarantee profits. Always perform your own due diligence.
Trend Signal with Alert📌The Trend Signal Indicator is based on Smooth Hiken Asia, a trend-following direction indicator that removes noise through continuity of candle body and tail structure and momentum, reveals inverse correlations in upward and downward directions, and more intuitively identifies different trends that strengthen, persist and weaken.
■ Display Settings
Simple View: Enables a minimal visual mode using a global transparency value.
Simple View Transparency: Controls opacity when Simple View is active.
■ Theme Settings
Theme: Selects one of six predefined color themes (BASIC, CYBER_PINK, FUTURE_MINT, MODERN_MINIMAL, OCEAN_WAVE, GOLD_LUXURY).
Each theme automatically sets up-trend main/glow colors and down-trend main/glow colors.
■ Custom Color Settings
Use Custom Colors: Overrides theme colors with user-defined colors.
Down Main / Down Glow: Colors applied when open > close.
Up Main / Up Glow: Colors applied when close ≥ open.
■ Line Settings
Line Width: Thickness of the main trend lines.
Glow Width: Thickness of glow lines.
Main Line Transparency: Opacity for main lines.
Glow Transparency: Opacity for glow layers.
Fill Transparency: Opacity for the area-fill between open and close plots.
■ Heiken Ashi Calculation
The script uses TAExt.heiken_ashi to generate smoothed Heiken Ashi values with:
Pre-HA smoothing (length + selectable MA type),
Post-HA smoothing (length + selectable MA type),
resulting in cleaner, noise-reduced trend representation.
■ Trend Color Logic
The indicator determines trend direction as:
Down Trend: open > close → applies MAIN_UP / GLOW_UP colors.
Up Trend: close ≥ open → applies MAIN_DOWN / GLOW_DOWN colors.
Colors adapt automatically to theme, Simple View, or custom settings, with dynamic transparency adjustments.
■ Plotting Structure
The script plots four main components:
1. Main Trend Lines
Two primary lines (open and close HA values) using main_color and user-selected line width.
2. Area Fill
A fill between the open and close plots using fill_color, providing visual body thickness.
3. Glow Layer
Multiple glow lines around the HA structure (o and c) using glow_color and reduced opacity for a layered halo effect.
4. Simplified Mode Support
When Simple View is enabled, all colors dynamically shift to a unified transparency for a softer minimal look.
■ Core Behavior
The indicator does not generate signals or predictions; it purely visualizes trend conditions using smoothed Heiken Ashi values enriched by color styling, glow layers, and theme customization.
■ Purpose
Provide a visually enhanced smoothed trend indicator.
Improve trend recognition through glow effects and area fills.
Offer flexible visual themes and full customization.
Support clean minimal mode for distraction-free charting.
Adaptive Volatility Stop by Pedro Paulo de MeloStop ATR is a clean and reliable volatility-based trailing stop system, built to adapt dynamically to market conditions using the Average True Range (ATR).
It identifies trend direction, adjusts the stop level using stair-step logic, and automatically flips the stop when price reversals occur.
How it works
Uses ATR × Multiplier to calculate an adaptive volatility buffer
Tracks trend direction internally
Recomputes and repositions the stop when a trend flip is detected
Plots separate lines for bullish and bearish stop states
Works on any market and timeframe (crypto, forex, commodities, indices, stocks)
Why it’s useful
This Stop ATR implementation is extremely stable and visually clean.
It is particularly effective for:
Trend following
Position management
Swing and position trading
Systematic stop placement
Unlike many ATR-based stop versions, this script uses a corrected flip-handling method that prevents stop misalignment and ensures consistent trend state tracking.
Inputs
Period — ATR length
Multiplier — ATR factor that defines stop distance
Author
Developed by Pedro Paulo de Melo, open-source version.
BTC m1 STRATEGY V1–V4Only BTC m1, simple trend analysis from a low timeframe, performs quite well in consolidations, has a low drawdown rate, and has a relatively high win rate. 4 versions:
V1 - basic version
V2 - basic version + holds profitable positions longer
V3 - aggressive version
V4 - aggressive version + holds profitable positions longer
KOSPI RS Rating (Korea)This indicator measures the relative strength of a stock compared to the KOSPI index.
ADX Trend Dashboard [ Hemanth ]
The ADX + DI Trend Dashboard is a indicator that helps traders instantly assess market trend direction and strength. It combines the power of ADX and DMI (Directional Movement Index) to give a clear visual representation of bullish, bearish, and sideways trends. The dashboard is fully customizable, lightweight, and easy to use.
Key Features:
Displays ADX, +DI, and -DI lines with dynamic coloring.
Green ADX: Bullish trend
Red ADX: Bearish trend
Mini dashboard shows:
Trend direction (Bullish, Bearish)
Trend strength (Weak, Strong)
Threshold lines at 20 & 25 for quick trend strength reference.
Works on any timeframe and instrument.
Clean and visually appealing design to reduce chart clutter.
Inputs:
ADX Length: Number of bars used to calculate ADX.
Higher values smooth the indicator but respond slower.
Lower values make it more sensitive but may produce more noise.
Strong Trend Threshold: ADX value considered strong. Default: 25
+DI Color / -DI Color: Customize trend line colors.
How to Use:
Trend Direction:
Green ADX + +DI > -DI → Bullish
Red ADX + -DI > +DI → Bearish
Trend Strength:
ADX < 20 → Weak
ADX 20–25 → Moderate
ADX > 25 → Strong
Use the dashboard panel to quickly identify trend and strength without manually analyzing the lines.
Recommended Timeframes:
Works on all timeframes.
Ideal for day trading, swing trading, and long-term analysis.
Note:
This indicator does not generate buy or sell signals by itself. It is designed to help traders analyze trend direction and strength visually and make informed trading decisions in combination with other tools or price action.
Altcoin HFT System [Beta]Core Logic: This indicator combines SMC order blocks with trend algorithms to capture high-frequency reversal points.
Features:
Auto Trend Identification (Triangle Signals)
High-Frequency Top/Bottom Detection
No repainting in confirmed mode
Usage:
Green ▲ / LONG: Potential Buy Zone
Red ▼ / SHORT: Potential Sell Zone
Note: This is a public beta version. For detailed tutorials or updates, please check the YouTube link in my profile signature.
Bob's Strategy Pro (Dynamic SL & TP)This code is for a technical analysis indicator called "SSL Strategy Pro (Dynamic SL & TP)". Its primary benefit is to provide traders with a comprehensive, all-in-one visual framework for market analysis and trade management directly on their charts.
Here are its key benefits:
For Market Analysis and Trend Identification:
It offers a clear, visual representation of market structure and the prevailing trend direction using intuitive colored bands.
A major long-term trend line helps you align your trades with the broader market direction, reducing the likelihood of trading against a strong trend.
For Trade Entry and Exit (Risk Management):
It provides specific visual entry signals, helping to identify potential trade initiation points with greater objectivity.
Its most significant advantage is a complete, built-in risk management system.
Dynamic Stop-Loss: It automatically calculates and visually plots a protective stop-loss that adapts to current market volatility. This helps protect profits during favorable moves and defines your initial risk per trade.
Multi-Tier Profit-Taking Framework: It visually plots up to four distinct profit target levels on the chart. These are calculated based on a customizable risk-to-reward ratio relative to your initial stop-loss, allowing you to plan partial profit-taking and manage trades in stages.
Progressive Target Display: To keep the chart uncluttered, the higher profit targets only appear on the chart once certain conditions are met, focusing your attention on the most relevant immediate levels.
Overall Practical Use:
Visual Clarity: By plotting all critical information (trend, signals, stop-loss, multiple targets) directly on the price chart, it consolidates analysis and planning into one view, reducing the need to switch between different tools.
Enhanced Discipline: It encourages systematic trading by pre-defining exit points for both loss protection and profit-taking before entering a trade.
Customizability: Users can adjust key parameters, such as the sensitivity of the trend channels and the aggressiveness of the stop-loss, to match different trading styles and market conditions.
In summary, this tool is designed to assist traders by visually clarifying trends, generating entry alerts, and—most importantly—integrating a dynamic and structured approach to stop-loss and take-profit management to help control risk and systematically capture profits.
GLI / Asset Structural Trend RatioBasicly I asked AI to create a GLI to Asset trend ratio indicator.
Advanced Trend Break TargetsIntroduction
The Advanced Trend Break Targets (ATBT) is a semi-automated technical analysis system designed to validate trendline trading strategies with algorithmic precision. While standard trendlines are subjective drawings, the ATBT converts user-defined price structures into a mathematical model. It projects a trajectory based on two specific "Anchor Points" and monitors price action for valid breakouts, applying a strict "Confluence Filter" before generating signals or projecting targets.
Originality & Utility
Most trendline indicators rely on automatic detection, which often draws lines across irrelevant swing points. The ATBT respects the trader's discretion by allowing manual placement of the trendline (via timestamps) while automating the tedious tasks of monitoring for breaks, checking momentum conditions, and calculating Fibonacci risk-to-reward levels. This "Hybrid" approach combines human pattern recognition with machine discipline, ensuring trades are only signaled when specific quantitative conditions are met.
Detailed Methodology
1. The Advanced Projection Logic
The core of the script calculates a linear trajectory between two points in time (Start Date and End Date). Unlike standard drawings, this script calculates the exact slope (m) using the bar index difference
The script automatically detects the "Price Source" at your chosen timestamps. If a Pivot High exists at the start date, it defaults to a Resistance Line (Highs). If a Pivot Low exists, it defaults to a Support Line (Lows). This slope is then projected forward indefinitely:
2. The Confluence Filter (Multi-Condition Validation)
A raw price crossover is often a "fake-out." To combat this, the script includes a Mandatory Conditions engine. A breakout is only confirmed if the user-selected conditions are TRUE at the moment of the cross:
Volume Confirmation: Verifies if the breakout bar's volume is greater than its 20-period SMA.
CHOCH (Change of Character): Checks if the price has broken the most recent Swing High (for bullish setups) or Swing Low (for bearish setups) prior to the trendline break.
Swing Break: A strict check requiring the close to be beyond the last swing point.
Momentum (MACD & RSI): Ensures the MACD line is crossing the Signal line or that RSI is on the correct side of the 50 threshold.
Trend Filter (SMA): Verifies that price is above the 20 SMA (bullish) or below it (bearish).
3. Dynamic Target & Risk Calculation
Upon a validated breakout, the script scans the chart history for the most recent Pivot High or Low (within the lookback period) to define the "Structure Width" or Risk distance (D).
Stop Loss (SL): Placed at the recent Pivot Price.
Target 1: Projected at $1.0 \times D from the breakout point.
Target 2: Projected at $1.618 \times D (Golden Ratio).
Target 3: Projected at $2.618 \times D.
How to Use
1. Identify the Structure: visually identify a trendline on your chart (e.g., the upper resistance of a Wedge or Flag).
2. Set Anchors: Go to the script settings (Inputs tab) and enter the exact timestamp for Point 1 (Start of trendline) and Point 2 (End of trendline).
Tip: Ensure these dates align with the specific high/low candle you want to anchor to.
3. Configure Filters: Toggle the checkboxes in the "Mandatory Conditions" group.
Example: If you want to trade pure price action, enable "Require CHOCH" but leave "Require MACD" unchecked.
4. Interpret Signals:
Blue Labels (1 & 2): Indicate where the script has Advanced the trendline.
"Breakout" / "Breakdown" Label: Appears when price crosses the projected line AND all selected conditions are met.
Green/Red Dotted Lines: represent your Take Profit targets based on the structure width.
Inputs & Settings
TBT Group:
Start/End Date: The timestamps defining the line.
Pivot Left/Right: Controls the sensitivity of the pivot detection used for Stop Loss placement.
Extend Target Line: How far into the future the target lines are drawn.
Mandatory Conditions Group:
Require Volume / CHOCH / MACD / SMA / RSI: Individual toggles to build your specific trade strategy.
Thresholds: Adjust the lengths for SMA and RSI to match your preferred timeframe.
Example:
XAUUSD 4-hour timeframe
We had an uptrend. We added the indicator and set the point at the penultimate low (HL) and then the second point at the last low (HL), as shown in the following image.
You can choose the conditions you prefer to be met to trigger the breakout from the user settings.
Based on the conditions you set, if they are met, the indicator displays all the data, as seen in the following image. A stop-loss point was set, the breakout candle was identified, and the first target was set (you can choose to display the second and third targets from the user settings, noting that they are less likely to be achieved).
As we can see in the last image, the price reached the first target, then continued its path and achieved the second target as well. Afterward, it shifted to a short sideways trend and then reversed.
TBT vs. ATBT: Key Technical & Functional Enhancements
The ATBT (Advanced Trend Break Target) script introduces significant upgrades over the Free TBT, transforming it from a pure geometric breakout tool into a comprehensive strategy scanner with multi-factor confluence capabilities. Below are the primary differences:
1. Integration of Confluence Filters ("Mandatory Conditions")
The most substantial change is the addition of a robust filtering engine. While TBT relied solely on price crossing the trendline to trigger a signal, ATBT introduces a "Mandatory Conditions" input group. Traders can now require specific criteria to be met before a breakout is validated:
Volume Confirmation: Requires volume to exceed its SMA.
Market Structure (CHOCH): Can require a Change of Character to have occurred prior to the entry.
Momentum & Trend Filters: Options to enforce confirmation from MACD (crossovers), RSI (thresholds), and SMA (price location relative to the moving average).
2. Automated Risk Management (Stop-Loss)
ATBT adds a built-in Stop-Loss mechanism, addressing a missing feature in TBT.
TBT: Only projected Profit Targets (T1, T2, T3).
ATBT: Automatically calculates and plots a Stop-Loss (SL) level based on the pivot price used for the setup. This provides an immediate Risk/Reward visualization upon signal generation.
3. Smart Source Detection
ATBT improves user experience with an automation feature regarding the "Price Source" (High vs. Low).
TBT: The user must manually select whether they are anchoring to "High" or "Low" via the settings.
ATBT: The script attempts to automatically detect the correct source at the "Start Date" by checking if a pivot high or low exists at that timestamp, reducing manual configuration errors.
4. Enhanced Visuals & Swing Point Tracking
Visual clarity has been upgraded in the new version.
Swing Points: ATBT includes a `showSwingPoints` toggle that plots visual markers (circles) on Swing Highs and Swing Lows, helping traders visualize the market structure used for CHOCH and pivot calculations , Helping the trader identify the locations of the first and second points .
Signal State Tracking: ATBT uses "latched" logic (e.g., `chochMet`, `swingBrkMet`) to track if conditions were met anytime between Point 2 and the breakout, whereas TBT treated CHOCH largely as a separate visual component unrelated to the main trigger.
5. Refined Signal Logic
TBT: Triggers immediately upon a close across the trendline.
ATBT: Triggers only if the trendline cross occurs AND all enabled "Mandatory Conditions" return true. This significantly reduces noise by filtering out low-quality breakouts that lack structural or momentum support
Disclaimer
This script is a tool for visualizing market structure and calculating potential geometries. It does not guarantee future performance. Breakouts can fail, and "Mandatory Conditions" are lagging indicators that confirm past data. Always manage risk responsibly.
BEGGALKey Features and Concepts
1. Order Block (OB) Identification (Pivots)
The core of the indicator relies on Pivot Point detection (ta.pivothigh/ta.pivotlow) over a specified Pivot Length (e.g., 5 bars).
Bullish OB (Demand Zone): Identified at a valid low pivot point, with the zone boundary defined between the pivot low (low ) and the open/close average (hl2 ) of the pivot bar.
Bearish OB (Supply Zone): Identified at a valid high pivot point, with the zone boundary defined between the pivot high (high ) and the open/close average (hl2 ) of the pivot bar.
2. Advanced Strength Filters (Momentum & Volume)
The indicator applies strict filters to ensure only powerful, high-quality zones are drawn:
Momentum (ATR) Filter: Checks if the candle that created the OB has a range (high - low) greater than the Average True Range (ATR) multiplied by the Momentum Threshold. This filters for impulsive, strong candles.
Volume Imbalance Filter (SMC Confirmation): If enabled, it requires the volume of the OB-creating candle to be higher than the volume of candles surrounding it (checked over the Volume Imbalance Lookback period). This confirms institutional activity in the zone creation.
Structure Break Filter (BOS/CHoCH): If enabled, the OB is only considered valid if it is created after a Break of Structure (BOS) or Change of Character (CHoCH). This validates the zone according to market structure rules (e.g., a Bearish OB must be preceded by a break of a significant swing low).
3. Dynamic Zone Management
Zone Narrowing (enable_narrowing): This feature dynamically adjusts the boundaries of an Order Block after it has been touched. If a candle wick tests the zone without fully mitigating it, the zone boundary is moved inward to the point where the test occurred, narrowing the zone and making it a more precise entry point (Dynamic OB concept).
Mitigation/Removal: Once price action (either the candle's wick or close, based on the Mitigation Method setting) breaches the outermost boundary of the zone, the Order Block is considered mitigated (broken) and is removed from the chart to clear clutter.
4. Risk Categorization
The indicator tracks and draws up to a user-defined number of OBs (Bullish/Bearish OB Count). These are categorized by their index:
Index 0 (Closest): Categorized as High Risk Zone.
Index 1: Categorized as Medium Risk Zone.
Index 2 and beyond: Categorized as Low Risk Zone. The user can toggle the visibility for each of these risk categories.
5. Integrated Risk/Reward (RR) Setup
For the High Risk Zone (Index 0), once the zone is touched, the indicator displays a complete trade setup:
Entry: Assumed at the Average Price of the Order Block.
Stop Loss (SL): Placed at the protective boundary of the OB (the top for a Sell Zone, the bottom for a Buy Zone). The risk area is colored with the RR Risk Zone Background.
Take Profit (TP): Calculated based on the user-defined Risk/Reward Ratio (e.g., 2.0 for 1:2 RR). The reward area is colored with the RR Reward Zone Background.
The RR boxes and price labels (TP/SL) are drawn with a configurable RR Box Width (Bars).
6. Alerts
The indicator includes built-in Pine Script alerts that trigger when the price enters an unmitigated zone, notifying the user of the Risk Level (High, Medium, or Low), the zone's boundaries, and the price.
Trend Vector Pro v2.0Trend Vector Pro v2.0
👨💻 Developed by: Mohammed Bedaiwi
💡 Strategy Overview & Coherence
Trend Vector Pro (TVPro) is a momentum-based trend & reversal strategy that uses a custom smoothed oscillator, an optional ADX filter, and classic Pivot Points to create a single, coherent trading framework.
Instead of stacking random indicators, TVPro is built around these integrated components:
A custom momentum engine (signal generation)
An optional ADX filter (trend quality control)
Daily Pivot Points (context, targets & S/R)
Swing-based “Golden Bar” trailing stops (trade management)
Optional extended bar detection (overextension alerts)
All parts are designed to work together and are documented below to address originality & usefulness requirements.
🔍 Core Components & Justification
1. Custom Momentum Engine (Main Signal Source)
TVPro’s engine is a custom oscillator derived from the bar midpoint ( hl2 ), similar in spirit to the Awesome Oscillator but adapted and fully integrated into the strategy. It measures velocity and acceleration of price, letting the script distinguish between strong impulses, weakening trends, and pure noise.
2. ADX Filter (Trend Strength Validation – Optional)
Uses Average Directional Index (ADX) as a gatekeeper.
Why this matters: This prevents the strategy from firing signals in choppy, non-trending environments (when ADX is below the threshold) and keeps trades focused on periods of clear directional strength.
3. Classic Pivot Points (Context & Targets)
Calculates Daily Pivot Points ( PP, R1-R3, S1-S3 ) via request.security() using prior session data.
Why this matters: Momentum gives the signal, ADX validates the environment, and Pivots add external structure for risk and target planning. This is a designed interaction, not a random mashup.
🧭 Trend State Logic (5-State Bar Coloring)
The strategy uses the momentum's value + slope to define five states, turning the chart into a visual momentum map:
🟢 STRONG BULL (Bright Green): Momentum accelerating UP. → Strong upside impulse.
🌲 WEAK BULL (Dark Green): Momentum decelerating DOWN (while positive). → Pullback/pause zone.
🔴 STRONG BEAR (Bright Red): Momentum accelerating DOWN. → Strong downside impulse.
🍷 WEAK BEAR (Dark Red): Momentum decelerating UP (while negative). → Rally/short-covering zone.
🔵 NEUTRAL / CHOP (Cyan): Momentum is near zero (based on noise threshold). → Consolidation / low volatility.
🎯 Signal Logic Modes
TVPro provides two selectable entry styles, controlled by input:
Reversals Only (Cleaner Mode – Default): Targets trend flips. Entry triggers when the current state is Bullish (or Bearish) and the previous state was not. This reduces noise and over-trading.
All Strong Pulses (Aggressive Mode): Targets acceleration phases. Entry triggers when the bar turns to STRONG BULL or STRONG BEAR after any other state. This mode produces more trades.
📌 Risk Management Tools
🟡 Golden Bars – Trailing Stops: Yellow “Trail” Arrows mark confirmed Swing Highs/Lows. These are used as logical trailing stop levels based on market structure.
Extended Bars: Detects when price closes outside a 2-standard-deviation channel, flagging overextension where a pullback is more likely.
Pivot Points: Used as external targets for Take Profit and structural stop placement.
⚙️ Strategy Defaults (Crucial for Publication Compliance)
To keep backtest results realistic and in line with House Rules, TVPro is published with the following fixed default settings:
Order Size: 5% of equity per trade ( default_qty_value = 5 )
Commission: 0.04% per order ( commission_value = 0.04 )
Slippage: 2 ticks ( slippage = 2 )
Initial Capital: 10,000
📘 How to Trade with Trend Vector Pro
Entry: Take Long when a Long signal appears and confirm the bar is Green (Bull state). Short for Red (Bear state).
Stop Loss: Place the initial SL near the latest swing High/Low, or near a relevant Pivot level.
Trade Management: Follow Golden (Trail) Arrows to trail your stop behind structure.
Exits: Exit when: the trailing stop is hit, Price reaches a major Pivot level, or an opposite signal prints.
🛑 Disclaimer
This script is for educational purposes only and does not constitute financial advice. Past performance does not guarantee future results. Always forward-test and use proper risk management before applying any strategy to live trading.





















