Thai Gold BahtIndicator Name: Thai Gold Baht
Short Title: Thai Gold Baht
Purpose
This indicator calculates and visualizes the real-time price of 1 Thai Gold Baht (15.244 grams) based on the global gold price ( XAU/USD ) and the USD/THB exchange rate .
Users can customize gold weight and purity to simulate the local Thai gold market price.
What it does
Retrieves live gold price per troy ounce in USD
Retrieves current USD to Thai Baht exchange rate
Converts the value using user-defined weight and purity
Displays result as a real-time chart
Shows calculation details in the Data Window
Ideal for
Traders tracking Thai gold based on international prices
Analysts comparing local and global bullion markets
Anyone needing a configurable, transparent gold price conversion
Pine Script Functionality
// Uses XAU/USD and USD/THB as inputs
// Calculates 1 Baht Gold (96.5% default purity)
// Outputs the value in THB as a chart line
ชื่ออินดิเคเตอร์: Thai Gold Baht
ชื่อย่อ: Thai Gold Baht
วัตถุประสงค์
อินดิเคเตอร์นี้ใช้คำนวณและแสดงราคาทองคำไทย 1 บาท (15.244 กรัม) แบบเรียลไทม์
โดยอ้างอิงจากราคาทองคำในตลาดโลก ( XAU/USD ) และอัตราแลกเปลี่ยน USD/THB
ผู้ใช้สามารถกำหนดน้ำหนักทองและความบริสุทธิ์เองได้ เพื่อจำลองราคาทองคำในประเทศไทยอย่างแม่นยำ
สิ่งที่อินดิเคเตอร์นี้ทำ
ดึงราคาทองคำแบบเรียลไทม์ต่อทรอยออนซ์ในสกุลเงิน USD
ดึงอัตราแลกเปลี่ยน USD → THB แบบเรียลไทม์
คำนวณราคาจากน้ำหนักและเปอร์เซ็นต์ความบริสุทธิ์ที่ผู้ใช้กำหนด
แสดงผลลัพธ์เป็นกราฟแบบเรียลไทม์ในหน่วยบาทไทย
แสดงรายละเอียดการคำนวณในหน้าต่าง Data Window ของ TradingView
เหมาะสำหรับ
นักเทรดที่ต้องการติดตามราคาทองคำไทยจากราคาทองคำตลาดโลก
นักวิเคราะห์ที่เปรียบเทียบราคาทองคำในประเทศและต่างประเทศ
ผู้ใช้งานที่ต้องการการแปลงราคาทองคำระหว่างประเทศให้โปร่งใสและปรับแต่งได้
การทำงานของ Pine Script
// ใช้ข้อมูล XAU/USD และ USD/THB เป็นอินพุต
// คำนวณราคาทองคำไทย 1 บาท (ความบริสุทธิ์เริ่มต้นที่ 96.5%)
// แสดงผลเป็นเส้นกราฟของราคาทองคำในหน่วยบาทไทย
Komoditi
MGC, GLD, SLV Live Prices (Customizable)This indicator will allow you to see Gold and Silver prices while watching any other ticker on the market.
CL Live lotsize ROOSTERThis indicator helps futures traders manage risk with precision by dynamically calculating position size based on a fixed dollar risk.
🔻 Set a static stop-loss (e.g., 59.12)
📈 Define your desired Risk-Reward ratio (e.g., 1:3)
💵 Input your fixed account risk (e.g., $100)
The indicator then:
✅ Tracks the live market price to define entry
✅ Automatically calculates the correct contract size based on your stop-loss and risk
✅ Plots visual risk/reward zones (green for target, red for stop)
✅ Displays a live-updating lot size label on the chart
✅ Supports both long and short trade setups
Perfect for traders looking to stay consistent with risk management while adapting to market conditions in real time.
Avg Session & Daily Volatility (Pips) - Forex/CFDS🔍 Overview
The Avg Session & Daily Volatility (Pips) indicator measures the average High–Low range (volatility) of three major Forex sessions—Asia, London, New York—and the entire trading day, then displays the results in a compact overlay table.
⚙️ Key Features
Session Windows
Asia: Default 23:00 – 07:00 server time
London: 07:00 – 16:00
New York: 13:00 – 22:00
Daily Range
– Tracks the full High–Low from midnight to midnight.
Flexible Lookback
– Choose 1W / 2W / 4W / 8W (≈ 5 / 10 / 20 / 40 trading days)
Pip Conversion
Forex Pairs: 1 pip = 0.0001 → (ticks / mintick) / 10
XAU/USD (Gold): 1 pip = 1 USD → direct price difference
Custom Styling
– Pick your own colors per session & daily
– Table position: Left/Center/Right × Top/Middle/Bottom
📈 Benefits & Use Cases
Optimal Stop-Loss & Take-Profit
Gauge each session’s typical movement to size SL/TP appropriately.
Intraday Performance Check
Compare your real-time trade swings against historical averages.
Risk Management
Align position sizes with average volatility to control risk.
Multi-Asset Support
Works seamlessly for major Forex pairs and Gold (XAU/USD) thanks to smart pip logic.
🚀 How It Works
Session Scanning – Continuously tracks the session’s high and low.
Array Storage – At session close, calculates range in pips and pushes it into a rolling buffer.
Averaging – Computes the arithmetic mean of the last N values (your chosen lookback).
Visualization – Paints the four averages in a neat 2×5 table overlay.
👍 Pro Tips
Check Your Time Zone – Make sure chart timezone matches your broker’s session times.
Tweak Lookback – Use shorter windows (1W) to react quickly; longer (4–8W) to smooth out outliers.
Combine Indicators – Pair with volume or trend tools for deeper insights.
Happy Trading,
Riseofatrader
Gold Dominance vs BitcoinThis script calculates Gold Dominance as the percentage of gold’s market cap relative to the combined market cap of gold and Bitcoin.
It uses the XAU/USD spot price to estimate gold’s total valuation (based on 6.75 billion ounces in circulation).
Bitcoin market cap is pulled directly from TradingView’s CRYPTOCAP:BTC feed.
Useful for tracking macro trends, portfolio positioning, and potential mean-reversion setups.
Gold/Silver RatioOverview
This indicator displays the Gold/Silver Ratio by dividing the price of gold (XAUUSD) by the price of silver (XAGUSD) on the same timeframe. It is a widely used tool in macroeconomic and precious metals analysis, helping traders and investors evaluate the relative value of gold compared to silver.
📈 What it does
Plots the ratio between gold and silver prices as a line on the chart.
Displays two key horizontal levels:
Overbought level at 90 (dashed red line).
Oversold level at 70 (dashed green line).
Highlights the chart background to show extreme conditions:
Red shading when the ratio exceeds 90 (gold is likely overvalued relative to silver).
Green shading when the ratio drops below 70 (silver is likely overvalued relative to gold).
🧠 How to Use
When the ratio exceeds 90, it suggests that gold may be overbought or silver may be undervalued. Historically, these have been good times to consider shifting exposure from gold to silver.
When the ratio falls below 70, it may indicate silver is overbought or gold is undervalued.
This tool is best used in conjunction with technical analysis, macroeconomic trends, or RSI/Bollinger Bands applied to the ratio.
⚙️ Inputs
This version of the script uses OANDA's XAUUSD and XAGUSD pairs for spot gold and silver prices. You may edit the request.security() calls to change data sources (e.g., FXCM, FOREXCOM, or CFD tickers from your broker).
✅ Best For:
Macro traders
Commodity investors
Ratio and spread traders
Long-term portfolio reallocators
Global M2 [BizFing]MARKETSCOM:BITCOIN ECONOMICS:USM2
This is an indicator designed to show the correlation between the global M2 money supply and Bitcoin.
This indicator basically provides a Global M2 index by summing the M2 money supply data from the United States, South Korea, China, Japan, the EU, and the United Kingdom.
Furthermore, it is configured to allow you to add or remove the M2 data of desired countries within the settings.
I hope this proves to be a small aid in predicting the future price of Bitcoin.
If you have any questions or require any improvements while using it, please feel free to contact me.
Thank you.
Planting & Harvesting SeasonsHello all,
as a commodity trader, I use a lot of seasonal patterns in my analysis. Some time ago, I came up with the idea to develop a simple script that visually overlays the typical planting and harvesting periods for key agricultural futures directly on the chart.
This script automatically detects the underlying commodity based on the symbol (e.g. ZC, ZW, ZS, CT) and displays color-coded zones for each seasonal window. These zones are based on historical crop calendars and help identify when planting or harvesting typically takes place. The goal is to better align technical setups with fundamental seasonal factors.
This is a basic version and meant as a visual aid — not a trading signal in itself.
Hope you enjoy it and any feedback is highly appreciated!
Gas/Oil SpreadGas/Oil Spread Analyzer with Static Overbought/Oversold Zones
This indicator measures the spread between the actual price of natural gas and its oil-based equivalent, derived from a defined oil/gas ratio. It helps traders identify potential mispricings and mean-reversion opportunities between the two energy commodities.
Key Features:
- Calculates spread: Gas Price – Oil-Based Equivalent Price
- Supports dynamic or static oil/gas ratio
- Plots a smoothed version of the spread (SMA)
- Displays static overbought and oversold zones to highlight extreme deviations
Use Cases:
- Detect overvalued or undervalued gas relative to oil
- Spot potential reversion setups in intermarket trading
- Evaluate energy market dislocations and hedging opportunities
Oil/gas ratio MAOil/Gas Ratio-Based Equivalent Price
This indicator calculates the gas-equivalent price based on the current oil price and a defined oil/gas ratio. It helps identify relative overvaluation or undervaluation of natural gas compared to oil.
Features:
- Choose between a static or dynamic (SMA-based) oil/gas ratio
- Displays the fair value of gas derived from oil prices
- Works with any oil ticker symbol (e.g. BRENT, USOIL, etc.)
Useful for traders analyzing intermarket relationships and looking for relative value signals between energy commodities.
Reversal Strength Meter – Adib NooraniThe Reversal Strength Meter is an oscillator designed to identify potential reversal zones based on supply and demand dynamics. It uses smoothed stochastic logic to reduce noise and highlight areas where momentum may be weakening, signaling possible market turning points.
🔹 Smooth, noise-reduced stochastic oscillator
🔹 Custom zones to highlight potential supply and demand imbalances
🔹 Non-repainting, compatible across all timeframes and assets
🔹 Visual-only tool — intended to support discretionary trading decisions
This oscillator assists scalpers and intraday traders in tracking subtle shifts in momentum, helping them identify when a market may be preparing to reverse — always keeping in mind that trading is based on probabilities, not certainties.
📘 How to Use the Indicator Efficiently
For Reversal Trading:
Buy Setup
– When the blue line dips below the 20 level, wait for it to re-enter above 20.
– Look for reversal candlestick patterns (e.g., bullish engulfing, hammer, or morning star).
– Enter above the pattern’s high, with a stop loss below its low.
Sell Setup
– When the blue line rises above the 80 level, wait for it to re-enter below 80.
– Look for bearish candlestick patterns (e.g., bearish engulfing, inverted hammer, or evening star).
– Enter below the pattern’s low, with a stop loss above its high.
🛡 Risk Management Guidelines
Risk only 0.5% of your capital per trade
Book 50% profits at a 1:1 risk-reward ratio
Trail the remaining 50% using price action or other supporting indicators
Reversal Scalping Ribbon - Adib NooraniThe Reversal Scalping Ribbon is a trend-following overlay tool designed to visually identify potential reversal zones based on price extremes and dynamic volatility bands. It calculates adaptive upper and lower bands using price action and custom ATR logic, helping traders quickly assess market direction and possible turning points
🔹 Volatility-adjusted bands based on price highs/lows
🔹 Color-coded ribbons to indicate trend bias and potential reversal shifts
🔹 No repainting, works on all timeframes and assets
🔹 Visual-only display, no trade signals — supports discretion-based entries
This ribbon is designed for scalpers and intraday traders to spot reversal setups with clarity. It enhances your trading by showing real-time market bias without unnecessary distractions. By focusing on probabilities, it helps to improve decision-making in fast-paced environments
How to use the indicator efficiently
For Reversal Trading:
Buy: When price closes below the green ribbon with a red candle, then re-enters with a green candle. Enter above the high of the green candle with a stop loss below the lowest low of the recent green/red candles
Sell: When price closes above the red ribbon with a green candle, then re-enters with a red candle. Enter below the low of the red candle with a stop loss above the highest high of the recent red/green candles
Risk Management:
Limit risk to 0.5% of your capital per trade
Take 50% profit at a 1:1 risk-reward ratio
For the remaining 50%, trail using the lower edge of the green band for buys and the upper edge of the red band for sells
BeSight Mega SpotBeSight Mega Spot – Zone Based Price Grid Indicator
สคริปต์นี้ถูกออกแบบมาเพื่อช่วยเทรดเดอร์มองเห็นโซนราคาสำคัญที่ราคาอาจเกิดปฏิกิริยา โดยอ้างอิงจากระดับราคาที่ลงท้ายด้วย 0 และ 5 (เช่น 1350, 1355, 1360 เป็นต้น) ซึ่งมักเป็นระดับที่มีการตั้งคำสั่งซื้อขายจำนวนมากในตลาด
BeSight Mega Spot – Zone-Based Price Grid Indicator
This indicator is designed to help traders visualize key price zones where the market often reacts, based on price levels ending with 0 or 5 (e.g., 1350, 1355, 1360). These levels are commonly used for pending orders, liquidity, or price clustering zones.
It displays horizontal grid lines at fixed step intervals (default: every 5 points), covering the entire visible price range of the chart. Each price level is labeled for better clarity and planning.
🟦 Blue lines: Price levels ending in 0
⬜ Gray lines: Price levels ending in 5
This tool is useful for identifying potential institutional behavior zones, price consolidation, accumulation/distribution areas, or psychological support/resistance levels.
🧠 Notes:
- This indicator is not a buy/sell signal tool or predictive system.
- It works best when used in conjunction with other technical tools such as Supply/Demand zones or Smart Money Concepts (SMC) analysis.
- Compatible with all instruments: stocks, futures, forex, crypto, etc.
✅ How to use:
1. Add the indicator to your chart
2. Observe how price interacts with the 0/5 grid zones
3. Use the lines to assist with breakout, retest, or reversal planning
4. Combine with price action or other indicators for higher precision
✨ Developed by BeSight – A Community Of Traders
---------------------------------------------------------------------------------------
อินดิเคเตอร์นี้จะแสดงเส้นแนวนอนแบบตาราง (Grid) ที่แบ่งช่วงราคาออกเป็นระยะ ๆ ตามค่าที่ผู้ใช้กำหนด เช่น ทุก ๆ 5 จุด และครอบคลุมช่วงราคาทั้งหมดของกราฟ โดยแสดงเป็นเส้นแบบ dotted พร้อมป้ายราคาเพื่อให้มองเห็นได้ชัดเจน
🟦 เส้นสีน้ำเงิน: แสดงระดับราคาที่ลงท้ายด้วย 0
⬜ เส้นสีเทา: แสดงระดับราคาที่ลงท้ายด้วย 5
เหมาะสำหรับผู้ที่ต้องการดูโซนราคา "หยุดพัก / เก็บของ / เปิดโพซิชัน" ซึ่งอาจสะท้อนพฤติกรรมของผู้เล่นรายใหญ่หรือสถาบันในตลาด
🧠 ข้อควรรู้:
- อินดิเคเตอร์นี้ไม่ได้บอกจุดเข้าเทรดหรือการคาดการณ์ แต่ช่วยในการวางแผนแนวรับ-แนวต้านร่วมกับเครื่องมือวิเคราะห์อื่น ๆ
- รองรับทุกสินทรัพย์ที่มีหน่วยราคาคงที่ (หุ้น, ฟิวเจอร์ส, ฟอเร็กซ์, คริปโต ฯลฯ)
✅ วิธีใช้งาน:
1. เพิ่มอินดิเคเตอร์นี้ลงบนกราฟ
2. ใช้เส้น Grid เป็นแนวประกอบในการดูพฤติกรรมราคา เช่น การหยุดลง, การเบรกแนว, การกลับตัว
3. ผสมผสานกับโซน Demand/Supply หรือโซน SMC เพื่อความแม่นยำ
✨ พัฒนาโดย BeSight – คอมมูนิตี้ของเทรดเดอร์ตัวจริง
Breaking Structures (javieresfeliz)This TradingView script is designed to identify market structure changes, using a break of highs and lows approach, as well as technical indicators such as ATR, RSI, and EMAs (Exponential Moving Averages). It is aimed at detecting bullish and bearish trends, signaling possible entry and exit points based on various factors. It also offers additional confirmations to avoid false signals and provides a clear visualization of buy and sell signals.
Main Features:
Indicators Used:
ATR (Average True Range): Used to calculate a volatility range, which helps set stop-loss levels and price targets based on the current market volatility.
EMAs (50 and 200): Exponential Moving Averages (EMAs) are used to determine the short-term and long-term trends. The 50-period EMA is used to identify the short-term trend, while the 200-period EMA is used to identify the long-term trend.
RSI (Relative Strength Index): Used to identify overbought or oversold conditions in the market, providing additional buy or sell signals.
Volume: Used to confirm the validity of a signal. An increase in volume can confirm a structure break and provide more reliability to the signal.
Break of Structure Detection (BOS):
Bullish Break: Generated when the price surpasses previous highs.
Bearish Break: Generated when the price falls below previous lows.
Change of Character (CHOCH):
Bullish Trend: Defined by a close above the open and above the 50 EMA.
Bearish Trend: Defined by a close below the open and below the 50 EMA.
Buy and Sell Conditions:
Buy (Long): Activated when several conditions are met, including a bullish change of character, a bullish structure break, the price closing above the previous value plus a multiple of the ATR, and additional confirmations from RSI and volume.
Sell (Short): Activated when several conditions are met, including a bearish change of character, a bearish structure break, the price closing below the previous value minus a multiple of the ATR, with additional confirmations from RSI and volume.
Entry and Exit Signals:
Long Entry (Buy): Executed when the buy conditions are met.
Short Entry (Sell): Executed when the sell conditions are met.
Position Close: Positions are closed when the price crosses below (for long positions) or above (for short positions) the 50 EMA.
Historical Highs and Lows Lines:
The script draws lines of historical highs and lows from the last 288 and 60 periods to show key support and resistance levels on the chart.
Signal Table Across Multiple Timeframes:
The script displays a table in the top-right corner of the chart with indicators like the EMA trend, RSI value, and MACD histogram for timeframes of 1 minute, 5 minutes, 30 minutes, 1 hour, 4 hours, daily, and weekly.
Precautions:
Does not guarantee profits: Although the script is designed to detect structure breaks and possible trend changes, it does not guarantee 100% profitable signals. The market is always subject to risk and unpredictable volatility.
Requires adjustments for each asset: Parameters such as ATR length and EMA lengths should be adjusted according to the asset being analyzed and market conditions.
Use of additional confirmations: To reduce false signals, the script uses additional confirmations like RSI and volume, but it is always recommended to perform additional analysis before making trading decisions.
Changing trends: The change of character (CHOCH) can be a useful indicator, but it can give false signals in highly volatile markets or during prolonged consolidations.
Relies on historical data: This script relies on historical data to identify highs and lows. It does not consider fundamental events that may significantly impact the market.
Requires constant monitoring: Although the signals are automated, it is important to monitor open positions and make adjustments if market conditions change.
Risk of false signals: In low liquidity markets or consolidations, structure breaks can be false, so it’s recommended to pay attention to any additional confirmation signals or use a proper risk management strategy.
Volumen trend indicator 5MVOLUMEN TREND INDICATOR
Introduction
This indicator on TradingView provides a combination of technical analysis through a data table and visual elements on the chart. Its purpose is to provide a comprehensive view of the analyzed asset, facilitating decision-making.
How It Works
The indicator operates on two levels:
Data Table:
Displays key information about the asset's trend.
Includes metrics such as the current price, percentage change, volatility, and other relevant variables.
Can be customized to include additional indicators as needed.
Provides a quick analysis without the need to interpret complex charts.
Technical Elements on the Chart:
Incorporates dynamic support and resistance lines.
Can include moving averages, Bollinger Bands, RSI, or other custom indicators.
Offers visual alerts for significant changes in the asset's trend.
Facilitates detailed technical analysis through direct observation of patterns and signals.
Default Technical Indicators
The indicator comes with the following default pre-configured technical indicators:
Exponential Moving Average (EMA) 9:
This EMA responds more quickly to price movements, making it ideal for identifying short-term trends. It is generally used to detect crossovers with other EMAs or prices and is considered an entry or exit signal.
Exponential Moving Average (EMA) 21:
The 21-period EMA is used to identify medium-term trends. Its interaction with the 9 EMA is key to confirming buy or sell signals when both cross.
RSI (Relative Strength Index):
It is used to measure the magnitude of recent gains and losses of an asset, helping to identify overbought or oversold conditions.
Bollinger Bands:
These bands help identify volatility levels and potential reversal points. Price touching the upper or lower bands can be an important signal of trend change or continuation.
Customization
The user can modify several aspects of the indicator, such as:
Colors and styles of visual elements on the chart.
Types of indicators to include in the table.
Configuration of alerts and notifications.
Time interval for calculations and data updates.
EMA values (the periods can be changed if other configurations are desired).
Recommended Usage
To make the most of the indicator:
Use the data table to get an overview of the asset.
Analyze the technical elements on the chart to confirm trends.
Set alerts to avoid missing key opportunities.
Compare the information with other indicators and data sources before making decisions.
Precautions and Best Practices
Avoid relying solely on the indicator: Complement it with other technical and fundamental analysis.
Adjust the settings according to the asset's volatility: Not all strategies work the same across different markets.
Don’t overload the chart with too many elements: This can create visual noise and confusion in interpretation.
Test it on a demo account before trading live: To familiarize yourself with the indicator's functionality and adjustments.
----------------------------------------------
Remember that no system is perfect, keep these considerations in mind for this indicator:
Do not trade when a signal appears during an opposite trend:
Do not trade when the market is uncertain in its direction or within a parallel channel:
RiskCalc FX & GoldRiskCalc FX & Gold is a multi-market position sizing tool designed to help you manage risk quickly and accurately. With this script, simply enter your account capital, the percentage of risk you wish to take, and your stop in ticks. Depending on the selected market—Forex or XAUUSD—the script automatically adjusts its calculations:
Forex: Assumes 1 lot equals 100,000 units.
XAUUSD: Assumes 1 lot equals 100 ounces.
The script calculates your risk in dollars and, using a fixed value of 1 USD per tick per lot, determines the ideal position size in both lots and total contracts. Results are displayed in a clear, centralized table at the top of the chart for real-time decision-making.
Perfect for traders operating across multiple markets who need an automated and consistent approach to risk management.
Economic Crises by @zeusbottradingEconomic Crises Indicator by @zeusbottrading
Description and Use Case
Overview
The Economic Crises Highlight Indicator is designed to visually mark major economic crises on a TradingView chart by shading these periods in red. It provides a historical context for financial analysis by indicating when major recessions occurred, helping traders and analysts assess the performance of assets before, during, and after these crises.
What This Indicator Shows
This indicator highlights the following major economic crises (from 1953 to 2020), which significantly impacted global markets:
• 1953 Korean War Recession
• 1957 Monetary Tightening Recession
• 1960 Investment Decline Recession
• 1969 Employment Crisis
• 1973 Oil Crisis
• 1980 Inflation Crisis
• 1981 Fed Monetary Policy Recession
• 1990 Oil Crisis and Gulf War Recession
• 2001 Dot-Com Bubble Crash
• 2008 Global Financial Crisis (Great Recession)
• 2020 COVID-19 Recession
Each of these periods is shaded in red with 80% transparency, allowing you to clearly see the impact of economic downturns on various financial assets.
How This Indicator is Useful
This indicator is particularly valuable for:
✅ Comparative Performance Analysis – It allows traders and investors to compare how different assets (e.g., Gold, Silver, S&P 500, Bitcoin) performed before, during, and after major economic crises.
✅ Identifying Market Trends – Helps recognize recurring patterns in asset price movements during times of financial distress.
✅ Risk Management & Strategy Development – Understanding how markets reacted in the past can assist in making better-informed investment decisions for future downturns.
✅ Gold, Silver & Bitcoin as Safe Havens – Comparing precious metals and cryptocurrencies against traditional stocks (e.g., SPY) to analyze their performance as hedges during economic turmoil.
How to Use It in Your Analysis
By overlaying this indicator on your Gold, Silver, SPY, and Bitcoin chart (for example), you can quickly spot historical market reactions and use that insight to predict possible behaviors in future downturns.
⸻
How to Apply This in TradingView?
1. Click on Use on chart under the image.
2. Overlay it with Gold ( OANDA:XAUUSD ), Silver ( OANDA:XAGUSD ), SPY ( AMEX:SPY ), and Bitcoin ( COINBASE:BTCUSD ) for comparative analysis.
⸻
Conclusion
This indicator serves as a powerful historical reference for traders analyzing asset performance during economic downturns. By studying past crises, you can develop a data-driven investment strategy and improve your market insights. 🚀📈
Let me know if you need any modifications or enhancements!
Volume Delta & Order Block Suite [QuantAlgo]Upgrade your volume analysis and order flow trading with Volume Delta & Order Block Suite by QuantAlgo, a sophisticated technical indicator that leverages advanced volume delta calculations, along with dynamic order block detection to provide deep insights into market participant behavior. By calculating the distribution of volume between buyers and sellers and tracking pivotal volume zones, the indicator helps traders understand the underlying forces driving price movements. It is particularly valuable for those looking to identify high-probability trading opportunities based on volume imbalances and key price levels where significant activity has occurred.
🟢 Technical Foundation
The Volume Delta & Order Block Suite utilizes sophisticated volume analysis techniques to estimate buying and selling pressure within each price candle. The core volume delta calculation employs a formula that estimates buy volume as: Volume × (Close - Low) ÷ (High - Low) , with sell volume calculated as the remainder of total volume. This approach assumes that when price closes near the high of a candle, most volume represents buying pressure, and when price closes near the low, most volume represents selling pressure.
For order block detection, the indicator implements a multi-step process involving volume pivot identification and price state tracking. It first detects significant volume pivot points using the ta.pivothigh function with a user-defined pivot period. It then tracks the market's order state based on whether the high exceeds the highest high or the low falls below the lowest low. When a volume pivot occurs, the indicator creates order blocks based on price levels at that pivot point. These blocks are continuously monitored for invalidation based on subsequent price action.
🟢 Key Features & Signals
1. Volume Delta Representation on Candles
The Volume Delta visualization on candles shows the buy/sell distribution directly on price bars, creating an immediate visual representation of volume pressure.
When buyers are dominant, candles are colored with the bullish theme color (default: green/teal).
Similarly, when sellers are dominant, candles are colored with the bearish theme color (default: red).
This visualization provides immediate insights into underlying volume pressure without requiring separate indicators, helping traders quickly identify which side of the market is in control.
2. Buy/Sell Pressure Information Table
The Volume Analysis Table provides a comprehensive breakdown of volume metrics across multiple timeframes, helping traders identify shifts in market behavior.
The table is organized into four timeframe columns:
Current Volume
1 Bar Before
1 Day Before
1 Week Before
For each timeframe, the table displays:
Buy volume: The estimated buying volume based on price action
Sell volume: The estimated selling volume based on price action
Total volume: The sum of buy and sell volume
Delta: The difference between buy and sell volume (positive when buyers are dominant, negative when sellers are dominant)
Additionally, the table shows both absolute values and percentage distributions, with trend indicators (Up, Down, or Neutral) at the bottom row of each timeframe column.
This multi-timeframe approach helps traders:
→ Identify volume imbalances between buyers and sellers
→ Track changes in volume delta across different periods
→ Compare current conditions with historical patterns
→ Detect potential reversals by watching for shifts in delta direction
The delta values are particularly useful as they provide a clear indication of market dominance – positive delta (Up) when buyers are dominant, and negative delta (Down) when sellers are dominant.
3. Order Blocks and Their Confluence
Order blocks represent significant price zones where volume pivots occur, potentially indicating areas of significant market participant activity.
The indicator identifies two types of order blocks:
Bullish Order Blocks (support): Highlighted with a green/teal color, these represent potential support areas where price might bounce when revisited
Bearish Order Blocks (resistance): Highlighted with a red color, these represent potential resistance areas where price might reverse when revisited
Each order block is visualized as a colored rectangle with a dashed line showing the average price within the block. The blocks are extended to the right until they are invalidated.
Order blocks can serve as key reference points for trading decisions, for example:
Support/resistance identification
Stop loss placement (beyond the opposite edge of the block)
Potential reversal zones
Target areas for profit-taking
When price approaches an order block, traders should look for confluence with the volume delta on candles and the information in the volume analysis table. Strong setups occur when all three components align – for example, when price approaches a bearish order block with increasing sell volume shown on the candles and in the volume table.
🟢 Practical Usage Tips
→ Volume Analysis and Interpretation: The indicator visualizes the buy/sell volume ratio directly on price candles using color intensity, allowing traders to immediately identify which side (buyers or sellers) is dominant. This information helps in assessing the strength behind price movements and potential continuation or reversal signals.
→ Order Block Trading Strategies: The indicator highlights significant price zones where volume pivots occur, marking these as potential support (bullish order blocks) or resistance (bearish order blocks). Traders can use these levels to identify potential reversal points, stop placement, and profit targets.
→ Multi-timeframe Volume Comparison: Through its comprehensive volume analysis table, the indicator enables traders to compare volume patterns across current, recent, daily, and weekly timeframes. This helps in identifying shifts in market behavior and confirming the strength of ongoing trends.
🟢 Pro Tips
Adjust Pivot Period based on your timeframe:
→ Lower values (3-5) for more frequent order blocks
→ Higher values (7-10) for stronger, less frequent order blocks
Fine-tune Mitigation Method based on your trading style:
→ "Wick" for more conservative invalidation
→ "Close" for more lenient order block survival
Look for confluence between components:
→ Strong volume delta in the expected direction when price touches an order block
→ Corresponding patterns in the volume analysis table
→ Overall market context aligning with the expected direction
Use for multiple trading approaches:
→ Support/resistance trading at order blocks
→ Trend confirmation with volume delta
→ Reversal detection when volume delta changes direction
→ Stop loss placement using order block boundaries
Combine with:
→ Trend analysis using trend-following indicators for trade confirmation
→ Multiple timeframe analysis for strategic context
MACD Volume Strategy for XAUUSD (15m) [PineIndicators]The MACD Volume Strategy is a momentum-based trading system designed for XAUUSD on the 15-minute timeframe. It integrates two key market indicators: the Moving Average Convergence Divergence (MACD) and a volume-based oscillator to identify strong trend shifts and confirm trade opportunities. This strategy uses dynamic position sizing, incorporates leverage customization, and applies structured entry and exit conditions to improve risk management.
⚙️ Core Strategy Components
1️⃣ Volume-Based Momentum Calculation
The strategy includes a custom volume oscillator to filter trade signals based on market activity. The oscillator is derived from the difference between short-term and long-term volume trends using Exponential Moving Averages (EMAs)
Short EMA (default = 5) represents recent volume activity.
Long EMA (default = 8) captures broader volume trends.
Positive values indicate rising volume, supporting momentum-based trades.
Negative values suggest weak market activity, reducing signal reliability.
By requiring positive oscillator values, the strategy ensures momentum confirmation before entering trades.
2️⃣ MACD Trend Confirmation
The strategy uses the MACD indicator as a trend filter. The MACD is calculated as:
Fast EMA (16-period) detects short-term price trends.
Slow EMA (26-period) smooths out price fluctuations to define the overall trend.
Signal Line (9-period EMA) helps identify crossovers, signaling potential trend shifts.
Histogram (MACD – Signal) visualizes trend strength.
The system generates trade signals based on MACD crossovers around the zero line, confirming bullish or bearish trend shifts.
📌 Trade Logic & Conditions
🔹 Long Entry Conditions
A buy signal is triggered when all the following conditions are met:
✅ MACD crosses above 0, signaling bullish momentum.
✅ Volume oscillator is positive, confirming increased trading activity.
✅ Current volume is at least 50% of the previous candle’s volume, ensuring market participation.
🔻 Short Entry Conditions
A sell signal is generated when:
✅ MACD crosses below 0, indicating bearish momentum.
✅ Volume oscillator is positive, ensuring market activity is sufficient.
✅ Current volume is less than 50% of the previous candle’s volume, showing decreasing participation.
This multi-factor approach filters out weak or false signals, ensuring that trades align with both momentum and volume dynamics.
📏 Position Sizing & Leverage
Dynamic Position Calculation:
Qty = strategy.equity × leverage / close price
Leverage: Customizable (default = 1x), allowing traders to adjust risk exposure.
Adaptive Sizing: The strategy scales position sizes based on account equity and market price.
Slippage & Commission: Built-in slippage (2 points) and commission (0.01%) settings provide realistic backtesting results.
This ensures efficient capital allocation, preventing overexposure in volatile conditions.
🎯 Trade Management & Exits
Take Profit & Stop Loss Mechanism
Each position includes predefined profit and loss targets:
Take Profit: +10% of risk amount.
Stop Loss: Fixed at 10,100 points.
The risk-reward ratio remains balanced, aiming for controlled drawdowns while maximizing trade potential.
Visual Trade Tracking
To improve trade analysis, the strategy includes:
📌 Trade Markers:
"Buy" label when a long position opens.
"Close" label when a position exits.
📌 Trade History Boxes:
Green for profitable trades.
Red for losing trades.
📌 Horizontal Trade Lines:
Shows entry and exit prices.
Helps identify trend movements over multiple trades.
This structured visualization allows traders to analyze past performance directly on the chart.
⚡ How to Use This Strategy
1️⃣ Apply the script to a XAUUSD (Gold) 15m chart in TradingView.
2️⃣ Adjust leverage settings as needed.
3️⃣ Enable backtesting to assess past performance.
4️⃣ Monitor volume and MACD conditions to understand trade triggers.
5️⃣ Use the visual trade markers to review historical performance.
The MACD Volume Strategy is designed for short-term trading, aiming to capture momentum-driven opportunities while filtering out weak signals using volume confirmation.
MATA GOLD RATIOMata Gold Instrument: User Guide
The Instrument to Gold Oscillator is a technical analysis tool that normalizes the ratio of an instrument's price (e.g., BTC/USD) to the price of gold (XAU/USD) into a 0-100 scale. This provides a clear and intuitive way to evaluate the relative performance of an instrument compared to gold over a specified period.
---
How It Works
1. Calculation of the Ratio:
The ratio is calculated as:
\text{Ratio} = \frac{\text{Instrument Price}}{\text{Gold Price}}
2. Normalization:
The ratio is normalized using the highest and lowest values over a user-defined period (length), typically 14 periods:
\text{Normalized Ratio} = \frac{\text{Ratio} - \text{Min(Ratio)}}{\text{Max(Ratio)} - \text{Min(Ratio)}} \times 100
3. Overbought/Oversold Levels:
Above 80: The instrument is relatively expensive compared to gold (overbought).
Below 20: The instrument is relatively cheap compared to gold (oversold).
---
How to Use the Oscillator
1. Identify Overbought and Oversold Levels:
If the oscillator rises above 80, the instrument may be overvalued relative to gold. This could signal a potential reversal or correction.
If the oscillator falls below 20, the instrument may be undervalued relative to gold. This could signal a buying opportunity.
2. Track Trends:
Rising oscillator values indicate the instrument is gaining value relative to gold.
Falling oscillator values indicate the instrument is losing value relative to gold.
3. Crossing the Midline (50):
When the oscillator crosses above 50, the instrument's value is gaining strength relative to gold.
When it crosses below 50, the instrument is weakening relative to gold.
4. Combine with Other Indicators:
Use this oscillator alongside other technical indicators (e.g., RSI, MACD, STOCH) for more robust decision-making.
Confirm signals from the oscillator with price action or volume analysis.
---
Example Scenarios
1. Trading Cryptocurrencies Against Gold:
If BTC/USD's oscillator value is above 80, Bitcoin may be overvalued relative to gold. Consider reducing exposure or looking for short opportunities.
If BTC/USD's oscillator value is below 20, Bitcoin may be undervalued relative to gold. This could be a good time to accumulate.
2. Commodities vs. Gold:
Analyze the relative strength of commodities (e.g., oil, silver) against gold using the oscillator to identify periods of overperformance or underperformance.
---
Advantages of the Oscillator
Relative Performance Insight: Tracks the performance of an instrument relative to gold, providing a macro perspective.
Clear Visual Representation: The 0-100 scale makes it easy to identify overbought/oversold conditions and trend shifts.
Customizable Periods: The user-defined length allows flexibility in analyzing short- or long-term trends.
---
Limitations
Dependence on Gold: As the oscillator is based on gold prices, any external shocks to gold (e.g., geopolitical events) can influence its signals.
No Absolute Buy/Sell Signals: The oscillator should not be used in isolation but as part of a broader analysis strategy.
---
By using the Instrument to Gold Oscillator effectively, traders and investors can gain valuable insights into the relative valuation and performance of assets compared to gold, enabling more informed trading and investment decisions.
Fractal levels Gold [AstroHub]This indicator detects key fractal points on a price chart and visually marks them with shapes and levels. It helps traders identify potential reversal zones and dynamic support/resistance levels, enhancing market analysis.
Key Features:
Fractal Detection:
The indicator identifies top and bottom fractals using a 5-bar pattern.
A top fractal forms when the middle bar has a higher high compared to the two bars on either side.
A bottom fractal forms when the middle bar has a lower low compared to the two bars on either side.
Fractal Filtering:
The indicator can filter out "pristine" fractals (uninterrupted fractal patterns) based on custom conditions, making it more selective and reducing false signals.
Fractal Plotting:
are plotted as downward triangles.
are plotted as upward triangles.
Users can choose to display or hide fractal points and their corresponding labels.
Fractal Levels:
The indicator automatically plots fractals' levels on the chart, marking potential resistance and support zones.
Fractal levels change dynamically as new fractals are identified.
Customizable Display Options:
Show or hide fractals and levels with adjustable settings.
Choose whether to apply filtering for pristine fractals.
Display the pivot labels to easily track fractal positions.
How It Works:
The indicator uses a simple approach to recognize top and bottom fractals . When a valid fractal is detected, it highlights it on the chart and plots the corresponding price level.
By default, top fractals are shown above the bars (red color), and bottom fractals are shown below the bars (green color).
Fractal levels represent potential reversal points and can act as dynamic support and resistance zones.
Best Use:
The indicator is particularly useful in identifying reversal points and trend changes, helping traders to spot key price levels.
It can be used across various timeframes and markets, particularly for trend-following or reversal strategies.
Customizable Settings:
Show Pivots: Toggle the display of pivot points.
Show Pivot Labels: Display labels for pivot levels.
Show Fractals: Toggle fractal points on the chart.
Show Fractal Levels: Show or hide the levels corresponding to the detected fractals.
Filter for Pristine Fractals: Enable this option to filter out non-pristine fractals for higher accuracy.
Conclusion:
This indicator provides clear, actionable fractal signals, helping traders easily identify critical levels for entry and exit. With customizable settings and visual cues, it's suitable for both novice and expe
Market Anomaly Detector (MAD)Market Anomaly Detector (MAD) Indicator - Detailed Description:
The Market Anomaly Detector (MAD) Indicator is a unique tool designed to identify potential market anomalies by combining several price action-based and momentum indicators. This indicator is especially useful for traders who seek to identify significant market shifts and anomalies before they become visible in conventional technical indicators.
Key Features of the MAD Indicator:
1. Z-Score Threshold for Anomaly Detection:
• The Z-Score measures how far a current price is from its average over a defined period, normalized by standard deviation. This allows the MAD indicator to detect outliers or anomalies in price movements.
• By adjusting the Z-Score Threshold, traders can tune the sensitivity of the indicator to capture only the most significant price deviations, filtering out noise and reducing false signals.
2. Volume and Liquidity Filter:
• Volume is a key indicator of market participation and sentiment. The MAD Indicator uses a volume multiplier to assess when price movements are supported by sufficient trading volume.
• A volume spike is identified when the current volume exceeds the average volume by a certain multiplier. This ensures that only high-confidence signals are generated, particularly useful for spotting trend reversals and breakout opportunities.
3. Signal Cooldown Period:
• To prevent overfitting and reduce false signals, a signal cooldown period is implemented. Once a buy or sell signal is triggered, the indicator waits for a specified number of bars (e.g., 5) before triggering another signal, even if the price action meets the criteria for a new signal. This helps maintain a cleaner trading environment and avoids confusion when the market is volatile.
4. Upper and Lower Bands for Trend Confirmation:
• The MAD Indicator uses bands based on the mean price and standard deviation, similar to Bollinger Bands. These upper and lower bands help to define the expected price range for a given period, indicating overbought or oversold conditions.
• The combination of Z-Score, volume, and band analysis helps pinpoint when the price breaks out of expected ranges, providing early warning signs for potential market shifts.
5. Trend Confirmation from Higher Timeframes:
• The MAD Indicator includes a multi-timeframe approach to trend confirmation, using the 50-period EMA on a higher timeframe (e.g., 1-hour chart). This ensures that signals are aligned with the overall market trend, enhancing the reliability of buy and sell signals.
How It Works:
• The MAD Indicator continuously monitors price action, volume, and statistical anomalies, using the Z-Score to determine when the price is significantly deviating from its historical average.
• When the price breaks above the upper band and a bullish anomaly is detected, a buy signal is generated. (Green Background)
• Similarly, when the price breaks below the lower band and a bearish anomaly is detected, a sell signal is triggered. (Red Background
• By filtering signals based on volume and using the cooldown period, the MAD Indicator ensures that only high-quality trades are signaled.
How to Use the MAD Indicator:
• Buy Signal: Occurs when the price breaks above the upper band and there is a significant deviation from the mean (bullish anomaly).
• Sell Signal: Occurs when the price breaks below the lower band and there is a significant deviation from the mean (bearish anomaly).
• Volume Confirmation: Ensure that the buy/sell signals are supported by a volume spike, indicating strong market participation.
• Signal Cooldown Period: After a signal is triggered, the indicator waits for the cooldown period to avoid triggering multiple signals in quick succession.
Why It’s Worth Paying For:
The MAD Indicator combines advanced statistical analysis (Z-Score), price action, and volume analysis to identify market anomalies and breakouts before they are visible on standard indicators. By leveraging the power of mean reversion and statistical anomalies, this tool provides traders with high-confidence signals that can lead to profitable trades, especially in volatile markets. The integration of a multi-timeframe trend filter ensures that signals are aligned with the overall market trend, reducing the likelihood of false breakouts.
This indicator is ideal for trend-following traders looking for high-probability entries and mean-reversion traders aiming to capture price deviations. The signal cooldown period and volume filter provide an additional layer of precision, ensuring that you only act on the strongest market signals.
Marcel's Dynamic Profit / Loss Calculator for GoldOverview
This Dynamic Risk / Reward Tool for Gold is designed to help traders efficiently plan and manage their trades in the volatile gold market. This script provides a clear visualisation of trade levels (Entry, Stop Loss, Take Profit) while dynamically calculating potential profit and loss. It ensures gold traders can assess their positions with precision, saving time and improving risk management.
Key Features
1. Trade Level Visualisation:
Plots Entry (Blue), Stop Loss (Red), and Take Profit (Green) lines directly on the chart.
Helps you visualise and confirm trade setups quickly which is good for scalping and day trades.
2. Dynamic Risk and Reward Calculations:
Calculates potential profit and loss in real time based on user-defined inputs such as position size, leverage, and account equity.
Displays a summary panel showing risk/reward metrics directly on the chart.
3. Customisable Settings:
Allows you to adjust key parameters like account equity, position size, leverage, and specific price levels for Entry, Stop Loss, and Take Profit.
Defaults are dynamically generated for convenience but remain fully adjustable for flexibility.
How It Works
The script uses gold-specific conventions (e.g., 1 lot = 100 ounces, 1 pip = 0.01 price change) to calculate accurate risk and reward metrics.
It dynamically positions Stop Loss and Take Profit levels relative to the entry price, based on user-defined or default offsets.
A real-time summary panel is displayed in the bottom-right corner of the chart, showing:
Potential Profit: The monetary value if the Take Profit is hit.
Potential Lo
ss: The monetary value if the Stop Loss is hit.
How to Use It
1. Add the script to your chart on a gold trading pair (e.g., XAUUSD).
2. Input your:
Account equity.
Leverage.
Position size (in lots).
Desired En
try Price (default: current close price).
3. Adjust the Stop Loss and Take Profit levels to your strategy, or let the script use default offsets of:
500 pips below the Entry for Stop Loss.
1000 pips above the Entry for Take Profit.
4. Review the plotted levels and the summary panel to confirm your trade aligns with your risk/reward goals.
Why Use This Tool?
Clarity and Precision:
Provides clear trade visuals and financial metrics for confident decision-making.
Time-Saving:
Automates the calculations needed to evaluate trade risk and reward.
Improved Risk Management:
Ensures you never trade without knowing your exact potential loss and gain.
This script is particularly useful for both novice and experienced traders looking to enhance their risk management and trading discipline in the Gold market. Enjoy clearer trades at speed.