Ultimate Moving Average Package (17 MA's)Included is the:
VWAP
Current time frame 10 EMA
Current time frame 20 EMA
Current time frame 50 EMA
Current time frame 10 SMA
Current time frame 20 SMA
Current time frame 50 SMA
Daily 10 EMA
Daily 20 EMA
Daily 50 EMA
Daily 50 SMA
Daily 100 SMA
Daily 200 SMA
Weekly 100 SMA
Weekly 200 SMA
Monthly 100 SMA
Monthly 200 SMA
All Daily/Weekly/Monthly MA's can be seen on intraday charts. Current time frame MA's change depending on your time frame. Obviously you dont need all 17 on your chart but you can pick the ones you like and disable the rest.
Komut dosyalarını "想象图:箱线图+折线组合,横轴为国家,纵轴为响应指数(0-100),箱线显示均值±标准差,叠加红色虚线标注各国确诊高峰时间点" için ara
Bilateral Stochastic Oscillator - For The Sake Of EfficiencyIntroduction
The stochastic oscillator is a feature scaling method commonly used in technical analysis, this method is the same as the running min-max normalization method except that the stochastic oscillator is in a range of (0,100) while min-max normalization is in a range of (0,1). The stochastic oscillator in itself is efficient since it tell's us when the price reached its highest/lowest or crossed this average, however there could be ways to further develop the stochastic oscillator, this is why i propose this new indicator that aim to show all the information a classical stochastic oscillator would give with some additional features.
Min-Max Derivation
The min-max normalization of the price is calculated as follow : (price - min)/(max - min) , this calculation is efficient but there is alternates forms such as :
price - (max - min) - min/(max - min)
This alternate form is the one i chosen to make the indicator except that both range (max - min) are smoothed with a simple moving average, there are also additional modifications that you can see on the code.
The Indicator
The indicator return two main lines, in blue the bull line who show the buying force and in red the bear line who show the selling force.
An orange line show the signal line who represent the moving average of the max(bull,bear), this line aim to show possible exit/reversals points for the current trend.
Length control the highest/lowest period as well as the smoothing amount, signal length control the moving average period of the signal line, the pre-filtering setting indicate which smoothing method will be used to smooth the input source before applying normalization.
The default pre-filtering method is the sma.
The ema method is slightly faster as you can see above.
The triangular moving average is the moving average of another moving average, the impulse response of this filter is a triangular function hence its name. This moving average is really smooth.
The lsma or least squares moving average is the fastest moving average used in this indicator, this filter try to best fit a linear function to the data in a certain window by using the least squares method.
No filtering will use the source price without prior smoothing for the indicator calculation.
Relationship With The Stochastic Oscillator
The crosses between the bull and bear line mean that the stochastic oscillator crossed the 50 level. When the Bull line is equal to 0 this mean that the stochastic oscillator is equal to 0 while a bear line equal to 0 mean a stochastic oscillator equal to 100.
The indicator and below a stochastic oscillator of both period 100
Using Levels
Unlike a stochastic oscillator who would clip at the 0 and 100 level the proposed indicator is not heavily constrained in a range like the stochastic oscillator, this mean that you can apply levels to trigger signals
Possible levels could be 1,2,3... even if the indicator rarely go over 3.
Its then possible to create strategies using such levels as support or resistance one.
Conclusion
I've showed a modified stochastic oscillator who aim to show additional information to the user while keeping all the information a classical stochastic oscillator would give. The proposed indicator is no longer constrained in an hard range and posses more liberty to exploit its scale which in return allow to create strategies based on levels.
For pinescript users what you can learn from this is that alternates forms of specific formulas can be extremely interesting to modify, changes can be really surprising so if you are feeling stuck, modifying alternates forms of know indicators can give great results, use tools such as sympy gamma to get alternates forms of formulas.
Thanks for reading !
If you are looking for something or just want to say thanks try to pm me :)
High/Low bandsGives good idea about trend.
In last 100 days the lowest price was this.
In last 100 days the highest price was this.
Price makes new 100 days high! (uptrend)
Chaikin MF% (CMFP) w. Alerts, Bells & Whistles [LucF]This is Chaikin’s Money Flow indicator on a 0-100 scale with buy/sell signals, alerts and other bells & whistles.
It includes:
- a fast EMA (16 periods by default),
- a slow MA (64 periods by default),
- histograms,
- 3 different sorts of crosses,
- big swings identification,
- buy/sell signals on CMFP crossing back from outside user-defined levels,
- buy/sell signals on the slow MA pivots above/below user-defined levels,
- alerts on big swings and buy/sells.
This indicator started with @LazyBear code (VAPI) at:
@cI8DH then changed the scale to 0-100, which I find very useful:
I then added the rest.
The chart above shows both clean and busy versions of the indicator.
Note that the default length is 10 rather than the commonly used 20. I use CMFP in conjunction with VFI and like the fact that it is faster than VFI. The default inputs show the way I normally use this indicator, with the slow MA shown in histogram mode. I find it gives good context to the signal line. Crosses between the two are often useful.
The buy/sell signals aren’t the main attraction of this indicator, and nothing to write home about. Like the big swing markers, I think it’s more realistic to view them as pointers to potentially interesting areas on charts. Their nature makes them more suited to identifying reversals. They certainly aren’t reliable enough to turn this study into a strategy and I normally don’t use them. The levels pre-defined for the buy/sell signals on CMFP are most useful on short intervals. The buy/sell signals on the slow MA pivots work on a more complete range of intervals. Optimization for your specific instruments and intervals will improve their reliability.
As usual when defining alerts, be sure you already have defined proper inputs and that you are on the intended interval, as they will be used when triggering alerts.
3 of SlowStochastics
스토캐스틱 3개를 한번에 볼수 있습니다. 천장과 바닥은 각 100의 위치마다 존재합니다
You can see three slow stochastics at once. The ceiling and floor are located at each 100 (0 - 100 - 200- 300)
Percentage Price Oscillator (PPO)The Percentage Price Oscillator (PPO) is a momentum oscillator that measures the difference between two moving averages as a percentage of the larger moving average. As with its cousin, MACD, the Percentage Price Oscillator is shown with a signal line, a histogram and a centerline. Signals are generated with signal line crossovers, centerline crossovers, and divergences. First, PPO readings are not subject to the price level of the security. Second, PPO readings for different securities can be compared, even when there are large differences in the price.
Calculations
PPO: {(12-day EMA - 26-day EMA)/26-day EMA} x 100
Signal Line: 9-day EMA of PPO
PPO Histogram: PPO - Signal Line
While MACD measures the absolute difference between two moving averages, PPO makes this a relative value by dividing the difference by the slower moving average (26-day EMA). PPO is simply the MACD value divided by the longer moving average. The result is multiplied by 100 to move the decimal place two spots.
Interpretation
As with MACD, the PPO reflects the convergence and divergence of two moving averages. PPO is positive when the shorter moving average is above the longer moving average. The indicator moves further into positive territory as the shorter moving average distances itself from the longer moving average. This reflects strong upside momentum. The PPO is negative when the shorter moving average is below the longer moving average. Negative readings grow when the shorter moving average distances itself from the longer moving average (goes further negative). This reflects strong downside momentum. The histogram represents the difference between PPO and its 9-day EMA, the signal line. The histogram is positive when PPO is above its 9-day EMA and negative when PPO is below its 9-day EMA. The PPO-Histogram can be used to anticipate signal line crossovers in the PPO.
MACD, PPO and Price
MACD levels are affected by the price of a security. A high-priced security will have higher or lower MACD values than a low-priced security, even if volatility is basically equal. This is because MACD is based on the absolute difference in the two moving averages. Because MACD is based on absolute levels, large price changes can affect MACD levels over an extended period of time. If a stock advances from 20 to 100, its MACD levels will be considerably smaller around 20 than around 100. The PPO solves this problem by showing MACD values in percentage terms.
Conclusions
The Percentage Price Oscillator (PPO) generates the same signals as the MACD, but provides an added dimension as a percentage version of MACD. The PPO levels of the Dow Industrials (price > 20K) can be compared against the PPO levels of IBM (price < 200) because the PPO “levels” the playing field. In addition, PPO levels in one security can be compared over extended periods of time, even if the price has doubled or tripled. This is not the case for the MACD.
Limitations
Despite its advantages, the PPO is still not the best oscillator to identify overbought or oversold conditions because movements are unlimited (in theory). Levels for RSI and the Stochastic Oscillator are limited and this makes them better suited to identify overbought and oversold levels.
Source: Stockcharts
Multiple Moving AveragesThis is really simple. But useful for me as I don't have a paid account. No-pro users can only use 3 indicators at once and because I rely heavily on simple moving averages it can be a real pain.
This one indicator features:
20 MA
50 MA
100 MA
200 MA
which I find are the most useful overall. The 20 and 50 over all time frame but in particular < 1 day, the 100 and 200 at > 4 hr time frames. In general I don't use the 100 MA that much. The daily 200 MA is a critical support for many assets like stocks and cryptos. I'm by no means a pro and if you are learning I recommend becoming familiar with moving averages right at the beginning.
If you want to deactivate some of the lines, you can do it via the indicator's settings icon.
Exponential Moving Average (Set of 3) [Krypt] + 13/34 EMAsI took Krypt's script and essentially added on to it.
the 20/50/100/200 EMAs should be used together as support and resistance as normal.
Wait for price to break 200 EMA
Wait for 50 EMA to cross 200 EMA
Wait for pullback to 50 EMA to open position
20 and 100 EMAs are for extra information about moving support and resistance
and 13/34 EMAs should be used in conjunction
When 13 EMA crosses 34 EMA, open position
When price gets far from 13/34, close position (because price will attempt to revert back to mean)
This is better for scalping and swing trades than the 20/50/100/200 setup.
Twitter: @AzorAhai06
Ichimoku Cloud Score v1.0This script calculates a simple Ichimoku Score based on the signals documented here , with a few additions. Each of the score components can be individually weighted via the script inputs . The output is a plot of the normalized Ichimoku score, in the range of -100 to 100.
This script has been heavily modified from 'Ichimoku Cloud Signal Score v2.0.0 '. Credit to user 'dashed' for the initial implementation.
This has been modified with several refinements:
Clean/Organized Code
Simplified Inputs
Improved Style
Scores normalized to a range (-100, 100)
Bugfixes and Improvements
Script Inputs: i.imgur.com
Volume RatioDefinition:
Volume ratio can be obtained in a similar way to RSI.
Volume Ratio (%) = 100 - 100/(1+vr)
The parameter "vr" is defined as
vr=(A+U/2)/(D+U/2)
A=Total volume of the periods when the price advanced
D=Total volume of the periods when the price declined
U=Total volume of the periods when the price unchanged
After substitution, following expression can be derived and the denominator represents total volume of all periods.
Volume Ratio (%) = 100 x (A+U/2)/(A+D+U)
Notes:
A similar method to interpret RSI can be employed.
1) Overbought level over 70% and oversold level under 30%. These levels need to be adjusted according to the periods, time frames and issues.
2) Bullish picture over 50% line and bearish picture under 50% line.
3) Crossing oversold level to the upside can be taken as a confirmation of bullish reversal. - and vice versa for a bearish reversal.
4) After a long-term bearish market, the increase of volume can happen in the early stage of a bullish market.
5) Buying opportunity can be suggested when the volume ratio is declining and the price is either advancing or leveling off.
CCI with Volume Weighted EMA Here is an attempt to improve on the CCI using a volume weighted ema which is then plugged into the CCI formula.
Use:
The CCI with VW EMA is an oscillator that gives readings between -100 and +100. The usual use is to 'go long' with values over +100 and short on values less than -100.
Another use of this oscillator is a countertrend indicator where one sells at crosses under +100 and buys on crosses over -100.
Multi-Functional Fisher Transform MTF with MACDL TRIGGERWhat this indicator gives you is a true signal when price is exhausted and ready for a fast turnaround. Fisher Transform is set for multi-time frame and also allows the user to change the length. This way a user can compare two or more time spans and lengths to look for these MACDL divergent triggers after a Fisher exhaustion. With so many indicators, it's probably best to merge these indicators and change the Fisher and Trigger colors so you can still have a look at price action (remember to scale right after merger). I've noticed from time to time when you have Fisher 34 100 and 300 up and running on two different time frames such as 5 and 15 min charts, with MACDL triggers on the 100/300 or 34/100 you get a high probability trade trigger. However, there are rare exceptions such as when price moves in a parabolic state up or down for a long period where this indication does not work. Ideally this indicator works best in a sideways market or slow rising/descending moving market.
This indicator was worked on by Glaz, nmike and myself
LazyBear also introduced the MACDL indicator
CCI Crossover AlertThis very simple indicator will give you a blue background where the CCI crossed from below -100 to above -100, and a red background where it crossed from above 100 to below 100.
Ultimate ATR ProUltimate ATR Pro - Professional Volatility Analysis Tool
Unlock Market Turning Points with Precision Volatility Analysis
Key Features
1. Advanced ATR Calculation Engine
4 MA Types: RMA (Wilder's), SMA, EMA, WMA
Customizable Period: Adjust ATR length (default: 14)
Multi-Timeframe Compatible: Works on all chart intervals
2. Smart Volatility Extremum Detection
Low Volatility Signals: Identifies ATR contraction periods
High Volatility Signals: Detects ATR expansion phases
Custom Lookback Period: Set detection window (10-500 bars)
3. Professional Divergence System
Bullish Divergence: Price ↑ while ATR ↓ (trend continuation signal)
Bearish Divergence: Price ↓ while ATR ↑ (trend acceleration signal)
Visual Connection Lines: Dotted lines highlight price-ATR relationships
4. Visual Extreme Value Lines (NEW!)
Lowest ATR Line: Customizable dotted line showing minimum volatility level
Highest ATR Line: Customizable dotted line marking maximum volatility level
Dynamic Positioning: Auto-updates with each new bar
5. Complete Customization System
Full Color Control:
Signal markers (low/high volatility)
Divergence labels
ATR line
Extreme value lines
Background highlights
Toggle Features: Enable/disable any visual element
6. Intelligent Alert System
Dual Alert Types:
Volatility Extremes (Low/High ATR)
Divergence Signals (Bullish/Bearish)
Smart Cooldown: Prevent alert fatigue with adjustable cooldown period
Visual Alert Tags: Color-coded notifications at chart top
7. Professional Dashboard
Real-time status monitoring:
Current volatility state
Cooldown timers
Extreme ATR values
Divergence detection status
Color-coded for instant recognition
How Traders Benefit
Strategic Applications
markdown
复制
| SIGNAL | MARKET CONDITION | TRADING IMPLICATION |
|-----------------------|---------------------------|------------------------------------|
| Low Volatility | Contraction/Consolidation | Prepare for breakout strategies |
| High Volatility | Expansion/Climax | Watch for reversals or pauses |
| Bullish Divergence | Price↑ ATR↓ | Trend continuation opportunity |
| Bearish Divergence | Price↓ ATR↑ | Trend acceleration warning |
| Lowest ATR Line Break | Volatility breakout | Confirm directional movement |
Risk Management Tools
ATR-Based Position Sizing: Use extreme values to calculate optimal trade size
Dynamic Stop Loss: Adjust stops based on current volatility regime
Volatility Filtering: Avoid trading during uncertain high-volatility periods
Setup Recommendations
Parameter Guide
pine
复制
length: 14 // Standard ATR period
lookback: 50 // Optimal for swing trading
cooldownPeriod: 14// Balanced alert frequency
minLineColor: #00C853 // Bright green for low volatility
maxLineColor: #FF3D00 // Bright red for high volatility
Professional Configurations
Day Trading: Lookback=20-30, Cooldown=5-10
Swing Trading: Lookback=50-100, Cooldown=10-20
Position Trading: Lookback=100-200, Cooldown=20-50
Why Choose Ultimate ATR Pro?
"Transforms complex volatility analysis into clear, actionable visual cues - the essential tool for breakout traders and risk managers alike."
Install Now To:
Spot consolidation before big moves
Identify exhaustion at trend extremes
Automate volatility-based position sizing
Receive instant alerts at critical volatility turns
Gain professional-grade insights into market dynamics
Master market rhythms with the most advanced ATR analysis tool on TradingView!
Compatibility: Works flawlessly across stocks, forex, crypto, and commodities on all timeframes.
Version: 2.0 (Enhanced with Extreme Value Lines)
Category: Volatility Analysis | Risk Management | Professional Trading
Level Vision Multi-Asset📌 Descrizione in Italiano
📌 Descrizione Indicatore: Level Vision Multi-Asset (fisso)
Il Level Vision Multi-Asset è un indicatore pensato per aiutarti a tracciare automaticamente livelli di prezzo statici e psicologici direttamente sul grafico.
Funziona perfettamente su Oro, Forex, Indici, Criptovalute o qualsiasi altro asset finanziario.
✅ Funzionalità principali:
Le linee sono fisse sui livelli di prezzo, non si spostano con lo storico o lo zoom.
Si possono distinguere chiaramente i livelli tondi principali (es. 3300, 3400, 3500) e i livelli intermedi (es. 3305, 3310…).
Personalizzazione completa di colori, spessore e stile delle linee.
🎯 Esempio di configurazione per Oro (XAU/USD):
Prezzo minimo: 3300
Prezzo massimo: 3500
Passo Livelli Tondi: 100 punti → es. 3300, 3400, 3500.
Passo Livelli Intermedi: 5 punti → es. 3305, 3310, 3315 ecc.
Personalizza colori e stili come preferisci.
✅ Consiglio pratico:
Per fissare le linee al grafico, clicca sul lucchetto vicino al nome dell’indicatore e seleziona “Blocca all’asse dei prezzi”.
📌 English Description
📌 Indicator Description: Level Vision Multi-Asset (fixed)
Level Vision Multi-Asset helps you automatically plot static and psychological price levels on your chart.
It works perfectly on Gold, Forex, Indices, Cryptocurrencies, or any other market.
✅ Main Features:
Lines stay fixed at price levels and do not move with scrolling or zooming.
You can clearly distinguish between major round levels (e.g., 3300, 3400, 3500) and intermediate levels (e.g., 3305, 3310…).
Full customization of colors, line thickness, and style.
🎯 Example Setup for Gold (XAU/USD):
Minimum price: 3300
Maximum price: 3500
Major Levels Step: 100 points → e.g., 3300, 3400, 3500.
Intermediate Levels Step: 5 points → e.g., 3305, 3310, 3315, etc.
Customize colors and styles as you prefer.
✅ Practical Tip:
To lock the lines to the chart, click the padlock icon next to the indicator name and select “Lock to price scale”.
Ultimate ATR Extreme DetectorUltimate ATR Extreme Detector
Professional Volatility Analysis Tool for Strategic Trading
Discover Market Turning Points with Precision
Key Features
Smart Extremum Detection: Identifies when ATR reaches its highest or lowest point in your specified lookback period
Quad Visual Alert System:
▲ Green bottom triangles for low volatility signals
▼ Red top triangles for high volatility signals
Background color highlighting for instant state recognition
Status panel showing current volatility extremes
Dual Alert Modes:
TradingView native alerts ("ATR Low/High Signal")
Visual chart alerts with period details (e.g., "Alert: ATR Low (50 bars)")
4 Calculation Methods: RMA (Wilder's), SMA, EMA, and WMA
Fully Customizable:
Adjustable ATR period (default: 14)
Variable lookback window (default: 50)
Toggle features on/off via intuitive input settings
How It Works
The indicator scans volatility extremes using proprietary logic:
Calculates True Range using selected method (RMA/SMA/EMA/WMA)
Compares current ATR value against historical data
Flags critical moments when:
Volatility contracts to N-period lows (prepare for breakouts)
Volatility expands to N-period highs (watch for trend exhaustion)
Strategic Applications
markdown
复制
| SIGNAL | MARKET CONDITION | TRADING IMPLICATION |
|------------------|-----------------------|--------------------------------|
| Low Volatility | Contraction/Consolidation | Anticipate breakout moves |
| High Volatility | Expansion/Climax | Prepare for reversals or pauses |
Position Sizing: Use ATR values to determine optimal stop distances
Entry Timing: Combine with price action at key support/resistance
Risk Management: Adjust stops dynamically based on volatility regime
Optimization Guide
Day Trading: Short lookback (20-30 periods)
Swing Trading: Medium lookback (50-100 periods)
Position Trading: Long lookback (100-200 periods)
Volatility Analysis: Compare multiple timeframes simultaneously
Professional Setup Recommendations
Combine with:
Breakout Confirmation: Volume spikes, chart patterns
Reversal Signals: RSI divergence, candlestick reversals
Volatility Filters: Bollinger Band contraction, Keltner Channel breakout
Compatibility: Works flawlessly across FX, stocks, crypto, and commodities on all timeframes.
Why Traders Choose This Indicator
"Transforms complex volatility analysis into clear, actionable visual cues – the essential tool for breakout traders and risk managers alike."
Install Now to:
Spot consolidation before big moves
Identify exhaustion at trend extremes
Automate volatility-based position sizing
Receive instant alerts at critical volatility turns
Master market rhythms with professional-grade volatility intelligence!
🏹 CCI+RSI+EMA Strategy (Enhanced with Oscillator Filters)This script is a multi-indicator trading strategy that combines trend-following and momentum signals using CCI, RSI, and EMA, enhanced with MACD and Stochastic filters for more reliable entries.
🧠 Core Concept
The strategy aims to:
Identify the trend using EMA(50) and a long-term comparison of EMA 35 vs EMA 169;
Spot momentum using CCI and RSI;
Filter entries through MACD and Stochastic confirmations to avoid false signals.
📌 Buy Conditions:
✅ Price is above EMA
✅ RSI is above a set threshold (default: 45)
✅ CCI is above a set threshold (default: 0)
✅ Uptrend confirmed by EMA 35 > EMA 169
✅ CCI has recently reached oversold levels (e.g. below -100)
✅ MACD shows bullish crossover
✅ Stochastic confirms exit from oversold zone
📌 Sell Conditions:
✅ Price is below EMA
✅ RSI is below a set threshold (default: 55)
✅ CCI is below 0
✅ Downtrend confirmed by EMA 35 < EMA 169
✅ CCI has recently reached overbought levels (e.g. above 100)
✅ MACD shows bearish crossover
✅ Stochastic confirms exit from overbought zone
🎯 Features:
Fully customizable inputs — adapt to your own trading style.
Trend background shading — green for uptrend, red for downtrend.
Enhanced entry logic — filters out weak signals.
CCI Cross and Trigger markers — additional confirmation tools.
🔔 Alerts
You can set alerts for ENHANCED BUY and ENHANCED SELL to never miss a quality signal.
📈 Use Case:
This tool is suitable for:
Manual trading entries and exits
Being a component of a broader trading system
Semi-automation with alert-based strategies
⚠️ Disclaimer:
This script is for educational and testing purposes only. It is not financial advice. Always backtest and demo trade before using on a live account.
Info TableOverview
The Info Table V1 is a versatile TradingView indicator tailored for intraday futures traders, particularly those focusing on MESM2 (Micro E-mini S&P 500 futures) on 1-minute charts. It presents essential market insights through two customizable tables: the Main Table for predictive and macro metrics, and the New Metrics Table for momentum and volatility indicators. Designed for high-activity sessions like 9:30 AM–11:00 AM CDT, this tool helps traders assess price alignment, sentiment, and risk in real-time. Metrics update dynamically (except weekly COT data), with optional alerts for key conditions like volatility spikes or momentum shifts.
This indicator builds on foundational concepts like linear regression for predictions and adapts open-source elements for enhanced functionality. Gradient code is adapted from TradingView's Color Library. QQE logic is adapted from LuxAlgo's QQE Weighted Oscillator, licensed under CC BY-NC-SA 4.0. The script is released under the Mozilla Public License 2.0.
Key Features
Two Customizable Tables: Positioned independently (e.g., top-right for Main, bottom-right for New Metrics) with toggle options to show/hide for a clutter-free chart.
Gradient Coloring: User-defined high/low colors (default green/red) for quick visual interpretation of extremes, such as overbought/oversold or high volatility.
Arrows for Directional Bias: In the New Metrics Table, up (↑) or down (↓) arrows appear in value cells based on metric thresholds (top/bottom 25% of range), indicating bullish/high or bearish/low conditions.
Consensus Highlighting: The New Metrics Table's title cells ("Metric" and "Value") turn green if all arrows are ↑ (strong bullish consensus), red if all are ↓ (strong bearish consensus), or gray otherwise.
Predicted Price Plot: Optional line (default blue) overlaying the ML-predicted price for visual comparison with actual price action.
Alerts: Notifications for high/low Frahm Volatility (≥8 or ≤3) and QQE Bias crosses (bullish/bearish momentum shifts).
Main Table Metrics
This table focuses on predictive, positional, and macro insights:
ML-Predicted Price: A linear regression forecast using normalized price, volume, and RSI over a customizable lookback (default 500 bars). Gradient scales from low (red) to high (green) relative to the current price ± threshold (default 100 points).
Deviation %: Percentage difference between current price and predicted price. Gradient highlights extremes (±0.5% default threshold), signaling potential overextensions.
VWAP Deviation %: Percentage difference from Volume Weighted Average Price (VWAP). Gradient indicates if price is above (green) or below (red) fair value (±0.5% default).
FRED UNRATE % Change: Percentage change in U.S. unemployment rate (via FRED data). Cell turns red for increases (economic weakness), green for decreases (strength), gray if zero or disabled.
Open Interest: Total open MESM2 futures contracts. Gradient scales from low (red) to high (green) up to a hardcoded 300,000 threshold, reflecting market participation.
COT Commercial Long/Short: Weekly Commitment of Traders data for commercial positions. Long cell green if longs > shorts (bullish institutional sentiment); Short cell red if shorts > longs (bearish); gray otherwise.
New Metrics Table Metrics
This table emphasizes technical momentum and volatility, with arrows for quick bias assessment:
QQE Bias: Smoothed RSI vs. trailing stop (default length 14, factor 4.236, smooth 5). Green for bullish (RSI > stop, ↑ arrow), red for bearish (RSI < stop, ↓ arrow), gray for neutral.
RSI: Relative Strength Index (default period 14). Gradient from oversold (red, <30 + threshold offset, ↓ arrow if ≤40) to overbought (green, >70 - offset, ↑ arrow if ≥60).
ATR Volatility: Score (1–20) based on Average True Range (default period 14, lookback 50). High scores (green, ↑ if ≥15) signal swings; low (red, ↓ if ≤5) indicate calm.
ADX Trend: Average Directional Index (default period 14). Gradient from weak (red, ↓ if ≤0.25×25 threshold) to strong trends (green, ↑ if ≥0.75×25).
Volume Momentum: Score (1–20) comparing current to historical volume (lookback 50). High (green, ↑ if ≥15) suggests pressure; low (red, ↓ if ≤5) implies weakness.
Frahm Volatility: Score (1–20) from true range over a window (default 24 hours, multiplier 9). Dynamic gradient (green/red/yellow); ↑ if ≥7.5, ↓ if ≤2.5.
Frahm Avg Candle (Ticks): Average candle size in ticks over the window. Blue gradient (or dynamic green/red/yellow); ↑ if ≥0.75 percentile, ↓ if ≤0.25.
Arrows trigger on metric-specific logic (e.g., RSI ≥60 for ↑), providing directional cues without strict color ties.
Customization Options
Adapt the indicator to your strategy:
ML Inputs: Lookback (10–5000 bars) and RSI period (2+) for prediction sensitivity—shorter for volatility, longer for trends.
Timeframes: Individual per metric (e.g., 1H for QQE Bias to match higher frames; blank for chart timeframe).
Thresholds: Adjust gradients and arrows (e.g., Deviation 0.1–5%, ADX 0–100, RSI overbought/oversold).
QQE Settings: Length, factor, and smooth for fine-tuned momentum.
Data Toggles: Enable/disable FRED, Open Interest, COT for focus (e.g., disable macro for pure intraday).
Frahm Options: Window hours (1+), scale multiplier (1–10), dynamic colors for avg candle.
Plot/Table: Line color, positions, gradients, and visibility.
Ideal Use Case
Perfect for MESM2 scalpers and trend traders. Use the Main Table for entry confirmation via predicted deviations and institutional positioning. Leverage the New Metrics Table arrows for short-term signals—enter bullish on green consensus (all ↑), avoid chop on low volatility. Set alerts to catch shifts without constant monitoring.
Why It's Valuable
Info Table V1 consolidates diverse metrics into actionable visuals, answering critical questions: Is price mispriced? Is momentum aligning? Is volatility manageable? With real-time updates, consensus highlights, and extensive customization, it enhances precision in fast markets, reducing guesswork for confident trades.
Note: Optimized for futures; some metrics (OI, COT) unavailable on non-futures symbols. Test on demo accounts. No financial advice—use at your own risk.
The provided script reuses open-source elements from TradingView's Color Library and LuxAlgo's QQE Weighted Oscillator, as noted in the script comments and description. Credits are appropriately given in both the description and code comments, satisfying the requirement for attribution.
Regarding significant improvements and proportion:
The QQE logic comprises approximately 15 lines of code in a script exceeding 400 lines, representing a small proportion (<5%).
Adaptations include integration with multi-timeframe support via request.security, user-customizable inputs for length, factor, and smooth, and application within a broader table-based indicator for momentum bias display (with color gradients, arrows, and alerts). This extends the original QQE beyond standalone oscillator use, incorporating it as one of seven metrics in the New Metrics Table for confluence analysis (e.g., consensus highlighting when all metrics align). These are functional enhancements, not mere stylistic or variable changes.
The Color Library usage is via official import (import TradingView/Color/1 as Color), leveraging built-in gradient functions without copying code, and applied to enhance visual interpretation across multiple metrics.
The script complies with the rules: reused code is minimal, significantly improved through integration and expansion, and properly credited. It qualifies for open-source publication under the Mozilla Public License 2.0, as stated.
Multi-Crypto Principal Component AnalysisVersion 0.2
## 📌 Multi-Crypto Principal Component Analysis (PCA) — Indicator Summary
### 🎯 Purpose
This indicator identifies **cryptocurrency assets that are behaving differently** from the rest of the market, using a simplified approach inspired by Principal Component Analysis (PCA). It’s designed to help traders spot **cross-market divergences**, detect outliers, and improve asset selection and correlation-based strategies.
### ⚙️ How It Works
The indicator analyzes the **log returns** of up to 7 user-defined assets over a configurable lookback period (default: 100 bars). It computes the **z-score** (standardized deviation) for each asset’s return series and compares it against the average behavior of the group.
If an asset’s behavior deviates significantly (beyond a threshold of 1.5 standard deviations), it’s flagged as an **outlier**.
- Each outlier is plotted as a **colored dot horizontally spaced** above the price bar
- Up to **3 dots per bar** are shown for visual clarity
This PCA-style detection works in real time, directly on the chart, and gives you a quick overview of which assets are breaking correlation.
### 🔧 Inputs
- 🕒 **Lookback Period**: Number of bars to analyze (default: 100)
- 🔢 **Assets 1–7**: Choose any 7 crypto symbols from any exchange
- 🎨 **Colors**: Predefined per asset (e.g. BTCUSDT = red, ETHUSDT = yellow)
- 📈 **Threshold**: Internal (1.5 std dev); adjustable in code if needed
### 📊 Outputs
- 🟢 Dots above candles representing assets that are acting as outliers
- 🧠 Real-time clustering insight based on statistical deviation
- 🧭 Spatially spaced dots to avoid visual overlap when multiple outliers appear
### ⚠️ Limitations
- This is a **PCA-inspired approximation**, not true matrix-based PCA
- It does **not compute principal components or eigenvectors**
- Sensitivity may vary with asset volatility or sparse trading data
- Real PCA requires external tools like Python or R for full dimensional analysis
This tool is ideal for traders who want real-time crypto correlation insights without needing external data science platforms. It’s lightweight, fast, and highly visual — and gives you a powerful lens into market dislocations across multiple assets.
Multi-Timeframe EMAs & WMAsMulti-Timeframe EMAs & WMAs (MTF EMAWMA)
The Multi-Timeframe EMAs & WMAs (MTF EMAWMA) indicator is a comprehensive tool designed to provide a multi-dimensional view of market trends by plotting various Exponential Moving Averages (EMAs) and Weighted Moving Averages (WMAs) from different timeframes onto your current chart. This allows traders to quickly assess confluent support and resistance levels, identify trend strength, and gain a broader market perspective without switching timeframes.
Key Features:
Multiple EMAs and WMAs:
This indicator includes:
- EMA 200: Plotted from H1 and M15 timeframes.
- EMA 100: Plotted from H1, M30, and M15 timeframes.
- EMA 50: Plotted from H4, H1, M30, and M15 timeframes.
- WMA 720: Plotted from H4, H1, M30, M15, and M1 timeframes.
Multi-Timeframe Analysis: By displaying moving averages from various timeframes, the indicator helps in understanding the interplay of different trends and their potential impact on price action.
Visual Distinction : Each moving average type and its timeframe representation are color-coded and styled (solid vs. dashed lines) for easy identification and clarity on the chart.
EMA 200: Dark Red
EMA 100: Cyan/Teal
EMA 50: SaddleBrown
WMA 720: Orange
Recommended Usage:
This indicator is specifically tailored for XAU/USD (Gold). It is intended to be used as a confluence tool to complement your existing trading strategies and indicators. It is not designed to be used solely as an entry or exit signal. Instead, leverage the information provided by these multi-timeframe moving averages to:
- Identify major trend directions: Observe the alignment and slope of longer-term moving averages.
- Spot potential support and resistance zones: Price often reacts to these key moving average levels from higher timeframes.
- Confirm trade bias: Use the higher timeframe moving averages to confirm the direction of your trades on lower timeframes.
- Enhance risk management: Understand where strong levels might exist to place stop-losses or take-profits.
Always combine this indicator with other forms of analysis, such as price action, chart patterns, volume analysis, or other technical indicators, to make informed trading decisions.
Remark: The script and description were created by AI.
NY Open ATR System - Tick Range Filter### **New York Open ATR System - Brief Overview**
#### **🎯 Core Purpose**
Identifies **high-potential breakout setups** at the New York open (13:30 UTC) by combining:
1. **Volatility filters** (dual ATR periods)
2. **Tick-based range analysis**
3. **Time-specific triggers**
---
### **⚙️ Key Components**
| **Feature** | **Function** |
|---------------------------|-----------------------------------------------------------------------------|
| **ATR Filters** | Dual volatility checks (short + long periods) at 13:25 UTC |
| **Tick Range Limit** | Highlights candles with range < user-defined ticks (default: 150) |
| **Time Precision** | Focuses exclusively on 13:30 UTC weekday candles |
| **Visual Markers** | Yellow highlight + tick count label (e.g., "147/150 ticks") |
| **Info Panel** | Real-time display of settings and current tick count |
---
### **📊 How It Works**
1. **Pre-Open Check (13:25 UTC)**
- Verifies market volatility using 2 ATR values
- Requires both to exceed user-defined thresholds
2. **Open Analysis (13:30 UTC)**
- Measures exact tick count: `(high - low) / instrument_mintick`
- Compares against your max tick limit (adjustable 1-5000)
3. **Visual Trigger**
- Highlights candle yellow if:
```tick_count < your_set_limit```
- Labels show exact performance vs limit (e.g., "142/150 ticks")
---
### **⚡ Trading Signals**
| **Condition** | **Visual Feedback** |
|----------------------------|---------------------------------------------|
| High volatility + tight range | Yellow candle + tick count label |
| All other scenarios | No marking |
---
### **🛠️ Customization**
```pine
// Key Adjustable Parameters:
maxTicks = input.int(150) // Set 1-5000 ticks
atrPeriod1 = input.int(14) // Short ATR (2-5000)
atrPeriod2 = input.int(161) // Long ATR (2-5000)
candleColor = input.color(color.yellow) // Highlight color
```
---
### **💡 Practical Use Cases**
1. **Breakout Anticipation**
- Tight ranges after volatility spikes often precede strong moves
2. **Session Scalping**
- Identify low-range opens for mean-reversion plays
3. **Volatility Filtering**
- Avoid trading when ATR thresholds aren't met
---
### **📈 Suggested Settings**
| **Market** | **Max Ticks** | **ATR Periods** |
|------------------|--------------|----------------|
| Forex (EUR/USD) | 100-200 | 14/161 |
| Stocks (SPY) | 50-120 | 10/200 |
| Crypto (BTC) | 300-500 | 20/100 |
---
### **✅ Benefits**
- **Precision Timing**: Focused on NY open liquidity surge
- **Quantitative Filtering**: Exact tick measurement + volatility thresholds
- **Clean Visuals**: No chart clutter - only marks qualifying candles
- **Adaptable**: Works across all markets and timeframes
This system helps traders spot high-probability breakout setups by combining volatility anticipation with precise range measurement at the market's most liquid opening window.
Digit Sum Mark (3/6/9 + Price ~33 ±15)This indicator highlights the price bars where the digit sum of high or low equals 3, 6, or 9, and the closing price is within a specific range (around ₹33 ±15, i.e., mod 100 ∈ ).
✨ Key Features:
Calculates digit sum of high and low values.
Adds +1 if the decimal portion > 0.50 (smart rounding logic).
Only activates when close price mod 100 is between 18 to 48, a zone inspired by the resonance around 33.
Marks the chart with green downward arrows (for high) and red upward arrows (for low) when digit sum = 3, 6, or 9.
📌 Inspired by Gann numerology and price vibration logic – especially the powerful influence of 3, 6, and 9 as noted by Nikola Tesla.
🚨 Best used on intraday or positional charts where price oscillates frequently around round figures.
🧠 Try pairing this with support/resistance tools for better accuracy!
Contrarian Market Structure BreakMarket Structure Break application was inspired and adapted from Market Structure Oscillator indicator developed by Lux Algo. So much credit to their work.
This indicator pairs nicely with the Contrarian 100 MA and can be located here:
Indicator Description: Contrarian Market Structure BreakOverview
The "Contrarian Market Structure Break" indicator is a versatile tool tailored for traders seeking to identify potential reversal opportunities by analyzing market structure across multiple timeframes. Built on Institutional Concepts of Structure (ICT), this indicator detects Break of Structure (BOS) and Change of Character (CHoCH) patterns across short-term, intermediate-term, and long-term swings, plotting them with customizable lines and labels. It generates contrarian buy and sell signals when price breaks key swing levels, with a unique "Blue Dot Tracker" to monitor consecutive buy signals for trend confirmation. Optimized for the daily timeframe, this indicator is adaptable to other timeframes with proper testing, making it ideal for traders of forex, stocks, or cryptocurrencies.
How It Works
The indicator combines three key components to provide a comprehensive view of market dynamics: Multi-Timeframe Market Structure Analysis: It identifies swing highs and lows across short-term, intermediate-term, and long-term periods, plotting BOS (continuation) and CHoCH (reversal) events with customizable line styles and labels.
Contrarian Signal Generation: Buy and sell signals are triggered when the price crosses below swing lows (buy) or above swing highs (sell), indicating potential reversals in overextended markets.
Blue Dot Tracker: A unique feature that counts consecutive buy signals ("blue dots") and highlights a "Hold Investment" state with a yellow background when three or more buy signals occur, suggesting a potential trend continuation.
Signals are visualized as small circles below (buy) or above (sell) price bars, and a table in the bottom-right corner displays the blue dot count and recommended action (Hold or Flip Investment), enhancing decision-making clarity.
Mathematical Concepts Swing Detection: The indicator identifies swing highs and lows by comparing price patterns over three bars, ensuring robust detection of pivot points. A swing high occurs when the middle bar’s high is higher than the surrounding bars, and a swing low occurs when the middle bar’s low is lower.
Market Structure Logic: BOS is detected when the price breaks a prior swing high (bullish) or low (bearish) in the direction of the current trend, while CHoCH signals a potential reversal when the price breaks a swing level against the trend. These are calculated across three timeframes for a multi-dimensional perspective.
Blue Dot Tracker: This feature counts consecutive buy signals and tracks the entry price. If three or more buy signals occur without a sell signal, the indicator enters a "Hold Investment" state, marked by a yellow background, until the price exceeds the entry price or a sell signal occurs.
Entry and Exit Rules Buy Signal (Blue Dot Below Bar): Triggered when the closing price crosses below a swing low on either the intermediate-term or long-term timeframe, suggesting an oversold condition and potential reversal upward. Short-term signals can be enabled but are disabled by default to reduce noise.
Sell Signal (White Dot Above Bar): Triggered when the closing price crosses above a swing high on either the intermediate-term or long-term timeframe, indicating an overbought condition and potential reversal downward.
Blue Dot Tracker Logic: After a buy signal, the indicator increments a blue dot counter and records the entry price. If three or more consecutive buy signals occur (blueDotCount ≥ 3), the indicator enters a "Hold Investment" state, highlighted with a yellow background, suggesting a potential trend continuation. The "Hold Investment" state ends when the price exceeds the entry price or a sell signal occurs, resetting the counter.
Exit Rules: Traders can exit buy positions when a sell signal appears, the price exceeds the entry price during a "Hold Investment" state, or based on additional confirmation from BOS/CHoCH patterns or other technical analysis tools. Always use proper risk management.
Recommended Usage
The indicator is optimized for the daily timeframe, where it effectively captures significant reversal and continuation patterns in trending or ranging markets. It can be adapted to other timeframes (e.g., 1H, 4H, 15M) with careful testing of settings, particularly enabling/disabling short-term structure analysis to suit market conditions. Backtesting is recommended to optimize performance for your chosen asset and timeframe.
Customization Options Market Structure Display: Toggle short-term, intermediate-term, and long-term structures on or off, with customizable line styles (solid, dashed, dotted) and colors for bullish and bearish breaks.
Labels: Enable or disable BOS/CHoCH labels for each timeframe to reduce chart clutter.
Signal Visibility: Hide buy/sell signals if desired for a cleaner chart.
Blue Dot Tracker: Monitor the blue dot count and action (Hold or Flip Investment) via the table display, which is fully customizable in terms of position and appearance.
Why Use This Indicator?
The "Contrarian Market Structure Break" indicator offers a robust framework for identifying high-probability reversal and continuation setups using ICT principles. Its multi-timeframe analysis, clear signal visualization, and innovative Blue Dot Tracker provide traders with actionable insights into market dynamics. Whether you're a swing trader or a day trader, this indicator’s flexibility and intuitive design make it a valuable addition to your trading arsenal.
Note for TradingView Moderators
This script complies with TradingView's House Rules by providing an educational and transparent description without performance claims or guarantees. It is designed to assist traders in technical analysis and should be used alongside proper risk management and personal research. The code is original, well-documented, and includes customizable inputs and clear visual outputs to enhance the user experience.
Tips for Users:
Backtest thoroughly on your chosen asset and timeframe to validate signal reliability. Combine with other indicators or price action analysis for confirmation of entries and exits. Adjust timeframe settings and enable/disable short-term structures to match market volatility and your trading style.
Hope the "Contrarian Market Structure Break" indicator enhances your trading strategy and helps you navigate the markets with confidence! Happy trading!