FAIRPRICE_VWAP_RDFAIRPRICE_VWAP_RD
This script plots an **anchored VWAP (Volume Weighted Average Price)** that resets
based on the user-selected anchor period. It acts as a dynamic “fair value” line
that reflects where the market has actually transacted during the chosen period.
FEATURES
- Multiple anchor options: Session, Week, Month, Quarter, Year, Decade, Century,
Earnings, Dividends, or Splits.
- Intelligent handling of the “Session” anchor so it works correctly on both 1m
(resets each new day) and 1D (continuous, non-resetting VWAP).
- Manual VWAP calculation using cumulative(price * volume) and cumulative(volume),
ensuring the line is stable and works on all timeframes.
- Optional hiding of VWAP on daily or higher charts.
- Offset input for horizontal shifting if desired.
- VWAP provides a true “fair price” reference for trend, mean-reversion,
and institutional-level analysis.
PURPOSE
This indicator solves the common problem of VWAP behaving incorrectly on higher
timeframes, on synthetic data, or with unusual anchors. By implementing VWAP
manually and allowing flexible reset conditions, it functions reliably as
an institutional-style fair value benchmark across any timeframe.
المؤشرات والاستراتيجيات
RSI_RDRSI_RD - RSI Divergence Detector (Ryan DeBraal)
This script plots a standard RSI along with advanced automatic divergence detection.
It identifies four types of divergences using pivot logic and configurable
lookback windows. Signals appear directly on the RSI line as plotted marks and labels.
FEATURES
- Standard RSI with user-defined length and source.
- Midline (50), overbought (70), and oversold (30) levels with shaded background.
- Automatic detection of:
• Regular Bullish Divergence
• Regular Bearish Divergence
• Hidden Bullish Divergence
• Hidden Bearish Divergence
- Each divergence type can be toggled on/off individually.
- Pivot-based detection using left/right lookback lengths.
- Range filter (bars since pivot) to avoid stale or invalid divergences.
- Colored markers and labels placed exactly on pivot points.
- Alerts for all four divergence conditions.
PURPOSE
This indicator makes RSI divergence trading systematic and visual.
It highlights when price action disagrees with RSI momentum — often signaling
exhaustion, reversal setups, or continuation opportunities depending on the divergence type.
Ideal for combining with trend filters, VWAP, or ORB structures.
Quantrader📊 Overview
This custom indicator combines intraday session analysis with multi-timeframe trend confirmation to identify high-probability trading opportunities. It features:
Custom intraday session tracking (GMT+7 timezone)
Multi-level moving average confluence (SMA 20, 100, 200)
Bollinger Bands mean reversion signals
Key intraday reference levels
⚙️ Core Components
1. Custom Intraday Session Tracking
Session Start: 7:00 AM GMT+7 (Vietnamese market open)
Calculates per session:
Intraday High/Low (resets at 7:00 AM daily)
Intraday Midline = (Session High + Session Low) / 2
Pre-Day Center = Previous day's midline (carried forward)
Open Day = First 15-minute candle's open price
2. Trend Analysis Framework
SMA 20 (Short-term momentum)
SMA 100 (Medium-term trend)
SMA 200 (Long-term trend direction)
Bollinger Bands (20-period, 2 standard deviations)
3. Signal Detection Logic
Bullish Mean Reversion Setup:
javascript
Condition 1: Green candle closes ABOVE Upper Bollinger Band
Condition 2: Following candle is ALSO green
→ Triggers: Green highlight + Triangle below bar
Bearish Mean Reversion Setup:
javascript
Condition 1: Red candle closes BELOW Lower Bollinger Band
Condition 2: Following candle is ALSO red
→ Triggers: Red highlight + Triangle above bar
🎯 Visual Elements
Element Color Description
Intraday Midline Blue Real-time session midpoint
Pre-Day Center Yellow Yesterday's midline (reference)
Open Day Purple (dashed) Day's opening price
SMA 20 Red Short-term trend
SMA 100 Green Medium-term trend
SMA 200 Orange Long-term trend
Bollinger Bands Red/Green/Blue Volatility boundaries
Bull Signal Green triangle ↓ Oversold bounce potential
Bear Signal Red triangle ↑ Overbought rejection potential
📈 Trading Applications
1. Trend Confirmation
Bullish Alignment: Price > All SMAs + Above Intraday Midline
Bearish Alignment: Price < All SMAs + Below Intraday Midline
2. Mean Reversion Opportunities
Overbought Scenario: Consecutive green candles above Upper BB → Potential reversal
Oversold Scenario: Consecutive red candles below Lower BB → Potential bounce
3. Intraday Level Trading
Intraday Midline: Dynamic support/resistance
Pre-Day Center: Psychological reference level
Open Day: Key opening price level
⚡ Key Features
Automatic Session Reset: Daily at 7:00 AM GMT+7
Multi-Timeframe Confluence: Combines intraday, daily, and trend analysis
Clean Visual Design: Non-cluttered, focused on key levels
Real-Time Calculation: All levels update with each new candle
🛠️ Recommended Settings
Timeframe: 15-minute to 1-hour charts
Markets: Forex, Indices, Commodities
Best Pairs: EURUSD, XAUUSD, VN30, USDJPY
Trading Style: Swing trading, Day trading
📖 Usage Tips
Trend Trading: Enter in direction of SMA alignment (20 > 100 > 200 for bullish)
Mean Reversion: Use BB signals at key intraday levels (Midline, Pre-Day Center)
Confirmation: Wait for candle close above/below key levels
Risk Management: Place stops beyond opposite intraday extreme
🎨 Customization Options
Users can modify:
Session start time (line 6)
Bollinger Band parameters (length, multiplier)
SMA periods
Color schemes
ADX_RDADX_RD - Average Directional Index (Ryan DeBraal)
This script plots a refined version of the **ADX (Average Directional Index)**,
used to measure trend strength regardless of trend direction. It includes
custom smoothing, modified DM (Directional Movement) logic, dynamic coloring,
and a built-in 20-level threshold.
FEATURES
- Calculates +DI, –DI, and ADX using standard Wilder smoothing (RMA).
- Signal color turns **white** when ADX < 20 (low-trend or choppy conditions).
- Signal color turns **blue** when ADX >= 20 (trend strengthening).
- Horizontal dotted reference line at **20**, a widely used threshold:
ADX < 20 → weak or ranging market
ADX > 20 → strengthening trend
- Works on all timeframes, supports custom smoothing lengths.
PURPOSE
This indicator helps identify when a market is trending vs when it is flat.
It does not indicate direction by itself — only the strength of the move —
making it ideal for confirming breakout setups, trend-following entries,
and filtering out low-probability trades during chop.
TREND_34EMA_RDTREND_34EMA_RD - Enhanced 34 EMA Trend Suite (Ryan DeBraal)
This indicator overlays a trend-adaptive 34 EMA along with optional ATR-based
volatility bands, trend-strength scoring, and crossover alerts. It is built
to give a clean, fast visual read on the current trend direction, volatility,
and momentum quality.
FEATURES
-----------------------------------------------------------------------------
• Core 34 EMA Trend Line
- Standard EMA calculation (default length 34)
- Aqua coloring for clean visibility
- Adjustable line thickness
• ATR-Based Volatility Bands
- Upper and lower bands derived from ATR
- Adjustable ATR length and multiplier
- Optional shaded channel for volatility visualization
- Helps identify trend stability and over-extension
• Trend Strength Score
- Measures slope of the EMA over a lookback window
- Normalizes slope using ATR for consistency across markets
- Outputs a 0–100 score
- Auto-updating label placed at the latest bar
• Gray for weak trend
• Orange for moderate trend
• Green for strong trend
• Optional Crossover Signals
- Detects when price crosses above or below the EMA
- Can display arrows on the chart
- Built-in alert conditions
PURPOSE
-----------------------------------------------------------------------------
This suite provides a clean, minimalistic way to monitor directional bias,
volatility, and trend quality. Ideal for:
• Identifying early trend shifts
• Confirming trend continuation
• Filtering trades based on trend strength
• Detecting over-extension using volatility bands
F5/F15 Breakout High and Low Mark by MDHi This scirpt will mark Previous day high and low and current day 5 Mint and 15 Mint according to your requirement it will mark and show you the Buy signal according to that
MACD_RDMACD_RD - Moving Average Convergence Divergence (Ryan DeBraal)
This indicator plots a standard MACD along with a color-adaptive histogram and
integrated momentum-shift alerts. It preserves the normal MACD structure while
improving visual clarity and signal recognition.
FEATURES
-----------------------------------------------------------------------------
• Standard MACD Calculation
- Fast MA (12 by default)
- Slow MA (26)
- Signal line (9)
- Choice between SMA/EMA for both MACD and Signal smoothing
• Color-Changing Histogram
- Green shades for positive momentum
- Red shades for negative momentum
- Lighter/darker tones depending on whether momentum is increasing or fading
- 50% opacity for improved readability
• Crossover-Based MACD Line Coloring
- MACD line turns green on bullish cross (MACD > Signal)
- MACD line turns red on bearish cross (MACD < Signal)
- Default blue when no crossover occurs
• Momentum-Shift Alerts
- Alerts when histogram flips direction
PURPOSE
-----------------------------------------------------------------------------
This MACD version emphasizes momentum shifts and trend transitions by
highlighting subtle histogram changes and providing clean crossover visuals.
Ideal for:
• Identifying early momentum reversals
• Filtering breakout/trend setups
• Confirming trend continuation vs exhaustion
,,,//@version=5
indicator(title='Moving Average Exponential', shorttitle='EMA', overlay=true, timeframe='')
len = input.int(6, minval=1, title='Length')
len1 = input.int(13, minval=1, title='Length')
len2 = input.int(24, minval=1, title='Length')
len3 = input.int(55, minval=1, title='Length')
src = input(close, title='Source')
offset = input.int(title='Offset', defval=0, minval=-500, maxval=500)
out = ta.ema(src, len)
out1 = ta.ema(src, len1)
out2 = ta.ema(src, len2)
out3 = ta.ema(src, len3)
plot(out, title='EMA', color=color.new(color.yellow, 0), offset=offset)
plot(out1, title='EMA1', color=color.new(color.blue, 0), offset=offset)
plot(out2, title='EMA2', color=color.new(color.red, 0), offset=offset)
plot(out3, title='EMA2', color=color.new(#19e82a, 0), offset=offset)
S&P Options Patterns Detector (6-20 Candles)Pattern detector for S&P options. Detects alerts for bullish or bearish signals for any stock in S&P 500
ADX with 20 ThresholdI wanted an ADX with a threshold line so I created an indicator.
ADX (20 Threshold) Cheat-Sheet
Purpose: Filter trades by trend strength.
Indicator: ADX (derived from DMI) with optional +DI/−DI lines.
Key Rules:
ADX > 20: Trend is strong → trade OK
ADX < 20: Trend is weak/choppy → avoid trades
Optional +DI / −DI: Shows momentum direction
HTF Use: Stable trend confirmation
LTF Use: Optional filter with EMA slope for entries
Tips:
Combine with EMAs or MACD for directional bias.
ADX does not indicate direction, only strength.
Best used to avoid low-probability trades in sideways markets.
Global M2(USD) V2This indicator tracks the total Global M2 Money Supply in USD. It aggregates economic data from the world's four largest central banks (Fed, PBOC, ECB, BOJ). The script automatically converts non-USD money supplies (CNY, EUR, JPY) into USD using real-time exchange rates to provide a unified view of global liquidity.
Usage
Macro Analysis: Overlay this on assets like Bitcoin or the S&P 500 to see if price appreciation is driven by fiat currency debasement ("money printing").
Liquidity Trends: A rising orange line indicates expanding global liquidity (generally bullish for risk assets), while a falling line suggests monetary tightening.
Real-time Data: A label at the end of the line displays the exact raw total in USD for precise tracking.
该脚本旨在追踪以美元计价的全球 M2 货币供应总量。它聚合了四大央行(美联储、中国央行、欧洲央行、日本央行)的经济数据,并通过实时汇率将非美货币(人民币、欧元、日元)统一折算为美元,从而构建出一个标准化的全球流动性指标。
用法
宏观对冲: 将其叠加在比特币或股票图表上,用于判断资产价格的上涨是否由全球法币“大放水”推动。
趋势研判: 橙色曲线向上代表全球流动性扩张(通常利好风险资产),向下则代表流动性紧缩。
数据直观: 脚本会在图表末端生成一个标签,实时显示当前全球 M2 的具体美元总额。
Squeeze Momentum OscillatorTitle: Squeeze Momentum Oscillator
Description: This indicator is a panel-based oscillator that separates market momentum from volatility, designed to spot high-probability breakouts using the classic TTM Squeeze logic.
How It Works: The indicator uses a "traffic light" system on the zero line to indicate volatility states, while the histogram shows the strength and direction of the trend.
1. The Dots (Volatility State): These dots tell you if the market is consolidating or trending.
🔴 Red Dot: Squeeze is ON. Bollinger Bands are inside Keltner Channels. Volatility is compressed. Do not trade; wait for the release.
🟢 Green Dot: Squeeze is OFF. Volatility is normal.
🟣 Fuchsia Dot: Bullish Breakout! The squeeze has fired to the upside and is confirmed by positive SMA momentum.
🔵 Blue Dot: Bearish Breakout! The squeeze has fired to the downside and is confirmed by negative SMA momentum.
2. The Histogram (Momentum): This measures the strength of the move using Linear Regression.
Light Green: Bullish momentum is increasing.
Dark Green: Bullish momentum is waning (caution).
Light Red: Bearish momentum is increasing.
Dark Red: Bearish momentum is waning (caution).
Settings & Features:
Momentum Filter: Breakout dots (Fuchsia/Blue) only appear if the 20-period SMA slope agrees with the breakout direction, filtering out weak fakeouts.
Customizable: Adjust lengths and multipliers for Bollinger Bands and Keltner Channels to tune sensitivity.
Toggle: You can turn the specific "Breakout Colors" on or off in the settings.
Credits: Based on the TTM Squeeze concept popularized by John Carter, utilizing Linear Regression for momentum and standard deviation/ATR comparisons for volatility. Fixed and optimized for TradingView Pine Script v6.
S&P 500 Breadth: Bull vs Bear (20DMA)S&P 500 Breadth: Bull vs Bear (20DMA)
Use as simple market breadth
Buy after 3 Red Candles - Close > Last Red Highthree red candles broken by one green candle, bullish signal
67 2.0Major Market Trading Hours
New York Stock Exchange (NYSE)
Open: 9:30 AM (ET)
Close: 4:00 PM (ET)
Pre-Market: 4:00 AM – 9:30 AM (ET)
After Hours: 4:00 PM – 8:00 PM (ET)
Nasdaq
Open: 9:30 AM (ET)
Close: 4:00 PM (ET)
Pre-Market: 4:00 AM – 9:30 AM (ET)
After Hours: 4:00 PM – 8:00 PM (ET)
London Stock Exchange (LSE)
Open: 8:00 AM (GMT)
Close: 4:30 PM (GMT)
Tokyo Stock Exchange (TSE)
Open: 9:00 AM (JST)
Lunch Break: 11:30 AM – 12:30 PM (JST)
Close: 3:00 PM (JST)
Hong Kong Stock Exchange (HKEX)
Open: 9:30 AM (HKT)
Lunch Break: 12:00 PM – 1:00 PM (HKT)
Close: 4:00 PM (HKT)
Dual TF Bearish Divergence (Working)//@version=6
indicator("Dual TF Bearish Divergence (Working)", overlay=true)
// ----------------- SIMPLE BEARISH DIVERGENCE FUNCTION -------------------
bearDiv(src, rsiLen, lookbackMin, lookbackMax) =>
r = ta.rsi(src, rsiLen)
ph = ta.pivothigh(src, lookbackMin, lookbackMin)
ph_rsi = ta.pivothigh(r, lookbackMin, lookbackMin)
ph2 = ph
ph2_rsi = ph_rsi
priceHH = not na(ph) and not na(ph2) and ph > ph2
rsiLH = not na(ph_rsi) and not na(ph2_rsi) and ph_rsi < ph2_rsi
barsOk = lookbackMin >= lookbackMin and lookbackMin <= lookbackMax
priceHH and rsiLH and barsOk
// ----------------- TF CALLS -------------------
b60 = request.security(syminfo.tickerid, "60", bearDiv(close, 14, 10, 15))
b240 = request.security(syminfo.tickerid, "240", bearDiv(close, 14, 10, 15))
dual = b60 and b240
// ----------------- PLOT -------------------
plotshape(dual, title="Dual Bear Div", style=shape.labeldown,
color=color.red, size=size.small, text="🔻BearDiv")
// ----------------- ALERT -------------------
alertcondition(dual, "Dual Bearish Div 60+240",
"Bearish Divergence on both 60m & 240m")
GOD MODE HUNT v2.0 — SCREENER ULTIME 2025test screener pour détecter les crypto basée sur des règles strict
dual moving average crossover Erdal//@version=5
indicator("MA Cross Simple", overlay=true)
// Inputs
fastLen = input.int(10)
slowLen = input.int(100)
// Moving averages
fastMA = ta.sma(close, fastLen)
slowMA = ta.sma(close, slowLen)
// Plot
plot(fastMA, color=color.green)
plot(slowMA, color=color.red)
// Cross signals
bull = ta.crossover(fastMA, slowMA)
bear = ta.crossunder(fastMA, slowMA)
// Labels
if bull
label.new(bar_index, low, "BUY", style=label.style_label_up, color=color.green)
if bear
label.new(bar_index, high, "SELL", style=label.style_label_down, color=color.red)
MCX GOLD1! SpotHelps convert MCX gold rolling contract symbol to spot price.
Note: It cant accurately infer the contract role date, so it makes some assumptions, use the rolldays to adjust where needed






















