Ghost Month HighlighterGhost Month and Trading: Understanding the Phenomenon
Ghost Month (鬼月) is the seventh month of the lunar calendar in Chinese culture, typically falling between late July and September. During this period, it's believed that the gates of the afterlife open and spirits roam the earth. This deeply rooted cultural belief has significant implications for Asian markets, particularly in regions with large Chinese populations like Taiwan, Hong Kong, Singapore, and mainland China.
Why Markets Often Decline or Stay Flat During Ghost Month:
Reduced Business Activity : Many businesses avoid launching new products, signing major contracts, or making significant investments during this period, believing it brings bad luck.
Property Market Slowdown : Real estate transactions drop significantly as people avoid moving homes or making large purchases. In some markets, property sales can decline by 20-30%.
IPO and M&A Drought : Companies often delay IPOs and merger announcements until after Ghost Month, reducing market catalysts.
Retail Spending Drops : Consumer spending on big-ticket items decreases, though spending on offerings and religious items increases.
Self-Fulfilling Prophecy : Many traders and investors reduce positions or stay on the sidelines, creating lower volumes and increased volatility. This becomes a self-fulfilling prophecy where expectation of poor performance leads to actual underperformance.
Tourism and Entertainment Impact : Travel and entertainment sectors see reduced activity as people avoid unnecessary trips and celebrations.
Historical data shows that Asian equity markets often underperform during Ghost Month, with some studies indicating average returns can be 2-5% lower than other months. However, this also creates opportunities for contrarian investors who buy during the seasonal weakness.
Inspired by @honey_xbt
Göstergeler ve stratejiler
Risk Ladder📝 Description:
The Risk Ladder plots visual risk levels above and below a selected price, helping traders instantly assess risk exposure per contract across key price intervals.
This tool offers two modes:
✅ Live Mode – Automatically anchors to the current market price
✅ Manual Mode – Anchor the ladder to your custom trade entry price (e.g., after placing a position)
Each level displays the cumulative risk in dollars, calculated based on:
Contract size
Tick value for the symbol (auto-detected for ES, NQ, CL, etc.)
Distance from entry price
🎨 Fully Customizable:
Interval between levels (e.g. every 10 points)
Number of levels above/below
Line color, width, and style
Label size, shape (tag or box), color, and offset
Toggle between live or manual entry modes
💡 Use Cases:
Visualize risk tiers before or after entering a position
Define profit-taking and stop-loss zones based on risk multiples
Clean overlay to complement your price action, VWAP, or R:R strategy
🔁 How to Use:
Select whether to use manual entry or follow live price
Adjust your risk interval and contract size
Watch the ladder instantly reflect total risk every level
Intraday Volume Pulse GSK-VIZAG-AP-INDIA📊 Intraday Volume Pulse — by GSK-VIZAG-AP-INDIA
Overview:
This indicator displays a simple and effective intraday volume summary in table format, starting from a user-defined session time. It provides an approximate breakdown of buy volume, sell volume, cumulative delta, and total volume — all updated in real-time.
🧠 Key Features
✅ Session Start Control
Choose the session start hour and minute (default is 09:15 for NSE).
🌐 Timezone Selector
View volume data in your preferred timezone: IST, GMT, EST, CST, etc.
📈 Buy/Sell Volume Estimation Logic
Buy Volume: When candle closes above open
Sell Volume: When candle closes below open
Equal: Volume split equally if Open == Close
🔄 Daily Auto-Reset
All volume metrics reset at the start of a new trading day.
🎨 Color-Coded Volume Insights
Buy Volume: Green shade if positive
Sell Volume: Red shade if positive
Cumulative Delta: Dynamic red/green based on net pressure
Total Volume: Neutral gray with emphasis text
🧾 Readable Number Formatting
Volumes are displayed in "K", "L", and "Cr" units for easier readability.
📌 Table Positioning
Choose from top/bottom corners to best fit your layout.
⚠️ Note
All data shown is approximate and based on candle structure — it does not reflect actual order book or tick-level data. This is a visual estimation tool to guide real-time intraday decisions.
✍️ Signature
GSK-VIZAG-AP-INDIA
Creator of practical TradingView tools focused on volume dynamics and trader psychology.
Intra Bullish Strategy - Profit Ping v4.0ProfitPing 4.0 is a high-precision intraday swing trading strategy designed for global equity markets, including the US, South Africa, and Australia. The system identifies high-probability BUY and EXIT signals using a confluence of technical indicators and real-time volume dynamics.
🧠 Key Features:
Dual EMA Crossover (7 & 14) for short-term trend confirmation
Volume Spike Detection based on 20-period moving average
RSI Momentum Filter (ideal zone: 55–65) to avoid overbought entries
MACD Histogram & Signal Line Sync for trend momentum validation
Candlestick Pattern Filtering (e.g. bullish engulfing, flags, breakout candles)
Multi-Timeframe Confirmation (optional) for intraday trend alignment
Dynamic Risk-to-Reward Logic built into alert framework
Webhook-compatible JSON alerts for automation to Google Sheets, Power BI, and IBKR
🛠️ Alert System:
BUY alert triggers when all bullish conditions align
EXIT alert triggers only if a previous BUY exists for that ticker
Trade status is updated live in Google Sheets and integrated with Power BI dashboards
Orphaned EXITs (no matched BUY) are tracked separately for accuracy review
🔄 Ideal For:
Traders seeking 1:2 to 1:5 risk/reward setups
Automation-focused workflows (via TradingView → Google Sheets → Power BI)
Swing traders wanting clean visual logs, automated P&L tracking, and optional IBKR execution
Dollar Bands [TNI]This script shows divergences bands implemented by Argentine Goverment this year for the Argentine Currency USDARS.
You can change the fix monthly and date/price init, and create upper or lower band cross alerts.
Official USD Staggered Bands - ArgentinaOfficial USD Staggered Bands - Argentina
The Central Bank, under the administration of Javier Milei (La Libertad Avanza), announced on Friday, April 11, 2025, a series of measures to eliminate the so-called "exchange rate restriction."
In this new phase, the dollar's exchange rate on the Free Exchange Market (MLC) will be able to fluctuate within a band between $1,000 and $1,400 , the limits of which will be expanded at a rate of 1% monthly.
The lines evolve daily, increasing as the public administration predicts. This way, you can know the likelihood of a Central Bank intervention to correct the variation and return the peso to a price within the band.
The script runs under the ticker USDARS
Range Filter Strategy [Real Backtest]Range Filter Strategy - Real Backtesting
# Overview
Advanced Range Filter strategy designed for realistic backtesting with precise execution timing and comprehensive risk management. Built specifically for cryptocurrency markets with customizable parameters for different assets and timeframes.
Core Algorithm
Range Filter Technology:
- Smooth Average Range calculation using dual EMA filtering
- Dynamic range-based price filtering to identify trend direction
- Anti-noise filtering system to reduce false signals
- Directional momentum tracking with upward/downward counters
Key Features
Real-Time Execution (No Delay)
- Process orders on tick: Immediate execution without waiting for bar close
- Bar magnifier integration for intrabar precision
- Calculate on every tick for maximum responsiveness
- Standard OHLC bypass for enhanced accuracy
Realistic Price Simulation
- HL2 entry pricing (High+Low)/2 for realistic fills
- Configurable spread buffer simulation
- Random slippage generation (0 to max slippage)
- Market liquidity validation before entry
Advanced Signal Filtering
- Volume-based filtering with customizable ratio
- Optional signal confirmation system (1-3 bars)
- Anti-repetition logic to prevent duplicate signals
- Daily trade limit controls
Risk Management
- Fixed Risk:Reward ratios with precise point calculation
- Automatic stop loss and take profit execution
- Position size management
- Maximum daily trades limitation
Alert System
- Real-time alerts synchronized with strategy execution
- Multiple alert types: Setup, Entry, Exit, Status
- Customizable message formatting with price/time inclusion
- TradingView alert panel integration
Default Parameters
Optimized for BTC 5-minute charts:
- Sampling Period: 100
- Range Multiplier: 3.0
- Risk: 50 points
- Reward: 100 points (1:2 R:R)
- Spread Buffer: 2.0 points
- Max Slippage: 1.0 points
Signal Logic
Long Entry Conditions:
- Price above Range Filter line
- Upward momentum confirmed
- Volume requirements met (if enabled)
- Confirmation period completed (if enabled)
- Daily trade limit not exceeded
Short Entry Conditions:
- Price below Range Filter line
- Downward momentum confirmed
- Volume requirements met (if enabled)
- Confirmation period completed (if enabled)
- Daily trade limit not exceeded
Visual Elements
- Range Filter line with directional coloring
- Upper and lower target bands
- Entry signal markers
- Risk/Reward ratio boxes
- Real-time settings dashboard
Customization Options
Market Adaptation:
- Adjust Sampling Period for different timeframes
- Modify Range Multiplier for various volatility levels
- Configure spread/slippage for different brokers
- Set appropriate R:R ratios for trading style
Filtering Controls:
- Enable/disable volume filtering
- Adjust confirmation requirements
- Set daily trade limits
- Customize alert preferences
Performance Features
- Realistic backtesting results aligned with live trading
- Elimination of look-ahead bias
- Proper order execution simulation
- Comprehensive trade statistics
Alert Configuration
Alert Types Available:
- Entry signals with complete trade information
- Setup alerts for early preparation
- Exit notifications for position management
- Filter direction changes for market context
Message Format:
Symbol - Action | Price: XX.XX | Stop: XX.XX | Target: XX.XX | Time: HH:MM
Usage Recommendations
Optimal Settings:
- Bitcoin/Major Crypto: Default parameters
- Forex: Reduce sampling period to 50-70, multiplier to 2.0-2.5
- Stocks: Reduce sampling period to 30-50, multiplier to 1.0-1.8
- Gold: Sampling period 60-80, multiplier 1.5-2.0
TradingView Configuration:
- Recalculate: "On every tick"
- Orders: "Use bar magnifier"
- Data: Real-time feed recommended
Risk Disclaimer
This strategy is designed for educational and analytical purposes. Past performance does not guarantee future results. Always test thoroughly on paper trading before live implementation. Consider market conditions, broker execution, and personal risk tolerance when using any automated trading system.
Best Settings Found for Gold 15-Minute Timeframe
After extensive testing and optimization, these are the most effective settings I've discovered for trading Gold (XAUUSD) on the 15-minute timeframe:
Core Filter Settings:
Sampling Period: 100
Range Multiplier: 3.0
Professional Execution Engine:
Realistic Entry: Enabled (HL2)
Spread Buffer: 2 points
Dynamic Slippage: Enabled with max 1 point
Volume Filter: Enabled at 1.7x ratio
Signal Confirmation: Enabled with 1 bar confirmation
Risk Management:
Stop Loss: 50 points
Take Profit: 100 points (2:1 Risk-Reward)
Max Trades Per Day: 5
These settings provide an excellent balance between signal accuracy and realistic market execution. The volume filter at 1.7x ensures we only trade during periods of sufficient market activity, while the 1-bar confirmation helps filter out false signals. The spread buffer and slippage settings account for real trading costs, making backtest results more realistic and achievable in live trading.
CnagdaCnagda Indicator ek comprehensive trading tool hai jo multiple technical analysis concepts ko combine karta hai:
special thanks to - www.tradingview.com because its modify version of Breaks and Retests with Volatility Stop
Support & Resistance Detection - Dynamic pivot-based levels
Breakout & Retest System - Precise entry/exit signals
Anchored VWAP - Volume-weighted average price from swing points
Volatility Stop - Trend-following mechanism
Moving Average Crossovers - EMA/WMA signals
Smart Alerts - Real-time notifications
🔧 Key Features
Support & Resistance System
Lookback Range: 20 bars (customizable) se pivot points detect karta hai
Dynamic Boxes: Support/resistance levels ko visual boxes ke saath display
Auto-Extension: Levels ko future bars tak extend kar sakta hai
Color Coding: Support (Red) aur Resistance (Green) ke liye alag colors
Anchored VWAP System
Swing High/Low Anchoring: Major swing points se VWAP calculate karta hai
Volume Integration: Price aur volume dono consider karta hai
Dynamic Updates: Har naye swing point par reset hota hai
Visual Markers: Anchor points ko clearly mark karta hai
Breakout Detection
Real-time Alerts: Support/resistance break hone par instant notification
Confirmation Options: Candle close confirmation ya high/low based
Repainting Control: 3 modes - On/Off with different confirmation methods
📈 Entry/Exit Strategy Guide
BUY SIGNALS (Long Entry)
Primary Entry Conditions:
Support Retest Confirmed + Price Above Anchored VWAP
Entry: Support level ka successful retest
Stop Loss: Support level ke neeche 5-10 pips
Target: Next resistance level ya 1:2 Risk-Reward
Bullish MA Crossover + Above Volatility Stop (Green)
Entry: EMA(20) crosses above WMA(50)
Stop Loss: Volatility stop level
Target: Next resistance ya swing high
Resistance Breakout + Volume Confirmation
Entry: Clean breakout above resistance box
Stop Loss: Resistance level (ab support ban gaya)
Target: Measured move ya next major level
Confirmation Filters:
✅ Anchored VWAP upward trending
✅ Volatility Stop showing green (uptrend)
✅ Price above both moving averages
✅ Volume increase during breakout
SELL SIGNALS (Short Entry)
Primary Entry Conditions:
Resistance Retest Confirmed + Price Below Anchored VWAP
Entry: Resistance level ka successful retest
Stop Loss: Resistance level ke upar 5-10 pips
Target: Next support level ya 1:2 Risk-Reward
Bearish MA Crossover + Below Volatility Stop (Red)
Entry: EMA(20) crosses below WMA(50)
Stop Loss: Volatility stop level
Target: Next support ya swing low
Support Breakout + Volume Confirmation
Entry: Clean breakdown below support box
Stop Loss: Support level (ab resistance ban gaya)
Target: Measured move ya next major level
Confirmation Filters:
✅ Anchored VWAP downward trending
✅ Volatility Stop showing red (downtrend)
✅ Price below both moving averages
✅ Volume increase during breakdown
⚠️ Risk Management Rules
Position Sizing
Maximum Risk: 1-2% per trade
Stop Loss: Always mandatory
Position Size: Calculate based on stop distance
Exit Strategy
Profit Targets:
Target 1: 1:1 Risk-Reward (book 50%)
Target 2: 1:2 Risk-Reward (book remaining)
Trailing Stops:
Use Volatility Stop as trailing mechanism
Move stop to breakeven after 1:1 achieved
Time-based Exit:
Exit if no momentum within 5-10 bars
Avoid holding overnight without clear trend
🚨 Alert System
Available Alerts:
New Support/Resistance Levels
Breakout Confirmations
Retest Signals (Potential + Confirmed)
MA Crossovers (Bullish/Bearish)
Anchored VWAP Crosses
Volatility Stop Changes
Alert Messages (Hindi):
"EMA/WMA Bullish crossover hua hai, BUY!"
"EMA/WMA Bearish crossover hua hai, SELL!"
"Price Anchored VWAP ke upar break kar gaya!"
"Naya Anchored VWAP anchor point set hua hai!"
⚙️ Customization Options
Visual Settings:
Label Types: Full descriptions ya Simple (Br, Re, P.Re)
Label Sizes: Tiny to Huge
Colors: Fully customizable for all elements
Line Styles: Dotted, Dashed, Solid
Extensions: None, Right, Left, Both
Technical Parameters:
Lookback Range: 1-100 bars
Retest Detection: 1-20 bars
MA Lengths: Customizable EMA/WMA periods
Volatility Stop: Length aur multiplier adjustable
VWAP Anchoring: Swing detection sensitivity
📋 Best Timeframes
Recommended Usage:
Scalping: 1M, 5M (quick signals)
Day Trading: 15M, 30M, 1H (balanced approach)
Swing Trading: 4H, 1D (major levels)
Market Conditions:
Trending Markets: Excellent for breakout trades
Range-bound: Perfect for retest strategies
High Volatility: Volatility stop works best
Low Volume: Wait for volume confirmation
🎯 Performance Tips
Multi-timeframe Analysis: Higher timeframe trend + lower timeframe entry
Volume Confirmation: Always check volume during breakouts
Market Context: Consider overall market sentiment
News Events: Avoid trading during major announcements
Backtesting: Test on historical data before live trading
Volume Peak BoxTH Description
Volume Peak Box
อินดิเคเตอร์นี้ใช้ตรวจจับช่วงที่มี Volume สูงผิดปกติ โดยใช้ Bollinger Band กับข้อมูล Volume ที่ดึงจาก Timeframe ที่ล็อกไว้ (เช่น 1 ชั่วโมง) และจะแสดงผลในรูปแบบ กล่องครอบช่วงราคาสูง–ต่ำ ของช่วง Volume Peak นั้น
🔧 วิธีทำงาน:
คำนวณ Bollinger Band จาก Volume ของ Timeframe ที่กำหนด
ถ้า Volume สูงกว่า Upper Band → ถือว่าเป็น Volume Peak
วาดกล่องครอบ High–Low ของแท่งที่อยู่ในช่วง Volume Peak
กล่องจะแสดงบนทุก Timeframe แต่ใช้ข้อมูลจาก Timeframe ที่ล็อกไว้เท่านั้น
🧠 เหมาะสำหรับการดู:
โซน Breakout
การเคลื่อนไหวของสถาบัน
ความไม่สมดุลของอุปสงค์/อุปทาน
เหมาะมากหากใช้ร่วมกับการอ่านพฤติกรรมราคาใน Timeframe ย่อย เพื่อดูปฏิกิริยาราคาต่อแรง Volume จาก Timeframe ใหญ่
________________
ENG Description
Volume Peak Box
This indicator detects volume spikes based on Bollinger Bands applied to volume from a locked timeframe (e.g. 1H), and draws a box around the price range during those peak periods.
🔧 How it works:
Calculates Bollinger Bands on volume from the selected timeframe.
If volume exceeds the upper band, it is marked as a volume peak.
When a volume peak starts and ends, the indicator draws a box covering the high–low price range during that period.
These boxes remain visible on all timeframes, but always reflect data from the locked timeframe.
🧠 Great for identifying:
Breakout zones
Institutional activity
Supply/demand imbalances
Tip: Use with lower timeframe price action to see how the market reacts near volume peaks from higher timeframes.
ATR Plots + OverlayATR Plots + Overlay
This tool calculates and displays Average True Range (ATR)-based levels on your chart for any selected timeframe, giving traders a quick visual reference for expected price movement relative to the most recent bar’s open price. It plots guide levels above and below that open and shows how much of the typical ATR-based range has already been covered—all in one interactive table and on-chart overlay.
What It Does
ATR Calculation:
Uses true range data over a user-defined period (default 14), smoothed via RMA, SMA, EMA, or WMA, on the selected timeframe (e.g., 1h, 4h, daily) to calculate the ATR value.
Projected Levels:
Plots four reference levels relative to the open price of the most recent bar on the chosen timeframe:
+100% ATR: Open + ATR
+50% ATR: Open + 50% of ATR
−50% ATR: Open − 50% of ATR
−100% ATR: Open − ATR
Coverage %:
Tracks high and low prices for the current session on the selected timeframe and calculates what percentage of the ATR has already been covered:
Coverage % = (High − Low) ÷ ATR × 100
Interactive Table:
Shows the ATR value and current coverage percentage in a customizable table overlay. Position, color scheme, borders, transparency, and an optional empty top row are all adjustable via settings.
Customization Options
Table Settings:
Position the table (top/bottom × left/right).
Customize background color, text color, border color, and thickness.
Optionally add an empty top row for spacing.
Line Settings:
Choose color, line style (solid/dotted/dashed), and width.
Lines automatically update with each new bar on the selected timeframe, anchored to that bar’s open price.
General Inputs:
ATR length (number of bars).
Smoothing method (RMA, SMA, EMA, WMA).
Timeframe selection for ATR calculations (e.g., 15m, 1h, Daily).
How to Use It for Trading
Measure Volatility: Quickly gauge the expected price movement based on ATR for any timeframe.
Identify Overextension: Use the coverage % to see how much of the expected ATR range is already consumed.
Plan Entries & Exits: Align trade targets and stops with ATR levels for more objective planning.
Visual Reference: Horizontal guide lines and table update automatically as new bars form, keeping information clear and actionable.
Ideal For
Intraday traders using ATR levels to frame trades.
Swing traders wanting ATR-based reference points for larger timeframes.
Anyone seeking a volatility-based framework for planning stops, targets, or identifying overextended conditions.
Night Session Highlight with Timezone (Valehson)Highlights this time range from 21:00 to 09:00 with a gray background with 90% transparency.
XRP Breathe Strategy Zones + RetracementGreen/red backgrounds = Inhale/Exhale phase timing
Horizontal lines at $3.65 / $3.00 / $2.60 for reference
MACD arrows = entry/exit hints within phase context
New yellow/purple retracement lines:
Inhale → yellow line = pullback buy zone
Exhale → purple line = potential rally target or short zone
Wick TickMy indicator shows the tick size of the candle wick. In the settings, you can specify how many ticks to display information on the screen.
EMA Trend Confirmation with Alerts此脚本是基于EMA 200周期 50周期 20周期加以合并并进行改进的一个脚本指标,主要作用是用于观察趋势走向,其中有上升下降和震荡趋势,经过多数测试,此指标适用于短线交易,推荐周期为20或15,大周期和长线交易详见RSI+EMA结合指标
This script is an improved script indicator based on the EMA 200 period, 50 period, and 20 period. Its main function is to observe the trend direction, including up, down, and oscillating trends. After many tests, this indicator is suitable for short-term trading, and the recommended period is 20 or 15. For large-cycle and long-term trading, please refer to the RSI+EMA combination indicator.
Zen HA BackgroundThis script colors the chart background based on Heikin Ashi candle direction.
It filters out noise by waiting for 2 confirmed candles in the same direction with real body size.
Clean, simple, and easy on the eyes.
Great for scalpers and trend traders who want visual confirmation without clutter.
FEDFUNDS Rate Divergence Oscillator [BackQuant]FEDFUNDS Rate Divergence Oscillator
1. Concept and Rationale
The United States Federal Funds Rate is the anchor around which global dollar liquidity and risk-free yield expectations revolve. When the Fed hikes, borrowing costs rise, liquidity tightens and most risk assets encounter head-winds. When it cuts, liquidity expands, speculative appetite often recovers. Bitcoin, a 24-hour permissionless asset sometimes described as “digital gold with venture-capital-like convexity,” is particularly sensitive to macro-liquidity swings.
The FED Divergence Oscillator quantifies the behavioural gap between short-term monetary policy (proxied by the effective Fed Funds Rate) and Bitcoin’s own percentage price change. By converting each series into identical rate-of-change units, subtracting them, then optionally smoothing the result, the script produces a single bounded-yet-dynamic line that tells you, at a glance, whether Bitcoin is outperforming or underperforming the policy backdrop—and by how much.
2. Data Pipeline
• Fed Funds Rate – Pulled directly from the FRED database via the ticker “FRED:FEDFUNDS,” sampled at daily frequency to synchronise with crypto closes.
• Bitcoin Price – By default the script forces a daily timeframe so that both series share time alignment, although you can disable that and plot the oscillator on intraday charts if you prefer.
• User Source Flexibility – The BTC series is not hard-wired; you can select any exchange-specific symbol or even swap BTC for another crypto or risk asset whose interaction with the Fed rate you wish to study.
3. Math under the Hood
(1) Rate of Change (ROC) – Both the Fed rate and BTC close are converted to percent return over a user-chosen lookback (default 30 bars). This means a cut from 5.25 percent to 5.00 percent feeds in as –4.76 percent, while a climb from 25 000 to 30 000 USD in BTC over the same window converts to +20 percent.
(2) Divergence Construction – The script subtracts the Fed ROC from the BTC ROC. Positive values show BTC appreciating faster than policy is tightening (or falling slower than the rate is cutting); negative values show the opposite.
(3) Optional Smoothing – Macro series are noisy. Toggle “Apply Smoothing” to calm the line with your preferred moving-average flavour: SMA, EMA, DEMA, TEMA, RMA, WMA or Hull. The default EMA-25 removes day-to-day whips while keeping turning points alive.
(4) Dynamic Colour Mapping – Rather than using a single hue, the oscillator line employs a gradient where deep greens represent strong bullish divergence and dark reds flag sharp bearish divergence. This heat-map approach lets you gauge intensity without squinting at numbers.
(5) Threshold Grid – Five horizontal guides create a structured regime map:
• Lower Extreme (–50 pct) and Upper Extreme (+50 pct) identify panic capitulations and euphoria blow-offs.
• Oversold (–20 pct) and Overbought (+20 pct) act as early warning alarms.
• Zero Line demarcates neutral alignment.
4. Chart Furniture and User Interface
• Oscillator fill with a secondary DEMA-30 “shader” offers depth perception: fat ribbons often precede high-volatility macro shifts.
• Optional bar-colouring paints candles green when the oscillator is above zero and red below, handy for visual correlation.
• Background tints when the line breaches extreme zones, making macro inflection weeks pop out in the replay bar.
• Everything—line width, thresholds, colours—can be customised so the indicator blends into any template.
5. Interpretation Guide
Macro Liquidity Pulse
• When the oscillator spends weeks above +20 while the Fed is still raising rates, Bitcoin is signalling liquidity tolerance or an anticipatory pivot view. That condition often marks the embryonic phase of major bull cycles (e.g., March 2020 rebound).
• Sustained prints below –20 while the Fed is already dovish indicate risk aversion or idiosyncratic crypto stress—think exchange scandals or broad flight to safety.
Regime Transition Signals
• Bullish cross through zero after a long sub-zero stint shows Bitcoin regaining upward escape velocity versus policy.
• Bearish cross under zero during a hiking cycle tells you monetary tightening has finally started to bite.
Momentum Exhaustion and Mean-Reversion
• Touches of +50 (or –50) come rarely; they are statistically stretched events. Fade strategies either taking profits or hedging have historically enjoyed positive expectancy.
• Inside-bar candlestick patterns or lower-timeframe bearish engulfings simultaneously with an extreme overbought print make high-probability short scalp setups, especially near weekly resistance. The same logic mirrors for oversold.
Pair Trading / Relative Value
• Combine the oscillator with spreads like BTC versus Nasdaq 100. When both the FED Divergence oscillator and the BTC–NDQ relative-strength line roll south together, the cross-asset confirmation amplifies conviction in a mean-reversion short.
• Swap BTC for miners, altcoins or high-beta equities to test who is the divergence leader.
Event-Driven Tactics
• FOMC days: plot the oscillator on an hourly chart (disable ‘Force Daily TF’). Watch for micro-structural spikes that resolve in the first hour after the statement; rapid flips across zero can front-run post-FOMC swings.
• CPI and NFP prints: extremes reached into the release often mean positioning is one-sided. A reversion toward neutral in the first 24 hours is common.
6. Alerts Suite
Pre-bundled conditions let you automate workflows:
• Bullish / Bearish zero crosses – queue spot or futures entries.
• Standard OB / OS – notify for first contact with actionable zones.
• Extreme OB / OS – prime time to review hedges, take profits or build contrarian swing positions.
7. Parameter Playground
• Shorten ROC Lookback to 14 for tactical traders; lengthen to 90 for macro investors.
• Raise extreme thresholds (for example ±80) when plotting on altcoins that exhibit higher volatility than BTC.
• Try HMA smoothing for responsive yet smooth curves on intraday charts.
• Colour-blind users can easily swap bull and bear palette selections for preferred contrasts.
8. Limitations and Best Practices
• The Fed Funds series is step-wise; it only changes on meeting days. Rapid BTC oscillations in between may dominate the calculation. Keep that perspective when interpreting very high-frequency signals.
• Divergence does not equal causation. Crypto-native catalysts (ETF approvals, hack headlines) can overwhelm macro links temporarily.
• Use in conjunction with classical confirmation tools—order-flow footprints, market-profile ledges, or simple price action to avoid “pure-indicator” traps.
9. Final Thoughts
The FEDFUNDS Rate Divergence Oscillator distills an entire macro narrative monetary policy versus risk sentiment into a single colourful heartbeat. It will not magically predict every pivot, yet it excels at framing market context, spotting stretches and timing regime changes. Treat it as a strategic compass rather than a tactical sniper scope, combine it with sound risk management and multi-factor confirmation, and you will possess a robust edge anchored in the world’s most influential interest-rate benchmark.
Trade consciously, stay adaptive, and let the policy-price tension guide your roadmap.
Night Session Highlight (Valehson)Highlights time range from 21:00 to 09:00 with a gray background with 90% transparency.
TFPS_EngineLibrary "TFPS_Engine"
f_calculate_lead_lag(series1, series2, length, max_lag)
Parameters:
series1 (float)
series2 (float)
length (int)
max_lag (int)
f_calculate_pressure_score(spx_ticker, vix_ticker, dxy_ticker, us10y_ticker, benchmark_source, trend_lookback, score_smoothing, use_dynamic_weights, corr_lookback, w_spx, w_vix, w_dxy, w_us10y, zscore_lookback, max_lag)
Parameters:
spx_ticker (string)
vix_ticker (string)
dxy_ticker (string)
us10y_ticker (string)
benchmark_source (float)
trend_lookback (int)
score_smoothing (simple int)
use_dynamic_weights (bool)
corr_lookback (int)
w_spx (float)
w_vix (float)
w_dxy (float)
w_us10y (float)
zscore_lookback (int)
max_lag (int)
LeadLagOutput
Fields:
best_lag (series int)
max_corr (series float)
TFPS_Output
Fields:
historical_score (series float)
smoothed_score (series float)
z_score (series float)
regime_signal (series int)
lead_lag_bars (series int)
lead_lag_corr (series float)
weight_spx (series float)
weight_vix (series float)
weight_dxy (series float)
weight_us10y (series float)
Momentum Oscillator ModifiedThis indicator is a custom momentum oscillator enhanced with True Range-adjusted price logic and dynamic Bollinger Bands, offering a refined way to track price strength, momentum shifts, and overbought/oversold extremes with reduced noise.
Key Features:
Dynamic Price Oscillator:
Measures momentum using both price change and a volatility-adjusted price for greater accuracy.
Smoothing factor lets you fine-tune the balance between responsiveness and noise filtering.
True Range-Based Volatility Adjustment:
Integrates true range calculations to adapt to current volatility, making signals more robust during different market conditions.
Adaptive Bollinger Bands:
Two sets of custom Bollinger Bands (standard and expanded) are drawn around the oscillator, adapting over time.
These bands help identify when momentum is exceptionally strong or weak relative to recent history.
Special fills dynamically highlight when the oscillator breaks above/below the bands, signaling potential trend extremes.
Customization:
Easily adjust lookback length and smoothing factor to fit your personal trading style (e.g., scalping or swing trading).
How to Use:
Watch for the oscillator crossing above the green Bollinger Bands or below the red bands for potential overbought/oversold or breakout scenarios.
Expanded bands provide a "super extreme" zone which may hint at exhaustion or trend climax.
The dynamic mean (black line) gives a visual reference for the normalized momentum level.
Range Filter Strategy [Arabic Real Backtest]استراتيجية مرشح النطاق - اختبار واقعي
نظرة عامة
استراتيجية مرشح النطاق المتقدمة مصممة للاختبار الواقعي مع توقيت تنفيذ دقيق وإدارة مخاطر شاملة. تم بناؤها خصيصًا لأسواق العملات الرقمية مع معلمات قابلة للتخصيص لأصول وفترات زمنية مختلفة.
الخوارزمية الأساسية
تقنية مرشح النطاق:
* حساب متوسط النطاق السلس باستخدام فلترة مزدوجة للـ EMA
* فلترة أسعار استنادًا إلى النطاق الديناميكي لتحديد اتجاه الاتجاه
* نظام فلترة ضد الضوضاء لتقليل الإشارات الخاطئة
* تتبع الزخم الاتجاهي مع عدادات للأعلى/للأسفل
الميزات الرئيسية
**التنفيذ الفوري (بدون تأخير)**
* معالجة الأوامر عند كل نقطة: تنفيذ فوري دون انتظار إغلاق الشمعة
* تكامل مكبر الشمعة للحصول على دقة داخل الشمعة
* الحساب في كل نقطة لضمان الاستجابة القصوى
* تجاوز OHLC القياسي لزيادة الدقة
**محاكاة الأسعار الواقعية**
* تسعير الدخول باستخدام HL2 (High+Low)/2 لملء واقعي
* محاكاة للبُعد العازل للسعر القابل للتخصيص
* إنشاء انزلاق عشوائي (من 0 إلى الحد الأقصى للانزلاق)
* التحقق من سيولة السوق قبل الدخول
**فلترة الإشارات المتقدمة**
* فلترة استنادًا إلى الحجم مع نسبة قابلة للتخصيص
* نظام تأكيد الإشارة اختياري (من 1 إلى 3 شموع)
* منطق مضاد للتكرار لمنع الإشارات المكررة
* التحكم في حد التداول اليومي
**إدارة المخاطر**
* نسب ثابتة للمخاطرة: العائد مع حساب دقيق للنقاط
* تنفيذ وقف الخسارة وجني الأرباح تلقائيًا
* إدارة حجم المركز
* تحديد الحد الأقصى للصفقات اليومية
**نظام التنبيهات**
* تنبيهات فورية متزامنة مع تنفيذ الاستراتيجية
* أنواع متعددة من التنبيهات: إعداد، دخول، خروج، حالة
* تخصيص تنسيق الرسائل مع تضمين السعر/الوقت
* تكامل مع لوحة تنبيهات TradingView
المعلمات الافتراضية
محسن لرسوم بيانية لفترة 5 دقائق لبيتكوين:
* فترة العينة: 100
* معامل النطاق: 3.0
* المخاطرة: 50 نقطة
* المكافأة: 100 نقطة (نسبة 1:2)
* بُعد الانتشار: 2.0 نقطة
* الحد الأقصى للانزلاق: 1.0 نقطة
منطق الإشارة
**شروط الدخول الطويل:**
* السعر فوق خط مرشح النطاق
* تأكيد الزخم الصاعد
* تلبية متطلبات الحجم (إذا تم تمكينها)
* اكتمال فترة التأكيد (إذا تم تمكينها)
* لم يتم تجاوز حد الصفقات اليومية
**شروط الدخول القصير:**
* السعر تحت خط مرشح النطاق
* تأكيد الزخم الهابط
* تلبية متطلبات الحجم (إذا تم تمكينها)
* اكتمال فترة التأكيد (إذا تم تمكينها)
* لم يتم تجاوز حد الصفقات اليومية
العناصر البصرية
* خط مرشح النطاق مع تلوين الاتجاه
* الأشرطة العليا والسفلى المستهدفة
* علامات إشارات الدخول
* صناديق نسبة المخاطرة/العائد
* لوحة إعدادات حية
خيارات التخصيص
**التكيف مع السوق:**
* تعديل فترة العينة لبيانات الزمن المختلفة
* تعديل معامل النطاق لمستويات التقلب المختلفة
* تكوين الانتشار/الانزلاق لوسطاء مختلفين
* تحديد النسب المناسبة للمخاطرة/العائد حسب أسلوب التداول
**ضوابط الفلترة:**
* تمكين/تعطيل فلترة الحجم
* تعديل متطلبات التأكيد
* تعيين حدود الصفقات اليومية
* تخصيص تفضيلات التنبيه
الميزات المتعلقة بالأداء
* نتائج اختبار واقعية متوافقة مع التداول المباشر
* القضاء على تحيز المستقبل
* محاكاة تنفيذ الأوامر بشكل صحيح
* إحصائيات تداول شاملة
تكوين التنبيه
**أنواع التنبيهات المتاحة:**
* إشارات الدخول مع معلومات التداول الكاملة
* تنبيهات الإعداد للتحضير المبكر
* إشعارات الخروج لإدارة المراكز
* فلترة التغيرات في الاتجاه لظروف السوق
**تنسيق الرسائل:**
رمز - الإجراء | السعر: XX.XX | الوقف: XX.XX | الهدف: XX.XX | الوقت: HH\:MM
التوصيات لاستخدام الاستراتيجية
**الإعدادات المثلى:**
* بيتكوين/العملات الرقمية الرئيسية: المعلمات الافتراضية
* الفوركس: تقليل فترة العينة إلى 50-70، المعامل إلى 2.0-2.5
* الأسهم: تقليل فترة العينة إلى 30-50، المعامل إلى 1.0-1.8
* الذهب: فترة العينة 60-80، المعامل 1.5-2.0
**تكوين TradingView:**
* إعادة الحساب: "على كل نقطة"
* الأوامر: "استخدام مكبر الشمعة"
* البيانات: يوصى باستخدام التغذية الحية
إخلاء المسؤولية
تم تصميم هذه الاستراتيجية لأغراض تعليمية وتحليلية. الأداء السابق لا يضمن النتائج المستقبلية. يجب دائمًا إجراء اختبارات شاملة على التداول الورقي قبل التنفيذ المباشر. يجب أخذ ظروف السوق، تنفيذ الوسيط، والتحمل الشخصي للمخاطر في الاعتبار عند استخدام أي نظام تداول آلي.
Range Filter Strategy - Real Backtesting
# Overview
Advanced Range Filter strategy designed for realistic backtesting with precise execution timing and comprehensive risk management. Built specifically for cryptocurrency markets with customizable parameters for different assets and timeframes.
Core Algorithm
Range Filter Technology:
- Smooth Average Range calculation using dual EMA filtering
- Dynamic range-based price filtering to identify trend direction
- Anti-noise filtering system to reduce false signals
- Directional momentum tracking with upward/downward counters
Key Features
Real-Time Execution (No Delay)
- Process orders on tick: Immediate execution without waiting for bar close
- Bar magnifier integration for intrabar precision
- Calculate on every tick for maximum responsiveness
- Standard OHLC bypass for enhanced accuracy
Realistic Price Simulation
- HL2 entry pricing (High+Low)/2 for realistic fills
- Configurable spread buffer simulation
- Random slippage generation (0 to max slippage)
- Market liquidity validation before entry
Advanced Signal Filtering
- Volume-based filtering with customizable ratio
- Optional signal confirmation system (1-3 bars)
- Anti-repetition logic to prevent duplicate signals
- Daily trade limit controls
Risk Management
- Fixed Risk:Reward ratios with precise point calculation
- Automatic stop loss and take profit execution
- Position size management
- Maximum daily trades limitation
Alert System
- Real-time alerts synchronized with strategy execution
- Multiple alert types: Setup, Entry, Exit, Status
- Customizable message formatting with price/time inclusion
- TradingView alert panel integration
Default Parameters
Optimized for BTC 5-minute charts:
- Sampling Period: 100
- Range Multiplier: 3.0
- Risk: 50 points
- Reward: 100 points (1:2 R:R)
- Spread Buffer: 2.0 points
- Max Slippage: 1.0 points
Signal Logic
Long Entry Conditions:
- Price above Range Filter line
- Upward momentum confirmed
- Volume requirements met (if enabled)
- Confirmation period completed (if enabled)
- Daily trade limit not exceeded
Short Entry Conditions:
- Price below Range Filter line
- Downward momentum confirmed
- Volume requirements met (if enabled)
- Confirmation period completed (if enabled)
- Daily trade limit not exceeded
Visual Elements
- Range Filter line with directional coloring
- Upper and lower target bands
- Entry signal markers
- Risk/Reward ratio boxes
- Real-time settings dashboard
Customization Options
Market Adaptation:
- Adjust Sampling Period for different timeframes
- Modify Range Multiplier for various volatility levels
- Configure spread/slippage for different brokers
- Set appropriate R:R ratios for trading style
Filtering Controls:
- Enable/disable volume filtering
- Adjust confirmation requirements
- Set daily trade limits
- Customize alert preferences
Performance Features
- Realistic backtesting results aligned with live trading
- Elimination of look-ahead bias
- Proper order execution simulation
- Comprehensive trade statistics
Alert Configuration
Alert Types Available:
- Entry signals with complete trade information
- Setup alerts for early preparation
- Exit notifications for position management
- Filter direction changes for market context
Message Format:
Symbol - Action | Price: XX.XX | Stop: XX.XX | Target: XX.XX | Time: HH:MM
Usage Recommendations
Optimal Settings:
- Bitcoin/Major Crypto: Default parameters
- Forex: Reduce sampling period to 50-70, multiplier to 2.0-2.5
- Stocks: Reduce sampling period to 30-50, multiplier to 1.0-1.8
- Gold: Sampling period 60-80, multiplier 1.5-2.0
TradingView Configuration:
- Recalculate: "On every tick"
- Orders: "Use bar magnifier"
- Data: Real-time feed recommended
Risk Disclaimer
This strategy is designed for educational and analytical purposes. Past performance does not guarantee future results. Always test thoroughly on paper trading before live implementation. Consider market conditions, broker execution, and personal risk tolerance when using any automated trading system.