Deviation from EMA & VWAPThis indicator displays the real-time percentage deviation of price from both the EMA and VWAP.
🔹 EMA Deviation is shown as a smooth blue line
🟧 VWAP Deviation is shown as an orange histogram
📉 Use it to spot overbought/oversold conditions or sharp impulse moves
🔔 Built-in alerts for extreme deviations
🎯 Fully customizable: EMA length, deviation thresholds, VWAP toggle, and more
Ideal for identifying counter-trend setups and price extremes across all timeframes.
指標和策略
Henry Hub Verfallstermine 2025This Pine Script plots vertical lines on your TradingView chart at each 2025 Henry Hub Natural Gas futures expiry date. Each line:
Appears from top to bottom of the chart.
Is labeled with the exact expiry date (e.g., 2025-06-26).
Has a customizable color via the script settings.
This helps you visually track key contract rollover points directly on your chart.
PLR-Z For Loop🧠 Overview
PLR-Z For Loop is a trend-following indicator built on the Power Law Residual Z-score model of Bitcoin price behavior. By measuring how far price deviates from a long-term power law regression and applying a custom scoring loop, this tool identifies consistent directional pressure in market structure. Designed for BTC, this indicator helps traders align with macro trends.
🧩 Key Features
Power Law Residual Model: Tracks deviations of BTC price from its long-term logarithmic growth curve.
Z-Score Normalization: Applies long-horizon statistical normalization (400/1460 bars) to smooth residual deviations into a usable trend signal.
Loop-Based Trend Filter: Iteratively scores how often the current Z-score exceeds prior values, emphasizing trend persistence over volatility.
Optional Smoothing: Toggleable exponential smoothing helps filter noise in choppier market conditions.
Directional Regime Coloring: Aqua (bullish) and Red (bearish) visuals reinforce trend alignment across plots and candles.
🔍 How It Works
Power Law Curve: Price is compared against a logarithmic regression model fitted to historical BTC price evolution (starting July 2010), defining structural support, resistance, and centerline levels.
Residual Z-Score: The residual is calculated as the log-difference between price and the power law center.
This residual is then normalized using a rolling mean (400 days) and standard deviation (1460 days) to create a long-term Z-score.
Loop Scoring Logic:
A loop compares the current Z-score to a configurable number of past bars.
Each higher comparison adds +1, and each lower one subtracts -1.
The result is a trend persistence score (z_loop) that grows with consistent directional momentum.
Smoothing Option: A user-defined EMA smooths the score, if enabled, to reduce short-term signal noise.
Signal Logic:
Long signal when trend score exceeds long_threshold.
Short signal when score drops below short_threshold.
Directional State (CD): Internally manages the current market regime (1 = long, -1 = short), controlling all visual output.
🔁 Use Cases & Applications
Macro Trend Alignment: Ideal for traders and analysts tracking Bitcoin’s structural momentum over long timeframes.
Trend Persistence Filter: Helps confirm whether the current move is part of a sustained trend or short-lived volatility.
Best Suited for BTC: Built specifically on the BNC BLX price history and Bitcoin’s power law behavior. Not designed for use with other assets.
✅ Conclusion
PLR-Z For Loop reframes Bitcoin’s long-term power law model into a trend-following tool by scoring the persistence of deviations above or below fair value. It shifts the focus from valuation-based mean reversion to directional momentum, making it a valuable signal for traders seeking high-conviction participation in BTC’s broader market cycles.
⚠️ Disclaimer
The content provided by this indicator is for educational and informational purposes only. Nothing herein constitutes financial or investment advice. Trading and investing involve risk, including the potential loss of capital. Always backtest and apply risk management suited to your strategy.
Volatility Break + Trend Bias Scalper [Enhanced Visuals]Volatility Break + Trend Bias Scalper \
Overview
This strategy is designed to help traders catch high-probability breakout moves by combining real-time volatility surges with higher timeframe trend confirmation. It is particularly useful in markets like AAPL, BTC, NASDAQ, and Forex pairs where volatility and momentum often occur in bursts.
📈 Strategy Logic
🎯 1. Volatility Spike Detection
The core entry trigger is based on identifying sudden ATR-based volatility bursts:
* ATR(7) is compared to its EMA(14) smoothing.
* A volatility spike is confirmed when ATR exceeds `1.5x` the smoothed ATR.
This helps avoid entering during sideways price action and focuses only on explosive breakouts.
🧭 2. Higher Timeframe Trend Filter
To improve signal quality, the strategy checks the EMA(200) slope from a higher timeframe (e.g., 15min while trading on 3/5/45min charts):
* Bullish trend: EMA rising
* Bearish trend: EMA falling
This ensures we only trade in the direction of larger momentum.
🧠 3. Structure Break Entry
A simple but effective price action confirmation:
* Long: Close > highest close of the last 2 candles
* Short: Close < lowest close of the last 2 candles
This avoids "fake" moves and choppy zones.
🎛️ 4. Risk/Reward and Exit Logic
* Take Profit (TP) = 1.5× ATR (configurable)
* Stop Loss (SL) = 1.0× ATR (configurable)
* You can adjust this for more aggressive or conservative setups.
✅ All exits are calculated dynamically using the current ATR at trade entry.
🖥️ Visual Enhancements
This version includes:
✅ Signal markers (🔴 for Short, 🟢 for Long)
✅ Trend-colored background zones
✅ TP/SL lines drawn on chart
✅ Toggle options to enable/disable labels and TP/SL lines
These visuals help traders quickly validate signals, backtest more effectively, and share setups with clarity.
🧪 Backtest Settings
* Position Size: 1% of equity
* Commission: 0
* Slippage: Assumed minimal
* Recommended Markets: AAPL (45m), BTCUSD (5m–15m), NAS100 (15m), EUR/USD (5m)
> You can tune the strategy further using `PineScriptsAI`.
⚠️ Disclaimer
This strategy is for **educational purposes only**. It does **not constitute financial advice** or guarantees of profitability. Backtest results may vary across assets, timeframes, and market conditions.
Always validate with forward testing and sound risk management.
🔗 Built With Help From PineScriptsAI
Want to build your own version or add:
* Time filters (e.g., NY or London session)?
* Multi-take-profits or trailing stop?
* Auto alert bots to Telegram/Discord?
CHN BUY SELL with EMA 200Overview
This indicator combines RSI 7 momentum signals with EMA 200 trend filtering to generate high-probability BUY and SELL entry points. It uses colored candles to highlight key market conditions and displays clear trading signals with built-in cooldown periods to prevent signal spam.
Key Features
Colored Candles: Visual momentum indicators based on RSI 7 levels
Trend Filtering: EMA 200 confirms overall market direction
Signal Cooldown: Prevents over-trading with adjustable waiting periods
Clean Interface: Simple BUY/SELL labels without clutter
How It Works
Candle Coloring System
Yellow Candles: Appear when RSI 7 ≥ 70 (overbought momentum)
Purple Candles: Appear when RSI 7 ≤ 30 (oversold momentum)
Normal Candles: All other market conditions
Trading Signals
BUY Signal: Triggered when closing price > EMA 200 AND yellow candle appears
SELL Signal: Triggered when closing price < EMA 200 AND purple candle appears
Signal Cooldown
After a BUY or SELL signal appears, the same signal type is suppressed for a specified number of candles (default: 5) to prevent excessive signals in ranging markets.
Settings
RSI 7 Length: Period for RSI calculation (default: 7)
RSI 7 Overbought: Threshold for yellow candles (default: 70)
RSI 7 Oversold: Threshold for purple candles (default: 30)
EMA Length: Period for trend filter (default: 200)
Signal Cooldown: Candles to wait between same signal type (default: 5)
How to Use
Apply the indicator to your chart
Look for yellow or purple colored candles
For LONG entries: Wait for yellow candle above EMA 200, then enter BUY when signal appears
For SHORT entries: Wait for purple candle below EMA 200, then enter SELL when signal appears
Use appropriate risk management and position sizing
Best Practices
Works best on timeframes M15 and higher
Suitable for Forex, Gold, Crypto, and Stock markets
Consider market volatility when setting stop-loss and take-profit levels
Use in conjunction with proper risk management strategies
Technical Details
Overlay: True (plots directly on price chart)
Calculation: Based on RSI momentum and EMA trend analysis
Signal Logic: Combines momentum exhaustion with trend direction
Visual Feedback: Colored candles provide immediate market condition awareness
Regression Channel (Interactive)Weighted Interactive Regression Channel (WIRC)
Overview
The Weighted Interactive Regression Channel improves on traditional regression channels by emphasizing key price points through intelligent weighting. Instead of treating all candles equally, WIRC adapts to market dynamics for better trend detection and channel accuracy.
Key Differences from Standard Channels
Weighted vs. Equal: Prioritizes significant events over uniform weighting
Dynamic vs. Static: Adapts in real time to market changes
Accurate vs. Basic: Reduces noise, enhances signal clarity
Customizable vs. Fixed: Full control over weights and visuals
Weighting Methods
Direction Change – Highlights reversal points via local peaks/troughs
Volume-Based – Emphasizes high-volume candles, ideal for breakouts
Price Range – Weights wide-range candles to capture volatility
Time Decay – Prioritizes recent data for current market relevance
Interactive Features
Data Range: Set channel start/end over 1–500 bars
Visuals: Line styles, color coding, fill options, reference lines
Stats: Slope, R², standard deviation, point count, weight method
Technical Implementation
Weighted Regression Formula: Uses weights for slope, intercept, and deviation
Channel Lines: Center = weighted regression; bounds = ± deviation × multiplier
Usage Scenarios
Trend Analysis: Use Direction Change + longer range
Breakouts: Use Volume weighting + fill + boundary watching
Volatility: Apply Price Range weighting + monitor standard deviation
Current Market: Use Time Decay + shorter ranges + stat display
Parameter Tips
Channel Width:
Narrow (1.0–1.5): Responsive
Standard (1.5–2.0): Balanced
Wide (2.0–3.0+): Conservative
Weighting Intensity:
Conservative (1.5–2.0)
Moderate (2.0–3.0)
Aggressive (3.0+)
Advanced Use
Multi-Timeframe: Use different weightings per timeframe
Market Structure: Detect swings, institutional zones
Risk Management: Dynamic S/R levels, volatility-driven sizing
Best Practices
Start with Direction Change
Test different ranges
Monitor stats
Combine with other indicators
Adjust to market context
Recalibrate regularly
Conclusion
WIRC delivers a smarter, more adaptive view of price action than standard regression tools. With real-time customization and multiple weighting options, it’s ideal for traders seeking precision across strategies—trend tracking, breakout confirmation, or volatility insight.
Wave Trend - V5Update of V4, only medium and strong signals on 4H and above time frames shown due to too much alerts produced on lower frames. Generates clear BUY/SELL signals across several timeframes comparing with BTC signals to follow the BTC trend.
Congestion Indicator - Oscillator by saurabh maggoCore Functionality
Market State Detection:
Congestion: Identifies periods of low volatility (price consolidation) where the price range is tight relative to the Average True Range (ATR). Visualized with a blue background in the oscillator panel.
Breakout Up: Detects upward breakouts from congestion zones, requiring conditions like price movement above the congestion high, volume spikes, and volatility increases. Visualized with a green background.
Breakdown (Breakout Down): Detects downward breakouts from congestion zones, with similar conditions as Breakout Up but for downward movement. Visualized with a red background.
Post-Congestion: Identifies the period after a congestion zone ends but before a breakout occurs (if extend_until_breakout is disabled). Visualized with a yellow background.
Pullback: Detects pullbacks after breakouts or breakdowns, useful for identifying potential entry points (if use_pullback_entry is enabled). Visualized with a purple background.
Visualization:
Oscillator Panel: Displays the market state in a separate panel below the chart.
Background Color: The panel’s background color changes to reflect the current state (e.g., blue for Congestion, green for Breakout Up).
Histogram Plot: Optionally plots the state value as a histogram (e.g., 1 for Congestion, 2 for Breakout Up), toggleable via TradingView’s "Style" tab ("Market State"). The histogram provides a numerical representation of the state:
Congestion: 1.0
Breakout Up: 2.0
Breakdown: -2.0
Post-Congestion: 0.5
Pullback: 1.5
None: 0.0
Alerts:
Generates alerts for state changes (Congestion, Breakout Up, Breakdown).
Supports enhanced alerts (if use_enhanced_alerts is enabled), including additional context like breakout level, volatility state, and trend direction.
Includes an alert cooldown period (if use_alert_cooldown is enabled) to prevent excessive alerts.
Key Features and Filters
Customizable Parameters:
Lookback Period: Adjusts the number of bars used to calculate the price range for congestion detection.
Range Threshold: Sets the maximum price range (as a percentage of ATR) for a congestion zone.
Dynamic Threshold: Optionally uses a percentile-based dynamic threshold for more adaptive congestion detection.
Minimum Congestion Bars: Requires a minimum number of bars for a congestion zone to be confirmed.
Volume Filter: Optionally requires low volume during congestion zones.
Volume Breakout Filter: Requires a volume spike for breakouts/breakdowns.
Volatility Breakout Filter: Requires an ATR spike for breakouts/breakdowns.
Minimum Price Movement: Optionally requires a minimum price movement for breakouts/breakdowns.
RSI Filter: Optionally requires RSI to be in a neutral range during congestion.
Max Price Range Filter: Limits the absolute price range for congestion zones.
Trend Filter: Optionally filters breakouts/breakdowns based on a higher timeframe trend (using a moving average).
Momentum Filter: Optionally requires MACD momentum confirmation for breakouts/breakdowns.
Pullback Detection: Optionally detects pullbacks after breakouts/breakdowns for entry opportunities.
Timeframe Adjustment: Adjusts parameters based on the chart’s timeframe.
Auto-Settings: Automatically adjusts parameters based on market volatility.
Show Current Day Only: Optionally limits the indicator’s display to the current trading day (NSE session).
Presets: Offers predefined configurations (Default, Aggressive, Conservative) for quick setup.
Session Support: Operates within the NSE session (9:15 AM–3:30 PM IST) by default, ensuring relevance for Indian markets.
Visual Output
The oscillator panel uses color-coded backgrounds to indicate the market state:
Blue: Congestion
Green: Breakout Up
Red: Breakdown
Yellow: Post-Congestion
Purple: Pullback
Transparent (None): No state detected
The histogram plot (optional) provides a numerical representation of the state, which can be toggled on/off in TradingView’s settings.
Alerts
Alerts are triggered for significant state changes (Congestion, Breakout Up, Breakdown).
Enhanced alerts include additional details like price levels, volatility, and trend direction, making them more informative for traders.
Step 2: Craft the Description for Publishing
Based on the analysis, here’s a concise, user-friendly description you can use when publishing the indicator on TradingView:
Congestion Indicator - Oscillator by Saurabh Maggo
This indicator identifies market congestion zones, breakouts, breakdowns, post-congestion periods, and pullbacks in a separate oscillator panel below your chart. Designed for traders, it helps you spot key market states and potential trading opportunities with clear visual cues and customizable alerts.
Key Features:
Market States: Detects Congestion (Blue), Breakout Up (Green), Breakdown (Red), Post-Congestion (Yellow), and Pullbacks (Purple).
Visual Display: Shows market states using background colors in an oscillator panel, with an optional histogram plot (toggleable in settings).
Alerts: Generates alerts for state changes, with enhanced options to include price levels, volatility, and trend context.
Customizable Filters: Includes volume, volatility, RSI, trend, momentum, and price movement filters to refine signals.
Adaptable Settings: Supports dynamic thresholds, timeframe adjustments, auto-settings based on volatility, and predefined presets (Default, Aggressive, Conservative).
NSE Session: Optimized for Indian markets with a default session time of 9:15 AM–3:30 PM IST.
How can Grok help?
Hedge Lines {RumRunner}Lines for hedging. Semi customizable. Thick blue lines for entry and take profits and the dotted lines for adding hedge position. Its 10 pips away from the blue lines and allows for some wiggle room before you have to add the hedge in opposite direction.
TCP arsh setup candle finder by AidinA powerful tool to identify specific TCP-style bullish and bearish candles with advanced filtering options.
Supports body color filters, relative candle size, and multi-level moving average confirmations (MA1–MA4).
Custom alerts notify you when valid setups appear in recent candles.
Perfect for traders seeking cleaner entries with contextual trend validation.
Supply/Demand Zones + Engulfment-based ExecutionSupply/Demand Zones + Engulfment-Based Execution
Strategy Overview
This strategy combines institutional trading concepts—supply/demand zones and engulfing candle patterns—to generate high-probability long and short trade setups. The system uses aggregated price action to identify potential reversal zones and confirms entries with engulfing candle patterns, ensuring trades are only taken when market structure shows commitment in the direction of the trade.
Core Concepts
• Supply & Demand Zones: These are automatically detected by analyzing aggregated bullish and bearish candle structures over user-defined intervals. Supply zones are formed after bearish continuation patterns; demand zones appear after bullish continuation patterns.
• Engulfing Entries: Once price enters a zone, the strategy waits for a bullish engulfing pattern (in a demand zone) or a bearish engulfing pattern (in a supply zone) before executing a trade. This adds confirmation and reduces false signals.
• Risk Management: Stop-loss is placed at the low (for long trades) or high (for short trades) of the engulfed candle. Take-profit can be calculated using a fixed R-multiple (risk-to-reward ratio) or a user-defined target price.
Key Features
Fully customizable aggregation factor for zone detection
Visual zone boxes, entry/SL/TP boxes, and engulfing pattern labels
Optional removal of mitigated zones for cleaner charting
Configurable trade mode (Long only, Short only, or Both)
Support for trading sessions and date filtering
Alerts for price entering supply or demand zones
How to Use
Select Aggregation Factor: Choose how many candles to group together for identifying key zones (e.g., 4x timeframe).
Enable Zones: Turn on supply and/or demand zones as needed.
Set Execution Parameters:
– Choose R-multiple (e.g., 2:1 risk-reward)
– Or use a fixed take-profit price
Define Trade Time Window:
– Set the date and time ranges to restrict execution
– Use Start Hour and End Hour to limit trades to specific sessions (e.g., London/New York)
Run on Desired Timeframe: Typically used on 15m–4H charts, depending on your strategy and the asset’s volatility.
Ideal For
• Traders using Smart Money Concepts (SMC)
• Those who value high-confluence entries
• Intraday to swing traders looking for structure-based automation
⚠️ Important Notes
• The strategy requires engulfing confirmation within the zone to enter a position.
• This script does not repaint and executes trades on a bar close basis.
• Backtest results may vary based on session filters and aggregation factor.
© Attribution
This strategy was developed by The_Forex_Steward and is licensed under the Mozilla Public License 2.0.
You are free to use, modify, and distribute it under the terms of that license.
DB1800 Gann Angle Levels Table (CMP Based)Gann Angles for Resistance and Support
2 = 360 degree for 1 month
1 = 180 degree for 1 week
0.5 = 90 degree for 1 to 2 days
0.25 = 45 degree for next day
0.125 = 22.5 degree for more granular than next day (scalping)
The only thing that multiplies when you share it is knowledge.
Inspired by Sudhir Sharma Sir
www.youtube.com
Vol > 1.3 × 50-DMA + Price DirectionThis custom script highlights high-energy sessions where volume is at least 1.3 × the 50-day volume moving average (50-DMA) and instantly tells you whether the market absorbed that participation on strength or weakness:
Green bars — Volume ≥ 1.3 × 50-DMA and Close > Open (bull-confirmed volume spike)
Red bars — Volume ≥ 1.3 × 50-DMA and Close < Open (bear-confirmed volume spike)
Gray bars — Volume below the 1.3-multiplier (normal activity)
An orange line plots the exact 1.3 × 50-DMA threshold so you can visually gauge how far each bar exceeds (or misses) the requirement.
IDRISPAULThe script handles support/resistance detection, breakouts, and retest detection based on user-configurable inputs.
Uses pivot points and tracks potential vs confirmed retests.
Includes support for non-repainting logic via selectable options.
PE | EPS | Book | PBV | Earning% | Dividend% | ROE% | DEAll in one PE | EPS | Book | PBV | Earning% | Dividend% | ROE% | DE
all common indicator need for fundamental analysis
TPG Trend + MACDUser Guide for "TPG Trend + MACD"
Author: TrungChuThanh
🔎 Main Functions
The TPG Trend + MACD indicator is a combined tool that integrates:
TPG Trend Histogram (spread between fast and slow EMA)
MACD Line & Signal for confirming trend momentum
Buy/Sell signals displayed directly on the indicator panel
⚙️ Components and Meaning
1️⃣ TPG Trend Histogram
Calculated from the difference between Fast EMA (9) and Slow EMA (26).
Light gray bars = bullish trend (spread > 0)
Dark gray bars = bearish trend (spread < 0)
Signal triggers:
B1 (green label): Crossover above 0 → Buy signal
S1 (red label): Crossunder below 0 → Sell signal
2️⃣ MACD Line & Signal
Consists of:
MACD Line = EMA(12) – EMA(26)
Signal Line = EMA(9) of the MACD Line
Confirmation signals:
B2 (blue triangle): MACD crosses above Signal → Buy confirmation
S2 (orange triangle): MACD crosses below Signal → Sell confirmation
MACD Line: Blue
Signal Line: Orange
📌 How to Use
Determine the main trend using the TPG Histogram
→ When the histogram crosses above zero → Consider Buy
→ When it crosses below zero → Consider Sell
Use MACD to confirm trend direction or optimize entry timing
✅ Prefer signals when both TPG and MACD align (e.g., B1 + B2 or S1 + S2)
⚠️ Avoid using the indicator alone; combine with support/resistance, RSI, volume, or other tools for higher accuracy
🛠️ Adjustable Parameters
Fast/Slow EMA for TPG Trend
Fast/Slow/Signal for MACD
Toggle to show/hide TPG and MACD elements in the panel
⚠️ Notes
This is a technical analysis tool, not investment advice
Always apply risk management, set clear stop-loss, and confirm signals across multiple timeframes
Candle Count RSI📈 Candle Count RSI — A Dual-Perspective Momentum Engine
The Candle Count RSI is a custom-built momentum oscillator that expands on the classic Relative Strength Index (RSI) by introducing a directional-only variant that tracks the frequency of bullish or bearish closes, rather than price magnitude. It gives traders a second lens through which to evaluate momentum, trend conviction, and subtle divergences—often invisible to traditional price-based RSI.
💡 What Makes It Unique?
While the standard RSI is sensitive to the size of price changes, the Candle Count RSI is magnitude-blind. It counts candle closes above/below open over a lookback period, generating a purer signal of directional consistency. To enhance signal fidelity, it includes a streak amplifier, dynamically weighting extended runs of green or red candles to reflect intensity of market bias—without introducing artificial price sensitivity.
This dual-RSI approach allows for:
- Divergence detection between directional bias and price magnitude.
- Smoother trend confirmation in choppy markets.
- Cleaner visual cues using dynamic glow and background logic.
📐 How Standard RSI Actually Works (Not What You Think)
RSI doesn’t just check if price went up or down over a span—it checks each individual candle and tracks whether it closed higher or lower than the one before. Here's how it works under the hood:
1.) For each bar, it calculates the change from the previous close.
2.) It separates those changes into gains (upward moves) and losses (downward moves).
3.) Then it computes a smoothed average of those gains and losses (usually using an RMA).
4.) It calculates the Relative Strength (RS) as:
RS = AvgGain / AvgLoss
5.) Finally, it plugs that into the RSI formula:
RSI = 100 - (100 / (1 + RS))
⚖️ What Does the 50 Line Mean?
- The RSI scale runs from 0 to 100, but 50 is the true neutral zone:
- RSI > 50 means average gains outweigh average losses over the period.
- RSI < 50 means losses dominate.
- RSI ≈ 50? The market is balanced—momentum is indecisive, no clear trend bias.
- This makes 50 a powerful midline for trend filters, directional bias tools, and divergence detection—especially when paired with alternative RSI logic like Candle Count RSI.
🔧 Inputs and Customization
- Everything is fully modular and customizable:
🧠 Core Settings
- RSI Length: Used for both the standard RSI and Candle Count RSI.
📉 Standard RSI
- Classic RSI calculation based on price changes.
- Optional WMA smoothing to reduce noise.
- Glow effect toggle with custom intensity.
🕯 Candle Count RSI
- Computes RSI using only the count of up/down candles.
- Optional smoothing for stability.
- Amplifies streaks (e.g., multiple consecutive bullish candles increase strength).
- Glow effect toggle with adjustable strength.
🎇 Glow Visuals
- Background glow (subpane and/or main chart).
- Fades based on RSI distance from the 50 midpoint.
- Independent color settings for bull and bear bias.
🧬 Divergence Zones
- Detects when Candle RSI and Standard RSI diverge.
- Highlights:
- Bullish Divergence: Candle RSI > 50, Standard RSI < threshold.
- Bearish Divergence: Candle RSI < 50, Standard RSI > threshold.
- Background fill optionally shown in subpane and/or main chart.
📊 Directional Histogram
- MACD-style histogram showing the difference between the two RSI lines.
- Color-coded based on directional agreement:
- Both rising → green.
- Both falling → red.
- Conflict → yellow.
🧠 Under the Hood — How It Works
🔹 Standard RSI
- Classic ta.rsi() applied to close prices, optionally WMA-smoothed.
🔹 Candle Count RSI (CCR)
- Counts how many candles closed up/down over the period.
- Computes a magnitude-free RSI from these counts.
- Applies a streak-based multiplier to exaggerate trend strength during consecutive green/red runs.
- Optionally smoothed with WMA to create a clean signal line.
- This makes CCR ideal for detecting true directional bias without being faked out by volatile price spikes.
🔹 Divergence Logic
- When Candle RSI and Standard RSI disagree strongly across defined thresholds, background fills highlight early signs of momentum decay or hidden accumulation/distribution.
🔹 Glow Logic
- Glow zones are controlled by a master toggle and drawn with dynamic transparency:
- Further from 50 = stronger conviction = darker glow.
- Shows up in subpane and/or main chart depending on user preference.
📷 Suggested Use Case / Visual Setup
- Use in conjunction with your primary price action system.
- Watch for divergences between the Candle Count RSI and Standard RSI for early trend reversals.
- Use glow bias zones on the main chart to get subconscious directional cues during fast scalping.
- Histogram helps you confirm when both RSI variants agree—useful during strong trending conditions.
🛠️ Tip for Traders
- This tool isn’t trying to “predict” price. It’s designed to visualize hidden market psychology—when buyers are showing up with consistent pressure, or when momentum has a disconnect between conviction and magnitude. Use this to filter entries, spot weak rallies, or sense when a trend is about to break down.
⚠️ WARNING
- Not for use with Heikin Ashi, Renko, etc.).
🧠 Summary
Candle Count RSI is not just another mashup—it's a precision-built, dual-perspective oscillator that captures directional conviction using real candle behavior. Whether you're scalping intraday or swing trading momentum, this script helps clarify trend integrity and exposes hidden weaknesses with elegance and clarity.
—
🛠️ Built by: Sherlock_MacGyver
Feel free to share feedback or reach out if you'd like to collaborate on custom features.
3 EMA Trend Strategy (Locks Trailing Stop Tightening)3 EMA Trend Strategy (with Trailing Stop Tightening)
This open-source strategy uses three Exponential Moving Averages (7, 21, 35) to detect bullish alignment and trigger long entries during strong upward trends.
* Entry Logic:
A long trade is triggered when EMA 7 > EMA 21 > EMA 35. This alignment signals a confirmed uptrend.
* Exit Logic:
The strategy uses a trailing stop mechanism.
An initial stop (e.g., 10%) follows the high since entry.
Once profit reaches a customizable threshold (e.g., 20%), the trailing stop tightens (e.g., to 5%) to help lock in gains.
* Backtest Settings (default):
Starting capital: $10,000
Commission: 0.1%
Slippage: 1 tick
Position sizing: 100% of equity per trade (can be reduced to lower risk)
* Customization:
All trailing logic and EMA settings are configurable.
Designed for swing trading and adaptable for multiple timeframes.
⚠️ This is for educational purposes only. Always test on different symbols and timeframes before using in live environments.
Global M2 Money Supply (USD)Global M2 Money Supply from multiple markets, with days-offset option, defaulted to 107-day shift. Credit to miguelfinance and dylanleclair, on which this script is built on
RSI Trend RiderRSI Trend Rider is a long only, momentum-based trend-following strategy designed for rules based trading. It combines a setup of EMAs (20, 50, 200), RSI(4), ADX filtering, and a daily 120 EMA to capture high-probability long trades in trending markets.
Works best on intraday timeframes (2h, 4h)
Key Features:
Multi-timeframe trend confirmation (EMA alignment + daily EMA)
RSI(4) pullback entries in strong trends
ADX filter to avoid low-momentum conditions
Configurable fixed and EMA-based stop loss/target options
Built-in performance dashboard with key metrics like PnL, drawdown, win rate, and buy & hold comparison (can be turned off on mobile or small screens).
Customizable backtest period and risk settings
Ideal for traders looking for a simple, data-driven system that rides trends and compounds small, consistent wins.
Alerts v1This indicator provides a comprehensive approach to analyzing various aspects of the market by synthesizing multiple factors and presenting them in a format that aims to deliver useful insights to the user. Designed to accommodate a broad range of trading strategies and preferences, it dynamically processes inputs and applies a series of calculations whose underlying logic is both robust and adaptable, depending on market conditions. While certain visual cues and signals may be displayed at select intervals, the actual methodology may vary in its implementation across different assets or timeframes, ensuring a flexible application for diverse market environments. The indicator may at times integrate a combination of well-established techniques with proprietary elements to enhance its overall effectiveness, although the precise weighting or significance of each factor may not be readily apparent to the end user. In some cases, the tool might respond to a unique blend of momentum, trend, and volatility measures, producing outputs that could be interpreted in several ways depending on the broader context. Users are encouraged to experiment with its configurable settings, which are designed to adjust in subtle or pronounced ways according to individual preference and evolving market dynamics. Ultimately, the goal of this indicator is to offer a nuanced perspective that balances simplicity with sophistication, providing actionable information while leaving ample room for interpretation and adaptation. As with all analytical tools, results may differ based on how it is employed and what supplementary information is considered alongside its outputs, making it a versatile yet enigmatic component of any technical analysis toolkit.
Auto Fractal [theUltimator5]This indicator is what I call the Auto Fractal. It is a unique algorithm that looks back in time, finds a segment on the chart that closest matches the recent price action, then projects the price forwards. It effectively finds chart patterns and shows you what the price did the last time the same/similar chart pattern was observed.
Creating an algorithm to match abstract curves to other abstract curves and provide a confidence score was the fundamental problem that needed to be solved in order to create this indicator, which curve matches with surprising accuracy.
The most effective method to "curve match" that I found is the Pearson Coefficient, set by a segment length and a lookback period. After the highest coefficient curve is located, the curve then gets scaled and offset to match the current price.
The past segment is drawn over the current price (orange line), giving a visualization of the two curves and how closely they match each other. The indicator then projects the price forwards in time based on the price action of the chart from the historical segment (dashed fuchsia line).
A bounding box also gets drawn around the historical segment to give you a clear visual of where the price is getting pulled from for proper analysis and ease of use.
The Pearson Coefficient % is shown in a table in the top right-hand corner of the chart and can be toggled off if desired. The values range from -100% (perfectly inverse correlation) to +100% (perfectly correlated) with 0 meaning no correlation whatsoever. The closer to +100% the value is, the better the segment match.
As with most/all of my indicators, user interface and simplicity was at the top of my priority list. I designed this to be easily readable and intuitive to both novice and veteran traders, without cluttering the chart.
Note:
This indicator is extremely heavy in terms of memory usage due to nested for loops, and takes several seconds to initially load the chart overlay. If the lookback period is increased too high (>600) then the indicator may time out and fail to load anything. If nothing loads on the chart, try reducing the lookback length and wait up to 10 seconds for lines to appear.
ROE % Quarterly By COLDMONEYReturn on Equity % By ColdMoney
this indicator use for check % Equity of stock