BuyLow SellHigh Bands | ProjectSyndicate________________________________________
๐ BuyLow SellHigh (BLSH) Bands
Comprehensive Trading Guide โ by ProjectSyndicate
________________________________________
๐ฐ 1. Introduction
The BuyLow SellHigh (BLSH) Bands indicator is a powerful technical analysis tool designed for the TradingView platform. Works with any symbol. Gold/FX/indices/oil/crypto/stocks.
It provides traders with a clear, visual representation of:
โข ๐ Overbought conditions
โข ๐ Oversold conditions
This makes it easier to identify high-probability entry and exit points.
The indicator is built on:
โข Dynamic price channels
โข Fibonacci-based zones
โข Color-coded market structure
๐ก While the BLSH Bands can be used on Forex, Crypto, and Futures, this guide focuses on Gold (XAUUSD) using:
โข M5
โข M15
โข M30 timeframes
________________________________________
๐ง 2. Core Concepts
The BLSH Bands structure is created using two key components:
________________________________________
๐ Dynamic Price Bands
โข Upper and lower bands are calculated using the highest high and lowest low
โข Based on a user-defined lookback period (fiboPeriod)
โข Reflects recent volatility and price range
This creates a self-adjusting channel that adapts to market conditions.
________________________________________
๐งฎ Fibonacci Zones
The space between the bands is divided into six Fibonacci-based zones:
โข 0.786
โข 0.618
โข 0.500
โข 0.382
โข 0.214
โ ๏ธ These are not traditional retracements โ they are used to grade price extremity within the channel.
________________________________________
๐จ Color-Coded Zones Overview
Zone (Fib Level) Color Market Condition Interpretation
1.000 โ 0.786 ๐ด Red Extreme Overbought High reversal / pullback probability
0.786 โ 0.618 ๐ Orange Overbought Selling pressure building
0.618 โ 0.500 ๐ก Yellow Mildly Overbought Bullish momentum weakening
0.500 โ 0.382 ๐ข Aqua Mildly Oversold Bearish momentum weakening
0.382 โ 0.214 ๐ต Deep Sky Blue Oversold Strong buying interest
0.214 โ 0.000 ๐ท Blue Extreme Oversold High bounce / reversal probability
๐ค Solid black separator lines ensure clean visual separation between zones for precise price location.
________________________________________
๐ช 3. Trading Strategies for XAUUSD (Gold)
Goldโs volatility and respect for technical levels make it ideal for BLSH Bands strategies.
________________________________________
โก M5 Timeframe โ Scalping Strategy
Designed for fast mean-reversion trades from extreme zones.
๐ข BUY Setup
โข Price enters Extreme Oversold (Blue) zone
โข Bullish confirmation candle appears:
o Hammer
o Bullish engulfing
โข Enter BUY
๐ด SELL Setup
โข Price enters Extreme Overbought (Red) zone
โข Bearish confirmation candle appears:
o Shooting star
o Bearish engulfing
โข Enter SELL
๐ฏ Take Profit:
โข Median band (between Yellow & Aqua)
๐ Stop Loss:
โข Just outside the outer band
________________________________________
๐ M15 Timeframe โ Day Trading Strategy
Balanced timeframe for higher-probability reversals.
๐ข BUY Setup
โข Price enters Oversold (Blue / Deep Sky Blue)
โข Strong bullish reversal candle closes back inside bands
โข Enter BUY after close
๐ด SELL Setup
โข Price enters Overbought (Red / Orange)
โข Bearish reversal candle closes back inside bands
โข Enter SELL after close
๐ฏ Take Profit (Multi-Target):
1. Median band
2. Opposite extreme band
๐ Stop Loss:
โข Beyond high/low of confirmation candle
________________________________________
๐ M30 Timeframe โ Swing Trading Strategy
Used for identifying major swing points.
๐ Trend Filter
โข Use 100 or 200 EMA
โข Trade only in trend direction
๐ข Uptrend
โข Buy pullbacks into Oversold zones
๐ด Downtrend
โข Sell rallies into Overbought zones
๐ Confirmation:
โข Band rejection
โข RSI or MACD divergence
๐ฏ Take Profit:
โข Previous structure levels
โข Opposite band extreme
๐ Stop Loss:
โข Below / above recent swing high or low
________________________________________
๐จ 4. Alerts System
Alerts are disabled by default to keep charts clean.
โ
How to Enable
โข Open indicator settings
โข Check โEnable Alertsโ
________________________________________
๐ Available Alerts
๐ด Overbought Alert
โข Trigger: Price crosses above 0.786
โข Message:
๐ด SELL SIGNAL: Price entered Overbought Zone โ Consider selling or taking profits
๐ข Oversold Alert
โข Trigger: Price crosses below 0.214
โข Message:
๐ข BUY SIGNAL: Price entered Oversold Zone โ Consider buying or entering long
________________________________________
โฑ Alert Spacing Logic
โข Default: 20/50 bars
โข Prevents repeated alerts in choppy markets
โข Filters for higher-quality signals
________________________________________
โ๏ธ 5. Customization Settings
Adjust the indicator in the Settings panel:
๐ง Core Inputs
โข fiboPeriod โ Band sensitivity
โข extremes โ Price source (High/Low or Close)
๐ Alert Controls
โข Enable / disable alerts
โข Separate control for overbought & oversold
โข Alert spacing (bars)
________________________________________
โญ How You Can Support ProjectSyndicate (3 Steps)
1. โ
Click โAdd to Favoritesโ to save this script to your TradingView Favorites
2. ๐ Check out our other scripts to complete your SMC toolkit
3. ๐ค Follow ProjectSyndicate for the latest updates, upgrades, and new releases
________________________________________
โ ๏ธ 6. Disclaimer
Trading involves significant risk and may not be suitable for all traders.
This indicator is a decision-support tool, not a standalone trading system.
Always apply:
โข Proper risk management
โข Additional confirmations
โข Sound trading discipline
๐ Past performance does not guarantee future results.
Gold
XAUUSD Lot Size Calculator1. What This Indicator Does
This tool is a Visual Risk Management System. Instead of using a calculator on your phone or switching tabs, it allows you to calculate the exact lot size for your trade directly on the TradingView chart by dragging lines.
It automates the math for:
Lot Size: How big your position should be to risk exactly X% of your account.
Take Profit: Where your target should be based on your Risk-to-Reward ratio.
Safety Checks: It warns you if your stop loss is too tight for the minimum lot size (0.01).
2. Visual Features
๐ด The Red Line (Stop Loss): This is your interactive line. You can grab it with your mouse and drag it to your desired invalidation point (e.g., below a support wick).
๐ข The Green Line (Take Profit): This line moves automatically. You cannot drag it. It calculates where your Take Profit must be to satisfy your Risk:Reward ratio (Default 1:1) based on where you placed the Red line.
โซ The Info Table: A high-contrast black box in the corner that displays your calculated Lot Size, Risk amount, and Trade direction (Long/Short).
3. How to Use It (Step-by-Step)
Step 1: Initial Setup
When you first add the indicator to the chart, you need to tell it about your account:
Double-click the Black Table (or the Red Line) to open Settings.
Inputs Tab:
Account Balance: Enter your current trading balance (e.g., 10,000).
Risk %: Enter how much you want to lose per trade (e.g., 1.0%).
Contract Size: Keep this at 100 for Gold (XAUUSD) or standard Forex pairs.
Risk : Reward Ratio: Set your target (e.g., 1.0 for 1:1, or 2.0 for 1:2).
Step 2: Planning a Trade
Look at the chart and identify where you want to enter (current price) and where you want your Stop Loss.
Find the Red Line on your chart. (If you don't see it, go to Settings and change "Stop Loss Level" to a price near the current candle).
Click and Drag the Red Line to your specific Stop Loss price.
Step 3: Reading the Signals
Direction: If you drag the Red Line below the price, the table shows LONG. If you drag it above, it shows SHORT.
Lot Size: Read the big green number in the table (e.g., 0.55). This is the exact lot size you should enter in your broker.
TP Target: Look at the Green Line on the chart. That is your exit price.
Step 4: The "Orange Warning"
If you place your Stop Loss very close to the entry, or if your account is small, the math might suggest a lot size smaller than is possible (e.g., 0.004).
The table text will turn ORANGE.
The Lot Size will stick to 0.01 (the minimum).
The "Risk ($)" row will show you the actual risk. (Example: Instead of risking your desired $100, you might be forced to risk $105 because you can't trade smaller than 0.01 lots).
XAUUSD Mean Reversion Strategy Gold (ATR and RSI)The XAUUSD Mean Reversion Strategy โ Gold v6 is a non-repainting TradingView strategy designed specifically for Gold (XAUUSD). It capitalizes on price overextensions and statistically probable pullbacks toward the mean, a behavior Gold frequently exhibits during active market sessions.
๐ Strategy Logic
Uses EMA 50 as the mean price reference
Detects overextended conditions with RSI (14)
Trades are taken only when price deviates significantly from the mean
Designed for both long and short positions
๐ Entry Conditions
Long Trades
Price below EMA 50
RSI below oversold level
Short Trades
Price above EMA 50
RSI above overbought level
๐ Exit & Risk Management
ATR-based Stop Loss adapts to Goldโs volatility
Take Profit Options
Mean reversion back to EMA
Fixed ATR-based risk-to-reward
One trade at a time to control exposure
โ๏ธ Features
Fully backtestable
Non-repainting
Optimized for XAUUSD volatility
Adjustable inputs for optimization
Works best on 5mโ30m timeframes
๐ Recommended Use
XAUUSD (Gold)
London & New York sessions
Intraday mean-reversion traders
โ ๏ธ This strategy is for educational and research purposes only. Always perform your own testing and risk management before using it in live markets.
XAUUSD Bullish Continuation StrategyThis strategy is designed for trading Gold (XAUUSD) on the M15 timeframe using a bullish continuation and breakout structure.
It identifies strong uptrend conditions using EMA trend confirmation and enters buy positions on either a breakout above resistance or a retest of the breakout zone. The strategy follows a disciplined risk-management model with a fixed stop loss and multiple take-profit targets for partial profit scaling.
Core Features:
โข Trend confirmation using EMA 20 & EMA 50
โข Breakout and retest buy entries
โข Strong momentum continuation logic
โข Fixed stop-loss protection
โข Multi take-profit scaling (TP1, TP2, TP3)
โข Backtest-ready TradingView strategy
Best Market Conditions:
Works best during strong bullish sessions (London & New York) when gold shows high volatility and directional momentum.
Recommended Timeframe:
M15 (can be optimized for M5โM30)
Gold Profit Target SystemGOLD PROFIT TARGET SYSTEM
Track Real Profits, Exit With Confidence
Best on Daily or Weekly - copy and mod as you see fit. Have fun!
WHAT THIS INDICATOR DOES:
This indicator tracks your gold position from entry and shows color-coded profit targets as the price rises. Instead of guessing when to exit, you see exact profit levels in real-time: 1%, 2%, 3%, 4%, 5%, 10%, 15%, 20%, 25%, and 25%+.
Simple concept: BUY on the signal, SELL at YOUR chosen profit level.
HOW IT WORKS - 3 SIMPLE STEPS:
STEP 1: Wait for BUY Signal
โข Green triangle (โฒ) appears below the composite line
โข Triggered when inverse assets (DXY, rates, etc.) show strong correlation and are falling
โข Entry price is automatically recorded
โข Position tracking begins
STEP 2: Watch Profit Targets Appear
โข As gold rises, color-coded symbols appear above the composite line
โข Each symbol represents a profit milestone
โข The info table shows your current profit
โข You decide when to exit based on YOUR target
STEP 3: Exit at Your Chosen Level
โข Conservative? Exit at 5-10%
โข Moderate? Exit at 10-15%
โข Aggressive? Hold for 20%+
โข The indicator just shows the levels - YOU make the call
THE COMPOSITE LINE - WHAT IT MEANS:
The main line is a weighted composite of inverse-correlated assets:
โข DXY (US Dollar Index)
โข Real Interest Rates (10Y TIPS)
โข US 10-Year Treasury Yield
โข US 2-Year Treasury Yield
โข Bitcoin (optional)
โข Copper (optional)
Line Position:
โข Below -30 (Bright Green): Very strong inverse correlation - excellent BUY conditions
โข Below 0 (Green): Inverse correlation present - moderate BUY conditions
โข Above 0 (Red): Inverse assets rising - neutral to bearish
โข Above 30 (Bright Red): Strong inverse rally - bearish for gold
What Causes BUY Signals:
When the composite line is negative (inverse assets falling) AND shows strong correlation (>0.3), this suggests gold is likely to rise. The indicator records your entry and begins tracking profits.
COLOR-CODED PROFIT TARGETS:
EARLY PROFITS (Green Circles):
โข 1% - Very Light Green (#c8e6c9) - First confirmation
โข 2% - Light Green (#a5d6a7) - Building profit
โข 3% - Green (#81c784) - Good profit
โข 4% - Medium Green (#66bb6a) - Strong profit
โข 5% - Dark Green (#4caf50) - Solid profit!
EXCELLENT PROFIT (Yellow Diamond):
โข 10% - Yellow (#ffd54f) - Double digits, excellent trade!
OUTSTANDING PROFIT (Orange Diamonds):
โข 15% - Orange (#ffb74d) - Exceptional profit, consider partial exit
EXCEPTIONAL PROFIT (Red Diamonds):
โข 20% - Light Red (#ff8a65) - Rare territory, strong exit consideration
โข 25% - Red (#f44336) - Extraordinary profit, very rare!
PEAK PROFIT (Purple Star):
โข 25%+ - Purple (#9c27b0) - Once in a blue moon! The home run trade!
STOP LOSS (Red X):
โข Default -5% - Protection against losses
โข Position auto-resets if stop is hit
THE PROFIT BAR (Histogram):
Below the composite line, you'll see a colored histogram when in position:
Bar Color = Your Current Profit Tier
โข Light green bar = 1-2% profit
โข Green bar = 3-5% profit
โข Yellow bar = 10% profit
โข Orange bar = 15% profit
โข Red bar = 20-25% profit
โข Purple bar = 25%+ profit
โข Red negative bar = Currently at a loss
Bar Height = Current Profit %
The taller the bar, the larger your profit. Negative bars extend downward when you're at a loss.
THE INFORMATION TABLE:
The table (top-right by default) shows everything at a glance:
Position: โ IN (green) or โ OUT (gray)
Shows whether you're currently holding a position
Entry Price: Your recorded buy price
Example: 2,100.50
Current Price: Gold's current price
Example: 2,142.75
Current P/L: YOUR PROFIT %
This is the most important metric - shows exactly how much you're up (or down)
Color matches your current profit tier
Example: +2.01% in light green
Profit Tier: Current milestone reached
Shows which profit level you've hit: "1%", "2%", "5%", "10%", etc.
Next Target: The next profit level to watch
Tells you what milestone is coming up next
Bars Held: How long you've been in the trade
Helps track holding time
Composite: Current correlation strength
Shows the underlying composite correlation value
REFERENCE LINES:
Zero Line (Gray):
The center line. Above = bearish for gold, Below = bullish for gold
Strong Bull Line (Green dashed at -30):
When composite crosses below -30, very strong BUY conditions
Strong Bear Line (Red dashed at +30):
When composite crosses above +30, strong bearish conditions
BACKGROUND SHADING:
Very Light Green Background:
You're in profit (position open and above entry price)
Very Light Red Background:
You're at a loss (position open and below entry price)
No Background:
No position currently open
SYMBOLS ON CHART:
โฒ Green Triangle Below Line: BUY SIGNAL
Enter long position here. Entry price recorded.
โ Small Green Circles Above Line: 1-5% Profits
Early profit targets. Light green to dark green progression.
โ Diamonds Above Line: 10-25% Profits
Major profit milestones. Yellow โ Orange โ Red progression.
โ
Purple Star Above Line: 25%+ Profit
The holy grail! Peak profit achieved.
โ Red X Below Line: STOP LOSS HIT
Trade went against you. Position resets (if auto-reset enabled).
PROFIT-TAKING STRATEGIES:
Strategy 1: Fixed Target (Simple)
Pick one target (e.g., 10%) and always exit there.
Best for: Beginners, disciplined traders
Strategy 2: Scaled Exit (Advanced)
Exit in portions:
โข 5% profit โ Sell 25%
โข 10% profit โ Sell 25% (50% total out)
โข 15% profit โ Sell 25% (75% total out)
โข 20%+ profit โ Let final 25% ride
Best for: Risk management, maximizing upside
Strategy 3: Trailing Stop
โข Hit 10%? Set stop at 5%
โข Hit 15%? Set stop at 10%
โข Lock in profits while letting winners run
Best for: Trend followers, bull markets
Strategy 4: Adaptive
โข Strong uptrend โ wait for 15-20%
โข Choppy market โ exit at 5-10%
โข Weakening trend โ exit at any profit
Best for: Experienced traders
SETTINGS YOU CAN CUSTOMIZE:
Profit Target Levels:
Change any profit % to match your strategy
โข Conservative: Lower targets (0.5%, 1%, 2%, 3%, 5%)
โข Aggressive: Higher targets (2%, 5%, 10%, 20%, 30%)
Assets to Include:
โข Enable/disable Bitcoin
โข Enable/disable Copper
โข Toggle which inverse assets to track
Display Options:
โข Show all targets or just current tier
โข Show/hide profit bar
โข Show/hide composite line
โข Move table position
Stop Loss:
โข Set your risk tolerance (default 5%)
โข Enable/disable auto-reset on stop loss
Correlation Periods:
โข Adjust for your timeframe
โข Hourly: 14/30/60
โข Daily: 20/50/100
โข Weekly: 10/20/50
ALERTS AVAILABLE:
Set alerts for any profit milestone:
Critical Alerts:
โข "BUY Signal" - Entry notification
โข "5% Profit Target" - First major milestone
โข "10% Profit Target" - Decision point
โข "Stop Loss Hit" - Risk protection
Optional Alerts:
โข 1%, 2%, 3%, 4% - Early confirmations
โข 15%, 20%, 25% - Major milestones
โข Individual levels for your strategy
BEST TIMEFRAMES:
Daily Chart (Recommended):
Best for swing traders holding 3-10 days
Use default settings (20/50/100 periods)
Target 5-15% profits
4-Hour Chart:
Good for active swing traders
Adjust periods to 14/30/60
Target 3-10% profits
Hourly Chart:
For day traders and scalpers
Use shorter periods (14/30/60)
Target 1-5% profits
Adjust profit levels lower (0.5%, 1%, 2%, 3%)
WHY THIS INDICATOR IS DIFFERENT:
Most indicators tell you WHEN to enter.
This one tells you WHEN TO EXIT with profit.
Most indicators use vague signals.
This one shows EXACT profit percentages.
Most indicators leave exit decisions to you.
This one gives CLEAR, COLOR-CODED milestones.
Most indicators don't track your P/L.
This one shows your profit in text you can't miss.
QUICK START GUIDE:
1. Add indicator to gold chart (XAUUSD, GLD, GC1!)
2. Wait for green triangle (โฒ) BUY signal
3. Watch your profit grow in the table
4. Exit when you hit YOUR target (5%, 10%, 15%, etc.)
5. Repeat
That's it. Simple. Effective. Profitable.
IMPORTANT NOTES:
โข This is for LONG positions only - not for shorting gold
โข Position tracking begins only after a BUY signal
โข The indicator shows levels - YOU decide when to exit
โข Always use stop losses (default 5% is reasonable)
โข Past performance doesn't guarantee future results
โข Not financial advice - use for educational purposes
PRO TIPS:
Tip 1: Don't get greedy - 10-15% is an excellent profit for most trades
Tip 2: Purple stars (25%+) are RARE - don't wait for them on every trade
Tip 3: The profit bar color change is your visual cue - greenโyellowโorangeโred
Tip 4: Combine with resistance levels - "10% profit + resistance = exit"
Tip 5: Set alerts for YOUR target level so you never miss it
Tip 6: The giant P/L number in the table removes emotion from decisions
EXAMPLE TRADE:
Day 1: โฒ BUY signal at $2,100
Table shows: Position โ IN | Entry: 2,100
Day 2: Current P/L: +1.8%
First green circle appears (1% target hit)
Table tier: "1%"
Day 4: Current P/L: +5.2%
Dark green circle appears (5% target hit)
Profit bar is dark green
Decision point: Exit 50% here?
Day 7: Current P/L: +10.5%
Yellow diamond appears (10% target hit!)
Table shows: +10.5% in yellow text
Decision point: Exit remaining 50%?
Result: Average exit ~7.5% over 7 days. Excellent swing trade!
WORKS ON:
โข Gold Spot (XAUUSD)
โข Gold Futures (GC1!)
โข Gold ETFs (GLD, IAU)
โข Any gold instrument
Inverse Assets Tracked:
โข DXY (US Dollar Index)
โข Real Interest Rates (TIPS)
โข US Treasury Yields (2Y, 10Y)
โข Bitcoin (optional)
โข Copper (optional)
THE BOTTOM LINE:
Stop guessing when to take profits.
Start SEEING your profit levels in real-time.
The indicator shows you the targets.
YOU choose when to cash out.
That's YOUR edge.
Developed for traders who want clear, actionable profit targets instead of vague signals.
Gold Inverse Correlation TrackerGold Inverse Correlation Tracker - Professional Multi-Asset Analysis
What This Indicator Does:
This indicator monitors the real-time correlation between Gold and five key financial assets that historically move inversely (opposite) to gold prices. It displays these relationships across three different timeframes simultaneously, giving you both short-term trading signals and long-term trend confirmation.
The indicator tracks:
US Dollar Index (DXY) - Historical correlation: -0.63
Real Interest Rates (TIPS) - Historical correlation: -0.82 (strongest inverse relationship)
10-Year Treasury Yield - Nominal interest rate proxy
S&P 500 (SPX) - Equity market sentiment (variable correlation)
VIX - Volatility index (optional, flight-to-safety indicator)
Why Inverse Correlations Matter for Gold Trading:
Understanding inverse correlations is critical for gold traders because:
Predictive Power - When assets move opposite to gold consistently, you can use their strength/weakness to predict gold's next move
Hedging Opportunities - Strong inverse correlations let you hedge gold positions by trading the inverse asset
Regime Detection - When correlations break down, it signals a market regime change or increased uncertainty
Confirmation Signals - Multiple strong inverse correlations validate your gold trade thesis
Risk Management - Knowing what moves against gold helps you understand your portfolio's true exposure
The Science Behind the Numbers:
Real interest rates have the strongest inverse correlation to gold (approximately -0.82) because:
Gold pays no yield or dividend
When real rates rise, the opportunity cost of holding gold increases
Investors shift to interest-bearing assets when they offer positive real returns
When real rates go negative, gold becomes relatively more attractive
The US Dollar shows strong inverse correlation (approximately -0.63) because:
Gold is priced in US dollars globally
A stronger dollar makes gold more expensive for foreign buyers, reducing demand
A weaker dollar makes gold cheaper internationally, increasing demand
Both compete as reserve assets and stores of value
Why the Indicator is Weighted This Way:
Three Timeframe Approach:
Short-term (20 periods) - Captures recent correlation shifts for day trading and swing trading
Medium-term (50 periods) - The primary signal - balances noise reduction with responsiveness
Long-term (100 periods) - Confirms structural correlation trends for position trading
Correlation Thresholds:
Strong Inverse (<-0.7) - Statistically significant inverse relationship; highest confidence for inverse trades
Moderate Inverse (<-0.3) - Meaningful inverse relationship; still useful but less reliable
Weak Inverse (<0.0) - Slight inverse tendency; correlation may be breaking down
Positive (>0.0) - Assets moving together; inverse relationship has failed
How to Use This Indicator:
For Inverse Trading Strategies:
When DXY shows RED correlation (<-0.7), consider shorting DXY when gold is strong
When Real Rates show RED correlation, rising rates = falling gold (and vice versa)
When multiple assets show strong inverse correlation, confidence is highest
For Regime Detection:
All RED = Classic gold market behavior; correlations intact
Mixed colors = Transitional market; be cautious
All GREEN/GRAY = Correlation breakdown; paradigm shift occurring
For Hedging:
Use assets with strong inverse correlation to hedge gold positions
When correlation weakens, reduce hedge size
When correlation strengthens, increase hedge effectiveness
Alert System:
The indicator includes built-in alerts for:
Individual assets crossing strong inverse threshold
Multiple assets simultaneously showing strong inverse correlation (highest probability setup)
Correlation breakdowns that may signal regime changes
Color Guide:
RED - Strong inverse correlation (<-0.7) - Best inverse trading opportunity
ORANGE - Moderate inverse (<-0.3) - Useful but less reliable
YELLOW - Weak inverse (<0.0) - Correlation weakening
GRAY - Weak positive (0.0 to 0.7) - Assets moving together
GREEN - Strong positive (>0.7) - Inverse relationship broken
Recommended Settings:
Day Trading (1H-4H charts):
Short: 14 periods
Medium: 30 periods
Long: 60 periods
Swing Trading (Daily charts):
Short: 20 periods (default)
Medium: 50 periods (default)
Long: 100 periods (default)
Position Trading (Weekly charts):
Short: 10 periods
Medium: 20 periods
Long: 50 periods
Pro Tips:
Watch for divergences - when gold moves but correlations don't confirm
Correlation breakdowns often precede major trend reversals
The Medium-term (50p) correlation is plotted on the chart as your primary reference
Use the Status column for quick assessment of each asset's relationship
Set alerts for "Multiple Strong Inverse" to catch highest-probability setups
Important Notes:
This indicator is designed for Gold charts only (XAUUSD, GLD, GC1!, etc.)
Correlations are not static - they change over time based on market conditions
A correlation of -0.82 means 82% of gold's price movements can be explained by real interest rates
Always combine with other technical analysis and fundamental factors
Past correlations do not guarantee future relationships
Based on Research:
The correlation coefficients used in this indicator are based on peer-reviewed research:
Erb & Harvey (1997-2012): Real rates to gold correlation of -0.82
World Gold Council (2024): US Dollar to gold correlation of -0.63
Multiple academic studies confirming gold's inverse relationship with opportunity cost assets
Use this indicator to trade smarter, hedge better, and understand the macro forces driving gold prices.
Gold/Silver Ratio with Supply ZonesGold/Silver Ratio with Supply Zones
Overview
Professional-grade indicator that tracks the Gold/Silver Ratio in real-time
Identifies potential market imbalances and rotation opportunities between precious metals
Features customizable threshold bands, moving averages, and automated trading signals
Built on Pine Script v6 for maximum stability and performance
Key Features
Real-Time Ratio Calculation : Automatically calculates Gold/Silver ratio using OANDA:XAUUSD and OANDA:XAGUSD price feeds
Dynamic Threshold Zones : Visual bands showing when silver or gold may be undervalued relative to each other
Moving Average Overlay : 20-period SMA to identify trend direction and momentum
Automated Buy Signals : Triangle markers appear when ratio reaches extreme levels
Live Information Table : Displays current ratio, moving average, individual metal prices, and market interpretation
Custom Alerts : Set notifications when ratio crosses your defined thresholds
Color-Coded Zones : Green zones indicate gold undervaluation, red zones indicate silver undervaluation
Trading Applications
Mean Reversion Strategy : Enter silver positions when ratio exceeds 90, enter gold when ratio falls below 70
Rotation Trading : Switch between metals based on relative value signals
Portfolio Rebalancing : Identify optimal times to adjust precious metals allocation
Divergence Analysis : Compare ratio behavior against individual metal price action
Default Settings
High Threshold : 90.0 (Silver undervalued zone)
Low Threshold : 70.0 (Gold undervalued zone)
Moving Average : 20-period SMA
Historical Reference : 80:1 ratio marked as long-term mean
How to Interpret
Ratio Above 90 : Silver is undervalued relative to gold - consider increasing silver exposure
Ratio Below 70 : Gold is undervalued relative to silver - consider increasing gold exposure
Ratio Between 70-90 : Neutral range - no clear relative value advantage
Rising Ratio : Gold outperforming silver
Falling Ratio : Silver outperforming gold
Signal Logic
Green Triangle (Bottom) : Ratio crosses above high threshold โ Buy Silver Signal
Red Triangle (Top) : Ratio crosses below low threshold โ Buy Gold Signal
MA Crossovers : Use 20-period MA for trend confirmation and entry timing
Visual Elements
Blue Line : Current gold/silver ratio value
Orange Line : 20-period moving average smoothing
Red Shaded Zone : Area where gold is relatively expensive
Green Shaded Zone : Area where gold is relatively cheap
Gray Dotted Line : Historical mean at 80:1
Info Table : Real-time statistics and market interpretation
Best Practices
Use on daily timeframe or higher for most reliable signals
Combine with volume analysis and individual metal technicals
Monitor Federal Reserve policy and USD strength as macro context
Consider industrial demand factors for silver (solar, EV, electronics)
Watch safe-haven flows during economic uncertainty for gold
Customization Options
Adjust threshold levels based on your preferred lookback period
Modify moving average length to suit your trading timeframe
Toggle bands on/off for cleaner chart visualization
Change data source tickers if using different brokers (FXCM, FOREXCOM, etc.)
Alert Conditions
Silver Undervalued Alert : Triggers when ratio crosses above your high threshold
Gold Undervalued Alert : Triggers when ratio crosses below your low threshold
Receive notifications via TradingView mobile app , email , or webhook
Who This Is For
Precious metals traders seeking relative value opportunities
Portfolio managers balancing gold and silver allocations
Macro traders using metals as inflation hedges
Swing traders capitalizing on mean reversion patterns
Long-term investors optimizing entry points
Important Notes
This indicator tracks price ratios , not physical supply data
COMEX warehouse stocks are not directly available in TradingView
Ratio analysis assumes historical mean reversion tendencies
Always combine with fundamental analysis and risk management
Past performance does not guarantee future results
Data Sources
Gold Price : OANDA:XAUUSD (spot gold in US dollars)
Silver Price : OANDA:XAGUSD (spot silver in US dollars)
Update Frequency : Real-time during market hours
Historical Data : Full TradingView historical coverage available
SuperTrend Filtered with Dash| Gold | ProjectSyndicate๐ ProjectSyndicate Filtered Supertrend M30 GOLD
โ
User Guide Optimized Settings for XAUUSD on M30
Indicator: Supertrend Filtered Gold
Version: 1.0
Author: ProjectSyndicate
Pine Script: v6
________________________________________
1) ๐ Introduction
Welcome to ProjectSyndicate Filtered Supertrend, an upgraded, professional-grade Supertrend system built in Pine Script v6.
This version is designed specifically to help M30 GOLD (XAUUSD) traders reduce the most common Supertrend problem: false flips in chop / low volatility.
By adding 5 powerful filters (all optional + fully adjustable), this indicator aims to keep signals clean, selective, and trend-aligned โ which is ideal for GOLDโs frequent fakeouts and liquidity sweeps. ๐ง โจ
________________________________________
2) โญ Key Features What Makes It โFilteredโ
โ
Pine Script v6 for speed and stability
โ
5 Advanced Filters to reduce noise and false signals
โ
Full Customization (each filter can be turned ON/OFF)
โ
On-Chart Filter Dashboard to see whatโs blocking signals in real time ๐
โ
Built-In Alerts (Buy / Sell / Direction Change) ๐
โ
Conservative Defaults (high-quality signals out of the box)
________________________________________
________________________________________
3) ๐ Sensitivity Control Panel
This is where the magic happens. All enabled filters use AND logic meaning:
โ
A signal prints ONLY if every enabled filter passes.
If even one fails โ signal is blocked ๐ซ
Thatโs why this system feels โsmartโ and selective (especially on GOLD M30).
________________________________________
4.1) ๐ Trend Filter
Purpose: Blocks signals when price is drifting sideways (flat momentum).
How it works:
It checks the slope of a short-term EMA. If the EMA slope is too flat, the market is likely ranging โ signals get blocked.
Recommended (M30 GOLD Optimized):
โข โ
Enable Trend Filter: ON
โข โฑ Trend Filter Period: 10
โข ๐ Trend Strength Threshold (%): 0.05%
Tip for GOLD:
If youโre not getting signals during London/NY trend days, slightly lower the threshold (example 0.04%) to catch more moves. โก
________________________________________
4.2) โ
Signal Confirmation
Purpose: Stops โone-candle flipsโ and failed breakouts (very common on XAUUSD).
How it works:
It waits for the new trend direction to remain valid for X bars before confirming.
Recommended (M30 GOLD Optimized):
โขโ
Enable Signal Confirmation: ON
โข๐งฑ Confirmation Bars: 5
Behavior example:
โข Confirmation = 5 โ the signal prints on the 5th candle after trend changes
This reduces fakeouts, but signals appear later (more reliable, less early). ๐ฏ
________________________________________
4.3) ๐ช Volatility Filter
Purpose: Avoids signals during โdeadโ volatility phases (choppy micro-ranges).
How it works:
Measures percentage price movement over a period.
If movement is too small โ no signals.
Recommended (M30 GOLD Optimized):
โขโ
Enable Volatility Filter: ON
โขโฑ Volatility Period: 20
โข๐ Minimum Volatility Threshold: 0.25%
Tip:
If you trade only during active sessions (London/NY), you can raise this slightly to filter even harder (ex: 0.30%). ๐ฅ
________________________________________
4.4) ๐ช ADX Filter
Purpose: Confirms the market is truly trending using ADX, a classic trend-strength tool.
How it works:
If ADX is below the threshold, the market is likely non-trending โ signals blocked.
Recommended (M30 GOLD Optimized):
โขโ
Enable ADX Filter: ON
โขโฑ ADX Period: 14
โข๐ Minimum ADX Value: 25
Rule of thumb:
๐ ADX > 25 = trend conditions
๐ ADX < 20 = likely chop / mean-reversion
________________________________________
4.5) ๐งฏ Signal Spacing Anti-Spam Filter
Purpose: Prevents overtrading by forcing a cooldown period between signals.
How it works:
It tracks bars since last BUY and since last SELL separately.
Recommended M30 GOLD Optimized:
โขโ
Enable Signal Spacing: ON
โขโณ Minimum Bars Between Signals: 75
What 75 bars means on M30:
75 ร 30 minutes = 2250 minutes = 37.5 hours
So this is intentionally strict (high quality / swing-style filtering). ๐ฆ
If you want more signals:
Try 30โ50 for active trend capture, still clean. โ
________________________________________
5) ๐ Filter Dashboard Read This First When Confused
The dashboard shows live status of each filter.
โ
PASS (Green) = filter condition met
โ FAIL (Red) = filter is blocking signals
Dashboard also shows:
โข ๐ Trend Strength (EMA slope %)
โข ๐ช ADX Value
โข ๐ Current Trend UPTREND / DOWNTREND
Pro Tip ๐ง :
Not getting signals? Donโt guess. Look at the dashboard โ it will instantly tell you which filter is failing.
________________________________________
6) ๐ Alerts Integration TradingView Alerts Ready
This indicator includes built-in alert conditions.
To set alerts:
1๏ธโฃ Click Alert (top toolbar) or press Alt + A
2๏ธโฃ In Condition, select Supertrend Advanced
3๏ธโฃ Choose one:
๐ Alert Conditions
โ
SuperTrend Buy โ Buy printed after all enabled filters PASS
โ
SuperTrend Sell โ Sell printed after all enabled filters PASS
โ ๏ธ SuperTrend Direction Change โ raw Supertrend flip (ignores filters)
Recommended alert frequency:
โ
Once Per Bar Close (reduces noise + avoids repaint confusion)
________________________________________
7) ๐ง Strategy & Best Practices M30 GOLD Focused
โ
Best Use Case
This Filtered Supertrend works best when GOLD is doing one of these:
โข๐ Strong session trend (London / NY continuation)
โข๐ Post-news directional expansion
โข๐ Clean structure break + follow-through
๐ฅ Smart Trading Workflow (Simple + Effective)
โ
Use dashboard โ wait for filters PASS
โ
Align with market structure (HH/HL for buys, LH/LL for sells)
โ
Use key zones:
โขSupport/Resistance ๐งฑ
โขLiquidity sweeps ๐ง
โขOrder Blocks / Supply-Demand (if you use them) ๐ฆ
๐งช Tune One Filter At A Time
When optimizing:
1.Reduce Signal Spacing first
2.Then reduce Confirmation Bars
3.Only then touch volatility / ADX / trend slope
________________________________________
8) ๐งฉ Example Profiles Quick Presets
๐ฅ GOLD M30 โOptimized / Conservativeโ Recommended
โขTrend Strength: 0.05%
โขConfirmation Bars: 5
โขVolatility Threshold: 0.25%
โขADX: 25
โขSignal Spacing: 75
โ๏ธ Balanced More signals, still filtered
โขTrend Strength: 0.05%
โขConfirmation Bars: 2
โขVolatility Threshold: 0.50%
โขADX: 25
โขSignal Spacing: 10
โก Aggressive / Scalping Style
โขTrend Strength: 0.03%
โขConfirmation Bars: 1
โขVolatility Threshold: 0.10%
โขADX: OFF
โขSignal Spacing: 3
________________________________________
๐ค Combining Filtered Supertrend + ProjectSyndicate Order Blocks Finder SMC Boost
For SMC traders, use Order Block Finder to map clean institutional supply/demand zones (bullish OB = last bearish candle before strong bullish displacement + BOS; bearish OB = last bullish candle before strong bearish displacement + BOS, with a displacement-strength filter and auto-cleanup) and then let Filtered Supertrend act as the โpermission + timingโ engine
โ
only take Supertrend Buy signals when price is reacting from/returning into a bullish OB (demand) in an uptrend, and Supertrend Sell signals from a bearish OB (supply) in a downtrend; entries become higher probability because youโre stacking trend bias + institutional zone + confirmation filters, with clean risk defined by the OB boundary (stop beyond the box) and logical targets toward the next opposing OB or trend continuation
Order Block Finder | Gold | ProjectSyndicate
________________________________________
9) ๐งฏ Troubleshooting
โ โNo signals are appearingโ
Likely filters are too strict.
โ
Check dashboard โ see which filter fails.
Try this order:
1.Lower Signal Spacing (75 โ 50 โ 30)
2.Lower Confirmation Bars (5 โ 3 โ 2)
3.Slightly reduce thresholds
โ โStill too many signalsโ
Tighten filters:
โ
Confirmation Bars 3+
โ
Signal Spacing 100+
โ
Increase Trend Strength + ADX thresholds
โ โSignals appear too lateโ
Reduce Confirmation Bars:
โ
5 โ 3 or 2
(earlier entries, slightly more risk of fakeouts)
________________________________________
โ
Conclusion
ProjectSyndicate Filtered Supertrend turns a basic trend indicator into a high-control signal engine. On GOLD M30, where fakeouts and chop are common, the 5-filter AND logic + dashboard gives you a cleaner edge โ especially when combined with structure and key zones. ๐๐
QUARTERS THEORY XAUUSDThe โQuarter Theory XAUUSDโ indicator on TradingView is designed to automatically plot horizontal price levels in $25 increments on your chart, providing traders with a clear visual representation of key psychological and technical price points. These levels are particularly useful for instruments like XAU/USD, where price often reacts to round numbers, forming support and resistance zones that can be leveraged for both scalping and swing trading strategies. By showing all $25 increments as horizontal white lines, the indicator ensures that traders can quickly identify potential entry and exit points, without the need for manual drawing or repeated calculations.
The indicator works by calculating the nearest $25 multiple relative to the current market price and then drawing horizontal lines across the chart for all increments within a defined range. This range can be customized to suit the instrument being traded; for example, for gold (XAU/USD), a typical range might extend from 0 to 5000, covering all practical price levels that could be relevant in both high and low market conditions. By using Pine Scriptโs persistent variables, the indicator efficiently creates these lines only once at the start of the chart, avoiding unnecessary resource usage and preventing TradingView from slowing down, which can happen if lines are redrawn every bar.
From a trading perspective, these levels serve multiple purposes. For scalpers, the $25 increments act as micro support and resistance points, helping to determine short-term price reactions and potential breakout zones. Scalpers can use these levels to enter positions with tight stop-loss orders just beyond a level and take profits near the next $25 increment, which aligns with common price behavior patterns in highly liquid instruments. For swing traders, the same levels provide broader context, allowing them to identify areas where price might pause or reverse over several days. Swing traders can use these levels to align trades with the prevailing trend, particularly when combined with other indicators such as moving averages or trendlines.
Another key advantage of the Quarterly Levels indicator is its simplicity and visual clarity. By plotting lines in a uniform white color and extending them to the right, the chart remains clean and easy to read, allowing traders to focus on price action and market dynamics rather than cluttered technical drawings. This visual consistency also helps in backtesting and strategy development, as traders can quickly see how price interacts with each level over time. Additionally, the use of round-number increments leverages the psychological tendencies of market participants, as many traders place stop orders or entry points near these levels, making them natural zones of interest.
Overall, the Quarterly Levels indicator combines efficiency, clarity, and practical trading utility into a single tool. It streamlines chart analysis, highlights meaningful price zones, and supports both scalping and swing trading approaches, making it an essential addition to a traderโs toolkit. By understanding how to integrate these levels into trading strategies, traders can make more informed decisions, manage risk effectively, and identify high-probability trade setups across various market conditions.
Breaker Blocks Finder | Gold | ProjectSyndicateProjectSyndicate Breaker Blocks Finder
๐ Overview
The ProjectSyndicate Breaker Blocks Finder (PS BB Finder) is a professional-grade Pine Script indicator designed to detect and display Bullish and Bearish Breaker Blocks based on Smart Money Concepts (SMC) methodology. This indicator is specifically optimized for XAUUSD (Gold) trading but works reliably across all symbols and timeframes.
Key Features
โ
Non-Repainting: Breaker blocks never change position after formation
โ
Multi-Timeframe Support: Optimized for M5, M10, M15, M20, M30, and H1
โ
Highly Customizable: 10+ user-configurable settings
โ
Visual Clarity: Color-coded boxes and labels for easy identification
โ
Performance Optimized: Handles 1000+ candles without lag
โ
Cross-Symbol Compatible: Works on Forex, Crypto, Stocks, Indices, and Commodities
โ
Displacement Detection: Uses ATR-based displacement to filter false signals
๐ฏ What are Breaker Blocks?
A Breaker Block is a failed order block that becomes a new support or resistance zone after being invalidated by price. It represents a market structure shift where institutional traders (smart money) have flipped their position.
Bullish Breaker Block
A Bullish Breaker Block forms when:
1 A bearish order block (resistance zone) exists
2 Price breaks ABOVE this zone with strong displacement
3 The former resistance zone now becomes SUPPORT
4 Price may retest this zone before continuing higher
Visual: Green box with "BB โฒ" label
Bearish Breaker Block
A Bearish Breaker Block forms when:
5 A bullish order block (support zone) exists
6 Price breaks BELOW this zone with strong displacement
7 The former support zone now becomes RESISTANCE
8 Price may retest this zone before continuing lower
Visual: Red box with "BB โผ" label
โ๏ธ Default Settings
Setting Default Range Description
Lookback Period 1000 100-5000 Number of historical candles to analyze
Max Breaker Blocks 5 1-50 Maximum number of breaker blocks to display
Swing Detection Length 10 2-20 Bars on each side to confirm swing high/low. Higher = more significant swings
Use Displacement Filter true true/false Enable to filter breaker blocks by displacement size
Displacement Multiplier 2.0 0.5-5.0 Minimum move size as multiple of ATR. Higher = stricter detection
Invalidation Method Close Close/Wick Close = Conservative (candle must close beyond zone)Wick = Aggressive (wick touch is enough)
๐ Recommended Timeframes & Settings
This indicator is optimized for the following timeframes. Use these settings as a starting point.
Lower Timeframes (M5, M10, M15, M20)
These settings are designed to capture faster price movements and are the default settings for the indicator.
Setting Recommended Value
Lookback Period 1000
Max Breaker Blocks 5
Swing Detection Length 10
Use Displacement Filter true
Displacement Multiplier 2.0
Invalidation Method Close
Higher Timeframes (M30, H1)
For these timeframes, a less strict displacement filter is recommended to capture more significant, but less frequent, breaker blocks.
Setting Recommended Value
Lookback Period 1000
Max Breaker Blocks 5
Swing Detection Length 10
Use Displacement Filter true
Displacement Multiplier 1.0
Invalidation Method Close
๐ How to Use
Step 1: Identify Breaker Blocks
Once the indicator is loaded, breaker blocks will automatically appear on your chart:
โข Green boxes = Bullish breaker blocks (former resistance, now support)
โข Red boxes = Bearish breaker blocks (former support, now resistance)
Step 2: Wait for Retest
The most reliable trading opportunities occur when price retests the breaker block zone:
โข For bullish breaker blocks, wait for price to come back down to the green zone
โข For bearish breaker blocks, wait for price to come back up to the red zone
Step 3: Look for Confluence
Combine breaker blocks with other SMC concepts for higher probability setups:
โข Fair Value Gaps (FVG) within the breaker block zone
โข Liquidity grabs before the retest
โข Break of Structure (BoS) or Change of Character (ChoCH) confirmation
Step 4: Enter the Trade
Bullish Setup:
โข Entry: At or near the bullish breaker block zone
โข Stop Loss: Below the breaker block
โข Take Profit: Previous swing high or higher
Bearish Setup:
โข Entry: At or near the bearish breaker block zone
โข Stop Loss: Above the breaker block
โข Take Profit: Previous swing low or lower
๐ก๏ธ Non-Repainting Guarantee
This indicator is 100% non-repainting, meaning:
โ
Breaker blocks never change position after formation
โ
Historical breaker blocks remain in the exact same location indefinitely
โ
Backtesting results are reliable and consistent
๐ Troubleshooting
Issue: No Breaker Blocks Appearing
Solutions:
โข Ensure "Use Displacement Filter" is enabled.
โข On M30/H1, try lowering the "Displacement Multiplier" to 1.0.
โข Scroll back in history; blocks may not be present on the most recent bars.
Issue: Too Many Breaker Blocks
Solutions:
โข Increase "Displacement Multiplier" to 2.5 or 3.0.
โข Increase "Swing Detection Length" to 12-15.
โข Decrease "Max Breaker Blocks" to 3-4.
Order Block Finder | Gold | ProjectSyndicate๐ฅ ProjectSyndicate Gold Order Block Finder
๐ Institutional Order Blocks for XAUUSD Built for Goldโs Volatility
The ProjectSyndicate Gold Order Block Finder is a professional-grade TradingView indicator engineered specifically for XAUUSD / Gold traders who want clean, high-probability institutional supply & demand zones on their chart.
Gold moves fast, sweeps liquidity often, and loves sharp displacement. This tool is tuned to match that behaviorโso you can quickly spot the zones where smart money likely stepped in, and plan entries, targets, and invalidations with confidence. โ
๐ Why Gold Traders Like It
โ
Made for XAUUSD: Detection is tuned for Goldโs unique volatility and impulse structure
๐ฆ Institutional Zone Detection: Finds the last opposing candle before a true displacement + structure break
๐งน Auto-Cleanup (Mitigation): Zones automatically disappear when invalidated (no clutter)
๐ฆ Clean Visualization: Professional OB boxes that extend into live price action
โก Pine Script v6: Built on the latest TradingView engine for stability and speed
๐ง Detection Logic Simple, Effective, Battle-Tested
๐ Bullish Order Block (Demand):
The last bearish candle before a strong bullish displacement that breaks market structure (BOS)
๐ Bearish Order Block (Supply):
The last bullish candle before a strong bearish displacement that breaks market structure (BOS)
๐ฅ Displacement Filter Power Move Confirmation:
Zones are validated only when the impulse move meets a minimum strength threshold (default: 1.3ร candle range)โhelping filter out weak noise and low-quality blocks.
๐ Recommended Gold Settings (XAUUSD)
Use these presets to match Goldโs typical behavior across higher-impact timeframes:
Timeframe | Swing Length | Displacement
M5 | 5โ7 | 1.2 โ 1.4
M10 | 5โ7 | 1.2 โ 1.4
M30 | 5โ7 | 1.2 โ 1.4
H1 | 7โ9 | 1.3 โ 1.6
H4 | 8โ10 | 1.5 โ 2.0
๐ก Tip: If you want more signals, reduce Swing Length.
If you want higher quality only, increase Displacement.
โ
Best Use-Cases on Gold
๐ฏ Mark premium supply/demand zones without manual drawing
๐งฒ Wait for price to return to the OB for cleaner entries
๐ก๏ธ Use OB boundaries for clear invalidation + stop placement
๐ Combine with trend bias / liquidity sweeps / session levels for extra confirmation
LBMA London Gold Fix Times [Auto DST]## Overview
This lightweight indicator automatically marks the **LBMA Gold Price Fixing** times on your chart using vertical lines. It is designed specifically for **XAUUSD (Gold)** traders who need to monitor institutional liquidity and volatility shifts during the London session.
The indicator tracks the two key daily fixing moments:
* **AM Fix:** 10:30 (London Time)
* **PM Fix:** 15:00 (London Time)
## Key Features
* **๐ Auto Daylight Saving Time (DST):** Built with the `Europe/London` timezone parameter. It automatically adjusts to British Summer Time (BST) and GMT, so you never have to manually change the UTC offset settings.
* **โก Minimalist Design:** Draws clean vertical lines without cluttering your chart with text labels.
* **๐จ Fully Customizable:** You can adjust the line color, width, and style (Solid, Dashed, Dotted) for both AM and PM sessions independently.
## Why are these times important?
The London Gold Fix (LBMA Gold Price) is the global benchmark for physical gold settlement. Major institutions, central banks, and mining companies settle contracts at these times. Consequently, **10:30** and **15:00** (London time) often witness:
1. Significant spikes in volatility.
2. Trend reversals or accelerations.
3. Massive volume injection.
## Usage Tips
* **Timeframe:** This indicator works best on **Intraday Timeframes** (1-minute to 30-minute charts).
* *Note:* It may not be visible on H1 (1-hour) charts or higher because the fix times (e.g., 10:30) occur in the middle of an hourly candle.
* **Setup:** Simply add it to your chart. No timezone configuration is required; the script calculates London time internally.
## Settings
* **AM Fix Color:** Default is Blue (London Morning).
* **PM Fix Color:** Default is Red (London Afternoon/US Morning overlap).
* **Line Style:** Choose between Solid, Dashed, or Dotted lines.
ๆฆ่ฟฐ (Overview)
่ฟๆฏไธไธช่ฝป้็บง็่พ
ๅฉๆๆ ๏ผ้่ฟๅ็ด็บฟๅจๅพ่กจไธ่ชๅจๆ ่ฎฐ LBMA ไผฆๆฆ้ๅฎ็ไปท๏ผLBMA Gold Price Fixing๏ผ ็ๆถๅปใๅฎๆฏไธไธบ XAUUSD๏ผ้ป้๏ผ ไบคๆ่
่ฎพ่ฎก็๏ผๆจๅจๅธฎๅฉๅคงๅฎถๆๆไผฆๆฆๆถๆฎตๅ
ๆบๆๆตๅจๆงๅๅธๅบๆณขๅจ็ๅ
ณ้ฎ่็นใ
่ฏฅๆๆ ไผ่ชๅจ้ๅฎๆฏๅคฉไธคไธชๆ ธๅฟ็ๅฎ็ๆถ้ด๏ผ
ไธๅๅฎ็ (AM Fix): 10:30 (ไผฆๆฆๆถ้ด)
ไธๅๅฎ็ (PM Fix): 15:00 (ไผฆๆฆๆถ้ด)
ไธป่ฆๅ่ฝ (Key Features)
๐ ่ชๅจ่ฏๅซๅคไปคๆถ (Auto DST): ไปฃ็ ๅ
็ฝฎ Europe/London ๆถๅบๅๆฐใๆ ่ฎบ่ฑๅฝๅคไบๅคไปคๆถ (BST) ่ฟๆฏๅฌไปคๆถ (GMT)๏ผๆๆ ้ฝไผ่ชๅจ็ฒพๅๅฏน้ฝ๏ผๆ ้็จๆทๆๅจ่ฐๆดๆถๅบ่ฎพ็ฝฎใ
โก ๆ็ฎไธปไน่ฎพ่ฎก: ไป
็ปๅถๅนฒๅ็ๅ็ด็บฟ๏ผไธๆพ็คบไปปไฝๆๅญๆ ็ญพ๏ผ้ฟๅ
้ฎๆกK็บฟๆๅนฒๆฐ่ง็บฟใ
๐จ ้ซๅบฆๅฏๅฎๅถ: ๆจๅฏไปฅ็ฌ็ซ่ฐๆดไธๅๅไธๅๅฎ็็บฟ็้ข่ฒใ็ฒ็ปไปฅๅๆ ทๅผ๏ผๅฎ็บฟใ่็บฟๆ็น็บฟ๏ผใ
ไธบไปไน่ฆๅ
ณๆณจ่ฟไธคไธชๆถ้ด็น๏ผ
LBMA ไผฆๆฆ้ๅฎ็ไปทๆฏๅ
จ็ๅฎ็ฉ้ป้็ป็ฎ็ๅบๅไปทๆ ผใๅคงๅ้่ๆบๆใไธญๅคฎ้ถ่กๅ้็ฟๅ
ฌๅธ้ๅธธไผๅจ่ฟไธชๆถ้ด็น้ไธญ่ฟ่กๅ็บฆ็ป็ฎใๅ ๆญค๏ผๅจไผฆๆฆๆถ้ด 10:30 ๅ 15:00 ๅๅ๏ผๅธๅบ็ปๅธธไผๅบ็ฐ๏ผ
ๆณขๅจ็็ฌ้ดๆฟๅขใ
็ญๆ่ถๅฟ็ๅ่ฝฌๆๅ ้ใ
ๅทจ้ๆไบค้็ๆถๅ
ฅใ
ไฝฟ็จๅปบ่ฎฎ (Usage Tips)
้็จๅจๆ: ๅปบ่ฎฎๅจ ๆฅๅ
ๅๆถๅพ๏ผ1ๅ้ใ5ๅ้ใ15ๅ้ๆ30ๅ้๏ผไธไฝฟ็จใ
ๆณจๆ: ๅจ 1ๅฐๆถ (H1) ๆๆดๅคง็ๅจๆไธ๏ผ็บฟๆกๅฏ่ฝๆ ๆณๆพ็คบ๏ผๅ ไธบๅฎ็ๆถ้ด๏ผๅฆ 10:30๏ผๅ็ๅจๆด็นK็บฟ็ๅ
้จ๏ผๆ ๆณ่ขซๅ็ฌๆ ่ฎฐใ
่ฎพ็ฝฎๆนๆณ: ๅ ่ฝฝๆๆ ๅณๅฏไฝฟ็จใๆ ่ฎบๆจๆฌๅฐ็ต่็ๆถ้ด่ฎพ็ฝฎๅฆไฝ๏ผ่ๆฌๅ
้จไผ่ชๅจ่ฎก็ฎๆญฃ็กฎ็ไผฆๆฆๆถ้ดใ
ๅๆฐ่ฎพ็ฝฎ (Settings)
AM Fix Color: ไธๅๅฎ็็บฟ้ข่ฒ๏ผ้ป่ฎคไธบ่่ฒ๏ผใ
PM Fix Color: ไธๅๅฎ็็บฟ้ข่ฒ๏ผ้ป่ฎคไธบ็บข่ฒ๏ผๆญคๆถๅพๅพไนๆฏ็พ็ๅๆ็ๆณขๅจ้ซๅณฐ๏ผใ
Line Style: ็บฟๆกๆ ทๅผ้ๆฉ๏ผๅฎ็บฟใ่็บฟใ็น็บฟ๏ผใ
Gold Projection DivergenceGOLD PROJECTION DIVERGENCE
Oscillator Companion for the Gold Macro Projection Model
OVERVIEW
The Gold Projection Divergence oscillator quantifies how far gold is trading from its projected fair value. While the main indicator shows where gold should be, this oscillator shows how extreme the mispricing isโproviding precise timing signals for entries and exits.
HOW IT WORKS
The oscillator calculates the difference between actual gold price and the projected value, then normalizes it as a Z-score . This statistical measure shows how many standard deviations gold is trading away from its projected fair value.
Z > +2 โ Gold is 2+ standard deviations above fair value (extremely overvalued)
Z > +1 โ Gold is moderately overvalued
Z = 0 โ Gold is trading at projected fair value
Z < -1 โ Gold is moderately undervalued
Z < -2 โ Gold is 2+ standard deviations below fair value (extremely undervalued)
VISUAL ELEMENTS
Histogram โ Color-coded divergence magnitude
Yellow Line โ Smoothed Z-score
Dashed Lines โ +2 and -2 standard deviation levels
Dotted Lines โ +1 and -1 standard deviation levels
Triangle Markers โ Extreme crossover signals
Circle Markers โ Zero-line crossings
HISTOGRAM COLORS
Dark Red โ Z > +2 (extreme overvaluation)
Orange โ Z between +1 and +2
Light Orange โ Z between 0 and +1
Light Green โ Z between -1 and 0
Green โ Z between -2 and -1
Lime โ Z < -2 (extreme undervaluation)
COMPONENT TABLE
The breakdown table shows divergence from each individual factor:
Silver โ Is gold over/undervalued relative to silver?
M2 โ Is gold over/undervalued relative to money supply?
DXY โ Is gold over/undervalued relative to dollar strength?
Equity โ Is gold over/undervalued relative to stocks?
TIPS โ Is gold over/undervalued relative to real rates?
TRADING APPLICATIONS
Mean Reversion Strategy
Enter LONG when Z < -2 and begins rising
Enter SHORT when Z > +2 and begins falling
Use zero-line crossings for trend confirmation
Trend Following Filter
Only take long trades when Z < 0 (undervalued)
Only take short trades when Z > 0 (overvalued)
Divergence Confirmation
Bearish: Price makes new highs while Z-score makes lower highs
Bullish: Price makes new lows while Z-score makes higher lows
ALERTS
Extreme Undervaluation โ Z crosses below -2
Extreme Overvaluation โ Z crosses above +2
Moderate Undervaluation โ Z crosses below -1
Moderate Overvaluation โ Z crosses above +1
Divergence Turned Positive โ Crossed above zero
Divergence Turned Negative โ Crossed below zero
COMBINED USAGE
For best results, use both indicators together :
Main Indicator โ Visual context of actual vs. projected on price chart
Divergence Oscillator โ Precise measurement for timing decisions
The main indicator shows where gold should be; the oscillator shows how extreme the mispricing is and when to act.
Disclaimer: This indicator is for educational purposes only. Past correlations do not guarantee future relationships. Market conditions can alter historical relationships. Always use proper risk management.
Gold Macro Projection ModelGOLD MACRO PROJECTION MODEL
Multi-Factor Fair Value Estimation for Gold
OVERVIEW
The Gold Macro Projection Model estimates gold's fair value based on its historical relationships with key macroeconomic drivers. By synthesizing data from silver , M2 money supply , the US Dollar Index , TIPS (real rates proxy) , and major equity indices , this indicator projects where gold should theoretically be tradingโhelping traders identify potential overvaluation and undervaluation conditions.
HOW IT WORKS
This indicator employs three complementary projection methodologies :
Correlation-Weighted Z-Score Composite (50% weight)
Calculates rolling correlations between gold and each input factor. Factors with stronger correlations receive more influence. Each factor is normalized to a z-score, combined into a composite, then converted back to gold's price scale.
Silver/Gold Ratio Mean Reversion (35% weight)
The silver/gold ratio historically exhibits mean-reverting behavior. This component projects gold's implied price based on current silver prices and the historical average ratio.
M2 Money Supply Relationship (15% weight)
Gold tracks monetary expansion over long time horizons. This anchors the projection to the fundamental relationship between gold and the monetary base.
INPUT FACTORS
Silver โ Strong positive correlation; precious metals move together
M2 Money Supply โ Positive correlation; gold as inflation hedge
US Dollar Index (DXY) โ Typically negative correlation; inverse relationship
TIPS ETF โ Real interest rate proxy; gold responds to real yields
Equity Indices โ Variable correlation; risk-on/risk-off dynamics
VISUAL ELEMENTS
Yellow Line โ Actual gold price
Aqua Line โ Projected fair value
Green Fill โ Gold trading below projection (potentially undervalued)
Red Fill โ Gold trading above projection (potentially overvalued)
Aqua Bands โ Standard deviation envelope around projection
INFO TABLE
The indicator displays a real-time information panel showing:
Current actual vs. projected price
Divergence percentage and Z-score
Rolling correlations for each factor
Dynamic weight allocation
Buy/Sell signal based on divergence extremes
SIGNAL INTERPRETATION
STRONG BUY โ Z-score below -2 (extremely undervalued)
BUY โ Z-score between -2 and -1 (moderately undervalued)
NEUTRAL โ Z-score between -1 and +1 (fairly valued)
SELL โ Z-score between +1 and +2 (moderately overvalued)
STRONG SELL โ Z-score above +2 (extremely overvalued)
SETTINGS
Correlation Period โ Lookback for correlation calculations (default: 60)
Regression Period โ Lookback for mean/standard deviation (default: 120)
Smoothing Period โ EMA smoothing for projection line (default: 10)
Auto Weights โ Toggle between correlation-based or manual weights
Band Multiplier โ Standard deviation multiplier for bands (default: 1.5)
ALERTS
Gold Extremely Undervalued โ Z crosses below -2
Gold Extremely Overvalued โ Z crosses above +2
Gold Crossed Above Projection
Gold Crossed Below Projection
BEST PRACTICES
Use on daily timeframe for most reliable signals
Combine with the companion Gold Divergence Oscillator for timing
Disclaimer: This indicator is for educational purposes only. Past correlations do not guarantee future relationships. Always use proper risk management.
Global Macro Scanner & Relative PerformanceDescription: This indicator is an all-in-one Macro Dashboard that allows traders to track money flow across major global asset classes in real-time. It combines a floating data table with a normalized percentage-performance chart.
Features:
Macro Dashboard (Table): Displays the current value, daily % change, and status (Inflow/Outflow) for 9 key economic sectors:
US M2 Supply: Tracks monetary inflation/tightening.
DXY (US Dollar): Currency strength.
Bonds (AGG): US Aggregate Bond market.
Stocks (VT): Total World Stock Index.
Real Estate (VNQ): Vanguard Real Estate ETF.
Commodities: Oil (WTI), Gold, and Silver.
Crypto: Total Crypto Market Cap.
Relative Performance Chart (Lines): Instead of plotting raw prices (which have vastly different scales), this script plots the Percentage Return relative to a baseline.
Lookback Period: You can set a lookback (default 100 bars). The script sets the price 100 bars ago as "0%" and plots how much each asset has gained or lost since then.
Comparison: This allows you to visually see which assets are outperforming or underperforming relative to each other over the same time period.
Visual Aids:
Dynamic Labels: Each line is tagged with a label at the current candle so you can identify assets without needing a legend.
Colors: Each asset has a distinct, fixed color for consistency between the table and the chart.
How to use:
Add the script to your chart.
Adjust the "Lookback" setting in the inputs to change the starting point of the comparison (e.g., set it to the start of the year to see Year-to-Date performance).
Use the dashboard to spot daily money flow rotation (e.g., Money moving out of Stocks and into Gold).
MACD Forecast Colorful [DiFlip]MACD Forecast Colorful
The Future of Predictive MACD โ is one of the most advanced and customizable MACD indicators ever published on TradingView. Built on the classic MACD foundation, this upgraded version integrates statistical forecasting through linear regression to anticipate future movements โ not just react to the past.
With a total of 22 fully configurable long and short entry conditions, visual enhancements, and full automation support, this indicator is designed for serious traders seeking an analytical edge.
โฏ Real-Time MACD Forecasting
For the first time, a public MACD script combines the classic structure of MACD with predictive analytics powered by linear regression. Instead of simply responding to current values, this tool projects the MACD line, signal line, and histogram n bars into the future, allowing you to trade with foresight rather than hindsight.
โฏ Fully Customizable
This indicator is built for flexibility. It includes 22 entry conditions, all of which are fully configurable. Each condition can be turned on/off, chained using AND/OR logic, and adapted to your trading model.
Whether you're building a rules-based quant system, automating alerts, or refining discretionary signals, MACD Forecast Colorful gives you full control over how signals are generated, displayed, and triggered.
โฏ With MACD Forecast Colorful, you can:
โข Detect MACD crossovers before they happen.
โข Anticipate trend reversals with greater precision.
โข React earlier than traditional indicators.
โข Gain a powerful edge in both discretionary and automated strategies.
โข This isnโt just smarter MACD โ itโs predictive momentum intelligence.
โฏ Scientifically Powered by Linear Regression
MACD Forecast Colorful is the first public MACD indicator to apply least-squares predictive modeling to MACD behavior โ effectively introducing machine learning logic into a time-tested tool.
It uses statistical regression to analyze historical behavior of the MACD and project future trajectories. The result is a forward-shifted MACD forecast that can detect upcoming crossovers and divergences before they appear on the chart.
โฏ Linear Regression: Technical Foundation
Linear regression is a statistical method that models the relationship between a dependent variable (y) and one or more independent variables (x). The basic formula for simple linear regression is:
y = ฮฒโ + ฮฒโx + ฮต
Where:
y ย = predicted variable (e.g., future MACD value)
x ย = independent variable (e.g., bar index)
ฮฒโ = intercept
ฮฒโ = slope
ฮต ย ย = random error (residual)
The regression model calculates ฮฒโ and ฮฒโ using the least squares method, minimizing the sum of squared prediction errors to produce the best-fit line through historical values. This line is then extended forward, generating a forecast based on recent price momentum.
โฏ Least Squares Estimation
The regression coefficients are computed with the following formulas:
ฮฒโ = ฮฃ((xแตข - xฬ)(yแตข - ศณ)) / ฮฃ((xแตข - xฬ)ยฒ)
ฮฒโ = ศณ - ฮฒโxฬ
Where:
ฮฃ denotes summation; xฬ and ศณ are the means of x and y; and i ranges from 1 to n (number of observations). These equations produce the best linear unbiased estimator under the GaussโMarkov assumptions โ constant variance (homoscedasticity) and a linear relationship between variables.
โฏ Regression in Machine Learning
Linear regression is a foundational model in supervised learning. Its ability to provide precise, explainable, and fast forecasts makes it critical in AI systems and quantitative analysis.
Applying linear regression to MACD forecasting is the equivalent of injecting artificial intelligence into one of the most widely used momentum tools in trading.
โฏ Visual Interpretation
Picture the MACD values over time like this:
Time ย โ
MACD โ
A regression line is fitted to recent MACD values, then projected forward n periods. The result is a predictive trajectory that can cross over the real MACD or signal line โ offering an early-warning system for trend shifts and momentum changes.
The indicator plots both current MACD and forecasted MACD, allowing you to visually compare short-term future behavior against historical movement.
โฏ Scientific Concepts Used
Linear Regression: models the relationship between variables using a straight line.
Least Squares Method: minimizes squared prediction errors for best-fit.
Time-Series Forecasting: projects future data based on past patterns.
Supervised Learning: predictive modeling using labeled inputs.
Statistical Smoothing: filters noise to highlight trends.
โฏ Why This Indicator Is Revolutionary
First open-source MACD with real-time predictive modeling.
Scientifically grounded with linear regression logic.
Automatable through TradingView alerts and bots.
Smart signal generation using forecasted crossovers.
Highly customizable with 22 buy/sell conditions.
Enhanced visuals with background (bgcolor) and area fill (fill) support.
This isnโt just an update โ itโs the next evolution of MACD forecasting.
โฏ Example of simple linear regression with one independent variable
This example demonstrates how a basic linear regression works when there is only one independent variable influencing the dependent variable. This type of model is used to identify a direct relationship between two variables.
โฏ In linear regression, observations (red) are considered the result of random deviations (green) from an underlying relationship (blue) between a dependent variable (y) and an independent variable (x)
This concept illustrates that sampled data points rarely align perfectly with the true trend line. Instead, each observed point represents the combination of the true underlying relationship and a random error component.
โฏ Visualizing heteroscedasticity in a scatterplot with 100 random fitted values using Matlab
Heteroscedasticity occurs when the variance of the errors is not constant across the range of fitted values. This visualization highlights how the spread of data can change unpredictably, which is an important factor in evaluating the validity of regression models.
โฏ The datasets in Anscombeโs quartet were designed to have nearly the same linear regression line (as well as nearly identical means, standard deviations, and correlations) but look very different when plotted
This classic example shows that summary statistics alone can be misleading. Even with identical numerical metrics, the datasets display completely different patterns, emphasizing the importance of visual inspection when interpreting a model.
โฏ Result of fitting a set of data points with a quadratic function
This example illustrates how a second-degree polynomial model can better fit certain datasets that do not follow a linear trend. The resulting curve reflects the true shape of the data more accurately than a straight line.
โฏ What is the MACD?
The Moving Average Convergence Divergence (MACD) is a technical analysis indicator developed by Gerald Appel. It measures the relationship between two moving averages of a securityโs price to identify changes in momentum, direction, and strength of a trend. The MACD is composed of three components: the MACD line, the signal line, and the histogram.
โฏ How to use the MACD?
The MACD is calculated by subtracting the 26-period Exponential Moving Average (EMA) from the 12-period EMA. A 9-period EMA of the MACD line, called the signal line, is then plotted on top of the MACD line. The MACD histogram represents the difference between the MACD line and the signal line.
Here are the primary signals generated by the MACD:
โข Bullish Crossover: When the MACD line crosses above the signal line, indicating a potential buy signal.
โข Bearish Crossover: When the MACD line crosses below the signal line, indicating a potential sell signal.
โข Divergence: When the price of the security diverges from the MACD, suggesting a potential reversal.
โข Overbought/Oversold Conditions: Indicated by the MACD line moving far away from the signal line, though this is less common than in oscillators like the RSI.
โฏ How to use MACD forecast?
The MACD Forecast is built on the same foundation as the classic MACD, but with predictive capabilities.
Step 1 โ Spot Predicted Crossovers:
Watch for forecasted bullish or bearish crossovers. These signals anticipate when the MACD line will cross the signal line in the future, letting you prepare trades before the move.
Step 2 โ Confirm with Histogram Projection:
Use the projected histogram to validate momentum direction. A rising histogram signals strengthening bullish momentum, while a falling projection points to weakening or bearish conditions.
Step 3 โ Combine with Multi-Timeframe Analysis:
Use forecasts across multiple timeframes to confirm signal strength (e.g., a 1h forecast aligned with a 4h forecast).
Step 4 โ Set Entry Conditions & Automation:
Customize your buy/sell rules with the 20 forecast-based conditions and enable automation for bots or alerts.
Step 5 โ Trade Ahead of the Market:
By preparing for future momentum shifts instead of reacting to the past, youโll always stay one step ahead of lagging traders.
๐ BUY
๐ Signal Validity: The signal will remain valid for X bars.
๐ Signal Sequence: Configurable as AND or OR.
๐ MACD > Signal Smoothing
๐ MACD < Signal Smoothing
๐ Histogram > 0
๐ Histogram < 0
๐ Histogram Positive
๐ Histogram Negative
๐ MACD > 0
๐ MACD < 0
๐ Signal > 0
๐ Signal < 0
๐ MACD > Histogram
๐ MACD < Histogram
๐ Signal > Histogram
๐ Signal < Histogram
๐ MACD (Crossover) Signal
๐ MACD (Crossunder) Signal
๐ MACD (Crossover) 0
๐ MACD (Crossunder) 0
๐ Signal (Crossover) 0
๐ Signal (Crossunder) 0
๐ฎ MACD (Crossover) Signal Forecast
๐ฎ MACD (Crossunder) Signal Forecast
๐ SELL
๐ Signal Validity: The signal will remain valid for X bars.
๐ Signal Sequence: Configurable as AND or OR.
๐ MACD > Signal Smoothing
๐ MACD < Signal Smoothing
๐ Histogram > 0
๐ Histogram < 0
๐ Histogram Positive
๐ Histogram Negative
๐ MACD > 0
๐ MACD < 0
๐ Signal > 0
๐ Signal < 0
๐ MACD > Histogram
๐ MACD < Histogram
๐ Signal > Histogram
๐ Signal < Histogram
๐ MACD (Crossover) Signal
๐ MACD (Crossunder) Signal
๐ MACD (Crossover) 0
๐ MACD (Crossunder) 0
๐ Signal (Crossover) 0
๐ Signal (Crossunder) 0
๐ฎ MACD (Crossover) Signal Forecast
๐ฎ MACD (Crossunder) Signal Forecast
๐ค Automation
All BUY and SELL conditions can be automated using TradingView alerts. Every configurable condition can trigger alerts suitable for fully automated or semi-automated strategies.
โฏ Unique Features
Linear Regression: (Forecast)
Signal Validity: The signal will remain valid for X bars
Signal Sequence: Configurable as AND/OR
Table of Conditions: BUY/SELL
Conditions Label: BUY/SELL
Plot Labels in the graph above: BUY/SELL
Automate & Monitor Signals/Alerts: BUY/SELL
Background Colors: "bgcolor"
Background Colors: "fill"
Linear Regression (Forecast)
Signal Validity: The signal will remain valid for X bars
Signal Sequence: Configurable as AND/OR
Table of Conditions: BUY/SELL
Conditions Label: BUY/SELL
Plot Labels in the graph above: BUY/SELL
Automate & Monitor Signals/Alerts: BUY/SELL
Background Colors: "bgcolor"
Background Colors: "fill"
Gold Thai CompassGold Thai Compass Indicator
Calculates Thai Gold Price (96.5%) by converting XAU/USD with the USD/THB exchange rate in real time
Displays the calculated gold_price_thb directly on the chart with a clean right-aligned label for easy price reading
Includes customizable reference lines โ add, remove, rename, recolor, and adjust each line independently
Supports multiple editable lines (e.g., 4 levels) with price labels displayed beside each line
Provides user-friendly input settings (e.g., custom price sources, spread/adjustment options)
Updates dynamically with live market data โ suitable for trading, analysis, and Thai gold price tracking
Designed for TradingView (Pine Script) and optimized for clarity and usability
Optional visibility controls to show/hide labels and reference lines for a cleaner chart layout
9/15 EMA Scalper 9/15 EMA Scalper โ by uzairbaloch
This script is a price-action based scalping system built around the 9 EMA and 15 EMA trend structure.
It identifies short-term reversal points where the market pulls back into the EMAs and confirms direction with a strong candle signal.
The strategy looks for:
โข A clear EMA trend (9 above 15 for buys, 9 below 15 for sells)
โข Pullback into EMA9/EMA15 with candle bodies touching the fast EMA
โข Strong confirmation candle (engulfing / strong momentum / controlled wick)
โข Optional slope filter to avoid flat, choppy sessions
โข Automatic trade labels showing Entry, SL and TP (based on R:R)
The script is designed for scalping on gold, indices, and high-volatility FX pairs.
It resets trade logic immediately after SL or TP is hit, so it can catch the next valid signal without delay.
This tool is meant as an indicator โ not a full strategy โ and can be used to visually mark high-probability EMA pullback setups with precise levels.
Author: uzairbaloch
Fear & Greed Oscillator - Risk SentimentThe Fear & Greed Oscillator โ Risk Sentiment is a macro-driven sentiment indicator inspired by the popular Fear & Greed Index , but rebuilt from the ground up using real, market-based economic data and statistical normalization.
While the traditional Fear & Greed Index uses components like volatility, volume, and social media trends to estimate sentiment, this version is powered by the Copper/Gold ratio โ a historically respected gauge of macroeconomic confidence and risk appetite.
๐ Expansion vs. Contraction Theory
At the heart of this oscillator is a simple macroeconomic insight:
๐ข Copper performs well during periods of economic expansion and risk-on behavior (industrials, construction, manufacturing growth).
๐ด Gold performs well during periods of economic contraction , as a classic risk-off, capital-preserving asset.
By tracking the ratio of Copper to Gold prices over time and converting it into a Z-score , this tool shows when macro sentiment is statistically stretched toward greed or fear โ based on how unusually strong one side of the ratio is relative to its historical average.
โ๏ธ How It Works
The script takes two user-defined tickers (default: Copper and Gold) and calculates their ratio.
It then applies Z-score normalization over a user-defined period (default: 200 bars).
A color gradient line is plotted:
๐ด Z < -2 = Extreme Fear
๐ฃ -2 to 0 = Mild Fear to Neutral
๐ต 0 to 2 = Neutral to Greed
๐ข Z > 2 = Extreme Greed
Visual guides at ยฑ1, ยฑ2, ยฑ3 standard deviations give immediate context.
Includes alert conditions when the Z-score crosses above +2 (Greed) or below -2 (Fear).
๐ Alerts
โZ-Score has entered the Greed Zone โ when Z > 2
โZ-Score has entered the Fear Zone โ when Z < -2
These are designed to help catch macro sentiment extremes before or during large shifts in market behavior.
โ ๏ธ Disclaimer
This indicator is a macro sentiment tool, not a direct trading signal. While the Copper/Gold ratio often reflects economic risk trends, correlation with risk assets (like Bitcoin or equities) is not guaranteed and may vary by cycle. Always use this indicator in conjunction with other tools and contextual analysis.
Lot Size CalculatorLot Size Calculator for Gold (XAU)
This indicator helps traders calculate the proper lot size for Gold (XAU) based on their entry, stop loss, and risk amount in USD.
You can set your entry and stop levels directly on the chart, and adjust your dollar risk from the settings panel.
The indicator measures the distance between entry and stop to calculate the position size that matches your selected risk.
A clean, customizable table displays key values such as Risk, Entry, Stop, Target, Lots, and Pips.
You can easily hide specific rows, change colors, and adjust layout options to fit your chart style.
Designed specifically for Gold traders, this tool provides a simple and visual way to manage risk directly on the chart.
XenoSmooth Predictive Candles - Advanced Heikin Ashi CandlesXenoSmooth Predictive Candles
Summary in one paragraph
A synthetic candle engine for crypto, FX, equities, and futures on intraday to swing timeframes. It reduces noise and flip delay so structure is easier to read. The core novelty is a predictive open with inertia plus slope lead fused with a zero lag body filter and an overshoot based wick model normalized by the real range and capped by ATR. Add it to a clean chart, hide regular candles if desired, and tune lengths. Shapes can move while the bar is open and settle on close. For conservative workflows read on bar close.
Scope and intent
โข Markets. Major FX pairs, index futures, large cap equities, liquid crypto
โข Timeframes. One minute to daily
โข Purpose. Faster and smoother visual structure than Heikin Ashi while keeping causality and realistic wicks
Originality and usefulness
โข Unique concept. Predictive open with inertia and slope lead plus selectable zero lag body filter and ATR capped wick overshoot in percent of real range
โข Failure mode addressed. Late flips in chop and unreal long wicks from raw extremes
โข Testability. Every control is an input. Users can toggle body method, lengths, clipping, and percent modeling
โข Portable yardstick. ATR based wick cap and percent of bar range scale across symbols
Method overview in plain language
Build a robust base price from O, H, L, and extra weight on Close. Smooth it with a chosen filter to produce the synthetic close. Drive a predictive open that follows the synthetic close with tunable inertia and a small lead from the last bar slope. Model wicks as the portion of the real extremes that extends beyond the synthetic body, smooth that overshoot, normalize by the bar range if selected, then cap by ATR to avoid tail spikes. Clamp synthetic values to the real high and low if enabled.
Base measures
โข Range basis. True Range for the ATR cap and High minus Low for percent normalization
โข Return basis. Not used
Components
โข Body Base Blend. Weighted O H L with a close bias to stabilize the base
โข Zero Lag Body Filter. ZLEMA or Super Smoother or WMA to set the synthetic close
โข Predictive Open. Inertial follow of the synthetic close plus a slope lead term
โข Wick Overshoot Model. Smoothed extension beyond the body, optional percent of real range, ATR cap
โข Clamp Option. Keeps synthetic open and close inside the real bar range
Fusion rule
โข Synthetic close equals filtered base
โข Synthetic open equals previous open plus inertia times distance to synthetic close plus slope lead
โข Wicks equal smoothed overshoot above and below the body, optionally percent of range then converted back to price and capped by ATR
Inputs with guidance
Setup
โข Signal timeframe. Uses the chart timeframe
โข Invert direction. Not applicable
โข Session windows. Not applicable
Logic
โข Body length. Core smoothing length for the synthetic close. Typical 6 to 14. Higher gives smoother and slower. Lower gives faster flips
โข Body method. ZLEMA or Super Smoother or WMA. ZLEMA is fastest. Super Smoother is calmest
โข Close weight in base. 0 to 1. Higher gives stronger emphasis on close and less noise
โข Open inertia. 0 to 1. Higher makes the open follow the close more tightly
โข Lead gain. 0 to 1. Higher adds more phase lead. Keep modest to avoid overshoot
โข Clamp body to real range. On keeps synthetic body inside high and low
โข Wick smooth length. Typical 4 to 10. Higher reduces jitter
โข Overshoot as percent. On stabilizes wicks across regimes
โข ATR length. Typical 10 to 20 for the cap
โข Max wick equals ATR times. 0 disables. 1.0 to 2.0 contains extreme tails
Filters
โข Efficiency or trend filter. Not used
โข Micro versus macro range relation. Not used
โข Location filter. Not used
Realism and responsible publication
โข No performance claims
โข Intrabar motion reminder. Shapes can move while a bar forms and settle on close
โข Strategies must use standard candles for signals and orders
Honest limitations and failure modes
โข High impact releases and thin liquidity can distort wicks and produce gaps that any smoother cannot predict
โข Very quiet regimes can reduce contrast. Consider longer body length
โข Session time on the chart controls the definition of each bar
Gold THB per Baht (XAU -> Thai baht gold)What it does
This indicator converts international gold prices (XAU) into Thai retail โbaht goldโ price (THB per 1 baht gold weight) in real time. It multiplies the XAU price (per troy ounce) by USD/THB and converts ounces to Thai baht-weight using the exact gram ratios.
Formula
THB per baht gold = XAU (USD/oz) ร USDTHB ร (15.244 / 31.1035) ร (1 + Adjustment%) + FlatFeeTHB
1 troy ounce = 31.1035 g
1 Thai baht gold = 15.244 g
Conversion factor โ 0.490103
FluxVector Liquidity Universal Trendline FluxVector Liquidity Trendline FFTL
Summary in one paragraph
FFTL is a single adaptive trendline for stocks ETFs FX crypto and indices on one minute to daily. It fires only when price action pressure and volatility curvature align. It is original because it fuses a directional liquidity pulse from candle geometry and normalized volume with realized volatility curvature and an impact efficiency term to modulate a Kalman like state without ATR VWAP or moving averages. Add it to a clean chart and use the colored line plus alerts. Shapes can move while a bar is open and settle on close. For conservative alerts select on bar close.
Scope and intent
โข Markets. Major FX pairs index futures large cap equities liquid crypto top ETFs
โข Timeframes. One minute to daily
โข Default demo used in the publication. SPY on 30min
โข Purpose. Reduce false flips and chop by gating the line reaction to noise and by using a one bar projection
โข Limits. This is a strategy. Orders are simulated on standard candles only
Originality and usefulness
โข Unique fusion. Directional Liquidity Pulse plus Volatility Curvature plus Impact Efficiency drives an adaptive gain for a one dimensional state
โข Failure mode addressed. One or two shock candles that break ordinary trendlines and saw chop in flat regimes
โข Testability. All windows and gains are inputs
โข Portable yardstick. Returns use natural log units and range is bar high minus low
โข Protected scripts. Not used. Method disclosed plainly here
Method overview in plain language
Base measures
โข Return basis. Natural log of close over prior close. Average absolute return over a window is a unit of motion
Components
โข Directional Liquidity Pulse DLP. Measures signed participation from body and wick imbalance scaled by normalized volume and variance stabilized
โข Volatility Curvature. Second difference of realized volatility from returns highlights expansion or compression
โข Impact Efficiency. Price change per unit range and volume boosts gain during efficient moves
โข Energy score. Z scores of the above form a single energy that controls the state gain
โข One bar projection. Current slope extended by one bar for anticipatory checks
Fusion rule
Weighted sum inside the energy score then logistic mapping to a gain between k min and k max. The state updates toward price plus a small flow push.
Signal rule
โข Long suggestion and order when close is below trend and the one bar projection is above the trend
โข Short suggestion and flip when close is above trend and the one bar projection is below the trend
โข WAIT is implicit when neither condition holds
โข In position states end on the opposite condition
What you will see on the chart
โข Colored trendline teal for rising red for falling gray for flat
โข Optional projection line one bar ahead
โข Optional background can be enabled in code
โข Alerts on price cross and on slope flips
Inputs with guidance
Setup
โข Price source. Close by default
Logic
โข Flow window. Typical range 20 to 80. Higher smooths the pulse and reduces flips
โข Vol window. Typical range 30 to 120. Higher calms curvature
โข Energy window. Typical range 20 to 80. Higher slows regime changes
โข Min gain and Max gain. Raise max to react faster. Raise min to keep momentum in chop
UI
โข Show 1 bar projection. Colors for up down flat
Properties visible in this publication
โข Initial capital 25000
โข Base currency USD
โข Commission percent 0.03
โข Slippage 5
โข Default order size method percent of equity value 3%
โข Pyramiding 0
โข Process orders on close off
โข Calc on every tick off
โข Recalculate after order is filled off
Realism and responsible publication
โข No performance claims
โข Intrabar reminder. Shapes can move while a bar forms and settle on close
โข Strategy uses standard candles only
Honest limitations and failure modes
โข Sudden gaps and thin liquidity can still produce fast flips
โข Very quiet regimes reduce contrast. Use larger windows and lower max gain
โข Session time uses the exchange time of the chart if you enable any windows later
โข Past results never guarantee future outcomes
Open source reuse and credits
โข None






















