moving_averages# MovingAverages Library - PineScript v6
A comprehensive PineScript v6 library containing **50+ Moving Average calculations** for TradingView.
---
## 📦 Installation
```pinescript
import TheTradingSpiderMan/moving_averages/1 as MA
```
---
## 📊 All Available Moving Averages (50+)
### Basic Moving Averages
| Function | Selector Key | Description |
| -------- | ------------ | ------------------------------------------ |
| `sma()` | `SMA` | Simple Moving Average - arithmetic mean |
| `ema()` | `EMA` | Exponential Moving Average |
| `wma()` | `WMA` | Weighted Moving Average |
| `vwma()` | `VWMA` | Volume Weighted Moving Average |
| `rma()` | `RMA` | Relative/Smoothed Moving Average |
| `smma()` | `SMMA` | Smoothed Moving Average (alias for RMA) |
| `swma()` | - | Symmetrically Weighted MA (4-period fixed) |
### Hull Family
| Function | Selector Key | Description |
| -------- | ------------ | ------------------------------- |
| `hma()` | `HMA` | Hull Moving Average |
| `ehma()` | `EHMA` | Exponential Hull Moving Average |
### Double/Triple Smoothed
| Function | Selector Key | Description |
| -------------- | ------------ | --------------------------------- |
| `dema()` | `DEMA` | Double Exponential Moving Average |
| `tema()` | `TEMA` | Triple Exponential Moving Average |
| `tma()` | `TMA` | Triangular Moving Average |
| `t3()` | `T3` | Tillson T3 Moving Average |
| `twma()` | `TWMA` | Triple Weighted Moving Average |
| `swwma()` | `SWWMA` | Smoothed Weighted Moving Average |
| `trixSmooth()` | `TRIXSMOOTH` | Triple EMA Smoothed |
### Zero/Low Lag
| Function | Selector Key | Description |
| --------- | ------------ | ----------------------------------- |
| `zlema()` | `ZLEMA` | Zero Lag Exponential MA |
| `lsma()` | `LSMA` | Least Squares Moving Average |
| `epma()` | `EPMA` | Endpoint Moving Average |
| `ilrs()` | `ILRS` | Integral of Linear Regression Slope |
### Adaptive Moving Averages
| Function | Selector Key | Description |
| ---------- | ------------ | ------------------------------- |
| `kama()` | `KAMA` | Kaufman Adaptive Moving Average |
| `frama()` | `FRAMA` | Fractal Adaptive Moving Average |
| `vidya()` | `VIDYA` | Variable Index Dynamic Average |
| `vma()` | `VMA` | Variable Moving Average |
| `vama()` | `VAMA` | Volume Adjusted Moving Average |
| `rvma()` | `RVMA` | Rolling VMA |
| `apexMA()` | `APEXMA` | Apex Moving Average |
### Ehlers Filters
| Function | Selector Key | Description |
| ----------------- | --------------- | --------------------------------- |
| `superSmoother()` | `SUPERSMOOTHER` | Ehlers Super Smoother |
| `butterworth2()` | `BUTTERWORTH2` | 2-Pole Butterworth Filter |
| `butterworth3()` | `BUTTERWORTH3` | 3-Pole Butterworth Filter |
| `instantTrend()` | `INSTANTTREND` | Ehlers Instantaneous Trendline |
| `edsma()` | `EDSMA` | Deviation Scaled Moving Average |
| `mama()` | `MAMA` | Mesa Adaptive Moving Average |
| `fama()` | `FAMAVAL` | Following Adaptive Moving Average |
### Laguerre Family
| Function | Selector Key | Description |
| -------------------- | ------------------ | ------------------------ |
| `laguerreFilter()` | `LAGUERRE` | Laguerre Filter |
| `adaptiveLaguerre()` | `ADAPTIVELAGUERRE` | Adaptive Laguerre Filter |
### Special Weighted
| Function | Selector Key | Description |
| ---------- | ------------ | -------------------------------- |
| `alma()` | `ALMA` | Arnaud Legoux Moving Average |
| `sinwma()` | `SINWMA` | Sine Weighted Moving Average |
| `gwma()` | `GWMA` | Gaussian Weighted Moving Average |
| `nma()` | `NMA` | Natural Moving Average |
### Jurik/McGinley/Coral
| Function | Selector Key | Description |
| ------------ | ------------ | --------------------- |
| `jma()` | `JMA` | Jurik Moving Average |
| `mcginley()` | `MCGINLEY` | McGinley Dynamic |
| `coral()` | `CORAL` | Coral Trend Indicator |
### Mean Types
| Function | Selector Key | Description |
| -------------- | ------------ | ------------------------- |
| `medianMA()` | `MEDIANMA` | Median Moving Average |
| `gma()` | `GMA` | Geometric Moving Average |
| `harmonicMA()` | `HARMONICMA` | Harmonic Moving Average |
| `trimmedMA()` | `TRIMMEDMA` | Trimmed Moving Average |
| `cma()` | `CMA` | Cumulative Moving Average |
### Volume-Based
| Function | Selector Key | Description |
| --------- | ------------ | -------------------------- |
| `evwma()` | `EVWMA` | Elastic Volume Weighted MA |
### Other Specialized
| Function | Selector Key | Description |
| ----------------- | --------------- | --------------------------- |
| `hwma()` | `HWMA` | Holt-Winters Moving Average |
| `gdema()` | `GDEMA` | Generalized DEMA |
| `rema()` | `REMA` | Regularized EMA |
| `modularFilter()` | `MODULARFILTER` | Modular Filter |
| `rmt()` | `RMT` | Recursive Moving Trendline |
| `qrma()` | `QRMA` | Quadratic Regression MA |
| `wilderSmooth()` | `WILDERSMOOTH` | Welles Wilder Smoothing |
| `leoMA()` | `LEOMA` | Leo Moving Average |
| `ahrensMA()` | `AHRENSMA` | Ahrens Moving Average |
| `runningMA()` | `RUNNINGMA` | Running Moving Average |
| `ppoMA()` | `PPOMA` | PPO-based Moving Average |
| `fisherMA()` | `FISHERMA` | Fisher Transform MA |
---
## 🎯 Helper Functions
| Function | Description |
| ---------------- | ------------------------------------------------------------- |
| `wcp()` | Weighted Close Price: (H+L+2\*C)/4 |
| `typicalPrice()` | Typical Price: (H+L+C)/3 |
| `medianPrice()` | Median Price: (H+L)/2 |
| `selector()` | **Master selector** - choose any MA by string name |
| `getAllTypes()` | Returns all supported MA type names as comma-separated string |
---
## 🔧 Usage Examples
### Basic Usage
```pinescript
//@version=6
indicator("MA Example")
import quantablex/moving_averages/1 as MA
// Simple calls
plot(MA.sma(close, 20), "SMA 20", color.blue)
plot(MA.ema(close, 20), "EMA 20", color.red)
plot(MA.hma(close, 20), "HMA 20", color.green)
```
### Using the Selector Function (50+ MA Types)
```pinescript
//@version=6
indicator("MA Selector")
import quantablex/moving_averages/1 as MA
// Full list of all supported types:
// SMA,EMA,WMA,VWMA,RMA,SMMA,HMA,EHMA,DEMA,TEMA,TMA,T3,TWMA,SWWMA,TRIXSMOOTH,
// ZLEMA,LSMA,EPMA,ILRS,KAMA,FRAMA,VIDYA,VMA,VAMA,RVMA,APEXMA,SUPERSMOOTHER,
// BUTTERWORTH2,BUTTERWORTH3,INSTANTTREND,EDSMA,LAGUERRE,ADAPTIVELAGUERRE,
// ALMA,SINWMA,GWMA,NMA,JMA,MCGINLEY,CORAL,MEDIANMA,GMA,HARMONICMA,TRIMMEDMA,
// EVWMA,HWMA,GDEMA,REMA,MODULARFILTER,RMT,QRMA,WILDERSMOOTH,LEOMA,AHRENSMA,
// RUNNINGMA,PPOMA,MAMA,FAMAVAL,FISHERMA,CMA
maType = input.string("EMA", "MA Type", options= )
length = input.int(20, "Length")
plot(MA.selector(close, length, maType), "Selected MA", color.orange)
```
### Advanced Moving Averages
```pinescript
//@version=6
indicator("Advanced MAs")
import quantablex/moving_averages/1 as MA
// ALMA with custom offset and sigma
plot(MA.alma(close, 20, 0.85, 6), "ALMA", color.purple)
// KAMA with custom fast/slow periods
plot(MA.kama(close, 10, 2, 30), "KAMA", color.teal)
// T3 with custom volume factor
plot(MA.t3(close, 20, 0.7), "T3", color.yellow)
// Laguerre Filter with custom gamma
plot(MA.laguerreFilter(close, 0.8), "Laguerre", color.lime)
```
---
## 📈 MA Selection Guide
| Use Case | Recommended MAs |
| ---------------------- | ------------------------------------------- |
| **Trend Following** | EMA, DEMA, TEMA, HMA, CORAL |
| **Low Lag Required** | ZLEMA, HMA, EHMA, JMA, LSMA |
| **Volatile Markets** | KAMA, VIDYA, FRAMA, VMA, ADAPTIVELAGUERRE |
| **Smooth Signals** | T3, LAGUERRE, SUPERSMOOTHER, BUTTERWORTH2/3 |
| **Support/Resistance** | SMA, WMA, TMA, MEDIANMA |
| **Scalping** | MCGINLEY, ZLEMA, HMA, INSTANTTREND |
| **Noise Reduction** | MAMA, EDSMA, GWMA, TRIMMEDMA |
| **Volume-Based** | VWMA, EVWMA, VAMA |
---
## ⚙️ Parameters Reference
### Common Parameters
- `src` - Source series (close, open, hl2, hlc3, etc.)
- `len` - Period length (integer)
### Special Parameters
- `alma()`: `offset` (0-1), `sigma` (curve shape)
- `kama()`: `fastLen`, `slowLen`
- `t3()`: `vFactor` (volume factor)
- `jma()`: `phase` (-100 to 100)
- `laguerreFilter()`: `gamma` (0-1 damping)
- `rema()`: `lambda` (regularization)
- `modularFilter()`: `beta` (sensitivity)
- `gdema()`: `mult` (multiplier, 2 = standard DEMA)
- `trimmedMA()`: `trimPct` (0-0.5, percentage to trim)
- `mama()/fama()`: `fastLimit`, `slowLimit`
- `adaptiveLaguerre()`: Uses `len` for adaptation period
---
## 📝 Notes
- All 50+ functions are exported for use in any PineScript v6 indicator/strategy
- The `selector()` function supports **all MA types** via string key
- Use `getAllTypes()` to get a comma-separated list of all supported MA names
- Some MAs (CMA, INSTANTTREND, LAGUERRE, MAMA) don't use `len` parameter
- Use `nz()` wrapper if handling potential NA values in your calculations
---
**Author:** thetradingspiderman
**Version:** 1.0
**PineScript Version:** 6
**Total MA Types:** 50+
Indicators and strategies
N Candle UM Formations N Candle UM Formations is a context-based candle analysis indicator designed to highlight indecision and potential exhaustion zones within an existing trend.
Instead of generating buy or sell signals, this tool focuses on market structure and behavior, helping traders identify areas where momentum may be weakening and attention is required.
🔹 Core Concept
The indicator:
Combines N candles into a single synthetic candle to reduce noise
Detects indecision-type candle structures, such as:
Doji candles
Pin bars (long wicks)
Small-bodied candles
Evaluates these candles only within a trend context
This approach avoids pattern memorization and focuses on where a candle appears, not just how it looks.
🔹 Color Logic
🟣 Purple candles
Indicate indecision near a pullback low within an uptrend
→ Possible seller exhaustion or accumulation area
🟠 Orange candles
Indicate indecision near a pullback high within a downtrend
→ Possible buyer exhaustion or distribution area
🟢 / 🔴 Green & Red candles
Represent normal momentum candles with no special context
🔹 Trend & Context Filters
Trend direction is defined using EMA-based structure
Pullback zones are evaluated relative to recent highs/lows with volatility tolerance
All calculations are close-based and non-repainting
🔹 How to Use
This indicator is not a standalone trading system.
It is best used as:
A context filter
A market awareness tool
A confirmation layer alongside:
RSI / TSI / Fisher
Volume analysis
Price action or structure breaks
When a purple or orange candle appears, traders are encouraged to seek confirmation from other tools before making decisions.
🔹 Key Philosophy
Context first, confirmation second.
This indicator helps traders focus on high-attention zones, not automated entries.
⚠️ Disclaimer
This tool does not provide financial advice and should not be used alone for trade execution.
Volatility Heatmap & ATR Pane [V6]# Volatility Heatmap & Synchronized ATR Pane
This indicator provides a comprehensive view of cryptocurrency volatility, displaying both a multi-symbol heatmap table and a synchronized ATR panel below the chart.
## Features:
* **Heatmap Table:** Shows relative volatility (Rel. Vol %) for up to 10 user-defined symbols (BINANCE:BTCUSDT, etc.) in the top-right corner of the main chart.
* **Synchronized Timeframe:** The data in both the table and the bottom pane can be instantly switched using the chart's main timeframe selector (e.g., switch the entire view to 4H or Daily).
* **ATR Pane:** A dedicated panel below the chart displays the Absolute True Range (ATR) and its moving average for the currently active symbol, helping visualize the volatility baseline.
* **Customizable Lengths:** Users can define the ATR calculation period and the comparison average length (e.g., compare current 14-period ATR to the last 50-period average).
## How to Use:
1. **Add to chart** and ensure it creates two separate panels (if not, remove and re-add the indicator).
2. **Configure symbols** in the indicator settings under "Symbols 1-10".
3. **Monitor the table** for "EXTREME" or "SLEEPING" status alerts.
4. **Use the bottom pane** to confirm if the current symbol's ATR is rising (red line above gray average).
Happy Trading!
SENTINEL LITE by Pips0mnianSentinel Lite — Learning Mode is an educational indicator designed to help beginner traders develop discipline and chart-reading skills.
It highlights high-quality learning setups using:
• Trend alignment (EMA 200, 21, 50)
• EMA pullback behavior
• Strong candle confirmation
• Basic market structure
• London and New York session filtering
• Chop avoidance
This tool is not a signal service or automated strategy.
It is designed for practice, journaling, and skill-building.
Best used on:
• XAUUSD (Gold)
• 5-minute timeframe
• London & New York sessions
⚠️ Educational use only. No financial advice.
Daily Open Gap Zones This indicator highlights Daily Opening Gaps by drawing a zone between the previous regular session close and the next regular session open (RTH). Each gap is displayed as a light white filled box with a dotted, transparent white border and is extended forward in time until it is considered filled.
How it works
Gap Definition:
A gap is created when today’s regular-session open is different from yesterday’s regular-session close.
Zone Range:
The gap zone is the price range between those two values.
Unfilled Gaps Only:
The box stays on the chart until the gap is filled, then it is removed.
Fill Mode Options:
Full fill: gap is removed only when price reaches the far edge of the gap zone.
Touch (enter zone): gap is removed as soon as price trades into the gap zone.
Min Gap Size (ticks):
Filters out tiny gaps. A gap is plotted only if
abs(open - prior close) >= minGapTicks × syminfo.mintick.
Best use case
Designed for intraday traders (e.g., 10-minute charts) who want to quickly see open/unfilled daily gaps that may act as support/resistance or mean-reversion targets.
TuxTune - PDH PDL PDCJust a simple indicator simply to show the previous day High, Low, and Close levels.
Line color, type, width are modifiable
Each line can be turned on/off
Oscillator [Scalping-Algo]█ POSTING OSCILLATOR
A squeeze momentum indicator that detects volatility compression and shows momentum direction.
█ HOW IT WORKS
This indicator combines Bollinger Bands and Keltner Channels to identify "squeeze" conditions — periods of low volatility that often precede explosive moves.
When Bollinger Bands contract inside Keltner Channels, volatility is compressing. When they expand back out, the squeeze "fires" and price typically makes a strong directional move.
█ HISTOGRAM COLORS
🟦 Bright Cyan — Positive momentum, increasing
🟦 Dark Cyan — Positive momentum, decreasing
🟪 Dark Purple — Negative momentum, increasing
🟪 Bright Magenta — Negative momentum, decreasing
█ SQUEEZE DOTS (ZERO LINE)
🟢 Teal — No squeeze (normal volatility)
⚫ Gray — Low squeeze
🔴 Red — Medium squeeze
🟠 Orange — High squeeze (breakout imminent)
█ HOW TO USE
1. Wait for squeeze dots (gray/red/orange) to appear
2. Watch which direction momentum is building
3. Enter when dots turn teal (squeeze fired)
4. Go long if histogram is cyan, short if magenta
5. Consider exit when colors fade (bright → dark)
█ BEST PRACTICES
• Works best on higher timeframes (1H, 4H, Daily)
• Combine with trend analysis and support/resistance
• Most reliable in trending markets
• Avoid trading against major levels
█ SETTINGS
Length: 20 (default) — Period for all calculations
Adjust based on your timeframe and trading style.
█ ALERTS
Set alerts for:
• Histogram crossing zero
• Squeeze firing (dot color change to teal)
• High squeeze detection (orange dots)
Dow-Granville Sync SuiteEnglish Description (English Section)
Name: Dow-Granville Sync Suite
The Dow-Granville Sync Suite is an analysis tool that integrates trend determination based on Dow Theory with price positioning relative to the 20SMA (Simple Moving Average) across multiple timeframes (MTF).
It is designed to organize information across various timeframes, allowing users to understand the status from higher to lower timeframes without switching charts.
Multi-Timeframe Dow Analysis Analyzes highs and lows for each timeframe to determine the current trend state (Bullish, Bearish, or Consolidation).
SMA Position Analysis Determines whether the price is above or below the 20SMA for all timeframes. This is used to identify price positioning based on Granville's Law.
Synchronization Signals Displays ★ icons on the chart when the Dow direction and SMA position align across 4 or 5 consecutive timeframes.
Status Dashboard Displays a summary table on the right side of the screen showing the trend status for each timeframe.
Squeeze Detection Detects low volatility periods caused by the convergence of highs and lows, indicating them with specific markers on the chart.
Check the trend direction of higher timeframes, such as Daily or 4-Hour charts, on the right-hand dashboard.
Use the synchronization signals (★) on lower timeframes, when they align with the higher timeframe trend, as a reference for decision-making.
This tool is intended as an analytical aid and does not constitute investment advice.
Results based on historical data do not guarantee future performance.
日本語説明文 (Japanese Section)
名称:Dow-Granville Sync Suite
【概要】 Dow-Granville Sync Suiteは、ダウ理論によるトレンド判定と、20SMA(単純移動平均線)に対する価格の位置関係を、複数の時間軸(MTF)で統合して表示する解析ツールです。
各時間軸の情報を整理し、チャートを切り替えることなく上位足から下位足までの状態を把握することを目的としています。
【主な機能】
マルチタイムフレーム・ダウ分析 各時間軸の高値・安値を参照し、現在のトレンド(上昇・下降・保合い)を自動で判定します。
SMA位置解析 価格が20SMAの上にあるか下にあるかを全時間軸で判定します。これはグランビルの法則における価格の偏りを把握するために利用します。
同調シグナル 4つ、または5つの連続した時間軸において、ダウの方向とSMAに対する位置関係がすべて一致した際に、チャート上に★印を表示します。
ステータス・ダッシュボード 画面右側に、各時間軸のトレンド状況を一覧表で表示します。
スクイーズ検知 高値・安値の収束によるボラティリティの低下を検知し、チャート上にマークを表示します。
【使い方】
右側のダッシュボードで、日足や4時間足などの上位足のトレンド方向を確認します。
下位足において、上位足と同方向の同調シグナル(★)が発生した際の状態を、判断の材料として利用します。
【免責事項】
本ツールは分析の補助を目的としたものであり、投資助言ではありません。
過去のデータによる結果は、将来の利益を保証するものではありません。
Alpha Beta Gamma with Volume# Alpha Beta Gamma with Volume
## Description
**Alpha Beta Gamma with Volume** is an advanced technical analysis indicator that combines the Alpha-Beta-Gamma (ABG) oscillator with sophisticated volume analysis. This powerful tool helps traders identify market trends, momentum, and volume-based signals simultaneously.
## Key Features
### 📊 Alpha-Beta-Gamma Oscillator
- **Alpha**: Measures the distance from the current price to the lowest price over the selected period
- **Beta**: Calculates the price range (highest - lowest) over the selected period
- **Gamma**: Normalized value showing the price position within the current range (0-1 scale)
### 📈 Advanced Price Configuration
- Multiple timeframe analysis
- Flexible price source selection (Open, High, Low, Close, or any average)
- Customizable ABG calculation length
### 🔍 Smart Volume Analysis
- Volume trend identification using moving averages
- Three-tier volume classification:
- **High Volume**: Volume ≥ 2x MA (Deep Blue Bull / Aqua Bear candles)
- **Low Volume**: Volume ≤ 0.5x MA (Light Blue Bull / Light Yellow Bear candles)
- **Strong Signal Volume**: Volume ≥ 1.5x MA (Violet Bull / Pink Bear candles)
- Bull/Bear candle color coding based on volume strength
### 🎯 Custom Range Levels (0-1 Range Divided into 8 Parts)
- 9 horizontal levels from 0 to 1 (each 1/8 apart)
- Psychological support/resistance zones
- Customizable line styles and labels
- Perfect for grid trading, breakout strategies, and level analysis
### 📊 Real-time Data Table
- Compact table displaying current ABG values
- Percentage change calculations
- Trend direction indicators
- Customizable position and size
### 🎨 Visual Customization
- Adjustable line styles (Solid, Dashed, Dotted)
- Customizable label sizes and colors
- Flexible transparency settings
- Multiple display options for all elements
## Usage Instructions
### Basic Settings:
1. **Strike Price Settings**: Select your preferred timeframe and price type
2. **ABG Parameters**: Adjust length for sensitivity (default: 37)
3. **Volume Analysis**: Configure volume thresholds based on your trading style
4. **Visual Style**: Customize colors, line styles, and labels to your preference
### Trading Signals:
- **Gamma Values**:
- 0-0.5: Oversold/Buying zone
- 0.5-1: Overbought/Selling zone
- **Volume Confirmation**: Use volume colors to confirm trend strength
- **Custom Levels**: Watch for price reactions at 1/8, 2/8, 4/8, 6/8, and 7/8 levels
### Recommended Configurations:
- **Scalping**: Length = 20-30, enable Alpha-Beta logic
- **Swing Trading**: Length = 40-50, use custom range levels
- **Position Trading**: Length = 50-100, focus on volume signals
## Technical Details
- **Version**: Pine Script v6
- **Author**: Nurbolat Zhan
- **Interface Language**: Kazakh (fully translated)
- **Required Components**: Built-in TradingView functions only
### Volume Thresholds Explained:
1. **High Volume** (≥ 2x MA): Significant institutional activity
2. **Low Volume** (≤ 0.5x MA): Consolidation or indecision periods
3. **Strong Signal** (≥ 1.5x MA): High-probability trade setups
## Important Notes
⚠️ **Disclaimer**:
- This is a technical analysis tool, not financial advice
- Always use proper risk management
- Combine with other indicators for confirmation
- Past performance doesn't guarantee future results
📈 **Best Practices**:
1. Use ABG for trend identification
2. Confirm with volume analysis
3. Watch for divergences between price and indicators
4. Use multiple timeframes for better context
---
**Motto**: "Precision in analysis, confidence in execution!"
*This indicator is specifically designed for traders who want to combine oscillator analysis with volume confirmation in a single, comprehensive tool.*
Bull Cycle Structure CleanBull Cycle Structure Clean is a minimalist price-action indicator designed to identify healthy bullish market structure with clarity and precision.
The script focuses on higher highs and highlights when a previous high transitions into support, a key concept in trend continuation analysis. By using subtle visuals and limited annotations, it keeps the chart clean while still providing essential structural insight.
This indicator is ideal for traders who prefer simple, disciplined, and educational market structure analysis without unnecessary noise. It works well across multiple timeframes and pairs, supporting both intraday and swing trading approaches.
Built to enhance chart clarity — not to overwhelm it.
SR Highlight - Pato WarzaDescriptionThis indicator is a high-precision tool designed to identify and visualize institutional Support and Resistance levels based on structural pivot points. Unlike standard SR indicators that clutter the chart with overlapping lines, this script uses a Smart Clustering Algorithm to merge nearby price levels into single, high-probability zones.Key FeaturesSmart Level Consolidation: Automatically detects and merges price levels that are too close to each other using volatility-based thresholds ( NYSE:ATR $), preventing "visual noise" and overlapping boxes.Strength-Based Hierarchy: Each level is calculated based on historical touches ($Strength$). The more times a price has reacted at a level, the higher its strength.The "King Level" Highlight (Strongest 🔥): The algorithm scans the entire lookback period to identify the single most respected level. This "King Level" is highlighted with a Golden/Yellow border and a fire emoji (🔥) for immediate focus on the day's key pivot.Dynamic Transparency & Layout: Designed specifically for fast-paced trading (15s, 1m, 5m), the zones extend to the left to show historical significance without obstructing the most recent price action.Fully Customizable: Adjust pivot sensitivity, loopback depth, and zone height to fit any asset (Gold, Nasdaq, Forex, or Crypto).How to UseLook for the 🔥: This represents the strongest historical level. Expect high volatility or significant reversals when price approaches this zone.Cluster Zones: Use the thickness of the boxes to gauge the "buffer zone" where price is likely to find liquidity.Trend Alignment: Use these zones in conjunction with your favorite trend indicators to find high-probability "Buy the Dip" or "Sell the Rip" opportunities.Technical Settings (Recommended)Pivot Period: 5 (Standard structural detection).Loopback Period: 300 - 900 (Depending on how much history you want to analyze).Minimum Strength: 3-5 (To filter out minor price noise).
SR Highlight - Pato Warza DescriptionThis indicator is a high-precision tool designed to identify and visualize institutional Support and Resistance levels based on structural pivot points. Unlike standard SR indicators that clutter the chart with overlapping lines, this script uses a Smart Clustering Algorithm to merge nearby price levels into single, high-probability zones.Key FeaturesSmart Level Consolidation: Automatically detects and merges price levels that are too close to each other using volatility-based thresholds ( NYSE:ATR $), preventing "visual noise" and overlapping boxes.Strength-Based Hierarchy: Each level is calculated based on historical touches ($Strength$). The more times a price has reacted at a level, the higher its strength.The "King Level" Highlight (Strongest 🔥): The algorithm scans the entire lookback period to identify the single most respected level. This "King Level" is highlighted with a Golden/Yellow border and a fire emoji (🔥) for immediate focus on the day's key pivot.Dynamic Transparency & Layout: Designed specifically for fast-paced trading (15s, 1m, 5m), the zones extend to the left to show historical significance without obstructing the most recent price action.Fully Customizable: Adjust pivot sensitivity, loopback depth, and zone height to fit any asset (Gold, Nasdaq, Forex, or Crypto).How to UseLook for the 🔥: This represents the strongest historical level. Expect high volatility or significant reversals when price approaches this zone.Cluster Zones: Use the thickness of the boxes to gauge the "buffer zone" where price is likely to find liquidity.Trend Alignment: Use these zones in conjunction with your favorite trend indicators to find high-probability "Buy the Dip" or "Sell the Rip" opportunities.Technical Settings (Recommended)Pivot Period: 5 (Standard structural detection).Loopback Period: 300 - 900 (Depending on how much history you want to analyze).Minimum Strength: 3-5 (To filter out minor price noise).
REBOTE PRO EMA
//@version=5
indicator(title="REBOTE PRO EMA", overlay=true)
// === CONFIGURACIÓN ===
emaRapida = input.int(20, "EMA Rápida")
emaLenta = input.int(50, "EMA Lenta (Tendencia)")
rsiPeriodo = input.int(14, "RSI Periodo")
// === CÁLCULOS ===
emaFast = ta.ema(close, emaRapida)
emaSlow = ta.ema(close, emaLenta)
rsiVal = ta.rsi(close, rsiPeriodo)
// === CONDICIONES DE TENDENCIA ===
tendenciaAlcista = emaFast > emaSlow
tendenciaBajista = emaFast < emaSlow
// === CONDICIONES DE REBOTE ===
reboteBuy = tendenciaAlcista and low <= emaFast and close > emaFast and rsiVal > 40
reboteSell = tendenciaBajista and high >= emaFast and close < emaFast and rsiVal < 60
// === GRÁFICOS ===
plot(emaFast, color=color.orange, linewidth=2)
plot(emaSlow, color=color.red, linewidth=2)
// === SEÑALES ===
plotshape(reboteBuy,
title="BUY",
style=shape.triangleup,
location=location.belowbar,
color=color.lime,
size=size.small)
plotshape(reboteSell,
title="SELL",
style=shape.triangledown,
location=location.abovebar,
color=color.red,
size=size.small)
Gold Traders Shymkent# Gold Traders Shymkent
## Description
**Gold Traders Shymkent** is a professional ZigZag indicator designed specifically for traders from Kazakhstan. Based on the classic ZigZag indicator logic from MT4 platform, it identifies key trend points in price movements and displays them visually.
## Key Features
### 🎯 Core Functions:
- **ZigZag Analysis**: Identification of significant price highs and lows
- **Kazakh Labeling**: ЖЖ (Higher High), ЖТ (Higher Low), ТЖ (Lower High), ТТ (Lower Low) labels in Kazakh language
- **Flexible Settings**: Depth, Deviation, and Backstep parameters
- **Two Modes**: Repainting and non-repainting modes
### ⚙️ Configuration Parameters:
1. **ZigZag Settings**:
- Depth - reversal depth
- Deviation - minimum deviation percentage
- Backstep - backward step value
2. **Display Parameters**:
- Line thickness
- Bull/Bear colors
- Show/hide labels
- Toggle ЖЖ/ЖТ/ТЖ/ТТ markers
- Transparency for lines and labels
3. **Operation Modes**:
- Repainting mode (real-time updates)
- ZigZag line extension option
### 🔔 Alert System:
The indicator provides alerts for:
- New ЖЖ/ЖТ/ТЖ/ТТ points formation
- Direction changes (bull to bear or vice versa)
- Trend reversals
### Advantages:
- **Easy to Use**: Intuitive interface with Kazakh language settings
- **Flexibility**: Adaptable to different market conditions
- **Clarity**: Kazakh labeling convenient for local traders
- **Versatility**: Works on all timeframes
## Usage Instructions
### Basic Usage:
1. **Trend Identification**: Monitor main trend through ZigZag lines
2. **Support/Resistance Levels**: Use extremum points as support and resistance levels
3. **Reversal Points**: Identify trend change points
### Recommended Settings:
- **For volatile markets**: Depth = 12, Deviation = 5
- **For slow markets**: Depth = 20, Deviation = 8
- **To reduce whipsaws**: Backstep = 3
## Important Notes
⚠️ **Key Considerations**:
- The indicator may operate in repainting mode
- False signals possible on lower timeframes
- Adjust settings according to market conditions
- Use with other indicators for major trading decisions
## Technical Details
- **Author**: Based on Dev Lucem code, adapted to Kazakh language
- **Language**: Pine Script v5
- **Interface Language**: Kazakh
- **Required Libraries**: DevLucem/ZigLib/1
---
📊 **Gold Traders Shymkent** - A professional analysis tool specifically developed for Kazakhstani traders. The indicator combines accuracy with ease of use to assist in market decision making.
**Motto**: "Accuracy and reliability - the key to successful trading!"
Gold Traders Shymkent# Gold Traders Shymkent
## Description
**Gold Traders Shymkent** is a professional ZigZag indicator designed specifically for traders from Kazakhstan. Based on the classic ZigZag indicator logic from MT4 platform, it identifies key trend points in price movements and displays them visually.
## Key Features
### 🎯 Core Functions:
- **ZigZag Analysis**: Identification of significant price highs and lows
- **Kazakh Labeling**: ЖЖ (Higher High), ЖТ (Higher Low), ТЖ (Lower High), ТТ (Lower Low) labels in Kazakh language
- **Flexible Settings**: Depth, Deviation, and Backstep parameters
- **Two Modes**: Repainting and non-repainting modes
### ⚙️ Configuration Parameters:
1. **ZigZag Settings**:
- Depth - reversal depth
- Deviation - minimum deviation percentage
- Backstep - backward step value
2. **Display Parameters**:
- Line thickness
- Bull/Bear colors
- Show/hide labels
- Toggle ЖЖ/ЖТ/ТЖ/ТТ markers
- Transparency for lines and labels
3. **Operation Modes**:
- Repainting mode (real-time updates)
- ZigZag line extension option
### 🔔 Alert System:
The indicator provides alerts for:
- New ЖЖ/ЖТ/ТЖ/ТТ points formation
- Direction changes (bull to bear or vice versa)
- Trend reversals
### Advantages:
- **Easy to Use**: Intuitive interface with Kazakh language settings
- **Flexibility**: Adaptable to different market conditions
- **Clarity**: Kazakh labeling convenient for local traders
- **Versatility**: Works on all timeframes
## Usage Instructions
### Basic Usage:
1. **Trend Identification**: Monitor main trend through ZigZag lines
2. **Support/Resistance Levels**: Use extremum points as support and resistance levels
3. **Reversal Points**: Identify trend change points
### Recommended Settings:
- **For volatile markets**: Depth = 12, Deviation = 5
- **For slow markets**: Depth = 20, Deviation = 8
- **To reduce whipsaws**: Backstep = 3
## Important Notes
⚠️ **Key Considerations**:
- The indicator may operate in repainting mode
- False signals possible on lower timeframes
- Adjust settings according to market conditions
- Use with other indicators for major trading decisions
## Technical Details
- **Author**: Based on Dev Lucem code, adapted to Kazakh language
- **Language**: Pine Script v5
- **Interface Language**: Kazakh
- **Required Libraries**: DevLucem/ZigLib/1
---
Condicion2Indicates with shading Strength at the beginning of wave 3, in the form of a blue candle + strong green (below)
Pivot Points - Market Structure with percent changeRULES:
1) Inputs that control pivots
• leftBars: how many bars to the left of the pivot must be lower (for a high pivot) or higher (for a low pivot).
• rightBars: how many bars to the right of the pivot must be lower (for a high pivot) or higher (for a low pivot).
These two values define the “strictness” of a swing.
2) Pivot High logic (ta.pivothigh)
A pivot high is confirmed at bar t when:
• The high at t is the maximum within the window:
○ from t - leftBars through t + rightBars
• In practical terms:
○ the prior leftBars bars have highs below that high
○ the next rightBars bars have highs below that high
In code:
• ph = ta.pivothigh(high, leftBars, rightBars)
Behavior:
• ph returns the pivot high price, but only after rightBars future bars have printed.
• Until then it returns na.
Where it is plotted:
• When ph is confirmed on the current bar, the actual pivot occurred rightBars bars ago, so we place the label at:
○ pivotBar = bar_index - rightBars
○ price = ph
3) Pivot Low logic (ta.pivotlow)
A pivot low is confirmed at bar t when:
• The low at t is the minimum within the window:
○ from t - leftBars through t + rightBars
• In practical terms:
○ the prior leftBars bars have lows above that low
○ the next rightBars bars have lows above that low
In code:
• pl = ta.pivotlow(low, leftBars, rightBars)
Same confirmation behavior:
• pl only becomes non-na after rightBars bars have passed.
• The label is plotted at bar_index - rightBars.
4) Confirmation delay (important)
Because pivots need “future” bars to confirm, every pivot is lagged by rightBars bars. This is expected and correct: it prevents repainting of the pivot point once confirmed.
5) The alternation rule (your added constraint)
On top of the raw pivot detection above, the script enforces:
• You cannot accept another pivot high until a pivot low has been accepted.
• You cannot accept another pivot low until a pivot high has been accepted.
Implementation:
• Track lastAccepted = "high" or "low".
• Only process pivotHigh when lastAccepted != "high".
• Only process pivotLow when lastAccepted != "low".
This is what prevents consecutive HHs (or LHs) printing without an intervening HL/LL pivot, and vice versa.
REALTIME BARS THAT ARE NOT REPAINTED BUT HAVE A 3 BAR DELAY ON THE CHART TIMEFRAME:
The confirmation delay is exactly rightBars bars.
• A pivot is only confirmed after rightBars future bars have printed.
• So the signal arrives rightBars × your chart timeframe after the actual turning point.
Examples:
• If rightBars = 3:
○ On a Daily chart: ~3 trading days after the pivot bar.
○ On a 65-minute chart: 3 × 65 = 195 minutes (about 3h 15m) after the pivot bar.
○ On a 10-minute chart: 30 minutes after the pivot bar.
Note: the pivot label is plotted back on the pivot bar (bar_index - rightBars), but you only learn it rightBars bars later.
Master_UtilsLibrary "Master_Utils"
get_theme(theme_name)
Parameters:
theme_name (string)
label_buy(y, txt, col, txt_col, size_str, tooltip)
Parameters:
y (float)
txt (string)
col (color)
txt_col (color)
size_str (string)
tooltip (string)
label_sell(y, txt, col, txt_col, size_str, tooltip)
Parameters:
y (float)
txt (string)
col (color)
txt_col (color)
size_str (string)
tooltip (string)
Palette
Fields:
bull (series color)
bear (series color)
neutral (series color)
text_ (series color)
glow (series color)
Triple MA Strategy + Adjustable Dashboardstandard 3 moving average indicator with adjustable buy sell and strength dashboard. just for back testing purposes
Stabilized HMA ScalperStabilized HMA Scalper / Stab. HMA 2.0
Stabilized HMA Scalper is a visual trend-structure overlay indicator designed to highlight directional momentum, trend alignment, and market state through a combination of adaptive moving averages and contextual visual cues.
The indicator blends a Hull Moving Average (HMA) for responsiveness with an ALMA-based baseline filter to stabilize trend interpretation and reduce noise. The result is a clean, visually expressive framework for reading market structure directly on the price chart.
Core Design Philosophy
This script is built around trend confirmation and state visualization, not prediction or automation.
All elements are calculated on confirmed bar closes and do not repaint.
The indicator focuses on three analytical dimensions:
1. Dual Moving Average Structure
Hull Moving Average (HMA)
Acts as the primary momentum curve.
Designed for fast reaction to directional changes.
Slope behavior is used to infer momentum expansion or contraction.
ALMA Baseline Filter
Provides a stabilizing reference for broader trend context.
Helps distinguish directional movement from short-term fluctuations.
Used as a structural filter rather than a trigger mechanism.
2. Trend State Visualization
When HMA slope and price position relative to the ALMA baseline align, the indicator visually highlights the active market state:
Bullish alignment: upward momentum with supportive structure
Bearish alignment: downward momentum with confirming structure
Neutral / range: mixed conditions or transitional phases
A dynamic gradient fill between HMA and ALMA visually reinforces this alignment, offering an immediate understanding of trend strength and continuity.
3. Visual Markers & Labels
Discrete chart markers may appear at moments when momentum structure transitions into a new aligned state.
These markers are contextual annotations, intended to draw attention to changes in trend conditions rather than to provide standalone decisions.
They are based solely on historical price data and are fully non-repainting.
Dashboard
An optional on-chart dashboard summarizes the current market state classification (Bullish / Bearish / Range) based on the internal trend logic.
Position and size are fully configurable.
Designed for at-a-glance situational awareness.
Reflects the same logic used in the chart visuals.
Usage Disclaimer
This indicator is provided for technical analysis and educational purposes only.
It does not generate financial advice or guarantee outcomes and should be used as part of a broader analytical workflow.
Volume Profile - Density of Density [DAFE]Volume Profile - Density of Density
The Art & Science of Market Architecture: An AI-Enhanced Volume Profile & Order Flow Engine with a Revolutionary Visualization Core.
█ PHILOSOPHY: BEYOND THE PROFILE, INTO THE DENSITY
Standard Volume Profile shows you a one-dimensional story: where volume was traded. It shows you the first layer of density. But this is like looking at a galaxy and only seeing the stars, completely missing the gravitational forces, the dark matter, and the nebulae that give it structure.
Volume Profile - Density of Density (VP-DoD) is a revolutionary leap forward. It was engineered to analyze the second order of market data: the properties of the density itself . We don't just ask "Where did volume trade?" We ask " Why did it trade there? What was the character of that volume? What is the statistical significance of its shape? What is the probability of what happens next?"
This is a complete, institutional-grade analytical framework built on the DAFE principle: Data Analysis For Execution . It fuses a higher-timeframe structural engine, a proprietary microstructure delta engine, and a Bayesian AI into a single, cohesive intelligence system. It is designed to transform your chart from a flat, lagging record of the past into a living, three-dimensional map of market structure and intention.
█ WHAT MAKES VP-DoD ULTIMATE UNLIKE ANY OTHER PROFILE TOOL?
This is not just another volume profile script. It stands apart due to a suite of proprietary features previously unseen on this platform.
Higher Timeframe (HTF) Core: While other profiles are trapped by the noise of your current chart, VP-DoD builds its foundation on a higher timeframe of your choice (e.g., Daily data on a 15m chart). This is its greatest strength. It filters out intraday noise to reveal the true, macro architectural levels where institutions have built their positions.
Microstructure Hybrid Delta Engine: Standard delta is primitive. Our engine provides a far more accurate picture of order flow by simulating tick data and analyzing the battle between candle bodies (aggression) and wicks (absorption). It sees the hidden story inside the volume.
Bayesian AI Confidence Model: This is not a simple weighted score. VP-DoD incorporates a genuine Bayesian inference model. It starts with a neutral "belief" about the market and continuously updates its Bullish/Bearish Confidence percentage based on new evidence from delta, POC velocity, and price action. It thinks like a professional quant, providing you with a real-time statistical edge.
Advanced Statistical Analysis: It calculates metrics found nowhere else, such as Profile Entropy (a measure of market disorder) and Volatility Skew (a measure of fear vs. greed from the derivatives market), and normalizes them with Z-Scores for universal applicability.
Revolutionary Visualization Engine: Data should be intuitive and beautiful. VP-DoD features 14 distinct, animated, and theme-aware rendering modes . From "Nebula Plasma" and "Liquid Metal" to "DNA Helix" and "Constellation Map," you can transform raw data into interactive data art, allowing you to perceive market structure in a way that resonates with your unique analytical style.
█ THE ART OF ANALYSIS: A REVOLUTIONARY VISUALIZATION CORE
Data is useless if it isn't intuitive. VP-DoD shatters the mold of boring, static indicators with a state-of-the-art visualization engine. This is where data analysis becomes data art.
The Profile Itself: 14 Modes of Perception
Choose how you want to see the market's architecture:
Nebula Plasma & Quantum Matrix: Futuristic, cyberpunk aesthetics with vibrant glow effects that make HVNs and POCs pulse with energy.
Thermal Vision & Heat Shimmer: Renders the profile as a heatmap, instantly drawing your eye to the "hottest" zones of institutional liquidity.
Liquid Metal & Crystalline: Creates a tangible, almost physical representation of volume with metallic sheens, animated light flows, and faceted structures.
3D Depth Map & Prismatic Refraction: Uses layering and color channel separation to create a stunning illusion of depth, separating the profile into its core components.
Particle Field & Constellation Map: Abstract, beautiful data art modes that represent volume as animated particles or glowing stars, connecting major nodes like celestial bodies.
DNA Helix & Magnetic Field: Dynamic, animated modes that visualize the forces of attraction and repulsion around the POC and Value Area, representing the market's underlying code.
The POC & Value Area: A Living, Breathing Structure
The POC and VA are no longer static lines. They are a dynamic, interactive system designed for immediate contextual awareness:
Multi-Layered Glow Effects: The POC and VA lines are rendered with multiple layers of glowing, pulsating light, giving them a vibrant, three-dimensional presence on your chart.
Dynamic Labels & Badges: Each key level (POC, VAH, VAL) features an advanced label block showing not just the price, but the real-time distance from the current price, and a status badge (e.g., "▲ ABOVE", "◆ INSIDE") that changes color and text based on price interaction.
Intelligent Color Adaptation: The color of the VAH and VAL lines dynamically changes. A VAH line will glow bright green when price is breaking above it, but will appear dim and neutral when price is far below it, providing instant visual cues about market context.
█ ACTIONABLE INTELLIGENCE: THE SIGNAL & ALERT SYSTEM
VP-DoD is not just an analytical tool; it's a complete trading framework with a built-in, context-aware signal system.
Absorption/Distribution Signals (🏦): The "Whale Signal." Triggers when price and delta are in stark divergence, indicating large passive orders are absorbing the market—a classic institutional maneuver.
Coiling Signals (⚡): A high-probability setup that alerts you when the market is compressing (VA contracting, low entropy), storing energy for a significant breakout.
POC Shift & VA Breakout Signals: Trend-initiation signals that fire when value is migrating and the market breaks out of its established balance area with conviction.
Delta Extreme Signals: Contrarian reversal signals that detect capitulation at the extremes of buying or selling pressure, often marking key turning points.
█ THE DASHBOARD: YOUR INSTITUTIONAL COMMAND CENTER
The professional-grade dashboard provides a real-time, comprehensive overview of the market's hidden state.
Market Regime: Instantly know if the market is BALANCED, COILING, TRENDING , or VOLATILE .
Advanced Metrics: Monitor Entropy (disorder), Volatility Skew (fear/greed), and a composite Risk Score .
Institutional Score: See the calculated Liquidity Score and Conviction Level , grading the quality of the current market structure.
Bayesian AI: The crown jewel. See the real-time, AI-calculated Bull vs. Bear Confidence percentages, giving you a statistical edge on the probable direction of the next move.
Breakout Gauge: A forward-looking metric that calculates the Breakout Probability and its likely Bias (Bullish/Bearish).
█ DEVELOPMENT PHILOSOPHY
VP-DoD Ultimate was created out of a passion for revealing the hidden architecture of the market. We believe that the most profound truths are found at the intersection of rigorous science and intuitive art. This tool is the culmination of thousands of hours of research into market microstructure, statistical analysis, and data visualization. It is for the trader who is no longer satisfied with lagging indicators and seeks a deeper, more contextual understanding of the market auction. It is for the trader who believes that analysis should be not only effective but also beautiful.
VP-DoD Ultimate is designed to help you ride the trend with confidence, but more importantly, to give you the data-driven intelligence to anticipate that final, critical bend.
█ DISCLAIMER AND BEST PRACTICES
CONTEXT IS KING: This is an advanced contextual tool, not a simple "buy/sell" signal indicator. Use its intelligence to frame your trades within your own strategy.
RISK MANAGEMENT IS PARAMOUNT: All trading involves substantial risk. The signals and levels provided are based on historical data and statistical probability, not guarantees.
HTF IS YOUR GUIDE: For the highest probability setups, use the HTF feature (e.g., 240m or Daily) to identify macro structure. Then, execute trades on a lower timeframe based on interactions with these key macro levels.
ALIGN WITH THE REGIME: Pay close attention to the "Regime" and "Entropy" readouts on the dashboard. Trading a breakout strategy during a high-entropy "RANGING" regime is a low-probability endeavor. Align your strategy with the market's current state.
"The trend is your friend, except at the end where it bends."
— Ed Seykota, Market Wizard
Taking you to school. - Dskyz, Trade with Volume. Trade with Density. Trade with DAFE






















