EMA 50, 100 and 200Draw a set of 3 EMA: 50, 100 and 200. It highlight with a circle the crossing of EMA(50) with other EMAs
Cerca negli script per "GOLD"
IV/HV ratio 1.0 [dime]This script compares the implied volatility to the historic volatility as a ratio.
The plot indicates how high the current implied volatility for the next 30 days is relative to the actual volatility realized over the set period. This is most useful for options traders as it may show when the premiums paid on options are over valued relative to the historic risk.
The default is set to one year (252 bars) however any number of bars can be set for the lookback period for HV.
The default is set to VIX for the IV on SPX or SPY but other CBOE implied volatility indexes may be used. For /CL you have OVX/HV and for /GC you have GVX/HV.
Note that the CBOE data for these indexes may be delayed and updated EOD
and may not be suitable for intraday information. (Future versions of this script may be developed to provide a realtime intraday study. )
There is a list of many volatility indexes from CBOE listed at:
www.cboe.com
(Some may not yet be available on Tradingview)
RVX Russell 2000
VXN NASDAQ
VXO S&P 100
VXD DJIA
GVX Gold
OVX OIL
VIX3M 3-Month
VIX6M S&P 500 6-Month
VIX1Y 1-Year
VXEFA Cboe EFA ETF
VXEEM Cboe Emerging Markets ETF
VXFXI Cboe China ETF
VXEWZ Cboe Brazil ETF
VXSLV Cboe Silver ETF
VXGDX Cboe Gold Miners ETF
VXXLE Cboe Energy Sector ETF
EUVIX FX Euro
JYVIX FX Yen
BPVIX FX British Pound
EVZ Cboe EuroCurrency ETF Volatility Index
Amazon VXAZN
Apple VXAPL
Goldman Sachs VXGS
Google VXGOG
IBM VXIBM
Moving Average Cross Strategy Simply define your fast and slow M then backtest the strategy.
*First script, work in progress. Will allow you to combine two TV indicators into one.
MA Cross 50/200 - Moving Averageindicates short-term 50-day moving average AND long-term 200-day moving average CROSS
@GateTicker
Multi-Timeframe Probability Zones [DW]This is an experimental study based on multi-timeframe price action and a simple average.
Use it to quickly identify MTF support and resistance, and high probability price levels.
NOTE: Because higher timeframe levels are not certain until the interval is closed, refresh your chart as new levels are drawn.
Line Break StrategyLine Break Strategy
Entry rule:
Long on a bullish line and short on a bearish line.
Backtest:
Profit factors are shown below for three-line break.
Daily time frame, FXCM broker.
EURUSD: 1.267, USDJPY: 1.039, GBPUSD: -0.816, AUDUSD: -0.959
S&P500: -0.783, Nikkei225: 1.099
CrudeOil: 1.03, Gold: 1.196
BTCUSD: -0.883
Reference:
Steve Nison, Beyond Candlesticks - New Japanese Charting Techniques Revealed
Note:
This strategy doesn't work properly on the linebreak chart.
A good example is shown below. The entry prices are not always correct.
If you have signal, but the next candle moves in the opposite direction, the entry price is drawn at the Open of the new candle instead of the Close of the previous candle.
The results of backtest are unreliable due to this reason.
Earnings MultiplesMultiplies Quarterly Earnings x 13, x 21, x 34, x 55, x 89, x 144, x 233.
Yes its a fibonacci sequence.
"Goldilocks zone" seems to be in the 55x - 89x area.
Also when companies become profitable, the indicator looks like a "starburst".
EMA & SMA with FRACTAL DEVIATION BANDS by @XeL_ArjonaEMA & SMA with FRACTAL DEVIATION BANDS
Ver. 1.0.25.08.2015
By Ricardo M Arjona @XeL_Arjona
DISCLAIMER:
DISCLAIMER:
The Following indicator/code IS NOT intended to be a formal investment advice or recommendation by the author, nor should be construed as such. Users will be fully responsible by their use regarding their own trading vehicles/assets. The embedded code and ideas within this work are FREELY AND PUBLICLY available on the Web for NON LUCRATIVE ACTIVITIES and must remain as is.
WHAT IS THIS?
This is the adaptation of the FRACTAL DEVIATION BANDS to be used on Traditional Moving Averages (Simple & Exponential).
ALL NEW IDEAS OR MODIFICATIONS to these indicator(s) are Welcome in favor to deploy a better and more accurate readings. I will be very glad to be notified at Twitter or TradingVew accounts at: @XeL_Arjona
Any important addition to this work MUST REMAIN PUBLIC by means of CreativeCommons CC & TradingView.
2015
Multi-MA SuiteMulti-MA Suite - Customizable Moving Averages Indicator
Overview
Multi-MA Suite is a comprehensive moving average indicator that combines both Exponential Moving Averages (EMAs) and Simple Moving Averages (SMAs) in a single, highly customizable tool. Designed for traders who rely on multiple timeframe analysis, this indicator provides up to 9 moving averages (5 EMAs + 4 SMAs) with full control over visibility, color schemes, and parameters.
Key Features
✓ Dual MA Types:
5 Exponential Moving Averages (EMAs) - Responsive to recent price action, ideal for short to medium timeframes
4 Simple Moving Averages (SMAs) - Slow and stable, specifically designed for long timeframe analysis
✓ Full Customization:
Individual toggle switches to show/hide each moving average
Custom color picker for each MA line
Adjustable length and source for all moving averages
Progressive line width (thicker lines for longer periods)
✓ Pre-configured Defaults:
EMA: 9, 21, 50, 100, 200 (common swing trading periods)
SMA: 50, 100, 200, 300 (institutional reference levels for long-term trends)
Color-coded scheme: Warm colors (yellow-orange) for EMAs, Cool colors (blue-purple) for SMAs
✓ Clean Interface:
Organized input groups for easy navigation
Clear labeling and logical parameter ordering
Minimal chart clutter with toggle controls
Key Difference - Speed & Timeframe:
EMAs: Fast and reactive → Best for short to medium timeframes (1-min to 4-hour charts)
SMAs: Slow and smooth → Best for long timeframes (daily, weekly, monthly charts)
Recommended Settings
Day Trading (Short Timeframes):
Focus on EMAs: 9, 21, 50
Use 1-minute to 15-minute charts
SMAs react too slowly for intraday timeframes
Swing Trading (Medium Timeframes):
Use all EMAs with SMA 50 and 200
1-hour to daily charts work best
Mix of EMAs for entries, SMAs for trend context
Position Trading (Long Timeframes):
Focus primarily on SMAs: 50, 100, 200, 300
Daily to weekly charts recommended
SMAs excel here due to their slow, stable nature
Can add EMA 200 for comparison
Investment Analysis (Very Long Timeframes):
SMAs only: 100, 200, 300
Weekly to monthly charts
SMA's slow calculation filters noise perfectly for long-term trends
EMA Timeframe-Specific Recommendations
📌 Important Notes on EMA Usage by Timeframe:
Small Timeframes (5-minute and 15-minute charts):
Use 9 EMA and 21 EMA
These fast EMAs respond quickly to price changes
Perfect for scalping and day trading
The 9/21 EMA crossover is a popular day trading strategy
Medium Timeframes (1-hour to 4-hour charts):
Use 21 EMA and 50 EMA
Balances responsiveness with trend reliability
Ideal for swing trading and intraday position holding
The 21/50 EMA combination filters out noise while staying responsive
Long Timeframes (Daily and Weekly charts):
Use 50 EMA and 200 EMA
The classic trend-following combination
50 EMA for medium-term trend, 200 EMA for major trend
The 50/200 EMA crossover is known as the "Golden Cross" (bullish) or "Death Cross" (bearish)
For very long-term analysis on these timeframes, consider using SMAs instead
Quick Reference Guide:
5m / 15m: EMA 9 & 21
1h / 4h: EMA 21 & 50
1D / 1W: EMA 50 & 200 (or switch to SMAs for even smoother signals)
Practical Trading Strategy with EMAs
📌 Why Use EMAs for Active Trading:
For active trading, use EMAs because they have faster movement compared to SMAs. This faster response to price changes allows you to catch trends earlier and exit trades before major reversals occur.
Three-EMA Trading System:
1. 9 EMA - Quick Trend Recognition:
Use the 9 EMA to understand the trend quickly
When price is above 9 EMA = Short-term uptrend
When price is below 9 EMA = Short-term downtrend
The 9 EMA reacts immediately to price momentum changes
Perfect for entry timing and quick trend identification
2. 21 EMA - Exit Signal and Trend Confirmation:
When the 21 EMA breaks (price crosses it), exit your trade
This is critical because when the 21 EMA breaks, the trend will likely reverse
The 21 EMA acts as your "stop-loss line"
Breaking the 21 EMA signals that the short-term momentum has shifted
Example: In an uptrend, when price crosses below 21 EMA, exit longs immediately
Example: In a downtrend, when price crosses above 21 EMA, exit shorts immediately
3. 50 EMA - Full Correction Understanding:
Use the 50 EMA to understand the complete correction
The 50 EMA shows where the full pullback or correction might end
When price reaches the 50 EMA, it often bounces (in a strong trend)
Breaking the 50 EMA indicates a deeper correction or potential trend reversal
Use it to gauge the strength of the overall trend
Customization Tips
Toggle unnecessary MAs off to reduce chart clutter based on your trading style and timeframe
For the 3-EMA trading strategy, enable only 9, 21, and 50 EMAs
For long timeframes (daily+), disable EMAs and use only SMAs to avoid over-reactive signals
Match your EMA selection to your timeframe using the guide above
Adjust colors to match your chart theme or to highlight specific MAs
Modify lengths to fit specific market conditions or asset volatility
Change source from close to high/low/HL2 for alternative perspectives
Use thicker lines for key decision MAs (edit linewidth in settings)
Color Scheme Rationale
EMAs (Warm Colors):
Yellow → Orange progression represents increasing timeframes while maintaining visual cohesion. The warm palette signals "active" or "fast-reacting" nature of EMAs, perfect for shorter timeframes and active trading.
SMAs (Cool Colors):
Blue → Purple progression provides clear visual distinction from EMAs. The cool palette suggests "stable," "slow," and "smooth" characteristics of SMAs, ideal for long timeframe analysis.
What Makes This Different?
Unlike basic MA indicators, Multi-MA Suite provides:
Both EMA and SMA in one indicator (saves indicator slots)
Optimized MA selection based on speed characteristics - fast EMAs for short timeframes, slow SMAs for long timeframes
Clear timeframe-specific EMA recommendations for immediate use
Practical trading strategy included - 9 EMA for trend, 21 EMA for exit, 50 EMA for corrections
Individual control over each MA (toggle, color, parameters)
Thoughtful default settings based on widely-used trading periods
Color-coded system for instant visual differentiation
Clean, organized interface for efficient workflow
Installation & Usage
Add the indicator to your chart
Open indicator settings to customize
For active trading: Enable 9, 21, and 50 EMAs (the recommended trading system)
Select appropriate MAs for your timeframe (use the EMA timeframe guide above)
Toggle MAs on/off based on your analysis needs
Adjust colors if desired to match your chart theme
Modify lengths and sources as needed for your strategy
⚠️ IMPORTANT DISCLAIMER
EDUCATIONAL AND INFORMATIONAL PURPOSES ONLY
This indicator and its accompanying documentation are provided for educational and informational purposes only. The content does not constitute financial advice, investment advice, trading advice, or any other sort of advice, and you should not treat any of the indicator's content as such.
NO GUARANTEE OF RESULTS
Past performance is not indicative of future results. The strategies, techniques, and concepts discussed herein are provided "as is" without any warranty of any kind. Trading and investing in financial markets involves substantial risk of loss and is not suitable for every investor.
RISK ACKNOWLEDGMENT
You can lose money trading: Trading stocks, forex, futures, options, cryptocurrencies, and other financial instruments carries a high level of risk and may not be suitable for all investors. You may sustain a total loss of your investment.
No guaranteed profits: The use of moving averages or any technical indicator does not guarantee profitable trades. Markets can remain irrational longer than you can remain solvent.
Lagging indicators: All moving averages are lagging indicators based on historical price data and may not predict future price movements.
False signals: Moving averages can produce false signals, especially in choppy, sideways, or low-volume market conditions.
YOUR RESPONSIBILITY
Do your own research: Before making any trading or investment decision, you should conduct your own research and due diligence.
Consult professionals: Consider seeking advice from qualified financial advisors, certified public accountants, or licensed professionals before making financial decisions.
Risk management: Always use proper risk management, including stop-losses, position sizing, and diversification.
Demo trading: Test any strategy on a demo account before risking real capital.
Understand the markets: Ensure you fully understand the markets you're trading and the risks involved.
PERSONAL TRADING DECISIONS
All trading decisions are made at your own discretion and at your own risk. You are solely responsible for all trading decisions you make. The strategies mentioned (including the 9/21/50 EMA system) are examples only and should not be followed blindly without proper testing and risk assessment.
MARKET CONDITIONS VARY
Market conditions change constantly. What works in one market condition may not work in another. Trending strategies (like the ones discussed) typically perform poorly in ranging markets. Adapt your approach based on current market conditions.
USE AT YOUR OWN RISK
By using this indicator, you acknowledge that you have read this disclaimer and agree to be bound by its terms. If you do not agree with any part of this disclaimer, do not use this indicator.
MA Crossover with R SquaredThis indicator enhances the classic Moving Average (MA) crossover strategy with statistical filtering and prediction capabilities.
Let me explain what it does:
Instead of just showing when a fast MA crosses above/below a slow MA, this indicator adds R² (R-squared) filtering to identify higher-quality crossovers and predicts future crossovers.
What is R²?
R² (Coefficient of Determination) is a statistical measure that shows how well one variable explains the movement of another variable. In simpler terms:
R² = 1.0: Perfect relationship - 100% of the movement in one MA is explained by the other MA
R² = 0.8: Strong relationship - 80%
R² = 0.5: Moderate relationship - 50%
R² = 0.0: No relationship - 0%
Imagine two cars driving on a highway:
High R² (0.9): Both cars are in the same lane, moving together consistently
Low R² (0.3): One car is weaving between lanes while the other stays straight - poor coordination.
Traditional MA crossovers often generate false signals during:
Choppy markets (price bouncing around)
Sideways/ranging markets
Low volatility periods
News events causing temporary spikes
The R² Solution:
R² acts as a "quality filter" that answers: "How meaningful this crossover is?"
What this means:
Before R² filtering: Every crossover generates a signal
After R² filtering: Only crossovers with R² > threshold generate signals
Result: Fewer but higher-quality signals.
MARKET REGIME DETECTION
High R² (> 0.7): Strong trending market - MA crossovers are reliable
Medium R² (0.4-0.7): Moderate trending - use with caution
Low R² (< 0.4): Choppy/range-bound market - avoid MA crossover signals
Increasing R²: MAs are converging/moving together more closely
Decreasing R²: MAs are diverging/losing coordination
Sudden R² drop: Potential market regime change.
Why Square the Correlation?
Correlation: Measures direction AND strength (-1 to +1)
R²: Measures strength ONLY (0 to 1)
In trading: We care about relationship strength, not direction
Direction is already indicated by crossover type (bullish/bearish)
Real-World Interpretation:
If R² = 0.64, it means:
64% of the variation in the fast MA is explained by the slow MA
36% is "noise" or unexplained movement
The MAs are moderately coordinated.
R² Trend Confirmation:
Entry: When crossover occurs AND R² is above threshold
Confirmation: R² continues rising after entry
Exit: R² drops below threshold (relationship weakening)
Multi-Timeframe R² Analysis
Check R² on higher timeframe for trend context
Use current timeframe for entry signals
Example: Daily R² > 0.7 gives bullish bias, use 1-hour for entries.
R² LIMITATIONS & CAUTIONS
1. Lagging Nature
R² is calculated from past data
By the time R² is high, the trend may already be established
2. Not a Standalone Indicator
R² should confirm other signals, not generate them alone
Always combine with price action, volume, support/resistance
3. Curve Fitting Risk
Don't over-optimize R² thresholds on historical data
What worked in the past may not work in the future
Use R² as a filter, not a predictor
4. Market-Specific Behavior
R² thresholds that work in trending stocks may fail in Forex
Cryptocurrencies may require different R² settings than commodities
Always test on your specific market/instrument
Before Taking Any Signal:
✅ Does the crossover have a colored circle? (R² > threshold)
✅ What's the R² number shown? (Higher = better)
✅ Is R² rising or falling? (Rising = strengthening relationship)
✅ Check history table - what happened with similar R² values?
✅ Consider prediction - does it align with current signal?
Simple R² Rules of Thumb:
R² > 0.8: Excellent signal quality
R² 0.6-0.8: Good signal quality
R² 0.4-0.6: Moderate - use additional confirmation
R² < 0.4: Poor - avoid or use extreme caution
Think of R² as:
A quality control inspector for MA crossovers
A relationship therapist for your moving averages
A statistical bouncer that only lets strong signals through
Higher win rate + Better risk/reward = More profitable trading
This script transforms the basic "when lines cross" approach into a sophisticated, statistically-validated trading system. R² is the secret sauce that separates random crossovers (Golden/Death) from meaningful trend changes.
DISCLAIMER: This information is provided for educational purposes only and should not be considered financial, investment, or trading advice. Please do boost if you like it. Happy Trading.
Round Level Pro Stats
Here is a professional English description of your indicator, which you can use for your own records or if you ever want to share it on the TradingView Community Scripts:
Indicator Name: Dynamic Round Levels & Historical Strength Grid
Overview
This indicator is a sophisticated technical analysis tool designed to identify and evaluate "Round Number" psychological levels (e.g., 1.17100, 1.17200, 1.17300). Unlike a static grid, this tool actively scans historical data to provide a "Strength Score" for each level, helping traders distinguish between minor price points and significant historical reaction zones.
Key Features
Automated Price Grid: Generates a clean, horizontal grid based on user-defined price intervals (Steps). Perfect for Forex (0.001 pips), Stocks, or Crypto.
Historical Strength Engine: Analyzes up to 5,000 historical bars to calculate how "respected" a price level is.
The "3-Candle Confirmation" Logic: A level's strength is only increased if the price touches the line and successfully reverses/bounces, staying on the same side for at least 3 subsequent candles.
Smart Visual Coding:
Green (High Strength): Levels with >60% historical reversal success.
Orange (Medium Strength): Levels with 35%–60% success.
Red (Low Strength): Levels frequently breached without reaction.
Pro HUD Display: Bold percentage labels are positioned at the far right of the chart (near the price scale) to keep the main trading area clutter-free.
How to Use
Set your Step: For Forex, use 0.001 to see 10-pip increments. For Bitcoin or Gold, use 10 or 100.
Lookback Period: Adjust the history scan (up to 5,000 bars) to match your trading timeframe.
Identify Support/Resistance: Look for Green % STR labels. These represent "Round Numbers" that have acted as strong barriers in the past, offering higher-probability entry or exit points.
Technical Summary for Pine Script
Language: Pine Script v5
Max Lines/Labels: 500 (Optimized for performance)
Placement: Far-right margin alignment using bar_index offsets.
Supertrend + EMA + DWMY + Session Stats
This script is a comprehensive Multi-Strategy Intraday & Swing Trading Toolkit. It merges four professional-grade indicators into a single, optimized "all-in-one" script for TradingView (Pine Script v6).
The goal of this combined tool is to provide Trend Confluence (using EMAs and Supertrend), Key Support/Resistance Levels (using DWMY Opens), and Timing Analysis (using Sessions).
Core Components & Functionality
1. Supertrend (Volatility-Based Trend)
What it does: Uses the Average True Range (ATR) to track market volatility and determine trend direction.
Visuals: Plots a line that turns Green (Uptrend) or Red (Downtrend) with a gradient background fill to highlight the current "regime."
Usage: It acts as a primary filter. You generally look for "Buy" setups when the price is above the Green line and "Sell" setups when below the Red line.
2. Michael’s EMA (Momentum Crossover)
What it does: Tracks two Exponential Moving Averages (defaults are 12 and 21) to find momentum shifts.
Visuals: The EMA lines change color based on the trend. When the small EMA crosses the big EMA, it triggers Crossover Arrows (hidden by default in some versions but available in the code).
Usage: Used for precise entry timing. A "Golden Cross" (small above big) confirms bullish momentum.
3. DWMY Labelled Opens (Institutional Levels)
What it does: Automatically plots horizontal lines at the exact price where the Day, Week, Month, and Year began.
Visuals: Color-coded horizontal lines with labels (e.g., "Daily," "Monthly") that extend to the right of the chart.
Usage: These are "Institutional Reference Points." Traders use these levels because the market often reacts strongly (bounces or breaks) when price returns to a Monthly or Yearly open.
4. Sessions with Stats (Timing & Volatility)
What it does: Draws dynamic "range boxes" for specific trading hours like the London Open, NY Open, or Tokyo Session.
Visuals: Shaded boxes that highlight the High and Low of that specific time window.
Percentage Stats: (Added per your request) A label on top of each box shows the session name and the Percentage Move (e.g., +0.50%) from the start of the session to the current price.
Usage: Helps you see which sessions are the most volatile and identify "Initial Balance" breakouts.
ADX Regime (5m) Companion PaneADX Regime Filter (5-Minute) — Trade Permission Indicator
This indicator is a market regime filter designed to answer one question only:
Is this market worth trading right now?
It is built specifically for intraday futures trading, with a strong focus on Gold (GC / MGC) and prop-firm style discipline.
What This Indicator Does
This ADX indicator does not give buy or sell signals.
Instead, it tells you when to trade and when to stand down.
Gold spends a large portion of the day in compression or VWAP chop.
Trading during those periods destroys consistency and drawdown control.
This indicator helps you avoid those conditions.
How ADX Is Used Here
ADX is calculated on the 5-minute timeframe
It measures trend strength and expansion, not direction
Direction should come from structure or higher-timeframe bias, not ADX
ADX is used strictly as a permission filter.
ADX Zones Explained
The indicator includes clear horizontal reference levels:
Below 18
Compression / chop
No trade environment
20 to 35
Optimal expansion zone
Best conditions for pullbacks and continuations
35 to 45
Strong trend
Trade cautiously or only first pullbacks
Above 45
Late expansion or news-driven volatility
No new entries recommended
These zones are visual guides to keep trading decisions objective.
What This Indicator Is NOT
It is not a signal generator
It is not an entry tool
It is not predictive
ADX does not tell you what direction to trade.
It tells you whether trading is allowed at all.
Best Practices
Use ADX on the 5-minute chart
Combine it with:
Higher-timeframe trend
VWAP or key levels
Clear price action
If ADX is below 18, standing aside is a valid trade decision
Who This Indicator Is For
Futures traders
Prop firm traders
Traders who value:
Capital protection
Fewer but higher-quality trades
Consistency over activity
Core Principle
ADX is a gatekeeper.
When it says no, you do nothing.
When it says yes, you still wait for structure and location.
This mindset alone can dramatically improve discipline and results.
GC/MGC VWAP Pullback + ADX Regime (Prop-Safe)GC / MGC VWAP Pullback + ADX Regime Strategy (Prop-Safe)
This strategy is designed specifically for Gold futures (GC & MGC) and prop firm trading, where capital preservation, consistency, and avoiding chop matter more than trade frequency.
The core philosophy is simple:
Only trade gold when it is expanding, aligned, and at the right location.
Strategy Concept
Gold moves in bursts, not constantly.
Most losses come from trading compression, VWAP chop, or late momentum.
This strategy filters those environments out and trades only:
Strong intraday momentum
Clear higher-timeframe direction
First pullbacks to VWAP
Clean price rejection with follow-through
It intentionally produces fewer but higher-quality trades.
Market Regime Filter (ADX)
ADX is evaluated on the 5-minute chart
This is the trade permission filter
ADX zones:
Below 18 → No trade (compression / chop)
20–35 → Optimal trading zone
35–45 → Caution (strong trend, reduced opportunity)
Above 45 → No new entries (late expansion / news risk)
ADX does not determine direction.
It only determines whether trading is allowed.
Direction Filter (Higher Timeframe)
Direction comes from the 1-Hour chart
EMA 20 above EMA 50 → Long bias only
EMA 20 below EMA 50 → Short bias only
Optional slope confirmation for additional strictness
No counter-trend trades.
Entry Logic (5-Minute Chart)
Trades are taken using a VWAP pullback continuation model.
Long Setup
ADX between 20–35
1H EMA 20 > EMA 50
Price pulls back to VWAP
Bullish rejection candle at VWAP
Entry on break of the rejection candle high
Short Setup
ADX between 20–35
1H EMA 20 < EMA 50
Price pulls back to VWAP from below
Bearish rejection candle at VWAP
Entry on break of the rejection candle low
All entries use stop orders, not market orders, to ensure follow-through.
Risk Management
Stop loss is placed beyond the rejection candle
Partial profit at 1R
Final target at 2R
No pyramiding
One clean setup is preferred over multiple trades
This structure aligns well with prop firm rules, trailing drawdowns, and consistency requirements.
What This Strategy Avoids
VWAP chop
Range-bound sessions
Overtrading
Late entries after news spikes
Counter-trend setups
If conditions are not ideal, no trade is the correct trade.
Best Use Case
Instruments: GC, MGC
Timeframe: 5-minute
Style: Intraday, prop-firm friendly
Ideal for traders who value:
Discipline
Structure
Capital protection
QuantLabs MASM Correlation TableThe Market is a graph. See the flows:
The QuantLabs MASM is not a standard correlation table. It is an Alpha-Grade Scanner architected to reveal the hidden "hydraulic" relationships between global macro assets in real-time.
Rebuilt from the ground up for Version 3, this engine pushes the absolute limits of the Pine Script™ runtime. It utilizes a proprietary Logarithmic Math Engine, Symmetric Compute Optimization, and a futuristic "Ghost Mode" interface to deliver a 15x15 real-time correlation matrix with zero lag.
Under the Hood: The Quant Architecture
We stripped away standard libraries to build a lean, high-performance engine designed for institutional-grade accuracy.
1. Alpha Math Engine (Logarithmic Returns) Most tools calculate correlation based on Price, which generates spurious signals (e.g., "Everything is correlated in a bull run").
The Solution: Our engine computes Logarithmic Returns (log(close/close )) by default. This measures the correlation of change (Velocity & Vector), not price levels.
The Result: A mathematically rigorous view of statistical relationships that filters out the noise of general market drift.
Dual-Core: Toggle seamlessly between "Alpha Mode" (Log Returns) for verified stats and "Visual Mode" (Price) for trend alignment.
Calculation Modes: Pearson (Standard), Euclidean (Distance), Cosine (Vector), Manhattan (Grid).
2. Symmetric Compute Optimization Calculating a 15x15 matrix requires evaluating 225 unique relationships per bar, which often crashes memory limits.
The Fix: The V3 Engine utilizes Symmetric Logic, recognizing that Correlation(A, B) == Correlation(B, A).
The Gain: By computing only the lower triangle of the matrix and mirroring pointers to the upper triangle, we reduced computational load by 50%, ensuring a lightning-fast data feed even on lower timeframes.
3. Context-Aware "Ghost Mode" The UI is designed for professional traders who need focus, not clutter.
Smart Detection: The matrix automatically detects your current chart's Ticker ID. If you are trading QQQ, the matrix will visually highlight the Nas100 row and column, making them opaque and bright while dimming the rest.
Dynamic Transparency: Irrelevant data ("Noise" < 0.3 correlation) fades into the background. Only significant "Alpha Signals" (> 0.7) glow with full Neon Saturation.
Key Features
Dominant Flow Scanner: The matrix scans all 105 unique pairs every tick and prints the #1 Strongest Correlation at the bottom of the pane (e.g., DOMINANT FLOW: Bitcoin ↔ Nas100 ).
Streak Counter: A "Stubbornness" metric that tracks how many consecutive days a strong correlation has persisted. Instantly identify if a move is a "flash event" or a "structural trend."
Neon Palette: Proprietary color mapping using Electric Blue (+1.0) for lockstep correlation and Deep Red (-1.0) for inverse hedging.
Usage Guide
Placement: Best viewed in a bottom pane (Footer).
Assets: Pre-loaded with the Essential 15 Macro Drivers (Indices, BTC, Gold, Oil, Rates, FX, Key Sectors). Fully editable via settings (Ticker|Name).
Reading the Grid:
🔵 Bright Blue: Assets moving in lockstep (Risk-On).
🔴 Bright Red: Assets moving perfectly opposite (Hedge/Risk-Off).
⚫ Faded/Black: No statistical relationship (Decoupled).
Key Improvements Made:
Formatting: Added clear bullet points and bolding to make it scannable.
Clarity: Clarified the "Logarithmic Returns" section to explain why it matters (Velocity vs. Price Levels).
Tone: Maintained the "high-tech/quant" vibe but removed slightly clunky phrases like "spurious signals" (unless you prefer that academic tone, in which case I left it in as it fits the persona).
Structure: Grouped the "Modes" under the Math Engine for better logic.
Created and designed by QuantLabs
Drawdown % + STD Bands: Log-Scale Macro ToolDrawdown % + STD Bands: Log-Scale Macro ToolDescription: The exact indicator big-macro accounts use: tracks real-time drawdown from the rolling 252-period peak, then plots -1σ (blue) and -2σ (orange) bands on a clean percent scale. Built for weekly charts-shows if a stock, index, or crypto is statistically cheap (hit -1σ) or generational-buy territory (-2σ). Works flawlessly on SPX, Nasdaq, Bitcoin, Gold, Tesla... anything. How to Use (read it aloud like a voice memo): 1. Slap this under any chart, set to weekly timeframe . 2. Flip the price pane to log scale -zero negotiations. 3. Watch the thick red line: • Hovering 0 %? Bullish noise, chill. • Kissing blue (-10 % to -25 %)? Start loading-happens every 1-2 years. • Touching orange (-30 %+)? Panic sale finished. Buy like rent money's burning a hole. 4. Zoom out five-ten years; monthly works too if you want lazy vibes. Daily? Trash-too twitchy. Pro tip: Name your watchlist Panic Plays, drop this in, and ping me when MELI or GOOGL hits orange. I'll confirm if it's actually stupid-cheap.
ChromaFlows Momentum Index | LUPENIndicator Guide: ChromaFlows Momentum Index
Overview
The ChromaFlows Momentum Index is a next-generation momentum oscillator designed to filter out market noise and visualize pure trend strength. Unlike traditional indicators that often give conflicting signals, ChromaFlows uses a Consensus Algorithm. It simultaneously analyzes three distinct engines—RSI, Fast Stochastic, and Slow Stochastic—and only lights up when they all agree on the market direction.
The result is a fluid, glowing "Wave" that provides an immediate visual read on market sentiment:
Green Glow: Strong Bullish Consensus (Safe to buy/hold).
Red Glow: Strong Bearish Consensus (Safe to sell/short).
Gray/Neutral: Indecision or Choppy Market (Stay out or tread carefully).
Key Visual Components
1. The Gradient Wave (Main Oscillator)
This is the heartbeat of the indicator. It is usually based on the Slow Stochastic (customizable in settings) but its color is determined by the Consensus Logic.
How to read it: The higher the wave, the more overbought; the lower, the more oversold. However, pay attention to the Glow Intensity. A bright, solid color indicates all underlying indicators are aligned.
2. The SMI Line (Gold Line)
Overlaid on the wave is the SMI (Stochastic Momentum Index) Blau line. This acts as a fast-moving "Signal Line".
Usage: Watch for how this line interacts with the main wave. It leads price action and often signals reversals before they happen.
3. Signal Arrows (Triangles on the Wave)
▲ Cyan Triangle: SMI Crossover UP. This occurs when the Main Wave crosses above the SMI Signal line. This is a potential Long Entry.
▼ Magenta Triangle: SMI Crossover DOWN. This occurs when the Main Wave crosses below the SMI Signal line. This is a potential Short Entry.
4. Hull Trend Markers (Circles/Shapes at Edges)
Located at the very top and bottom of the indicator panel are the Hull Moving Average (HMA) filters.
Bottom Blue/Green Marker: The longer-term Hull Trend is UP.
Top Orange/Red Marker: The longer-term Hull Trend is DOWN.
How to Trade Strategy
✅ The "Flow" Setup (High Probability)
This strategy focuses on taking trades with the momentum consensus.
Wait for the Glow: Look for the Wave to turn Neon Green (Bullish) or Neon Red (Bearish). This confirms momentum is present.
Check the Filter: Ensure the Hull Trend Marker (at the top/bottom) matches the wave color (e.g., Blue marker + Green Wave).
The Trigger: Enter when a Triangle Signal Arrow appears in the direction of the color.
Example: Wave is Green + Cyan Triangle appears = STRONG BUY.
⚠️ The "Reversal" Setup (Aggressive)
Divergence: Price makes a new high, but the ChromaFlows Wave makes a lower high.
Color Shift: The wave changes from Green to Gray (Neutral), indicating momentum is dying.
The Trigger: Wait for a Magenta Triangle (Cross Down) to confirm the reversal.
⛔ The "No-Trade" Zone
When the Wave is Gray and hovering near the zero line, the markets are ranging or the indicators are conflicting. It is statistically safer to stand aside until the "ChromaFlow" (Green or Red color) returns.
Settings Configuration
Wave Source: Choose which oscillator drives the main wave (Default: Stochastic_2).
Consensus Sensitivity: Adjust the periods of the RSI and Stochastics to make the "Glow" appear faster (more signals) or slower (more filtering).
Visuals: All colors are fully customizable via Hex codes to match your chart theme.
Lot Size Calculator (Entry + SL) GOLDLot Size Calculator (Entry + SL)
This indicator helps traders calculate the correct position size (lots) based on risk management, using a fixed account balance and risk percentage per trade.
By providing an Entry Price and Stop-Loss Price, the script automatically computes:
Dollar risk per trade
Stop-loss distance
Risk per unit
Total position size in units
Final position size in lots (rounded to broker-compatible steps)
How It Works
Define your Account Balance.
Set your Risk % per trade (e.g., 1%).
Choose your Entry Price:
Manual input, or
Use the current market price.
Enter your Stop-Loss Price.
The indicator calculates the maximum lot size so that your loss at SL equals your predefined risk.
Key Features
Uses TradingView’s syminfo.pointvalue for accurate instrument pricing
Supports any market (Forex, indices, commodities, crypto)
Custom units per lot (FX standard, mini, micro, or custom CFD contracts)
roker-friendly lot rounding
Clean table display for quick decision-making
Ideal for traders who:
Follow strict fixed-percentage risk management
Want consistent position sizing
Trade multiple instruments with different contract sizes
This tool ensures every trade risks the same percentage of capital, regardless of stop-loss distance.
CCI Standard DeviationCCI Standard Deviation – Asymmetric Volatility-Adjusted Trend Filter (CCI SD)
The Commodity Channel Index (CCI), created by Donald Lambert in 1980, measures how far the typical price deviates from its statistical average to identify cyclical momentum and trend strength.
The standard formula is:
CCI = (Typical Price − SMA(Typical Price, n)) / (0.015 × Mean Deviation)
where Typical Price = (High + Low + Close)/3.
CCI is unbounded and centered around zero: sustained readings above zero indicate bullish momentum, below zero bearish. Classic interpretations often use zero-line crosses or fixed levels (±100, ±200, ±250), but these can be unreliable when CCI volatility changes across market regimes.
This indicator was developed to create a more disciplined trend-following tool that aligns with my core risk principle: “always protect to the downside.”
Starting from the standard CCI zero-line concept for trend direction, I experimented with standard deviation bands to make the oscillator volatility-adjusted. I then applied deliberate asymmetry: requiring the lower 1σ envelope (CCI − stdev) to cross above a positive threshold for bullish confirmation (high-probability entry only in robust trends), while exiting immediately on any raw CCI weakness below a negative threshold (quick downside protection). User inputs for both thresholds were added to allow fine-tuning and adaptability across different assets and timeframes.
An optional DEMA-smoothed version of the lower envelope provides additional clarity when desired.
Extreme zones
raw CCI ±240 and lower envelope > 200 or < –200 - are highlighted with background shading to flag rare acceleration or capitulation phases.
How it works
Standard CCI calculated on typical price (default length 38).
Rolling standard deviation of the CCI itself (default length 13) measures the oscillator’s recent volatility.
Lower envelope = CCI − stdev (dn).
Optional DEMA smoothing (default length 12) can be toggled.
Trend logic:
Bullish regime only when lower envelope
→ Long Threshold (default +10)
→ statistical proof of strength
Bearish/neutral immediately when raw CCI
→ Short Threshold (default –25)
→ fast downside protection
Origin and development
The indicator emerged from wanting a cleaner, more reliable CCI for trend direction. After testing volatility-adjusted versions, the asymmetric design proved superior:
it enters only high-conviction uptrends and exits rapidly on weakness, significantly reducing whipsaws while preserving trend capture.
Parameters were optimized through extensive backtests on major assets (BTC, ETH, SOL and many more Cryptos; Magnificent 7 stocks, QQQ, SPX, gold).
The defaults were selected for the best average Sortino ratio and lowest maximum drawdown across this broad universe, ensuring robustness and avoiding single-asset overfitting.
How to use it
Green triangle below bar
→ lower envelope crosses above Long Threshold
→ high-conviction bullish trend confirmed
→ enter or add to longs
Magenta triangle above bar
→ CCI crosses below Short Threshold
→ exit longs or go cash/short
While lower envelope remains above Long Threshold
→ hold bullish positions
Extreme background shading (dn >200 or CCI ±240)
→ rare high-attention zones (potential acceleration or exhaustion)
Recommended defaults
CCI length: 38
SD length: 13
Long threshold: +10
Short threshold: –25
Optional MA length: 12 (DEMA of lower envelope)
All visual elements (bar coloring, signals, background, smoothed line) are toggleable for personal preference.
This indicator is designed as a trend-strength and risk-management filter and is not intended as a standalone trading system.
Disclaimer:
This is not financial advice. Backtests are based on past results and are not indicative of future performance.
A-Share Broad-Based ETF Dual-Core Timing System1. Strategy Overview
The "A-Share Broad-Based ETF Dual-Core Timing System" is a quantitative trading strategy tailored for the Chinese A-share market (specifically for broad-based ETFs like CSI 300, CSI 500, STAR 50). Recognizing the market's characteristic of "short bulls, long bears, and sharp bottoms," this strategy employs a "Left-Side Latency + Right-Side Full Position" dual-core driver. It aims to safely bottom-fish during the late stages of a bear market and maximize profits during the main ascending waves of a bull market.
2. Core Logic
A. Left-Side Latency (Rebound/Bottom Fishing)
Capital Allocation: Defaults to 50% position.
Philosophy: "Buy when others fear." Seeks opportunities in extreme panic or momentum divergence.
Entry Signals (Triggered by any of the following):
Extreme Panic: RSI Oversold (<30) + Price below Bollinger Lower Band + Bullish Candle Close (Avoid catching falling knives).
Oversold Bias: Price deviates more than 15% from the 60-day MA (Life Line), betting on mean reversion.
MACD Bullish Divergence: Price makes a new low while MACD histogram does not, accompanied by strengthening momentum.
B. Right-Side Full Position (Trend Following)
Capital Allocation: Aggressively scales up to Full Position (~99%) upon signal trigger.
Philosophy: "Follow the trend." Strike heavily once the trend is confirmed.
Entry Signals (All must be met):
Upward Trend: MACD Golden Cross + Price above 20-day MA.
Breakout Confirmation: CCI indicator breaks above 100, confirming a main ascending wave.
Volume Support: Volume MACD Golden Cross, ensuring price increase is backed by volume.
C. Smart Risk Control
Bear Market Exhaustion Exit: In a bearish trend (MA20 < MA60), the strategy does not "hold and hope." It immediately liquidates left-side positions upon signs of rebound exhaustion (breaking below MA20, touching MA60 resistance, or RSI failure).
ATR Trailing Stop: Uses Average True Range (ATR) to calculate a dynamic stop-profit line that rises with the price to lock in profits.
Hard Stop Loss: Forces a stop-loss if the left-side bottom fishing fails and losses exceed a set ATR multiple, preventing deep drawdowns.
3. Recommendations
Target Assets: High liquidity broad-based ETFs such as CSI 300 ETF (510300), CSI 500 ETF (510500), ChiNext ETF (159915), STAR 50 ETF (588000).
Timeframe: Daily Chart.
XAU Seasonality + Setup Quality + Month Strength | WarRoomXYZXAU Seasonality Engine is a technical analysis indicator developed for the study of recurring, calendar-based behavior on XAUUSD (Gold).
The tool blends month-of-year seasonality statistics with higher-timeframe context and a setup-quality gate to help users observe when market conditions historically lean strong, weak, or neutral — and how strict trade selection should be during each regime.
Indicator Concept
An indicator for XAUUSD that combines:
1. Seasonality Regime (Month-of-Year Bias)
► Classifies the current month as Strong / Weak / Neutral based on either:
• Preset months (user-defined)
or
• Auto mode (computed from historical monthly performance)
► Strong months suggest a bullish tailwind (not a signal).
► Weak months suggest headwind / caution and require stricter setup quality.
2. Monthly Performance Engine (Under the Hood)
► Uses the symbol’s monthly timeframe data to compute, per calendar month:
• Average monthly return (%)
• Win rate (%) — how often that month closes positive
• Month Strength Score (0–100) — a blended score derived from performance data
► The score is designed to provide a relative strength snapshot of seasonality by month.
3. Month Strength Histogram
► Plots a histogram (0–100) of the current month’s strength score.
• Higher bars = historically stronger month tendency
• Lower bars = historically weaker month tendency
► Optional horizontal reference lines mark “strong” and “weak” zones to make regimes obvious at a glance.
4. Setup Quality Meter (Confluence Filter)
► The indicator calculates a Setup Quality Score (0–100) using market structure and momentum components, such as:
• EMA trend alignment
• Momentum confirmation (EMA fast vs slow)
• Structure break confirmation (BOS)
• Liquidity sweep behavior
• Candle confirmation logic
► This score is intended as a trade-selectivity filter , not a trade executor.
5. Adaptive Rules for Weak Months (Strict Mode)
► When the indicator detects a weak seasonal regime, conditions automatically tighten:
• The A+ threshold increases (adaptive thresholding)
• Optional rule: Weak months require BOS + Sweep + FVG simultaneously before any A+ condition is considered valid
This forces the user into “higher-quality-only” behavior during historically weaker seasonal periods.
🔹1 Visual Components Included
• Seasonality regime label (Strong / Weak / Neutral)
• Optional background shading based on regime
• Month Strength Score histogram (0–100)
• Current month stats: Avg return + win rate
• Setup Quality Meter value (0–100)
• Adaptive A+ threshold display
• Weak-month confluence gate status (BOS / Sweep / FVG pass/fail)
• Optional alerts when strict criteria are met
➣What Means in the XAU Indicator
🔹 Definition (in THIS indicator)
Win Rate = the percentage of historical months that closed positive for the same calendar month.
It is NOT:
trade win rate ❌
signal accuracy ❌
It is a s tatistical seasonality metric .
How It’s Calculated
For each calendar month (January, February, etc.), the indicator:
1.Looks at historical monthly candles (Monthly timeframe).
2. Counts how many times that month:
•Closed higher than it opened (or higher than previous month close).
3. Divides:
Number of positive months
÷
Total number of observed months
× 100
Example: September
If over the last 20 years:
September closed green 14 times
September closed red 6 times
Then:
Win Rate = (14 / 20) × 100 = 70%
That’s what you see as in the dashboard.
What the Win Rate Is Used For
1️⃣ Part of the Month Strength Score
The indicator blends:
•Average Monthly Return (%) → measures magnitude
•Win Rate (%) → measures consistency
Combined into:
Month Strength Score (0–100)
This avoids a common trap:
•A month with 1 huge rally but many losses ≠ reliable
•A month with steady positive closes = higher quality environment
What Win Rate Tells You
High Win Rate (e.g. 65–75%)
•Gold more often closes higher in this month
•Continuation is statistically more likely
•Pullbacks are more likely to resolve in trend direction
Low Win Rate (e.g. 35–45%)
•Gold more often fails to close higher
•More chop, deeper retracements, false breakouts
•Continuation trades statistically struggle
What It Does NOT Tell You
🚫 It does NOT mean:
•“You will win 70% of your trades”
•“Every setup in this month works”
•“Direction is guaranteed”
Seasonality is context, not prediction.
Why This Is Powerful When Combined With Your System
On its own, win rate is just data.
But in your indicator, it’s used to:
•🔒 Raise the A+ threshold in weak months
•🧠 Force BOS + Sweep + FVG confluence
•❌ Block marginal setups automatically
So instead of guessing:
-“Why is gold so choppy this month?”
You know:
-“This month historically underperforms SO I must be stricter.”
➣What Means in the XAU Seasonality Indicator
🔹 Definition (in THIS indicator)
Avg Monthly Return = the average percentage gain or loss of XAUUSD for a specific calendar month, calculated across many years.
It measures magnitude , not frequency.
It is NOT:
•trade profit ❌
•expected return for the next month ❌
•guaranteed performance ❌
It is a historical seasonality tendency.
How It’s Calculated
For each calendar month (January, February, etc.), the indicator:
1.Takes every historical occurrence of that month.
2.Calculates the percentage change of the monthly candle:
(Monthly Close − Previous Monthly Close)
÷ Previous Monthly Close × 100
3. Adds all those percentage changes together.
4. Divides by the total number of observations.
Example: September
Assume over 20 years:
+2.4%, +1.1%, −0.6%, +3.0%, +1.8%, ...
If the sum of all September returns = +28% across 20 years:
Avg Monthly Return = +1.40%
That’s the number displayed in the indicator.
What Avg Monthly Return Is Used For
1️⃣ Measuring Strength of Movement
•Win Rate → “How often does it close green?”
•Avg Monthly Return → “How big are the moves when it works?”
Both are needed.
A month can:
•Win often but move very little
•Move a lot but only occasionally
The indicator combines both to avoid misleading conclusions.
How to Interpret Avg Monthly Return
Positive Avg Return (e.g. +0.8% to +2.0%)
•Gold tends to expand during this month
•Continuation phases are more likely
•Pullbacks are often absorbed
Near-Zero Avg Return (e.g. −0.2% to +0.2%)
•Market is statistically balanced
•Expect chop, rotations, false breaks
•Continuation is less reliable
Negative Avg Return (e.g. −0.5% or worse)
•Downward pressure or heavy mean reversion
•Rallies often fade
•Risk of aggressive stop hunts
What Avg Monthly Return Does NOT Mean
🚫 It does NOT mean:
•“Price will move +1.4% this month”
•“You should buy because the number is positive”
•“This is a guaranteed edge”
It describes historical behavior, not future certainty.
Why Avg Monthly Return Matters More Than People Think
Two months can have the same win rate but behave very differently:
Example:
Month Win Rate Avg Return Reality
Month A 65% +0.2% Small, choppy wins
Month B 55% +1.6% Fewer wins, but strong expansions
Your indicator would rank Month B as stronger, which is correct for continuation-based strategies.
How It Feeds the Month Strength Score
The indicator blends:
•60% Avg Monthly Return (normalized)
•40% Win Rate
This means:
•Big moves matter more than small consistency
•But consistency still matters enough to prevent distortion
Result:
Month Strength Score (0–100)
Which is then used to:
•tighten or relax A+ thresholds
•activate weak-month strict rules
•control trade frequency
🔹2. Intended Use
The indicator is designed as a discretionary analysis tool to support study of:
• seasonal bias and calendar tendencies
• relative strength/weakness across months
• how strict trade selection should be across different regimes
• confluence behavior when seasonal conditions are unfavorable
The tool does not generate forecasts, does not guarantee outcomes, and should not be relied upon as a stand-alone decision mechanism.
🔹3.How to Use XAU Seasonality Engine
Recommended charts: XAUUSD, intraday (5m–15m) with a HTF context (1H–4H).
1. Identify the Seasonal Regime
• Strong month → you can allow more continuation bias (still require structure).
• Neutral month → trade normally, standard criteria.
• Weak month → tighten selection, demand clean A+ conditions only.
2. Read the Month Strength Histogram
• If the score is high (e.g., 70+), the month has historically shown stronger tendency.
• If the score is low (e.g., 40 and below), expect slower conditions, deeper pullbacks, or more chop — and reduce marginal trades.
3. Use the Setup Quality Meter as the Gate
► In normal/strong months:
• A+ threshold is moderate (e.g., 70)
► In weak months:
• A+ threshold is higher (e.g., 80+)
• Optional strict mode: must also pass BOS + Sweep + FVG alignment
4. Example Trade Logic (Framework, Not Signals)
► Bullish framework in a Strong Month:
• Seasonal regime = Strong (tailwind)
• Structure supports bullish continuation (trend alignment)
• Sweep occurs into demand / liquidity grab
• Setup Quality reaches A+ threshold
• Entry: confirmation candle or retrace to key level
• SL: beyond sweep low / invalidation
• TP: nearest liquidity / prior highs / HTF level
► Weak Month rule-set (Strict Mode):
• Seasonal regime = Weak (headwind)
• Only consider trades if:
✅ BOS confirms direction
✅ Sweep occurs and rejects cleanly
✅ FVG exists recently (or is mitigated if you choose that model)
✅ Setup Quality exceeds the elevated adaptive threshold
If any one is missing → no trade
This is not meant to “predict” gold — it’s meant to enforce discipline when seasonality historically underperforms.
🔹4.Limitations and User Responsibility
► The indicator does not represent financial advice or imply performance expectations.
► Seasonality is statistical tendency, not certainty — macro conditions can override it.
► Results vary by broker feed, timeframe, and settings.
► Users should test thoroughly in simulation before applying to live markets.
► All trading decisions, risk management, and execution remain solely the responsibility of the user.
🔹5. Alerts
Optional alerts can notify when:
• a new month begins and the seasonal regime changes
• A+ criteria are met
• weak-month strict conditions pass (BOS + Sweep + FVG)
Alerts are informational only and do not constitute actionable recommendations.
Disclaimer
This script is provided for informational and educational purposes only . It does not provide financial, investment, or trading advice, and it does not guarantee profits or future performance. All decisions made based on this script are solely the responsibility of the user.
This script does not execute trades, manage risk, or replace the need for trader discretion. Market behavior can change quickly, and past behavior detected by the script does not ensure similar future outcomes.
Users should test the script on demo or simulation environments before applying it to live markets and must maintain full responsibility for their own risk management, position sizing, and trade execution.
Trading involves risk, and losses can exceed deposits. By using this script, you acknowledge that you understand and accept all associated risks.
Gann Octave Pro - Angles & Time Cycles 🎯 Gann Octave Pro - Angles & Time Cycles
## Complete Gann Trading System - Price, Angles & Time in One Indicator
A professional-grade Gann analysis tool combining **Octave Price Levels**, **Gann Angles (1x1, 2x1, 1x2)**, and **Advanced Time Cycle Projections**. Perfect for traders seeking precision market timing through geometric confluence.
---
## 🌟 Key Features
### 📐 Octave Price Levels
- **5 Key Levels**: 0%, 25%, 50%, 75%, 100%
- **Color-Coded**: Green (support) → Blue (50% pivot) → Red (resistance) → Black (boundaries)
- **Dynamic Updates**: Auto-adjusts to swing structure
- **Trading Edge**: 50% level is the most powerful reversal zone
### 📏 Gann Angles
- **1x1 Angle** (Black) - Natural 45° trend line
- **2x1 Angle** (Red) - Steep acceleration zone
- **1x2 Angle** (Red) - Gradual support/resistance
- **Customizable Extension**: Fixed bars or % of swing length
### ⏰ Advanced Time Cycles
**Three Calculation Methods:**
1. **Angle-Level Confluence** ⭐ (Recommended)
- Calculates intersections of Gann angles with octave levels
- Most sophisticated timing system
- Based on price-time geometry
2. **Swing Duration** - Uses actual swing bar length
3. **Harmonic (Swing/8)** - Classic Gann harmonic division
**Cycle Visualization:**
- **Full Cycles** (Purple, solid) - Major turning points, labeled "◆ FC1 (176 bars) "
- **Sub-Cycles** (Blue, dotted) - Minor pivots, labeled "S1 "
- **Mid-Cycles** (Orange, dashed) - Half-cycle inflection points
- **Past Display**: Shows 4 complete past cycles for validation
- **Future Projection**: Projects 8 future cycles for anticipation
---
## 🎯 How to Use
### Quick Start
1. Apply to chart (works all timeframes/instruments)
2. Select period: Default 44 bars (adjust based on timeframe)
3. Choose cycle method: "Angle-Level Confluence" for best results
4. Observe past cycles to validate timing accuracy
### Trading Strategies
**Triple Confluence Setup** (Highest Probability)
- Price at octave level (especially 50%)
- Price touches Gann angle (1x1 most reliable)
- Time cycle arrives (full cycle preferred)
- **Entry**: On confluence | **Stop**: Below/above octave level | **Target**: Next level
**Cycle Anticipation**
- Enter 1-2 bars before cycle line if price at octave level
- Exit at next cycle or target octave level
- **Edge**: Anticipate cycles instead of reacting
**Angle Breakout + Cycle**
- Price breaks 1x1 angle + next cycle within 20 bars
- Hold through cycle, exit at 2x1 angle or next major level
---
## ⚙️ Customization
### Period Selection (88-Based)
11 harmonic options: 3, 6, 11, 22, **44**, 88, 176, 352, 704, 1408, 2816 bars
- **Intraday** (15m-1h): Period 3-4
- **Swing Trading** (4h-Daily): Period 4-5
- **Position Trading** (Daily-Weekly): Period 5-6
### Visual Controls
- **Colors**: Independent for all elements
- **Line Widths**: Separate controls (1-5) for levels, angles, cycles
- **Label Size**: Tiny/Small/Normal/Large (unified)
- **Label Position**: Top/Middle/Bottom
- **Show/Hide**: Toggle any component
### Alerts
- 50% octave level breakouts
- Customizable messages
---
## 💡 Pro Tips
1. **Validate First**: Observe 2-3 past cycles before trading
2. **Adjust to Volatility**: High volatility = lower period (22-44), Low = higher (88-176)
3. **Multiple Timeframes**: Apply on different timeframes for confirmation
4. **Respect 50% Level**: Most powerful reversal zone in Gann theory
5. **Focus on Full Cycles**: Highest probability setups (◆ FC markers)
6. **Combine with Price Action**: Indicator shows WHERE/WHEN, price action shows HOW
---
## 🚀 What Makes It Unique
✅ **Intelligent Confluence Cycles** - Unique angle-level intersection calculation
✅ **Historical Validation** - See past cycles to trust future projections
✅ **Professional Design** - Color-coded hierarchy, clean labels, no clutter
✅ **Complete Automation** - Everything updates in real-time
✅ **Three-Dimensional Analysis** - Price + Angles + Time = complete picture
---
## 📊 Best Markets
- Stock indices (S&P 500, NASDAQ, Dow)
- Forex majors (EUR/USD, GBP/USD, USD/JPY)
- Commodities (Gold, Silver, Oil)
- Crypto (BTC, ETH)
- Liquid stocks
✅ Complete Gann system (price + angles + time)
✅ 3 time cycle methods
✅ Auto swing detection
✅ 4 past + 8 future cycle projections
✅ Professional visualization
✅ Extensive customization
✅ Real-time alerts
✅ Works all markets/timeframes
---
## ⚠️ Disclaimer
This indicator is for educational purposes and applies W.D. Gann methodology principles. Not financial advice. Always use proper risk management, position sizing, and stop losses. Practice on paper before live trading. Past performance doesn't guarantee future results.
---
**The market moves in patterns of price and time. This indicator helps you see them.**
Trade with geometry. Trade with time. Trade with confidence.
Daytrading Suite: Neon TPO + FVG v6.1Here is the summary of the code and the trading guide in English.
---
### 1. Code Summary: What does the chart show?
The script combines three dimensions of trading into a single chart:
* **The Context (TPO / Market Profile - Yesterday):**
* **Gold Zone (Center):** Yesterday's **POC (Point of Control)**. This was the "fairest price". It often acts as a magnet.
* **White Dashed Lines:** The **VAH (Value Area High)** and **VAL (Value Area Low)**. Yesterday, 70% of all trading volume happened between these lines. This is the area of "Balance".
* **The Structure (HTF - 1 Hour+):**
* **Red/Green Boxes (Right Edge):** Automatic **Supply & Demand Zones** based on the 1-hour chart (or your setting). They indicate major resistance and support levels.
* **The Timing (Entries):**
* **Neon FVG Boxes (Small):** "Fair Value Gaps". These represent imbalances in price. If price revisits these, it is often your **entry signal**.
* **Lines (VWAP, EMA, PDH/PDL):** Act as dynamic support and trend indicators.
---
### 2. Trading Strategy: How to use it
Do not just trade every colored spot. You must combine **Location (TPO)** with **Signal (FVG)**.
#### Step A: The Open (Where are we?)
In the morning (or at the US Open), check where the price is relative to the **white TPO lines**.
1. **Inside the White Lines (In Balance):**
* The market is undecided. Expect ranging/choppy behavior.
* **Strategy:** Buy at the bottom edge (VAL), Sell at the top edge (VAH). The target is often the Gold Zone (POC) in the middle.
2. **Outside the White Lines (Imbalance):**
* The market is seeking new prices. Danger of a Trend!
* **Strategy:** If price breaks above VAH and tests it from above -> **Long**. If it breaks below VAL -> **Short**.
#### Step B: The Setup (The High Probability Scenario)
Here is the "Rejection" Setup (Long Example):
1. Price drops to the lower white line (**VAL**) or into a green **Demand Zone**.
2. It bounces (shows a wick).
3. In the process, a small **green Neon FVG** is formed.
4. **Entry:** Limit Order at the top of the Neon FVG.
5. **Target:** The Gold Zone (POC) or the upper white line (VAH).
6. **Stop Loss:** Below the recent swing low.
#### Step C: Warning Signals (When NOT to trade)
* **In "No Man's Land":** If the price is sitting right in the middle between Gold (POC) and White (VAH/VAL), do nothing. The risk is 50/50. Wait until price hits an edge.
* **Against the Flow:** If EMA 9 and 21 are pointing steeply downwards, do not buy blindly at the VAL just because the line is there. Wait for confirmation (FVG).
### Pre-Trade Checklist:
1. **Level:** Am I at a white line (VAH/VAL) or the Gold Zone (POC)?
2. **Structure:** Do I have an HTF Demand/Supply Zone backing me up?
3. **Trigger:** Do I see a Neon FVG pointing in my direction?






















