BTC Correlation PercentagePurpose
This indicator displays the correlation percentage between the current trading instrument and Bitcoin (BTC/USDT) as a text label on the chart. It helps traders quickly assess how closely an asset's price movements align with Bitcoin's fluctuations.
Key Features
Precise Calculation: Shows correlation as a percentage with one decimal place (e.g., 25.6%).
Customizable Appearance: Allows adjustment of colors, position, and calculation period.
Clean & Simple: Displays only essential information without cluttering the chart.
Universal Compatibility: Works on any timeframe and with any trading pair.
Input Settings
Core Parameters:
BTC Symbol – Ticker for Bitcoin (default: BINANCE:BTCUSDT).
Correlation Period – Number of bars used for calculation (default: 50 candles).
Show Correlation Label – Toggle visibility of the correlation label.
Visual Customization:
Text Color – Label text color (default: white).
Background Color – Label background color (default: semi-transparent blue).
Border Color – Border color around the label (default: gray).
Label Position – Where the label appears on the chart (default: top-right).
Interpreting Correlation Values
70% to 100% → Strong positive correlation (asset moves in sync with BTC).
30% to 70% → Moderate positive correlation.
-30% to 30% → Weak or no correlation.
-70% to -30% → Moderate negative correlation (asset moves opposite to BTC).
-100% to -70% → Strong negative correlation.
Practical Use Cases
For Altcoins: A correlation above 50% suggests high dependence on Bitcoin’s price action.
For Futures Trading: Helps assess systemic risks tied to BTC movements.
During High Volatility: Determines whether an asset’s price change is driven by its own factors or broader market trends.
How It Works
The indicator recalculates automatically with each new candle. For the most reliable results, it is recommended for use on daily or higher timeframes.
This tool provides traders with a quick, visual way to gauge Bitcoin’s influence on other assets, improving decision-making in crypto markets. 🚀
This response is AI-generated, for reference only.
New chat
移動平均線
EMA20/50/200 + RSI Swing (Trend Filter)Using three different MA to identify the trend and enter when RSI under 70 or over 30
Simple Crossover MME 5/20
Description:
This indicator plots a 5-period Exponential Moving Average (EMA) in red and a 20-period EMA in blue.
It provides clear visual signals for crossovers:
A green triangle appears when the 5 EMA crosses above the 20 EMA (bullish signal).
A red triangle appears when the 5 EMA crosses below the 20 EMA (bearish signal).
Built-in alerts are available for both bullish and bearish crossover events.
Option 2 (More Detailed)
Title: 5 EMA / 20 EMA Crossover Strategy with Visual Signals & Alerts
Description:
This script is designed to track one of the most popular moving average strategies: the crossover between the 5-period and 20-period Exponential Moving Averages (EMA). It's a clean and straightforward tool for identifying potential shifts in short-term trend momentum.
Features:
5-Period EMA: Plotted in Red.
20-Period EMA: Plotted in Blue.
Bullish Crossover Signals: A green triangle is plotted below the price bar when the 5 EMA (Red) crosses above the 20 EMA (Blue), suggesting potential upward momentum.
Bearish Crossover Signals: A red triangle is plotted above the price bar when the 5 EMA (Red) crosses below the 20 EMA (Blue), suggesting potential downward momentum.
Customizable Alerts: The indicator includes built-in alert conditions. You can easily set up real-time notifications for every "buy" (crossover) or "sell" (crossunder) signal.
How to Use:
Add the indicator to your chart.
To receive notifications, create an alert and select this indicator as the condition. Choose either the "Bullish Crossover" or "Bearish Crossover" option.
Scalping Indicator (EMA + RSI)Buy and Sell Signals. Use with Supply and Demand to find good entries. Do not rely solely on this signal. Monitors with short and long EMA cross along with oversold or overbought RSI.
Supertrend EMA Vol Strategy V5### Supertrend EMA Strategy V5
**Overview**
This is a trend-following strategy designed for cryptocurrency markets like BTC/USD on daily timeframes, combining the Supertrend indicator for dynamic trailing stops with an EMA filter for trend confirmation. It aims to capture strong uptrends while avoiding counter-trend trades, with optional volume filtering for high-conviction entries and ATR-based stop-loss to manage risk. Ideal for long-only setups in bullish assets, it visually highlights trends with green/red bands and fills for easy interpretation. Backtested on BTC from 2024-2025, it shows potential for outperforming buy-and-hold in trending markets, but always use with proper risk management—past performance isn't indicative of future results.
**Key Features**
- **Supertrend Core**: Uses ATR to plot adaptive uptrend (green) and downtrend (red) lines, flipping on closes beyond prior bands for buy/sell signals.
- **EMA Trend Filter**: Entries require price above the EMA (default 21-period) for longs, ensuring alignment with the broader trend.
- **Volume Confirmation**: Optional filter only allows entries when volume exceeds its EMA (default 20-period), reducing false signals in low-activity periods.
- **Risk Controls**: Built-in ATR-multiplier stop-loss (default 2x) to cap losses; exits on Supertrend flips for trailing profits.
- **Visuals**: Green/red lines and highlighter fills for up/down trends, plus buy/sell labels and circles for signals.
- **Customizable Inputs**: Tweak ATR period (default 10), multiplier (default 3), EMA length, start date, long/short toggles, SL, and volume filter.
- **Alerts**: Built-in for buy/sell and direction changes.
**How to Use**
1. Add to your TradingView chart (e.g., BTC/USD 1D).
2. Adjust inputs: Start with defaults for trend-following; increase multiplier for fewer trades/higher win rate. Enable volume filter for volatile assets.
3. Monitor signals: Green "Buy" for long entries (if close > EMA and conditions met); red "Sell" for exits.
4. Backtest in Strategy Tester: Focus on equity curve, win rate (~50-60% in tests), and drawdown (<15% with SL).
5. Live Trading: Use small position sizes (1-2% risk per trade); combine with your analysis. Shorts disabled by default for bull-biased markets.
[teachershim] draw sma 9/25/50/100/200/400📌 Description — draw sma 9/25/50/100/200/400
This indicator displays Simple Moving Averages (SMA) for periods 9, 25, 50, 100, 200, and 400 on the chart.
It also marks the last confirmed bar’s SMA values with circular dots positioned to the right by a user-defined offset,
and labels each dot with the SMA period number for quick visual reference.
🔹 Features
SMA Lines
Plots SMA lines for periods 9 / 25 / 50 / 100 / 200 / 400 in distinct colors and thickness.
Last Value Markers
Adds circular markers (dots) at the SMA value of the last confirmed bar, shifted right by the specified offset.
SMA Period Labels
Displays the SMA period number (e.g., "9", "25", "50") just above each dot.
Customizable Parameters
Right offset for marker placement.
Vertical gap between marker and label (in percentage of chart range).
🔹 Parameters
Right Offset: Number of bars to place the marker/label to the right of the last bar.
Text Vertical Gap (%): Percentage offset to position the label above the dot.
🔹 Colors & Line Thickness
SMA 9 → Teal, thickness 1
SMA 25 → Orange, thickness 2
SMA 50 → Blue, thickness 2
SMA 100 → Purple, thickness 1
SMA 200 → Red, thickness 2
SMA 400 → Gray, thickness 1
🔹 Use Cases
Quickly identify key support/resistance levels across multiple SMA periods.
Instantly see the current SMA values without hovering over the chart.
Monitor SMA alignment and spacing for trend analysis or trading setups.
💡 Notes
If the right offset is too large, ensure your chart’s right margin is wide enough to display the markers.
max_labels_count in Pine Script limits how many labels can be displayed at once.
If you want, I can also make you a shorter, more concise “marketplace style” version for TradingView’s public library so it’s punchier and attracts more clicks.
Do you want me to prepare that?
Trend+Volume Confluence IndicatorScalper and swing trading signals: use the 15–30 minute charts for scalps and the 4–8 hour charts for swings. Add the Money Flow Index (MFI) for extra confluence. In an uptrend, if the MFI is at or above the halfway mark and rising, take the long. In a downtrend, if the MFI is at or below the halfway mark and falling, take the short.
EMA Deviation with Min/Max Levelshis indicator visualizes the percentage deviation of the closing price from its Exponential Moving Average (EMA), helping traders identify overbought and oversold conditions. It dynamically tracks the minimum and maximum deviation levels over a user-defined lookback period, highlighting extreme zones with color-coded signals:
• 🔵 Normal deviation range
• 🔴 Near historical maximum — potential sell zone
• 🟢 Near historical minimum — potential buy zone
Use it to spot price extremes relative to trend and anticipate possible reversals or mean reversion setups.
MK_OSFT - Multi-timeframe MA Lines with labelsProvides SMA/EMA levels on a chart for the 5m, 15m, 1H and 4H timeframes. It does not draw the full MA's on the chart but provides 'only' the actual MA values at the current candle as a horizontal line with a label.
Trend Impulse Tester | Trend–Impulse–No-Chop (In development) Trend strategy. Regulate your entry and make the drawdown less than 3%, entry at % of capital. Currently under development.
Used on cryptocurrency. The 30 min timeframe was used. Adjust the values yourself, settings are provided
SMA compression goal is to identify when the 20/50/200 SMA are with in a certain % of each other. ideally finding consolidation
IU Indicators DashboardDESCRIPTION
The IU Indicators Dashboard is a comprehensive multi-stock monitoring tool that provides real-time technical analysis for up to 10 different stocks simultaneously. This powerful indicator creates a customizable table overlay that displays the trend status of multiple technical indicators across your selected stocks, giving you an instant overview of market conditions without switching between charts.
Perfect for portfolio monitoring, sector analysis, and quick market screening, this dashboard consolidates critical technical data into one easy-to-read interface with color-coded trend signals.
USER INPUTS
Stock Selection (10 Configurable Stocks):
- Stock 1-10: Customize any symbols (Default: NSE:CDSL, NSE:RELIANCE, NSE:VEDL, NSE:TCS, NSE:BEL, NSE:BHEL, NSE:TATAPOWER, NSE:TATASTEEL, NSE:ITC, NSE:LT)
Technical Indicator Parameters:
- EMA 1 Length: First Exponential Moving Average period (Default: 20)
- EMA 2 Length: Second Exponential Moving Average period (Default: 50)
- EMA 3 Length: Third Exponential Moving Average period (Default: 200)
- RSI Length: Relative Strength Index calculation period (Default: 14)
- SuperTrend Length: SuperTrend indicator period (Default: 10)
- SuperTrend Factor: SuperTrend multiplier factor (Default: 3.0)
Visual Customization:
- Table Size: Choose from Normal, Tiny, Small, or Large
- Table Background Color: Customize dashboard background
- Table Frame Color: Set frame border color
- Table Border Color: Configure border styling
- Text Color: Set text display color
- Bullish Color: Color for positive/bullish signals (Default: Green)
- Bearish Color: Color for negative/bearish signals (Default: Red)
LOGIC OF THE INDICATOR
The dashboard employs a multi-timeframe analysis approach using five key technical indicators:
1. Triple EMA Analysis
- Compares current price against three different EMA periods (20, 50, 200)
- Bullish Signal: Price above EMA level
- Bearish Signal: Price below EMA level
- Provides short-term, medium-term, and long-term trend perspective
2. RSI Momentum Analysis
- Uses 14-period RSI with 50-level threshold
- Bullish Signal: RSI > 50 (upward momentum)
- Bearish Signal: RSI < 50 (downward momentum)
- Identifies momentum strength and potential reversals
3. SuperTrend Direction
- Utilizes SuperTrend with configurable length and factor
- Bullish Signal: SuperTrend direction = -1 (uptrend)
- Bearish Signal: SuperTrend direction = 1 (downtrend)
- Provides clear trend direction with volatility-adjusted signals
4. MACD Histogram Analysis
- Uses standard MACD (12, 26, 9) histogram values
- Bullish Signal: Histogram > 0 (bullish momentum)
- Bearish Signal: Histogram < 0 (bearish momentum)
- Identifies momentum shifts and trend confirmations
5. Real-time Data Processing
- Implements request.security() for multi-symbol data retrieval
- Uses barstate.isrealtime logic for accurate live data
- Processes data only on the last bar for optimal performance
WHY IT IS UNIQUE
Multi-Stock Monitoring
- Monitor up to 10 different stocks simultaneously on a single chart
- No need to switch between multiple charts or timeframes
Highly Customizable Interface
- Full color customization for personalized visual experience
- Adjustable table size and positioning
- Clean, professional dashboard design
Real-time Analysis
- Live data processing with proper real-time handling
- Instant visual feedback through color-coded signals
- Optimized performance with smart data retrieval
Comprehensive Technical Coverage
- Combines trend-following, momentum, and volatility indicators
- Multiple timeframe perspective through different EMA periods
- Balanced approach using both lagging and leading indicators
Flexible Configuration
- Easy symbol switching for different markets (NSE, BSE, NYSE, NASDAQ)
- Adjustable indicator parameters for different trading styles
- Suitable for both swing trading and position trading
HOW USERS CAN BENEFIT FROM IT
Portfolio Management
- Quick Portfolio Health Check: Instantly assess the technical status of your entire stock portfolio
- Diversification Analysis: Monitor stocks across different sectors to ensure balanced exposure
- Risk Management: Identify which positions are showing bearish signals for potential exit strategies
- Rebalancing Decisions: Spot strongest performers for potential position increases
Market Screening and Analysis
- Sector Rotation: Compare different sector stocks to identify rotation opportunities
- Relative Strength Analysis: Quickly identify which stocks are outperforming or underperforming
- Market Breadth Assessment: Gauge overall market sentiment by monitoring diverse stock selections
- Trend Confirmation: Validate market trends by observing multiple stock behaviors
Time-Efficient Trading
- Single-Glance Analysis: Get complete technical overview without chart-hopping
- Pre-Market Preparation: Quickly assess overnight changes across multiple positions
- Intraday Monitoring: Track multiple opportunities simultaneously during trading hours
- End-of-Day Review: Efficiently review all watched stocks for next-day planning
Strategic Decision Making
- Entry Point Identification: Spot stocks showing bullish alignment across multiple indicators
- Exit Signal Recognition: Identify positions showing deteriorating technical conditions
- Swing Trading Opportunities: Find stocks with favorable technical setups for swing trades
- Long-term Investment Guidance: Use 200 EMA signals for long-term position decisions
Educational Benefits
- Pattern Recognition: Learn how different indicators behave across various market conditions
- Correlation Analysis: Understand how stocks move relative to each other
- Technical Analysis Learning: Observe multiple indicator interactions in real-time
- Market Sentiment Understanding: Develop better market timing skills through multi-stock observation
Workflow Optimization
- Reduced Chart Clutter: Keep your main chart clean while monitoring multiple stocks
- Faster Analysis: Complete technical analysis of 10 stocks in seconds instead of minutes
- Consistent Methodology: Apply the same technical criteria across all monitored stocks
- Alert Integration: Easy visual identification of stocks requiring immediate attention
This indicator is designed for traders and investors who want to maximize their market awareness while minimizing analysis time. Whether you're managing a portfolio, screening for opportunities, or learning technical analysis, the IU Indicators Dashboard provides the comprehensive overview you need for better trading decisions.
DISCLAIMER :
This indicator is not financial advice, it's for educational purposes only highlighting the power of coding( pine script) in TradingView, I am not a SEBI-registered advisor. Trading and investing involve risk, and you should consult with a qualified financial advisor before making any trading decisions. I do not guarantee profits or take responsibility for any losses you may incur.
Gold MA55 Close-Above Alert (3m)This is a gold strategy where we can analyse price closing above and enters into trade.
Price / SMA RatioThis indicator will develop a Line chart which will be calculated by Dividing the Current Price with the value of Simple Moving Average as feeded in the indicator with 1 as Base Line
Multi-EMAMulti-EMA Indicator
This script plots five commonly used Exponential Moving Averages (EMAs) on your chart for trend identification and trade timing.
Included EMAs & Colors:
EMA 8 — Red
EMA 20 — Orange
EMA 50 — Yellow
EMA 100 — Cyan
EMA 200 — Blue
How to use:
Shorter EMAs (8 & 20) help identify short-term momentum and potential entry/exit points.
Mid-range EMA (50) gives a broader view of intermediate trends.
Longer EMAs (100 & 200) are used to confirm long-term trend direction and key support/resistance zones.
Crossovers between EMAs can signal potential trend changes.
Price trading above most EMAs often signals bullish conditions, while trading below suggests bearish momentum.
Designed to work on any timeframe or market.
RSI-Adaptive T3 [ChartPrime] — Strategy (Long Only, 1D)This trade has been successfully converted from an individual setup to a full strategy, and the results are truly outstanding. I’m currently testing this for Tesla options trading on the 1-day chart, and it appears to be working extremely well.
A special thanks to ChartPrime for creating such a beautifully designed indicator — it’s performing impressively in these tests.
If anyone would like to try it out, feel free to download and see the results for yourself. Thank you!
Azeem EMA - 3It combines 3 EMA into 1 indicator. It is good if you want multiple indicator on at the same time
Trend Filter (Higher Timeframe EMA)English (EN)
This indicator overlays the higher timeframe (default: 1H) EMA trend onto your current chart to serve as a directional filter for trading decisions.
- Fetches and plots EMA20 / EMA50 / EMA200 from a higher timeframe (user-configurable)
- Identifies LONG trend when EMA20 > EMA50 > EMA200, SHORT trend when EMA20 < EMA50 < EMA200
- Changes background color based on trend direction (Green = Long, Red = Short)
- Can trigger alerts when a new trend direction is detected
1. Apply this script to lower timeframes such as 5m or 15m charts to see the higher timeframe trend.
2. When the background is green, consider long setups; when red, consider short setups.
3. Use this as a filter in conjunction with your main entry signals, not as a standalone strategy.
- Default higher timeframe is 1 hour, but you can change it in the settings.
- This script does not provide financial advice. Use at your own risk.
日本語(JP)
このインジケーターは、現在のチャートに上位足(デフォルト:1時間足)のEMAトレンドを重ねて表示し、売買方向のフィルターとして利用できます。
【機能】
- 上位足(設定可能)のEMA20 / EMA50 / EMA200 を取得して表示
- EMA20 > EMA50 > EMA200 でロングトレンド、EMA20 < EMA50 < EMA200 でショートトレンド判定
- トレンド方向に応じて背景色を変化(緑=ロング、赤=ショート)
- トレンド発生時にアラートを送信可能
【使い方】
1. 5分足や15分足など短期足に適用し、背景色で上位足の流れを確認します。
2. 背景が緑の時は買い目線、赤の時は売り目線で短期エントリーを検討します。
3. 単独での売買判断ではなく、他のテクニカル指標と併用してご利用ください。
【注意】
- デフォルトは1時間足で計算していますが、設定から変更可能です。
- 本スクリプトは投資助言を行うものではありません。ご利用は自己責任でお願いします。
Clean Multi-Indicator Alignment System
Overview
A sophisticated multi-indicator alignment system designed for 24/7 trading across all markets, with pure signal-based exits and no time restrictions. Perfect for futures, forex, and crypto markets that operate around the clock.
Key Features
🎯 Multi-Indicator Confluence System
EMA Cross Strategy: Fast EMA (5) and Slow EMA (10) for precise trend direction
VWAP Integration: Institution-level price positioning analysis
RSI Momentum: 7-period RSI for momentum confirmation and reversal detection
MACD Signals: Optimized 8/17/5 configuration for scalping responsiveness
Volume Confirmation: Customizable volume multiplier (default 1.6x) for signal validation
🚀 Advanced Entry Logic
Initial Full Alignment: Requires all 5 indicators + volume confirmation
Smart Continuation Entries: EMA9 pullback entries when trend momentum remains intact
Flexible Time Controls: Optional session filtering or 24/7 operation
🎪 Pure Signal-Based Exits
No Forced Closes: Positions exit only on technical signal reversals
Dual Exit Conditions: EMA9 breakdown + RSI flip OR MACD cross + EMA20 breakdown
Trend Following: Allows profitable trends to run their full course
Perfect for Swing Scalping: Ideal for multi-session position holding
📊 Visual Interface
Real-Time Status Dashboard: Live alignment monitoring for all indicators
Color-Coded Candles: Instant visual confirmation of entry/exit signals
Clean Chart Display: Toggle-able EMAs and VWAP with professional styling
Signal Differentiation: Clear labels for entries, X-crosses for exits
🔔 Alert System
Entry Notifications: Separate alerts for buy/sell signals
Exit Warnings: Technical breakdown alerts for position management
Mobile Ready: Push notifications to TradingView mobile app
Market Applications
Perfect For:
Gold Futures (GC): 24-hour precious metals trading
NASDAQ Futures (NQ): High-volatility index scalping
Forex Markets: Currency pairs with continuous operation
Crypto Trading: 24/7 cryptocurrency momentum plays
Energy Futures: Oil, gas, and commodity swing trades
Optimal Timeframes:
1-5 Minutes: Ultra-fast scalping during high volatility
5-15 Minutes: Balanced approach for most markets
15-30 Minutes: Swing scalping for trend following
🧠 Smart Position Management
Tracks implied position direction
Prevents conflicting signals
Allows trend continuation entries
State-aware exit logic
⚡ Scalping Optimized
Fast-reacting indicators with shorter periods
Volume-based confirmation reduces false signals
Clean entry/exit visualization
Minimal lag for time-sensitive trades
Configuration Options
All parameters fully customizable:
EMA Lengths: Adjustable from 1-30 periods
RSI Period: 1-14 range for different market conditions
MACD Settings: Fast (1-15), Slow (1-30), Signal (1-10)
Volume Confirmation: 0.5-5.0x multiplier range
Visual Preferences: Colors, displays, and table options
Risk Management Features
Clear visual exit signals prevent emotion-based decisions
Volume confirmation reduces false breakouts
Multi-indicator confluence improves signal quality
Optional time filtering for session-specific strategies
Best Use Cases
Futures Scalping: NQ, ES, GC during active sessions
Forex Swing Trading: Major pairs during overlap periods
Crypto Momentum: Bitcoin, Ethereum trend following
24/7 Automated Systems: Algorithmic trading implementation
Multi-Market Scanning: Portfolio-wide signal monitoring
Multi SMA + Golden/Death + Heatmap + BB**Multi SMA (50/100/200) + Golden/Death + Candle Heatmap + BB**
A practical trend toolkit that blends classic 50/100/200 SMAs with clear crossover labels, special 🚀 Golden / 💀 Death Cross markers, and a readable candle heatmap based on a dynamic regression midline and volatility bands. Optional Bollinger Bands are included for context.
* See trend direction at a glance with SMAs.
* Get minimal, de-cluttered labels on important crosses (50↔100, 50↔200, 100↔200).
* Highlight big regime shifts with special Golden/Death tags.
* Read momentum and volatility with the candle heatmap.
* Add Bollinger Bands if you want classic mean-reversion context.
Designed to be lightweight, non-repainting on confirmed bars, and flexible across timeframes.
# What This Indicator Does (plain English)
* **Tracks trend** using **SMA 50/100/200** and lets you optionally compute each SMA on a higher or different timeframe (HTF-safe, no lookahead).
* **Prints labels** when SMAs cross each other (up or down). You can force signals only after bar close to avoid repaint.
* **Marks Golden/Death Crosses** (50 over/under 200) with special labels so major regime changes stand out.
* **Colors candles** with a **heatmap** built from a regression midline and volatility bands—greenish above, reddish below, with a smooth gradient.
* **Optionally shows Bollinger Bands** (basis SMA + stdev bands) and fills the area between them.
* **Includes alert conditions** for Golden and Death Cross so you can automate notifications.
---
# Settings — Simple Explanations
## Source
* **Source**: Price source used to calculate SMAs and Bollinger basis. Default: `close`.
## SMA 50
* **Show 50**: Turn the SMA(50) line on/off.
* **Length 50**: How many bars to average. Lower = faster but noisier.
* **Color 50** / **Width 50**: Visual style.
* **Timeframe 50**: Optional alternate timeframe for SMA(50). Leave empty to use the chart timeframe.
## SMA 100
* **Show 100**: Turn the SMA(100) line on/off.
* **Length 100**: Bars used for the mid-term trend.
* **Color 100** / **Width 100**: Visual style.
* **Timeframe 100**: Optional alternate timeframe for SMA(100).
## SMA 200
* **Show 200**: Turn the SMA(200) line on/off.
* **Length 200**: Bars used for the long-term trend.
* **Color 200** / **Width 200**: Visual style.
* **Timeframe 200**: Optional alternate timeframe for SMA(200).
## Signals (crossover labels)
* **Show crossover signals**: Prints triangle labels on SMA crosses (50↔100, 50↔200, 100↔200).
* **Wait for bar close (confirmed)**: If ON, signals only appear after the candle closes (reduces repaint).
* **Min bars between same-pair signals**: Minimum spacing to avoid duplicate labels from the same SMA pair too often.
* **Trend filter (buy: 50>100>200, sell: 50<100<200)**: Only show bullish labels when SMAs are stacked bullish (50 above 100 above 200), and only show bearish labels when stacked bearish.
### Label Offset
* **Offset mode**: Choose how to push labels away from price:
* **Percent**: Offset is a % of price.
* **ATR x**: Offset is ATR(14) × multiplier.
* **Percent of price (%)**: Used when mode = Percent.
* **ATR multiplier (for ‘ATR x’)**: Used when mode = ATR x.
### Label Colors
* **Bull color** / **Bear color**: Background of triangle labels.
* **Bull label text color** / **Bear label text color**: Text color inside the triangles.
## Golden / Death Cross
* **Show 🚀 Golden Cross (50↑200)**: Show a special “Golden” label when SMA50 crosses above SMA200.
* **Golden label color** / **Golden text color**: Styling for Golden label.
* **Show 💀 Death Cross (50↓200)**: Show a special “Death” label when SMA50 crosses below SMA200.
* **Death label color** / **Death text color**: Styling for Death label.
## Candle Heatmap
* **Enable heatmap candle colors**: Turns the heatmap on/off.
* **Length**: Lookback for the regression midline and volatility measure.
* **Deviation Multiplier**: Band width around the midline (bigger = wider).
* **Volatility basis**:
* **RMA Range** (smoothed high-low range)
* **Stdev** (standard deviation of close)
* **Upper/Middle/Lower color**: Gradient colors for the heatmap.
* **Heatmap transparency (0..100)**: 0 = solid, 100 = invisible.
* **Force override base candles**: Repaint base candles so heatmap stays visible even if your chart has custom coloring.
## Bollinger Bands (optional)
* **Show Bollinger Bands**: Toggle the overlay on/off.
* **Length**: Basis SMA length.
* **StdDev Multiplier**: Distance of bands from the basis in standard deviations.
* **Basis color** / **Band color**: Line colors for basis and bands.
* **Bands fill transparency**: Opacity of the fill between upper/lower bands.
---
# Features & How It Works
## 1) HTF-Safe SMAs
Each SMA can be calculated on the chart timeframe or a higher/different timeframe you choose. The script pulls HTF values **without lookahead** (non-repainting on confirmed bars).
## 2) Crossover Labels (Three Pairs)
* **50↔100**, **50↔200**, **100↔200**:
* **Triangle Up** label when the first SMA crosses **above** the second.
* **Triangle Down** label when it crosses **below**.
* Optional **Trend Filter** ensures only signals aligned with the overall stack (50>100>200 for bullish, 50<100<200 for bearish).
* **Debounce** spacing avoids repeated labels for the same pair too close together.
## 3) Golden / Death Cross Highlights
* **🚀 Golden Cross**: SMA50 crosses **above** SMA200 (often a longer-term bullish regime shift).
* **💀 Death Cross**: SMA50 crosses **below** SMA200 (often a longer-term bearish regime shift).
* Separate styling so they stand out from regular cross labels.
## 4) Candle Heatmap
* Builds a **regression midline** with **volatility bands**; colors candles by their position inside that channel.
* Smooth gradient: lower side → reddish, mid → yellowish, upper side → greenish.
* Helps you see momentum and “where price sits” relative to a dynamic channel.
## 5) Bollinger Bands (Optional)
* Classic **basis SMA** ± **StdDev** bands.
* Light visual context for mean-reversion and volatility expansion.
## 6) Alerts
* **Golden Cross**: `🚀 GOLDEN CROSS: SMA 50 crossed ABOVE SMA 200`
* **Death Cross**: `💀 DEATH CROSS: SMA 50 crossed BELOW SMA 200`
Add these to your alerts to get notified automatically.
---
# Tips & Notes
* For fewer false positives, keep **“Wait for bar close”** ON, especially on lower timeframes.
* Use the **Trend Filter** to align signals with the broader stack and cut noise.
* For HTF context, set **Timeframe 50/100/200** to higher frames (e.g., H1/H4/D) while you trade on a lower frame.
* Heatmap “Length” and “Deviation Multiplier” control smoothness and channel width—tune for your asset’s volatility.