스크립트에서 "200元+股票大盘"에 대해 찾기
MACD + SMA 200 Strategy (by ChartArt)Here is a combination of the classic MACD (moving average convergence divergence indicator) with the classic slow moving average SMA with period 200 together as a strategy.
This strategy goes long if the MACD histogram and the MACD momentum are both above zero and the fast MACD moving average is above the slow MACD moving average. As additional long filter the recent price has to be above the SMA 200. If the inverse logic is true, the strategy goes short. For the worst case there is a max intraday equity loss of 50% filter.
Save another $999 bucks with my free strategy.
This strategy works in the backtest on the daily chart of Bitcoin, as well as on the S&P 500 and the Dow Jones Industrial Average daily charts. Current performance as of November 30, 2015 on the SPX500 CFD daily is percent profitable: 68% since the year 1970 with a profit factor of 6.4. Current performance as of November 30, 2015 on the DOWI index daily is percent profitable: 51% since the year 1915 with a profit factor of 10.8.
All trading involves high risk; past performance is not necessarily indicative of future results. Hypothetical or simulated performance results have certain inherent limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not actually been executed, the results may have under- or over-compensated for the impact, if any, of certain market factors, such as lack of liquidity. Simulated trading programs in general are also subject to the fact that they are designed with the benefit of hindsight. No representation is being made that any account will or is likely to achieve profits or losses similar to those shown.
LONG TERM INVESTMENT TECHNICAL STRATEGY SCRIPT200 - WEEKLY MOVING AVERAGE
GREEN LINE IS 200 WEEKS MOVING AVERAGE OF CLOSE
BLUE LINE IS 200 WEEKS MOVING AVERAGE OF LOW MULTIPLIED BY 0.90
RED LINE IS 100 WEEKS MOVING AVERAGE OF CLOSE
CONDITION: GREEN LINE SHOULD BE ABOVE RED LINE AND PRICE SHOULD BE ABOVE GREEN LINE
BUY ONCE THE PRICE IS ABOVE GREEN LINE AND FULFILLS THE CONDITION.
TARGET 1 FOR TIME FRAME 1 YEAR= 2 X GREEN LINE VALUE WHEN PRICE CROSSED IT
TARGET 2 FOR TIME FRAME 3 YEARS= 3 X GREEN LINE VALUE WHEN PRICE CROSSED IT
TARGET 3 FOR TIME FRAME 5 YEARS= 5 X GREEN LINE VALUE WHEN PRICE CROSSED IT
TARGET 4 FOR TIME FRAME 10 YEARS= 10 X GREEN LINE VALUE WHEN PRICE CROSSED IT
STOP LOSS IS TRAILING TO BLUE LINE
200 SMA (5%/-3% Buffer) for SPY & QQQ In my testing TQQQ is an absolute monster of an ETF that performs extremely well even from a buy and hold standpoint over long periods of time, its largest drawback is the massive drawdown exposure that it faces which can be easily sidestepped with this strategy.
This strategy is meant to basically abuse TQQQ's insane outperformance while augmenting the typical 200SMA strategy in a way that uses all of its strengths while avoiding getting whipsawed in sideways markets.
The strategy BUYS when price crosses 5% over the 200SMA and then SELLS when price drops 3% below the 200SMA. Between trades I'll be parking my entire account in SGOV.
So maximizing profit while minimizing risk.
You use the strategy based off of QQQ and then make the trades on TQQQ when it tells you to BUY/SELL.
Here are some reasons why I will be using this strategy:
Simple emotionless BUY and SELL signals where I don't care who the president is, what is happening in the world, who is bombing who, who the leadership team is, no attachment to individual companies and diversified across the NASDAQ.
~85% win percentage and when it does lose the loses are nothing compared to the wins and after a loss you're basically set up for a massive win in the next trade.
Max drawdown of around 53% when using TQQQ
You benefit massively when the market is doing well and when there is a recession you basically sit in SGOV for a year and then are set up for a monster recovery with a clear easy BUY signal. So as long as you're patient you win regardless of what happens.
The trades are often very long term resulting in you taking advantage of Long Term Capital Gains tax advantage which could mean saving up to 15-20% in taxes.
With only a few trades you can spend time doing other stuff and don't have to track or pay attention to anything that is happening.
Simple, easy, and massively profitable.
200 Week Moving Average HeatmapСolors part of the SMA depending on the change in % (delta %) to the previous value. From blue(none to low increase) through green(moderate increase) to red(high increase).
200/150
This a variation to my 120/60 Trend Model for the daily chart on Bitcoin, which has quite reliably been determining the over all trend as well as low risk entries within a longer term trend. It's a combination of 150 & 220 SMA, used on the 1D chart. Once price closes below both SMAs trend is an early bearish signal, while the SMAs flipping to red is later but more reliable bearish signal. For bullish trend it is the same thing just the opposite. Once the "cloud" switches red trend is bearish while once it switches green it's bullish.
Bitcoin tends to get rejected by the cloud during bullish and bearish trends. Once Bitcoin pushes through the cloud the trend will typically reverse.
Bitcoin trading within or close to the cloud is generally a good long or short entries, depending on the color of the cloud (red: short & green: long).
Daily Moving Averages (EMAs + SMAs) to Intraday Chart200 SMA, 100 SMA, 50 EMA, and 20 EMA daily averages to intraday chart
Money Moving PROGuide to Using the "Money Moving PRO" Indicator
Important Note: This is a custom indicator compiled from several indicators by other authors. It combines elements from "Money Moving" (based on ATR trailing stop), EMA lines, premium/discount zones with delta volume, and volume profile. I am not the original author of the base components, but the indicator has been adapted for comprehensive analysis. Use it at your own risk as a tool for analysis, not as the sole basis for trading. It is recommended to test it on a demo account.
Installing the Indicator
Open TradingView (tradingview.com) and log into your account.
Go to the chart of any asset (e.g., cryptocurrencies, stocks, or forex).
Click on the "Indicators" button (at the top of the chart).
Select "Pine Editor" at the bottom of the window (or press Ctrl+E).
Copy the entire code from the file "Money Moving PRO (LummiCrypto) alerts.txt" and paste it into the editor.
Click "Add to Chart."
The indicator will appear on the chart. You can customize its settings in the indicator menu (gear icon next to the indicator name).
The indicator operates in overlay mode (overlaid on the price chart), supports up to 500 lines and boxes, and uses up to 5,000 bars of historical data.
Indicator Settings
The indicator is divided into setting groups. Below are the main parameters and their descriptions:
Money Moving Settings
MM Key Value (Sensitivity): Sensitivity (default: 1). Higher values widen the ATR-based stop-loss.
MM ATR Period: ATR period (default: 3). Affects volatility calculation.
MM Use Heiken Ashi Candles: Use Heiken Ashi candles instead of regular ones (default: disabled). Enable for smoother signals.
EMA Settings
Show Ema 20/50/100/200: Display EMAs with periods 20, 50, 100, 200 (all enabled by default).
Ema Colors: Line colors (red for 20, orange for 50, aqua for 100, blue for 200). Can be changed for convenience.
Premium & Discount Settings
Show Premium & Discount Delta Volume: Display zones with delta volume (default: enabled).
Premium & Discount Lookback Period: Lookback period for support/resistance levels (default: 50 bars).
Macro Lookback Period: Lookback period for macro levels (default: 200 bars).
Discount/Premium Colors: Zone colors (blue for discount, orange for premium).
Volume Profile Settings
Show Volume Profile: Display volume profile (default: enabled).
Fixed Range Lookback Depth: Historical bars to include (10–3000, default: 200).
Number of Volume Bars: Number of bars in the profile (10–490, default: 200).
Volume Bar Thickness: Bar width (1–30, default: 1).
Bar Length Multiplier: Bar length multiplier (1–50, default: 20).
Right Offset: Space from the right edge of the chart (0–400, default: 70).
Volume Type: Volume type ("Both," "Bullish," or "Bearish"; default: "Both").
Display Point of Control (PoC): Show PoC (default: enabled).
Display Value Area: Show value area (default: enabled, 68% by default).
Other: Colors and line thicknesses for PoC and Value Area.
Customize the settings to match your trading style. For beginners, keep the default values.
Buy and Sell Signals
The primary signals are generated in the "Money Moving" block based on the ATR trailing stop and EMA(1). This is a simple system similar to SuperTrend but with custom settings.
Buy Signal (BUY): Green upward triangle below the bar. Triggered when the price crosses above the trailing stop (src > xATRTrailingStop and EMA(1) crosses above the stop). Indicates a potential upward reversal or trend continuation.
Entry Conditions: Confirm the signal with price crossing above EMA 20/50 or in the Discount zone. Volume profile should show accumulation at the lower end.
Alert: In TradingView, set up an alert for "BUY Signal" — message "Money Moving: BUY Signal at {{close}}".
Sell Signal (SELL): Red downward triangle above the bar. Triggered when the price crosses below the trailing stop (src < xATRTrailingStop and EMA(1) crosses below the stop). Indicates a potential downward reversal or correction.
Entry Conditions: Confirm with price crossing below EMA 20/50 or in the Premium zone. Volume profile should show distribution at the upper end.
Alert: Set up an alert for "SELL Signal" — message "Money Moving: SELL Signal at {{close}}".
Important: Signals are not 100% accurate. Use them in combination with other indicator elements:
EMA Lines: Uptrend — price above EMA 200, EMA 20 above EMA 50. For buys, look for bounces off lower EMAs.
Premium/Discount Zones:
Discount (Blue box at the bottom): Oversold zone with positive delta volume (more buying). Ideal for buys.
Premium (Orange box at the top): Overbought zone with negative delta volume (more selling). Ideal for sells.
Delta Volume shows balance (in %): positive — bullish, negative — bearish.
Volume Profile:
PoC (Red line): Level of maximum volume — strong support/resistance.
Value Area (Blue bars/lines): 68% of volume — equilibrium zone. Breakout above VAH (top) is bullish, below VAL (bottom) is bearish.
Example Strategy:
Wait for a BUY signal in the Discount zone, with price above EMA 50 and PoC below the price.
Stop-Loss: Below the trailing stop or nearest low.
Take-Profit: At the Premium zone or 1–2 ATR distance.
Similar for SELL.
Additional Features
Alert Conditions: The indicator includes built-in alerts for BUY/SELL. In TradingView, set up notifications (SMS, email, popup).
Visualization: Boxes for zones, lines for EMAs and volume profile. If the chart is cluttered, disable unnecessary parts (e.g., Volume Profile for short timeframes).
Compatibility: Works on any timeframe, but best on H1-D1 for crypto/stocks. Enable Heiken Ashi for noise filtering.
Tips for Use
Testing: Backtest on historical data in TradingView. Test on different assets (BTC, ETH, etc.).
Risk Management: Risk no more than 1–2% of capital per trade. Combine with other indicators (RSI, MACD).
Limitations: The indicator relies on volume (better on exchanges with real volume data). For forex/crypto, volumes may be tick-based.
Updates: If the code changes, check TradingView forums (e.g., search for "Money Moving" or "Volume Profile").
Warning: Trading carries risks. This is not financial advice.
Руководство по использованию индикатора "Money Moving PRO"
Важное замечание: Этот индикатор является кастомным, собранным из нескольких индикаторов других авторов. Он сочетает элементы из "Money Moving" (на основе ATR-трейлинг-стопа), EMA-линий, зон премиум/дисконт с дельта-объемом и профиля объема. Я не являюсь оригинальным автором базовых компонентов, но индикатор адаптирован для комплексного анализа. Используйте его на свой риск, как инструмент для анализа, а не как единственную основу для торговли. Рекомендуется тестировать на демо-счете.
Установка индикатора
Откройте TradingView (tradingview.com) и войдите в аккаунт.
Перейдите в график любого актива (например, криптовалюты, акции или форекс).
Нажмите на кнопку "Индикаторы" (в верхней панели графика).
Выберите "Pine Editor" в нижней части окна (или нажмите Ctrl+E).
Скопируйте весь код из файла "Money Moving PRO (LummiCrypto) alerts.txt" и вставьте его в редактор.
Нажмите "Add to Chart" (Добавить на график).
Индикатор появится на графике. Вы можете настроить его параметры в меню индикатора (шестеренка рядом с названием).
Индикатор работает в overlay-режиме (накладывается на график цены), поддерживает до 500 линий и боксов, и использует до 5000 баров истории.
Настройки индикатора
Индикатор разделен на группы настроек. Вот основные параметры и их описание:
Money Moving Settings (Настройки Money Moving)
MM Key Value (Sensitivity): Чувствительность (по умолчанию 1). Чем выше значение, тем шире стоп-лосс на основе ATR.
MM ATR Period: Период ATR (по умолчанию 3). Влияет на расчет волатильности.
MM Use Heiken Ashi Candles: Использовать Heiken Ashi свечи вместо обычных (по умолчанию выключено). Включайте для сглаживания сигналов.
EMA Settings (Настройки EMA)
Show Ema 20/50/100/200: Показывать EMA с периодами 20, 50, 100, 200 (все по умолчанию включены).
Ema Colors: Цвета линий (красный для 20, оранжевый для 50, аква для 100, синий для 200). Можно изменить для удобства.
Premium & Discount Settings (Настройки Премиум и Дисконт)
Show Premium & Discount Delta Volume: Показывать зоны с дельта-объемом (по умолчанию включено).
Premium & Discount Lookback Period: Период обзора для S/R уровней (по умолчанию 50 баров).
Macro Lookback Period: Период для макро-уровней (по умолчанию 200 баров).
Discount/Premium Colors: Цвета зон (голубой для дисконт, оранжевый для премиум).
Volume Profile Settings (Настройки Профиля Объема)
Show Volume Profile: Показывать профиль объема (по умолчанию включено).
Fixed Range Lookback Depth: Глубина обзора (10–3000 баров, по умолчанию 200).
Number of Volume Bars: Количество баров в профиле (10–490, по умолчанию 200).
Volume Bar Thickness: Толщина баров (1–30, по умолчанию 1).
Bar Length Multiplier: Множитель длины баров (1–50, по умолчанию 20).
Right Offset: Отступ справа (0–400, по умолчанию 70).
Volume Type: Тип объема ("Both" — оба, "Bullish" — бычий, "Bearish" — медвежий; по умолчанию "Both").
Display Point of Control (PoC): Показывать точку контроля (по умолчанию включено).
Display Value Area: Показывать область значения (по умолчанию включено, 68% по умолчанию).
Другие: Цвета, толщины линий для PoC и Value Area.
Настройте параметры под свой стиль торговли. Для начинающих оставьте значения по умолчанию.
Сигналы на покупку и продажу
Основные сигналы генерируются в блоке "Money Moving" на основе ATR-трейлинг-стопа и EMA(1). Это простая система, похожая на SuperTrend, но с кастомными настройками.
Сигнал на покупку (BUY): Зеленый треугольник вверх под баром. Происходит, когда цена пересекает вверх трейлинг-стоп (src > xATRTrailingStop и кроссовер EMA(1) над стопом). Это указывает на потенциальный разворот вверх или продолжение тренда.
Условия для входа: Подтвердите сигнал пересечением цены выше EMA 20/50 или в зоне дисконт (Discount). Объем в профиле должен показывать накопление в нижней части.
Алерт: В TradingView настройте алерт на "BUY Signal" — сообщение "Money Moving: BUY Signal at {{close}}".
Сигнал на продажу (SELL): Красный треугольник вниз над баром. Происходит, когда цена пересекает вниз трейлинг-стоп (src < xATRTrailingStop и кроссундер EMA(1) под стопом). Указывает на разворот вниз или коррекцию.
Условия для входа: Подтвердите пересечением ниже EMA 20/50 или в зоне премиум (Premium). Объем в профиле должен показывать распределение в верхней части.
Алерт: Настройте алерт на "SELL Signal" — сообщение "Money Moving: SELL Signal at {{close}}".
Важно: Сигналы не 100% точны. Используйте их в комбинации с другими элементами индикатора:
EMA-линии: Восходящий тренд — цена выше EMA 200, EMA 20 выше EMA 50. Для покупок ищите отскок от нижних EMA.
Премиум/Дисконт зоны:
Discount (Дисконт, голубой бокс снизу): Зона перепроданности с положительным дельта-объемом (больше покупок). Идеально для покупок.
Premium (Премиум, оранжевый бокс сверху): Зона перекупленности с отрицательным дельта-объемом (больше продаж). Идеально для продаж.
Delta Volume показывает баланс (в %): положительный — бычий, отрицательный — медвежий.
Профиль объема:
PoC (красная линия): Уровень максимального объема — сильная поддержка/сопротивление.
Value Area (синие бары/линии): 68% объема — зона равновесия. Пробой VAH (верх) — бычий, VAL (низ) — медвежий.
Пример стратегии:
Ждите сигнала BUY в зоне Discount, когда цена выше EMA 50 и PoC ниже цены.
Стоп-лосс: Ниже трейлинг-стопа или ближайшего минимума.
Тейк-профит: У зоны Premium или на расстоянии 1-2 ATR.
Аналогично для SELL.
Дополнительные функции
Алерткондиции: Индикатор имеет встроенные алерты для BUY/SELL. В TradingView настройте уведомления (SMS, email, popup).
Визуализация: Боксы для зон, линии для EMA и профиля. Если график перегружен, отключите ненужные части (например, Volume Profile для коротких таймфреймов).
Совместимость: Работает на любых таймфреймах, но лучше на H1-D1 для крипты/акций. Для Heiken Ashi включите опцию для фильтрации шума.
Советы по использованию
Тестирование: Backtest на исторических данных в TradingView. Проверьте на разных активах (BTC, ETH и т.д.).
Риск-менеджмент: Не рискуйте более 1-2% капитала на сделку. Комбинируйте с другими индикаторами (RSI, MACD).
Ограничения: Индикатор зависит от объема (лучше на биржах с реальными объемами). На форексе/крипте объемы могут быть тиковыми.
Обновления: Если код изменится, проверьте на форумах TradingView (например, по ключам "Money Moving" или "Volume Profile").
Предупреждение: Торговля несет риски. Это не финансовый совет.
Multi-Timeframe EMA (5 Configurable)Here's a comprehensive description you can use for your indicator:
Multi-Timeframe EMA Indicator (5 Configurable Slots)
Description
This indicator displays up to 5 Exponential Moving Averages (EMAs) from different timeframes simultaneously on a single chart. Perfect for multi-timeframe analysis, it allows traders to visualize key EMAs from intraday to higher timeframes without switching charts.
Key Features
5 Independent EMA Slots: Each slot can be configured with its own timeframe, EMA length, and color
Flexible Configuration: Mix any timeframes and EMA lengths (e.g., 1m EMA 50, 15m EMA 200, 4h EMA 100)
Smart Label Formatting: Automatically displays timeframes in readable format (minutes, hours, or days)
Optional Data Table: Toggle a compact table showing EMA values and price distance percentages
Individual Toggle Controls: Enable/disable each EMA independently without losing settings
Customizable Styling: Adjust colors and line width to match your chart theme
Default Configuration
EMA 1: 1-minute timeframe, EMA 200 (Red)
EMA 2: 5-minute timeframe, EMA 200 (Purple)
EMA 3: 15-minute timeframe, EMA 200 (Yellow)
EMA 4: 1-hour timeframe, EMA 200 (Blue)
EMA 5: 4-hour timeframe, EMA 200 (Orange)
How to Use
Add the indicator to any chart
Configure each EMA slot in the settings:
Timeframe: Choose from 1m, 5m, 15m, 1h, 4h, D, W, M, or custom
Length: Set the EMA period (default 200)
Color: Select a color for easy identification
Enable "Show Line Labels" to see EMA identifiers on the right side
Enable "Show Values Table" for a detailed view of current values and distances
Use Cases
Trend Analysis: Identify alignment across multiple timeframes
Support/Resistance: Use higher timeframe EMAs as dynamic S/R levels
Entry/Exit Timing: Enter on lower timeframe signals near higher timeframe EMAs
Multi-Timeframe Confirmation: Validate setups when price is above/below key EMAs
Scalping: Monitor 1m/5m EMAs while respecting 1h/4h trend direction
Tips
All EMAs update in real-time and move with the chart
Use contrasting colors for easier visual distinction
Disable unused slots to declutter your chart
The table shows percentage distance from current price to each EMA
Works on any symbol and any chart timeframe
Multi SMA + Golden/Death + Heatmap + BB**Multi SMA (50/100/200) + Golden/Death + Candle Heatmap + BB**
A practical trend toolkit that blends classic 50/100/200 SMAs with clear crossover labels, special 🚀 Golden / 💀 Death Cross markers, and a readable candle heatmap based on a dynamic regression midline and volatility bands. Optional Bollinger Bands are included for context.
* See trend direction at a glance with SMAs.
* Get minimal, de-cluttered labels on important crosses (50↔100, 50↔200, 100↔200).
* Highlight big regime shifts with special Golden/Death tags.
* Read momentum and volatility with the candle heatmap.
* Add Bollinger Bands if you want classic mean-reversion context.
Designed to be lightweight, non-repainting on confirmed bars, and flexible across timeframes.
# What This Indicator Does (plain English)
* **Tracks trend** using **SMA 50/100/200** and lets you optionally compute each SMA on a higher or different timeframe (HTF-safe, no lookahead).
* **Prints labels** when SMAs cross each other (up or down). You can force signals only after bar close to avoid repaint.
* **Marks Golden/Death Crosses** (50 over/under 200) with special labels so major regime changes stand out.
* **Colors candles** with a **heatmap** built from a regression midline and volatility bands—greenish above, reddish below, with a smooth gradient.
* **Optionally shows Bollinger Bands** (basis SMA + stdev bands) and fills the area between them.
* **Includes alert conditions** for Golden and Death Cross so you can automate notifications.
---
# Settings — Simple Explanations
## Source
* **Source**: Price source used to calculate SMAs and Bollinger basis. Default: `close`.
## SMA 50
* **Show 50**: Turn the SMA(50) line on/off.
* **Length 50**: How many bars to average. Lower = faster but noisier.
* **Color 50** / **Width 50**: Visual style.
* **Timeframe 50**: Optional alternate timeframe for SMA(50). Leave empty to use the chart timeframe.
## SMA 100
* **Show 100**: Turn the SMA(100) line on/off.
* **Length 100**: Bars used for the mid-term trend.
* **Color 100** / **Width 100**: Visual style.
* **Timeframe 100**: Optional alternate timeframe for SMA(100).
## SMA 200
* **Show 200**: Turn the SMA(200) line on/off.
* **Length 200**: Bars used for the long-term trend.
* **Color 200** / **Width 200**: Visual style.
* **Timeframe 200**: Optional alternate timeframe for SMA(200).
## Signals (crossover labels)
* **Show crossover signals**: Prints triangle labels on SMA crosses (50↔100, 50↔200, 100↔200).
* **Wait for bar close (confirmed)**: If ON, signals only appear after the candle closes (reduces repaint).
* **Min bars between same-pair signals**: Minimum spacing to avoid duplicate labels from the same SMA pair too often.
* **Trend filter (buy: 50>100>200, sell: 50<100<200)**: Only show bullish labels when SMAs are stacked bullish (50 above 100 above 200), and only show bearish labels when stacked bearish.
### Label Offset
* **Offset mode**: Choose how to push labels away from price:
* **Percent**: Offset is a % of price.
* **ATR x**: Offset is ATR(14) × multiplier.
* **Percent of price (%)**: Used when mode = Percent.
* **ATR multiplier (for ‘ATR x’)**: Used when mode = ATR x.
### Label Colors
* **Bull color** / **Bear color**: Background of triangle labels.
* **Bull label text color** / **Bear label text color**: Text color inside the triangles.
## Golden / Death Cross
* **Show 🚀 Golden Cross (50↑200)**: Show a special “Golden” label when SMA50 crosses above SMA200.
* **Golden label color** / **Golden text color**: Styling for Golden label.
* **Show 💀 Death Cross (50↓200)**: Show a special “Death” label when SMA50 crosses below SMA200.
* **Death label color** / **Death text color**: Styling for Death label.
## Candle Heatmap
* **Enable heatmap candle colors**: Turns the heatmap on/off.
* **Length**: Lookback for the regression midline and volatility measure.
* **Deviation Multiplier**: Band width around the midline (bigger = wider).
* **Volatility basis**:
* **RMA Range** (smoothed high-low range)
* **Stdev** (standard deviation of close)
* **Upper/Middle/Lower color**: Gradient colors for the heatmap.
* **Heatmap transparency (0..100)**: 0 = solid, 100 = invisible.
* **Force override base candles**: Repaint base candles so heatmap stays visible even if your chart has custom coloring.
## Bollinger Bands (optional)
* **Show Bollinger Bands**: Toggle the overlay on/off.
* **Length**: Basis SMA length.
* **StdDev Multiplier**: Distance of bands from the basis in standard deviations.
* **Basis color** / **Band color**: Line colors for basis and bands.
* **Bands fill transparency**: Opacity of the fill between upper/lower bands.
---
# Features & How It Works
## 1) HTF-Safe SMAs
Each SMA can be calculated on the chart timeframe or a higher/different timeframe you choose. The script pulls HTF values **without lookahead** (non-repainting on confirmed bars).
## 2) Crossover Labels (Three Pairs)
* **50↔100**, **50↔200**, **100↔200**:
* **Triangle Up** label when the first SMA crosses **above** the second.
* **Triangle Down** label when it crosses **below**.
* Optional **Trend Filter** ensures only signals aligned with the overall stack (50>100>200 for bullish, 50<100<200 for bearish).
* **Debounce** spacing avoids repeated labels for the same pair too close together.
## 3) Golden / Death Cross Highlights
* **🚀 Golden Cross**: SMA50 crosses **above** SMA200 (often a longer-term bullish regime shift).
* **💀 Death Cross**: SMA50 crosses **below** SMA200 (often a longer-term bearish regime shift).
* Separate styling so they stand out from regular cross labels.
## 4) Candle Heatmap
* Builds a **regression midline** with **volatility bands**; colors candles by their position inside that channel.
* Smooth gradient: lower side → reddish, mid → yellowish, upper side → greenish.
* Helps you see momentum and “where price sits” relative to a dynamic channel.
## 5) Bollinger Bands (Optional)
* Classic **basis SMA** ± **StdDev** bands.
* Light visual context for mean-reversion and volatility expansion.
## 6) Alerts
* **Golden Cross**: `🚀 GOLDEN CROSS: SMA 50 crossed ABOVE SMA 200`
* **Death Cross**: `💀 DEATH CROSS: SMA 50 crossed BELOW SMA 200`
Add these to your alerts to get notified automatically.
---
# Tips & Notes
* For fewer false positives, keep **“Wait for bar close”** ON, especially on lower timeframes.
* Use the **Trend Filter** to align signals with the broader stack and cut noise.
* For HTF context, set **Timeframe 50/100/200** to higher frames (e.g., H1/H4/D) while you trade on a lower frame.
* Heatmap “Length” and “Deviation Multiplier” control smoothness and channel width—tune for your asset’s volatility.
SMA+デマンド・オファーゾーン最強版(仮)This indicator is designed to help traders visually identify both trend direction and potential reversal zones in one glance.
📊 Key Features:
• Displays 4 SMAs (9 / 20 / 75 / 200) simultaneously
• Automatically detects and plots Demand Zones (green) and Supply Zones (red) based on recent swing highs and lows
• Shows ▲ Golden Cross and ▼ Dead Cross markers when SMA 9 crosses SMA 20
• Built-in alert conditions for SMA crossovers and zone breakouts
💡 How to Use:
Use SMA direction and alignment to confirm the trend, and watch for Supply/Demand zones and cross signals as potential reversal or breakout setups.
Perfect for spotting pullbacks and identifying confluence zones between trend and structure.
⚙️ Customization:
• Adjustable SMA lengths, colors, and line widths
• Modify pivot length to fine-tune zone sensitivity
✅ Built with Pine Script v5
✅ Works on FX, Stocks, Crypto, and Indices
Author’s Note:
I created this indicator to combine trend-following tools with supply-demand logic in a clean and intuitive way.
Even beginners can easily visualize where reactions or breakouts are likely to happen.
If you find this script helpful, please give it a ❤️ and follow for more updates!
Support and resistance levels (Day, Week, Month) + EMAs + SMAs(ENG): This Pine 5 script provides various tools for configuring and displaying different support and resistance levels, as well as moving averages (EMA and SMA) on charts. Using these tools is an essential strategy for determining entry and exit points in trades.
Support and Resistance Levels
Daily, weekly, and monthly support and resistance levels play a key role in analyzing price movements:
Daily levels: Represent prices where a cryptocurrency has tended to bounce within the current trading day.
Weekly levels: Reflect strong prices that hold throughout the week.
Monthly levels: Indicate the most significant levels that can influence price movement over the month.
When trading cryptocurrencies, traders use these levels to make decisions about entering or exiting positions. For example, if a cryptocurrency approaches a weekly resistance level and fails to break through it, this may signal a sell opportunity. If the price reaches a daily support level and starts to bounce up, it may indicate a potential long position.
Market context and trading volumes are also important when analyzing support and resistance levels. High volume near a level can confirm its significance and the likelihood of subsequent price movement. Traders often combine analysis across different time frames to get a more complete picture and improve the accuracy of their trading decisions.
Moving Averages
Moving averages (EMA and SMA) are another important tool in the technical analysis of cryptocurrencies:
EMA (Exponential Moving Average): Gives more weight to recent prices, allowing it to respond more quickly to price changes.
SMA (Simple Moving Average): Equally considers all prices over a given period.
Key types of moving averages used by traders:
EMA 50 and 200: Often used to identify trends. The crossing of the 50-day EMA with the 200-day EMA is called a "golden cross" (buy signal) or a "death cross" (sell signal).
SMA 50, 100, 150, and 200: These periods are often used to determine long-term trends and support/resistance levels. Similar to the EMA, the crossings of these averages can signal potential trend changes.
Settings Groups:
EMA Golden Cross & Death Cross: A setting to display the "golden cross" and "death cross" for the EMA.
EMA 50 & 200: A setting to display the 50-day and 200-day EMA.
Support and Resistance Levels: Includes settings for daily, weekly, and monthly levels.
SMA 50, 100, 150, 200: A setting to display the 50, 100, 150, and 200-day SMA.
SMA Golden Cross & Death Cross: A setting to display the "golden cross" and "death cross" for the SMA.
Components:
Enable/disable the display of support and resistance levels.
Show level labels.
Parameters for adjusting offset, display of EMA and SMA, and their time intervals.
Parameters for configuring EMA and SMA Golden Cross & Death Cross.
EMA Parameters:
Enable/disable the display of 50 and 200-day EMA.
Color and style settings for EMA.
Options to use bar gaps and the "LookAhead" function.
SMA Parameters:
Enable/disable the display of 50, 100, 150, and 200-day SMA.
Color and style settings for SMA.
Options to use bar gaps and the "LookAhead" function.
Effective use of support and resistance levels, as well as moving averages, requires an understanding of technical analysis, discipline, and the ability to adapt the strategy according to changing market conditions.
(RUS) Данный Pine 5 скрипт предоставляет разнообразные инструменты для настройки и отображения различных уровней поддержки и сопротивления, а также скользящих средних (EMA и SMA) на графиках. Использование этих инструментов является важной стратегией для определения точек входа и выхода из сделок.
Уровни поддержки и сопротивления
Дневные, недельные и месячные уровни поддержки и сопротивления играют ключевую роль в анализе движения цен:
Дневные уровни: Представляют собой цены, на которых криптовалюта имела тенденцию отскакивать в течение текущего торгового дня.
Недельные уровни: Отражают сильные цены, которые сохраняются в течение недели.
Месячные уровни: Указывают на наиболее значимые уровни, которые могут влиять на движение цены в течение месяца.
При торговле криптовалютами трейдеры используют эти уровни для принятия решений о входе в позицию или закрытии сделки. Например, если криптовалюта приближается к недельному уровню сопротивления и не удается его преодолеть, это может стать сигналом для продажи. Если цена достигает дневного уровня поддержки и начинает отскакивать вверх, это может указывать на возможность открытия длинной позиции.
Контекст рынка и объемы торговли также важны при анализе уровней поддержки и сопротивления. Высокий объем при приближении к уровню может подтвердить его значимость и вероятность последующего движения цены. Трейдеры часто комбинируют анализ различных временных рамок для получения более полной картины и улучшения точности своих торговых решений.
Скользящие средние
Скользящие средние (EMA и SMA) являются еще одним важным инструментом в техническом анализе криптовалют:
EMA (Exponential Moving Average): Экспоненциальная скользящая средняя, которая придает большее значение последним ценам. Это позволяет более быстро реагировать на изменения в ценах.
SMA (Simple Moving Average): Простая скользящая средняя, которая равномерно учитывает все цены в заданном периоде.
Основные виды скользящих средних, которые используются трейдерами:
EMA 50 и 200: Часто используются для выявления трендов. Пересечение 50-дневной EMA с 200-дневной EMA называется "золотым крестом" (сигнал на покупку) или "крестом смерти" (сигнал на продажу).
SMA 50, 100, 150 и 200: Эти периоды часто используются для определения долгосрочных трендов и уровней поддержки/сопротивления. Аналогично EMA, пересечения этих средних могут сигнализировать о возможных изменениях тренда.
Группы настроек:
EMA Golden Cross & Death Cross: Настройка для отображения "золотого креста" и "креста смерти" для EMA.
EMA 50 & 200: Настройка для отображения 50-дневной и 200-дневной EMA.
Уровни поддержки и сопротивления: Включает настройки для дневных, недельных и месячных уровней.
SMA 50, 100, 150, 200: Настройка для отображения 50, 100, 150 и 200-дневных SMA.
SMA Golden Cross & Death Cross: Настройка для отображения "золотого креста" и "креста смерти" для SMA.
Компоненты:
Включение/отключение отображения уровней поддержки и сопротивления.
Показ ярлыков уровней.
Параметры для настройки смещения, отображения EMA и SMA, а также их временных интервалов.
Параметры для настройки EMA и SMA Golden Cross & Death Cross.
Параметры EMA:
Включение/отключение отображения 50 и 200-дневных EMA.
Настройки цвета и стиля для EMA.
Опции для использования разрыва баров и функции "LookAhead".
Параметры SMA:
Включение/отключение отображения 50, 100, 150 и 200-дневных SMA.
Настройки цвета и стиля для SMA.
Опции для использования разрыва баров и функции "LookAhead".
Эффективное использование уровней поддержки и сопротивления, а также скользящих средних, требует понимания технического анализа, дисциплины и умения адаптировать стратегию в зависимости от изменяющихся условий рынка.
QTrade Golden, Bronze & Death, Bubonic Cross AlertsThis indicator highlights key EMA regime shifts with simple, color-coded triangles:
- Golden / Death Cross — 50 EMA crossing above/below the 200 EMA.
- Bronze / Bubonic Cross — 50 EMA crossing above/below the 100 EMA.
- Early-Warning Proxy — tiny triangles for the 4 EMA vs. 200 EMA (4↑200 and 4↓200). These often fire before the 50/100 and 50/200 crosses.
No text clutter on the chart—just triangles. Colors: gold (50↑200), red (50↓200), darker-yellow bronze (50↑100), burgundy (50↓100), turquoise (4↑200), purple (4↓200).
What it tells you (in order of warning → confirmation)
- First warning: 4 EMA crosses the 200 EMA (proxy for price shifting around the 200 line).
- Second warning: 50 EMA crosses the 100 EMA (Bronze/Bubonic).
- Confirmation: 50 EMA crosses the 200 EMA (Golden/Death).
Alerts included
- Golden Cross (50↑200) and Death Cross (50↓200)
- Bronze Cross (50↑100) and Bubonic Cross (50↓100)
- 4 EMA vs. 200 EMA crosses (up & down) — early-warning proxy
- Price–100 EMA events (touch/cross, if enabled in settings)
Big Candle Identifier with RSI Divergence and Advanced Stops1. Strategy Objective
The main goal of this strategy is to:
Identify significant price momentum (big candles).
Enter trades at opportune moments based on market signals (candlestick patterns and RSI divergence).
Limit initial risk through a fixed stop loss.
Maximize profits by using a trailing stop that activates only after the trade moves a specified distance in the profitable direction.
2. Components of the Strategy
A. Big Candle Identification
The strategy identifies big candles as indicators of strong momentum.
A big candle is defined as:
The body (absolute difference between close and open) of the current candle (body0) is larger than the bodies of the last five candles.
The candle is:
Bullish Big Candle: If close > open.
Bearish Big Candle: If open > close.
Purpose: Big candles signal potential continuation or reversal of trends, serving as the primary entry trigger.
B. RSI Divergence
Relative Strength Index (RSI): A momentum oscillator used to detect overbought/oversold conditions and divergence.
Fast RSI: A 5-period RSI, which is more sensitive to short-term price movements.
Slow RSI: A 14-period RSI, which smoothens fluctuations over a longer timeframe.
Divergence: The difference between the fast and slow RSIs.
Positive divergence (divergence > 0): Bullish momentum.
Negative divergence (divergence < 0): Bearish momentum.
Visualization: The divergence is plotted on the chart, helping traders confirm momentum shifts.
C. Stop Loss
Initial Stop Loss:
When entering a trade, an immediate stop loss of 200 points is applied.
This stop loss ensures the maximum risk is capped at a predefined level.
Implementation:
Long Trades: Stop loss is set below the entry price at low - 200 points.
Short Trades: Stop loss is set above the entry price at high + 200 points.
Purpose:
Prevents significant losses if the price moves against the trade immediately after entry.
D. Trailing Stop
The trailing stop is a dynamic risk management tool that adjusts with price movements to lock in profits. Here’s how it works:
Activation Condition:
The trailing stop only starts trailing when the trade moves 200 ticks (profit) in the right direction:
Long Position: close - entry_price >= 200 ticks.
Short Position: entry_price - close >= 200 ticks.
Trailing Logic:
Once activated, the trailing stop:
For Long Positions: Trails behind the price by 150 ticks (trail_stop = close - 150 ticks).
For Short Positions: Trails above the price by 150 ticks (trail_stop = close + 150 ticks).
Exit Condition:
The trade exits automatically if the price touches the trailing stop level.
Purpose:
Ensures profits are locked in as the trade progresses while still allowing room for price fluctuations.
E. Trade Entry Logic
Long Entry:
Triggered when a bullish big candle is identified.
Stop loss is set at low - 200 points.
Short Entry:
Triggered when a bearish big candle is identified.
Stop loss is set at high + 200 points.
F. Trade Exit Logic
Trailing Stop: Automatically exits the trade if the price touches the trailing stop level.
Fixed Stop Loss: Exits the trade if the price hits the predefined stop loss level.
G. 21 EMA
The strategy includes a 21-period Exponential Moving Average (EMA), which acts as a trend filter.
EMA helps visualize the overall market direction:
Price above EMA: Indicates an uptrend.
Price below EMA: Indicates a downtrend.
H. Visualization
Big Candle Identification:
The open and close prices of big candles are plotted for easy reference.
Trailing Stop:
Plotted on the chart to visualize its progression during the trade.
Green Line: Indicates the trailing stop for long positions.
Red Line: Indicates the trailing stop for short positions.
RSI Divergence:
Positive divergence is shown in green.
Negative divergence is shown in red.
3. Key Parameters
trail_start_ticks: The number of ticks required before the trailing stop activates (default: 200 ticks).
trail_distance_ticks: The distance between the trailing stop and price once the trailing stop starts (default: 150 ticks).
initial_stop_loss_points: The fixed stop loss in points applied at entry (default: 200 points).
tick_size: Automatically calculates the minimum tick size for the trading instrument.
4. Workflow of the Strategy
Step 1: Entry Signal
The strategy identifies a big candle (bullish or bearish).
If conditions are met, a trade is entered with a fixed stop loss.
Step 2: Initial Risk Management
The trade starts with an initial stop loss of 200 points.
Step 3: Trailing Stop Activation
If the trade moves 200 ticks in the profitable direction:
The trailing stop is activated and follows the price at a distance of 150 ticks.
Step 4: Exit the Trade
The trade is exited if:
The price hits the trailing stop.
The price hits the initial stop loss.
5. Advantages of the Strategy
Risk Management:
The fixed stop loss ensures that losses are capped.
The trailing stop locks in profits after the trade becomes profitable.
Momentum-Based Entries:
The strategy uses big candles as entry triggers, which often indicate strong price momentum.
Divergence Confirmation:
RSI divergence helps validate momentum and avoid false signals.
Dynamic Profit Protection:
The trailing stop adjusts dynamically, allowing the trade to capture larger moves while protecting gains.
6. Ideal Market Conditions
This strategy performs best in:
Trending Markets:
Big candles and momentum signals are more effective in capturing directional moves.
High Volatility:
Larger price swings improve the probability of reaching the trailing stop activation level (200 ticks).
Fibonacci Channel Standard Deviation levels based off 200MAThis script dynamically combines Fibonacci levels with the 200-period simple moving average (SMA), offering a powerful tool for identifying high-probability support and resistance zones. By adjusting to the changing 200 SMA, the script remains relevant across different market phases.
Key Features:
Dynamic Fibonacci Levels:
The script automatically calculates Fibonacci retracements and extensions relative to the 200 SMA.
These levels adapt to market trends, offering more relevant zones compared to static Fibonacci tools.
Support and Resistance Zones:
In uptrends, price often respects retracement levels above the 200 SMA (e.g., 38.2%, 50%, 61.8%).
In downtrends, price may interact with retracements and extensions below the 200 SMA (e.g., 23.6%, 1.618).
Customizable Confluence Zones:
Key levels such as the golden pocket (61.8%–65%) are highlighted as high-probability zones for reversals or continuations.
Extensions (e.g., 1.618) can serve as profit targets or bearish continuation points.
Practical Applications:
Identifying Reversal Zones:
Look for confluence between Fibonacci levels and the 200 SMA to identify potential reversal points.
Example: A pullback to the 61.8%–65% golden pocket near the 200 SMA often signals a bullish reversal.
Trend Confirmation:
In uptrends, price respecting Fibonacci retracements above the 200 SMA (e.g., 38.2%, 50%) confirms strength.
Use Fibonacci extensions (e.g., 1.618) as profit targets during strong trends.
Dynamic Risk Management:
Place stop-losses just below key Fibonacci retracement levels near the 200 SMA to minimize risk.
Bearish Scenarios:
Below the 200 SMA, Fibonacci retracements and extensions act as resistance levels and bearish targets.
How to Use:
Volume Confirmation: Watch for volume spikes near Fibonacci levels to confirm support or resistance.
Price Action: Combine with candlestick patterns (e.g., engulfing candles, pin bars) for precise entries.
Trend Indicators: Use in conjunction with shorter moving averages or RSI to confirm market direction.
Example Setup:
Scenario: Price retraces to the 61.8% Fibonacci level while holding above the 200 SMA.
Confirmation: Volume spikes, and a bullish engulfing candle forms.
Action: Enter long with a stop-loss just below the 200 SMA and target extensions like 1.618.
Key Takeaways:
The 200 SMA serves as a reliable long-term trend anchor.
Fibonacci retracements and extensions provide dynamic zones for trade entries, exits, and risk management.
Combining this tool with volume, price action, or other indicators enhances its effectiveness.
Wavelet-Trend ML Integration [Alpha Extract]Alpha-Extract Volatility Quality Indicator
The Alpha-Extract Volatility Quality (AVQ) Indicator provides traders with deep insights into market volatility by measuring the directional strength of price movements. This sophisticated momentum-based tool helps identify overbought and oversold conditions, offering actionable buy and sell signals based on volatility trends and standard deviation bands.
🔶 CALCULATION
The indicator processes volatility quality data through a series of analytical steps:
Bar Range Calculation: Measures true range (TR) to capture price volatility.
Directional Weighting: Applies directional bias (positive for bullish candles, negative for bearish) to the true range.
VQI Computation: Uses an exponential moving average (EMA) of weighted volatility to derive the Volatility Quality Index (VQI).
Smoothing: Applies an additional EMA to smooth the VQI for clearer signals.
Normalization: Optionally normalizes VQI to a -100/+100 scale based on historical highs and lows.
Standard Deviation Bands: Calculates three upper and lower bands using standard deviation multipliers for volatility thresholds.
Signal Generation: Produces overbought/oversold signals when VQI reaches extreme levels (±200 in normalized mode).
Formula:
Bar Range = True Range (TR)
Weighted Volatility = Bar Range × (Close > Open ? 1 : Close < Open ? -1 : 0)
VQI Raw = EMA(Weighted Volatility, VQI Length)
VQI Smoothed = EMA(VQI Raw, Smoothing Length)
VQI Normalized = ((VQI Smoothed - Lowest VQI) / (Highest VQI - Lowest VQI) - 0.5) × 200
Upper Band N = VQI Smoothed + (StdDev(VQI Smoothed, VQI Length) × Multiplier N)
Lower Band N = VQI Smoothed - (StdDev(VQI Smoothed, VQI Length) × Multiplier N)
🔶 DETAILS
Visual Features:
VQI Plot: Displays VQI as a line or histogram (lime for positive, red for negative).
Standard Deviation Bands: Plots three upper and lower bands (teal for upper, grayscale for lower) to indicate volatility thresholds.
Reference Levels: Horizontal lines at 0 (neutral), +100, and -100 (in normalized mode) for context.
Zone Highlighting: Overbought (⋎ above bars) and oversold (⋏ below bars) signals for extreme VQI levels (±200 in normalized mode).
Candle Coloring: Optional candle overlay colored by VQI direction (lime for positive, red for negative).
Interpretation:
VQI ≥ 200 (Normalized): Overbought condition, strong sell signal.
VQI 100–200: High volatility, potential selling opportunity.
VQI 0–100: Neutral bullish momentum.
VQI 0 to -100: Neutral bearish momentum.
VQI -100 to -200: High volatility, strong bearish momentum.
VQI ≤ -200 (Normalized): Oversold condition, strong buy signal.
🔶 EXAMPLES
Overbought Signal Detection: When VQI exceeds 200 (normalized), the indicator flags potential market tops with a red ⋎ symbol.
Example: During strong uptrends, VQI reaching 200 has historically preceded corrections, allowing traders to secure profits.
Oversold Signal Detection: When VQI falls below -200 (normalized), a lime ⋏ symbol highlights potential buying opportunities.
Example: In bearish markets, VQI dropping below -200 has marked reversal points for profitable long entries.
Volatility Trend Tracking: The VQI plot and bands help traders visualize shifts in market momentum.
Example: A rising VQI crossing above zero with widening bands indicates strengthening bullish momentum, guiding traders to hold or enter long positions.
Dynamic Support/Resistance: Standard deviation bands act as dynamic volatility thresholds during price movements.
Example: Price reversals often occur near the third standard deviation bands, providing reliable entry/exit points during volatile periods.
🔶 SETTINGS
Customization Options:
VQI Length: Adjust the EMA period for VQI calculation (default: 14, range: 1–50).
Smoothing Length: Set the EMA period for smoothing (default: 5, range: 1–50).
Standard Deviation Multipliers: Customize multipliers for bands (defaults: 1.0, 2.0, 3.0).
Normalization: Toggle normalization to -100/+100 scale and adjust lookback period (default: 200, min: 50).
Display Style: Switch between line or histogram plot for VQI.
Candle Overlay: Enable/disable VQI-colored candles (lime for positive, red for negative).
The Alpha-Extract Volatility Quality Indicator empowers traders with a robust tool to navigate market volatility. By combining directional price range analysis with smoothed volatility metrics, it identifies overbought and oversold conditions, offering clear buy and sell signals. The customizable standard deviation bands and optional normalization provide precise context for market conditions, enabling traders to make informed decisions across various market cycles.
Volatility Quality [Alpha Extract]The Alpha-Extract Volatility Quality (AVQ) Indicator provides traders with deep insights into market volatility by measuring the directional strength of price movements. This sophisticated momentum-based tool helps identify overbought and oversold conditions, offering actionable buy and sell signals based on volatility trends and standard deviation bands.
🔶 CALCULATION
The indicator processes volatility quality data through a series of analytical steps:
Bar Range Calculation: Measures true range (TR) to capture price volatility.
Directional Weighting: Applies directional bias (positive for bullish candles, negative for bearish) to the true range.
VQI Computation: Uses an exponential moving average (EMA) of weighted volatility to derive the Volatility Quality Index (VQI).
vqiRaw = ta.ema(weightedVol, vqiLen)
Smoothing: Applies an additional EMA to smooth the VQI for clearer signals.
Normalization: Optionally normalizes VQI to a -100/+100 scale based on historical highs and lows.
Standard Deviation Bands: Calculates three upper and lower bands using standard deviation multipliers for volatility thresholds.
vqiStdev = ta.stdev(vqiSmoothed, vqiLen)
upperBand1 = vqiSmoothed + (vqiStdev * stdevMultiplier1)
upperBand2 = vqiSmoothed + (vqiStdev * stdevMultiplier2)
upperBand3 = vqiSmoothed + (vqiStdev * stdevMultiplier3)
lowerBand1 = vqiSmoothed - (vqiStdev * stdevMultiplier1)
lowerBand2 = vqiSmoothed - (vqiStdev * stdevMultiplier2)
lowerBand3 = vqiSmoothed - (vqiStdev * stdevMultiplier3)
Signal Generation: Produces overbought/oversold signals when VQI reaches extreme levels (±200 in normalized mode).
Formula:
Bar Range = True Range (TR)
Weighted Volatility = Bar Range × (Close > Open ? 1 : Close < Open ? -1 : 0)
VQI Raw = EMA(Weighted Volatility, VQI Length)
VQI Smoothed = EMA(VQI Raw, Smoothing Length)
VQI Normalized = ((VQI Smoothed - Lowest VQI) / (Highest VQI - Lowest VQI) - 0.5) × 200
Upper Band N = VQI Smoothed + (StdDev(VQI Smoothed, VQI Length) × Multiplier N)
Lower Band N = VQI Smoothed - (StdDev(VQI Smoothed, VQI Length) × Multiplier N)
🔶 DETAILS
Visual Features:
VQI Plot: Displays VQI as a line or histogram (lime for positive, red for negative).
Standard Deviation Bands: Plots three upper and lower bands (teal for upper, grayscale for lower) to indicate volatility thresholds.
Reference Levels: Horizontal lines at 0 (neutral), +100, and -100 (in normalized mode) for context.
Zone Highlighting: Overbought (⋎ above bars) and oversold (⋏ below bars) signals for extreme VQI levels (±200 in normalized mode).
Candle Coloring: Optional candle overlay colored by VQI direction (lime for positive, red for negative).
Interpretation:
VQI ≥ 200 (Normalized): Overbought condition, strong sell signal.
VQI 100–200: High volatility, potential selling opportunity.
VQI 0–100: Neutral bullish momentum.
VQI 0 to -100: Neutral bearish momentum.
VQI -100 to -200: High volatility, strong bearish momentum.
VQI ≤ -200 (Normalized): Oversold condition, strong buy signal.
🔶 EXAMPLES
Overbought Signal Detection: When VQI exceeds 200 (normalized), the indicator flags potential market tops with a red ⋎ symbol.
Example: During strong uptrends, VQI reaching 200 has historically preceded corrections, allowing traders to secure profits.
Oversold Signal Detection: When VQI falls below -200 (normalized), a lime ⋏ symbol highlights potential buying opportunities.
Example: In bearish markets, VQI dropping below -200 has marked reversal points for profitable long entries.
Volatility Trend Tracking: The VQI plot and bands help traders visualize shifts in market momentum.
Example: A rising VQI crossing above zero with widening bands indicates strengthening bullish momentum, guiding traders to hold or enter long positions.
Dynamic Support/Resistance: Standard deviation bands act as dynamic volatility thresholds during price movements.
Example: Price reversals often occur near the third standard deviation bands, providing reliable entry/exit points during volatile periods.
🔶 SETTINGS
Customization Options:
VQI Length: Adjust the EMA period for VQI calculation (default: 14, range: 1–50).
Smoothing Length: Set the EMA period for smoothing (default: 5, range: 1–50).
Standard Deviation Multipliers: Customize multipliers for bands (defaults: 1.0, 2.0, 3.0).
Normalization: Toggle normalization to -100/+100 scale and adjust lookback period (default: 200, min: 50).
Display Style: Switch between line or histogram plot for VQI.
Candle Overlay: Enable/disable VQI-colored candles (lime for positive, red for negative).
The Alpha-Extract Volatility Quality Indicator empowers traders with a robust tool to navigate market volatility. By combining directional price range analysis with smoothed volatility metrics, it identifies overbought and oversold conditions, offering clear buy and sell signals. The customizable standard deviation bands and optional normalization provide precise context for market conditions, enabling traders to make informed decisions across various market cycles.
Market Breadth Peaks & Troughs IndicatorIndicator Overview
Market Breadth (S5TH) visualizes extremes of market strength and weakness by overlaying -
a 200-period EMA (long-term trend)
a 5-period EMA (short-term trend, user-adjustable)
on the percentage of S&P 500 constituents trading above their 200-day SMA (INDEX:S5TH).
Peaks (▼) and troughs (▲) are detected with prominence filters so you can quickly spot overbought and oversold conditions.
⸻
1. Core Logic
Component Description
Breadth series INDEX:S5TH — % of S&P 500 stocks above their 200-SMA
Long EMA 200-EMA to capture the primary trend
Short EMA 5-EMA (default, editable) for short-term swings
Peak detection ta.pivothigh + prominence ⇒ major peaks marked with red ▼
Trough detection (200 EMA) ta.pivotlow + prominence + value < longTroughLvl ⇒ blue ▲
Trough detection (5 EMA) ta.pivotlow + prominence + value < shortTroughLvl ⇒ green ▲
Background shading Pink when 200 EMA slope is down and 5 EMA sits below 200 EMA
⸻
2. Adjustable Parameters (input())
Group Variable Default Purpose
Symbol breadthSym INDEX:S5TH Breadth index
Long EMA longLen 200 Period of long EMA
Short EMA shortLen 5 Period of short EMA
Pivot width (long) pivotLen 20 Bars left/right for 200-EMA peaks/troughs
Pivot width (short) pivotLenS 10 Bars for 5-EMA troughs
Prominence (long) promThresh 0.5 %-pt Depth filter for 200-EMA pivots
Prominence (short) promThreshS 3.0 %-pt Depth filter for 5-EMA pivots
Trough level (long) longTroughLvl 50 % Max value to accept a 200-EMA trough
Trough level (short) shortTroughLvl 30 % Max value to accept a 5-EMA trough
⸻
3. Signal Guide
Marker / Color Meaning Typical reading
Red ▼ Major breadth peak Overbought / possible top
Blue ▲ Deep 200-EMA trough End of mid-term correction
Green ▲ Shallow 5-EMA trough (early) Short-term rebound setup
Pink background Long-term down-trend and short-term weak Risk-off phase
⸻
4. Typical Use Cases
1. Counter-trend timing
• Fade greed: trim longs on red ▼
• Buy fear: scale in on green ▲; add on blue ▲
2. Trend filter
• Avoid new longs while the background is pink; wait for a trough & recovery.
3. Risk management
• Reduce exposure when peaks appear, reload partial size on confirmed troughs.
⸻
5. Notes & Tips
• INDEX:S5TH is sourced from TradingView and may be back-adjusted when index membership changes.
• Fine-tune pivotLen, promThresh, and level thresholds to match current volatility before relying on alerts or automated rules.
• Slope thresholds (±0.10 %-pt) that trigger background shading can also be customized for different market regimes.