SynergySynergy
This indicator was developed for use in an investigation/tutorial using Pine Script to analyse Gold and US Dollar Index correlation.
The first indicator shall measure the percentage change between the open and close of each bar and compare it to the same percentage change of an alternative asset. Additionally, we shall color the background when the two assets move in the same direction. This should allow us to more easily see when the two assets move together and spot trends in their moment.
The yellow bars show use the percentage change in the price of gold. The blue bars show the percentage change in the price of the US Dollar index. If the bar is above zero, it means that the asset closed up. Conversely, if it is below zero, it means the asset closed down. Finally, the grey bars show bars in which the two assets closed in the same direction.
It can be used in conjunction with a second indicator (to be published soon) that provides statistics generated from this indicator.
The full free post can be found here: backtest-rookies.com
Cerca negli script per "GOLD"
BO Willians EMA'sBo Williams is a North America/Brazilian trader. He created a trading software called PHI CUBE.
This ema ratios are very used in Brazil. They a based in the Golden Number PHI.
"There is a special ratio that can be used to describe the proportions of everything from nature's smallest building blocks, such as atoms, to the most advanced patterns in the universe, such as unimaginably large celestial bodies. Nature relies on this innate proportion to maintain balance, but the financial markets also seem to conform to this "golden ratio." Here, we take a look at some technical analysis tools that have been developed to take advantage of it.
The Mathematics
Mathematicians, scientists and naturalists have known this ratio for centuries. It's derived from something known as the Fibonacci sequence, named after its Italian founder, Leonardo Fibonacci (whose birth is assumed to be around 1175 A.D. and death around 1250 A.D.). Each term in this sequence is simply the sum of the two preceding terms (1, 1, 2, 3, 5, 8, 13, etc.).
But this sequence is not all that important; rather, it is the quotient of the adjacent terms that possesses an amazing proportion, roughly 1.618, or its inverse 0.618. This proportion is known by many names: the golden ratio, the golden mean, PHI and the divine proportion, among others. So, why is this number so important? Well, almost everything has dimensional properties that adhere to the ratio of 1.618, so it seems to have a fundamental function for the building blocks of nature. "
More here www.goldennumber.net
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
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
Confluence Execution Engine (2of3)The Confluence Execution Engine is a high-performance logic gate designed to filter out market noise and identify high-probability "Golden" entries. It moves beyond simple indicator signals by acting as a mathematical validator for price action. This engine is designed for the Systematic Trader. It removes the "guesswork" of whether a move is real or an exhaustion pump by requiring a mathematical confluence of volume, multi-timeframe momentum, and volatility-adjusted space.
Why This Tool is Unique:
Multi-Dimensional Scoring, Momentum-Adjusted Stretch, Institutional Fingerprint (RVOL + Spike)
Unlike a standard MACD or RSI, this engine uses a weighted scoring matrix. It pulls a "Bundle" of data (WaveTrend, RSI, ROC) from four different timeframes simultaneously. It doesn't give a signal unless the mathematical weight of all four timeframes crosses your "Hurdle" (Base Threshold).
Standard "overbought" indicators are often wrong during strong trends. This engine uses Dynamic Z-Score logic. The Logic: If the price moves away from the mean, it checks the Rate of Change (ROC). The Result: If momentum is massive, the "Stretch" limit expands. It understands that a "stretched" price is actually a sign of strength in a breakout, not a reason to exit. It only warns of a TRAP RISK when the price is far from the mean but momentum is starting to stall.
The engine is gated by Relative Volume. If the market is "sleepy," the engine stays in "PATIENCE" mode. It specifically hunts for Volume Spikes (default 2.5x average). A signal is only upgraded to "HIGH CONVICTION" when an institutional volume spike occurs, confirming that "Big Money" is participating.
How to Operate the Engine
Define Your Hurdle: Set your Confluence Hurdle. A higher number (e.g., 14+) requires more agreement across timeframes, leading to fewer but higher-quality trades.
Monitor the Z/Dynamic Ratio: In the HUD, watch the Z: X.XX / Y.YY. When X approaches Y, you are reaching the edge of the momentum-adjusted move.
The Entry Trigger: Wait for a "LOOK FOR..." advice to turn into a "HIGH CONVICTION" signal (marked by a triangle shape). This confirms that the MTF scoring, Volume, and HTF Trend are all aligned.
Execute the Lines: Use the red and green "Ghost Lines" to set your orders. These are ATR-based, meaning they widen during high volatility to give your trade room to breathe.
For holistic trading system, pair with Volatility Shield Pro and Session Levels
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.






















