FranPL - Psychological LevelsIt automatically draws horizontal lines fixed to the right-hand price scale at every price level ending in 00, 20, 50, and 80. These levels are commonly watched by traders as areas where price often reacts, pauses, or reverses.
The lines remain anchored to price, updating dynamically as the market moves, and stay aligned with the price scale rather than drifting with time. The indicator works across all markets and timeframes.
FranPL is fully customizable through the settings, allowing the user to adjust the line color, thickness, and length, making it easy to match personal chart preferences while keeping the chart clean and uncluttered.
Overall, FranPL provides a clear, consistent visual framework for identifying important psychological levels to support entries, exits, and risk management.
Indikator dan strategi
OI: Simple Trend BGOI: Simple Trend BG (Open Source)
OI: Simple Trend BG is a very simple, open-source overlay for traders who follow a basic rule: only trade in the direction of a moving-average stack (often on a higher timeframe).
It plots a 3-SMMA stack on your current chart and optionally colours the chart background based on whether the secondary timeframe is cleanly stacked bullish or bearish.
What it does
Plots three SMMAs (Wilder / RMA smoothing) on the current timeframe:
Fast / Mid / Slow (defaults: 21, 50, 200)
Checks the same three SMMAs on a secondary timeframe (selectable)
Colours the background when the HTF stack is clearly aligned:
Green when Fast > Mid > Slow (bullish stack)
Red when Fast < Mid < Slow (bearish stack)
No background when the stack is mixed/neutral
Why it’s useful
If your trading plan is simply “only take longs when the MA stack is bullish and shorts when it’s bearish”, this script makes that rule obvious at a glance.
Instead of constantly checking whether the averages are in order (especially on a higher timeframe), you get a clean background bias filter while still seeing the MAs on your trading timeframe.
Inputs
Secondary timeframe: The timeframe used for the background bias check
Fast/Mid/Slow SMMA lengths: Controls the stack
Optional display toggles: show/hide MA plots and background shading
Notes
This is intentionally minimal: no signals, no entries/exits, no alerts — just a clear visual filter.
Like all moving-average tools, the most recent bar updates in real time and settles on close.
Bearish Trailing stopIt is a trailing SL. Works very well. Good good very good. Looks like my description needs more, so here is more random text.
Bullish Trailing stopIt is a trailing SL. Works very well. Good good very good. Looks like my description needs more, so here is more random text.
Future Sniffer: HAP RSI TeslaFuture Sniffer: HAP RSI Tesla Visual 🚗⛽
Description (English):
This is the HAP RSI indicator with a Tesla car 🚗 and fuel can ⛽ visualization. It’s designed for clear visual signals of market momentum and RSI strength.
Features:
- Tesla Car (🚗): Shows on strong RSI signals, positioned above the bar.
- Fuel Can (⛽): Small and semi-transparent, appears under the car to indicate signal readiness.
- RSI Value: Displayed above the fuel can, fully visible and not blocked by the bidon.
- Signal Quality: Strong, medium, and weak signals are color-coded (green shades).
- Dynamic Bands: Upper, middle, and lower RSI bands for visual reference.
- Histogram: Smooth RSI histogram for trend strength.
- Background Highlight: Optional background coloring for quick visual recognition of signal quality.
Important:
- Works best with overlay = false.
- Strong signals are calculated using RSI increase, ADX weakening, and volume confirmation.
- ⚠️ In volatile or low-volume markets, signals may be less reliable.
Copy Description
News2026H2Library "News2026H2" - 2026 News Events Support Lib
f_loadNewsRows()
f_loadExcSevByTypeId()
f_loadExcTagByTypeId()
f_loadExcDelayAfterNewsMins()
Tesla RSI Dashboard This is the HAP RSI indicator with a Tesla car 🚗 and fuel can ⛽ visualization. It’s designed for clear visual signals of market momentum and RSI strength.
Features:
Tesla Car (🚗): Shows on strong RSI signals, positioned above the bar.
Fuel Can (⛽): Small and semi-transparent, appears under the car to indicate signal readiness.
RSI Value: Displayed above the fuel can, fully visible and not blocked by the bidon.
Signal Quality: Strong, medium, and weak signals are color-coded (green shades).
Dynamic Bands: Upper, middle, and lower RSI bands for visual reference.
Histogram: Smooth RSI histogram for trend strength.
Background Highlight: Optional background coloring for quick visual recognition of signal quality.
Important:
Works best with overlay = false.
Strong signals are calculated using RSI increase, ADX weakening, and volume confirmation.
⚠️ In volatile or low-volume markets, signals may be less reliable.
Piv X# Piv X Pro - Multi-Layer Reversal Detection System
## Overview
Piv X Pro is an advanced technical analysis indicator that combines dynamic pivot detection, Williams %R momentum divergence analysis, and multiple VWAP anchoring methods to identify high-probability mean reversion opportunities. Unlike simple indicator combinations, this script implements a layered filtration system where each component validates and refines signals from the previous layer, resulting in significantly fewer but higher-quality reversal setups.
## Core Methodology
### 1. Dynamic ATR-Based Pivot Detection
The script uses an adaptive pivot detection algorithm that adjusts sensitivity based on market volatility. Instead of fixed lookback periods, pivot strength is calculated dynamically using Average True Range (ATR):
**Calculation:** `pivot_strength = max(min_strength, min(ATR / mintick * multiplier, max_strength))`
This ensures:
- More sensitive pivots in low volatility (smaller ATR)
- More significant pivots in high volatility (larger ATR)
- Automatic adaptation across different market conditions and timeframes
**Significance Filtering:** Pivots must exceed a minimum ATR distance from recent price action (default 0.3 ATR) to filter noise. This prevents minor price fluctuations from being marked as significant pivots.
**Volume Confirmation (Optional):** Pivots can optionally require volume spikes (default 1.5x average volume) to ensure institutional participation.
### 2. Williams %R Momentum Divergence Engine
The script detects classic and hidden divergences between price pivots and Williams %R oscillator readings:
**Bullish Divergence Detection:**
- Price makes a lower low (confirmed pivot low)
- Williams %R makes a higher low (momentum improving)
- Divergence occurs in oversold zone (Williams %R ≤ -80)
- Lookback range: 60 bars maximum
**Bearish Divergence Detection:**
- Price makes a higher high (confirmed pivot high)
- Williams %R makes a lower high (momentum weakening)
- Divergence occurs in overbought zone (Williams %R ≥ -20)
- Lookback range: 60 bars maximum
**Divergence-Anchored VWAPs:** When a divergence is detected, a new VWAP calculation begins from that point, tracking institutional positioning relative to the momentum shift. This provides a dynamic mean reversion target that resets at each confirmed divergence.
### 3. Confluence Scoring System
Each detected pivot receives a numerical score (0-150+ points) based on multiple independent confirmation factors:
**Scoring Components:**
- Base Pivot Detection: 10 points
- Volume Spike Confirmation: 15 points
- Higher Timeframe Trend Alignment (4H EMA): 20 points
- RSI Extreme Levels (oversold/overbought): 25 points
- Mean Reversion Distance (>2.5 ATR from HTF MA): 20 points
- Exhaustion Patterns (price move + volume spike): 10 points
- ATR Price Confirmation: 10 points
- RSI Divergence: 15 points
- Swing Failure Pattern (SFP): 15 points
- Liquidity Sweep: 10 points
- Candle Reversal Confirmation: 10 points
- Key Level Alignment (previous day/week highs/lows): 10 points
- Fair Value Gap (FVG) Fill: 10 points
- Session Weighting (London/NY sessions): 10 points
- Multi-Timeframe Pivot Confluence: 15 points
**Zone Classification:**
- Regular Zones: Score 60-89 (green/purple boxes)
- Golden Zones: Score 90+ (yellow boxes with thicker borders)
Higher scores indicate stronger confluence and higher probability setups, but no prediction is guaranteed.
### 4. Mean Reversion Distance Filter
The script calculates how far price has stretched from the higher timeframe moving average:
**Calculation:** `distance_from_htf_ma = (close - HTF_EMA) / ATR`
**Mean Reversion Condition:**
- For long setups: Price >2.5 ATR below HTF EMA when HTF trend is up
- For short setups: Price >2.5 ATR above HTF EMA when HTF trend is down
This ensures pivots are only highlighted when price is statistically stretched and likely to revert toward the mean.
### 5. Multi-Period VWAP Framework
The script provides multiple VWAP calculations for different analysis purposes:
**Extreme VWAPs:**
- Bottom VWAP: Anchored to the absolute lowest low in the lookback period (default 50 bars)
- Top VWAP: Anchored to the absolute highest high in the lookback period
**Periodic VWAPs:**
- 4D VWAP: Resets every 4 days
- 9D VWAP: Resets every 9 days
- 4H VWAP: Resets every 4 hours
- 8H VWAP: Resets every 8 hours
- Weekly VWAP: Resets at the start of each week
- Monthly VWAP: Resets at the start of each month
- Yearly VWAP: Resets at the start of each year
**Previous Period VWAPs:**
- Previous Weekly, Monthly, and Yearly VWAPs are displayed as reference levels for support/resistance
**Divergence VWAPs:**
- Bullish Divergence VWAP: Resets at each bullish Williams %R divergence
- Bearish Divergence VWAP: Resets at each bearish Williams %R divergence
### 6. IBSS Pro Mean Reversion System
An integrated scalping system that provides entry signals within high-probability pivot zones:
**Components:**
- Dual EMA System: Fast EMA (12) and Slow EMA (26) with color-coded trend visualization
- RSI Oversold/Overbought Detection: Configurable levels (default 30/70)
- Zone-Based Entry: Signals only trigger when price is within active pivot zones (0.3 ATR around confirmed pivots)
- ATR-Based Dynamic Stops: Stop losses trail with position using ATR multiplier
**Signal Generation:**
- Buy signals: RSI crosses above oversold + Fast EMA > Slow EMA + Price in pivot low zone
- Sell signals: RSI crosses below overbought + Fast EMA < Slow EMA + Price in pivot high zone
## Why This Combination is Unique
This is not a simple indicator mashup. The components work together in a specific hierarchy:
1. **Williams %R Divergence** identifies momentum shifts before price confirms the reversal
2. **Dynamic Pivots** mark actual price structure extremes with ATR-based significance filtering
3. **Confluence Scoring** quantifies setup quality using 10+ independent confirmation factors
4. **Mean Reversion Distance** confirms price is statistically stretched (>2.5 ATR from HTF MA)
5. **VWAP Framework** tracks institutional positioning and provides objective mean levels
6. **IBSS Signals** provide precise entries within high-probability zones
Each layer filters the previous one, resulting in significantly fewer but higher-quality signals than any single indicator alone. The divergence-anchored VWAPs are unique - they reset at momentum shifts rather than arbitrary time periods, providing more relevant mean reversion targets.
## How to Use This Indicator
### For Swing Trading (15m-1H Charts)
1. Wait for a major pivot to form (diamond marker appears below/above bars)
2. Check the confluence score displayed in the zone label
3. Look for Golden Zones (score 90+, yellow boxes with thicker borders)
4. Enter when price enters the pivot zone (0.3 ATR around the pivot)
5. Use the nearest VWAP level as first target
6. Set stop loss beyond the pivot zone (typically 0.5-1 ATR)
### For Scalping (5m-15m Charts)
1. Enable IBSS Pro Signals in settings
2. Wait for price to enter an active pivot zone (colored boxes appear)
3. Take IBSS diamond signals that form within zones
4. Use ATR-based stop losses (dashed lines appear automatically if enabled)
5. Exit at pivot VWAP or opposite zone edge
### Visual Elements Explained
- **White/Purple Crosses**: Williams Divergence VWAPs (momentum-based mean reversion targets)
- **Green/Red Crosses**: Bottom/Top VWAPs (absolute extreme levels)
- **Colored Boxes**: Pivot reversal zones (opacity indicates confluence score)
- **Yellow Boxes**: Golden zones (90+ score, highest probability setups)
- **Small Diamonds**: Regular pivot detections
- **Green/Red Tiny Diamonds**: IBSS scalp entry signals (if enabled)
- **White/Purple MAs**: IBSS trend filter (12/26 EMA with cloud)
- **Dotted Lines**: Structure lines connecting consecutive pivots of same type
- **Blue Dashed Lines**: Market Structure Shift (CHoCH) markers
### Recommended Settings
**Conservative (Lower Timeframes 1m-5m):**
- ATR Pivot Strength: 0.8-1.0
- Volume Threshold: 2.0
- Min Pivot Significance: 0.4-0.5
- Enable ATR Confirmation: Yes
- Real-Time Mode: Off
- Score Threshold: 80+
**Aggressive (Higher Timeframes 15m-1H):**
- ATR Pivot Strength: 0.6-0.8
- Volume Threshold: 1.5
- Min Pivot Significance: 0.3
- Enable ATR Confirmation: No
- Real-Time Mode: On
- Score Threshold: 60+
## Chart Requirements
This indicator should be used **alone on a clean chart** with:
- Standard candlestick or bar chart type (NO Heikin Ashi, Renko, Point & Figure, or Range charts)
- No other indicators overlaid (all functionality is self-contained)
- Symbol and timeframe clearly visible in chart
- Full indicator name "Piv X Pro" visible in chart legend
## Important Disclaimers
- Past performance does not guarantee future results
- All signals are probabilistic indicators, not trading guarantees
- Use proper risk management and position sizing
- Test thoroughly on demo accounts before live trading
- Higher confluence scores indicate better setups but no prediction is certain
- Mean reversion strategies work best in ranging/choppy markets; may underperform in strong trending markets
- The lookahead bias warning: HTF EMA uses `barmerge.lookahead_on` for trend filtering only (not for signal generation), which may cause historical bars to show different trend states than real-time
## Key Differentiators
Unlike basic pivot or VWAP indicators:
- **Dynamic ATR-based pivot detection** vs static lookback periods
- **Quantified confluence scoring** vs subjective interpretation
- **Mean reversion distance filtering** (>2.5 ATR from HTF MA) vs all pivots shown
- **Divergence-anchored VWAPs** vs static period VWAPs
- **Multi-layer confirmation system** (10+ independent factors) vs single signal generation
- **Integrated scalping system** that only triggers in high-probability zones
This script is open-source and available for educational purposes. Users are encouraged to understand the methodology before using it for live trading decisions.
Linear Regression R-SquaredCalculates the least squares linear regression R-squared values for the specified data period. Values range from zero to one.
OI: Simple BandOI: Simple Band (Open Source)
OI: Simple Band is a very simple, open-source overlay that draws a two-line moving-average band and fills the space between them to highlight trend bias and momentum shifts at a glance.
What it plots
EMA (Exponential Moving Average) using the selected length
SMMA (Smoothed Moving Average) using the same length
A ribbon fill between the two:
Green when EMA > SMMA (bullish bias)
Red when EMA < SMMA (bearish bias)
Why use two different MAs with the same length?
Even with the same length, these two averages react differently:
EMA weights recent prices more heavily, so it responds faster to changes.
SMMA is designed to be steadier and slower, filtering more noise.
Using the same length keeps the comparison fair (same smoothing window) while still giving you a “fast vs slow response” relationship. The distance and relationship between them becomes a simple way to see:
Momentum / pressure: When EMA pulls away from SMMA, price is moving with enough force to overcome smoothing.
Compression: When they converge, momentum is fading and conditions often look more “balanced.”
State changes: Crossovers flip the ribbon colour and can be used as a context shift (trend/bias filter), not a standalone entry/exit rule.
Inputs
Moving average band (length): Controls both EMA and SMMA smoothing.
SMMA Source: Chooses the data used for the SMMA calculation (EMA is calculated on close).
Notes
This is intentionally minimal: no higher-timeframe requests, no security() calls, no signals — just a clean visual band.
Like all moving averages, it updates on the live candle and will settle on bar close.
LARGER PRICE LINE Adjustable (UPDATED)LARGER PRICE LINE
I made this so I could SEE THE PRICE LINE BETTER and try to reduce some eye strain!!
Hope it helps... enjoy! comment for improvements or suggestions
Improved Adjustable Size and Color for the Price Line and Price Box
Adjustment for Price Line: Size and Color plus Solid Line, Dashed or Dotted Line
Adjustments include: Price Box Text Size and Color (Small, Normal, Large, Huge!)
Adjustable Right Side Offset for Price Box
Ale Tonkis Swing Failure + TP RRSwing Failure Pattern (SFP) indicator with multi-timeframe confirmation and dynamic Take Profit logic.
It detects bullish and bearish SFP setups, confirms them using 5m and 15m timeframes, and automatically plots Take Profit targets with a 1:2 or 1:3 risk–reward ratio, based on previous highs and lows (market structure pivots).
Designed for Forex and Crypto trading, fully visual and non-repainting.
EMA 6/16 Zone (Simple)This is to know when to long and when to short. these are ema bands. when they touch either it goes up or down. has background shade to indicate if its uptrend or down.
Opening Range Breakout (ORB) with Dual Timezones + Auto-OffOpening Range (Dual TZ) + Auto-Off (Clean)
This indicator plots a clean Opening Range Box (ORB) with ORH/ORL levels and a midline, built for traders who want structure without clutter.
The main feature is Dual Timezone support, meaning you can run two separate Opening Ranges in parallel (TZ1 + TZ2) on the same chart — ideal if you track multiple market opens (e.g., NY + London) from one workspace.
Key Features
• Dual ORB sessions (TZ1 + TZ2)
• Customization of both timezones, ORB principles (that suits you the best)
• Run two independent opening range sessions simultaneously
• Each has its own range calculation, box, ORH/ORL lines, labels, fill, and midline
• Clean output (no targets, no breakout signals)
• Focused on the core OR structure only
• Great for discretionary trading and level-based execution
• Separate Auto-Off for TZ1 and TZ2
• Automatically removes ALL drawings after a user-defined time (minutes after OR end)
• Helps keep charts clean during the rest of the day
• TZ1 and TZ2 can be disabled on different timers
• Historical toggle
• If Show Historical Data = OFF, the script deletes previous session drawings at the next session start
• If ON, prior sessions remain visible
What’s Drawn
• Opening Range box (high/low during session)
• ORH (Opening Range High) line + label
• ORL (Opening Range Low) line + label
• Midline (average of ORH/ORL)
• Highlight fill between ORH/ORL
Typical Use Cases
• Track NY ORB + London ORB at the same time
• Use ORH/ORL as intraday support/resistance anchors
• Keep your chart clean with Auto-Off after your active trading window
Notes
• Works best on the 1/5 minute timeframes (the OR is session-based).
• If both sessions overlap, drawings may overlap as well — that’s expected since both ORBs are active simultaneously.
HAP RSI (onder Edition) Overview:
The HAP RSI is an advanced, adaptive RSI-based indicator designed to help traders identify potential market reversals with precision. Unlike traditional RSI tools, HAP RSI uses dynamic bands instead of fixed levels and quality-based signals to visually differentiate weak, medium, and strong reversal opportunities. It combines momentum analysis, optional ADX trends, and volume filters to provide actionable insights while reducing noise.
Signal Interpretation:
Bright Green / Red Arrows: Strong, high-quality reversal signals. These setups have the highest reliability.
Medium Tone Arrows: Medium-strength signals; these indicate a possible reversal, but require confirmation from price action or other indicators.
Faded / Soft Arrows: Weak signals; use caution and avoid trading solely based on these.
Numeric RSI Display:
Each arrow is accompanied by the exact RSI value at the moment of the signal, allowing traders to gauge momentum strength precisely.
Color Gradients and Momentum Visualization:
Arrow colors gradually fade during weak peaks and dips, providing an intuitive visual representation of momentum strength.
Bright, saturated arrows indicate strong market confidence, while pale arrows indicate low confidence.
Optional Filters (Advanced Use):
ADX Filter: Detects strengthening or weakening trends to filter out low-probability reversals.
Volume Filter: Confirms signals when volume exceeds the moving average, highlighting active market participation.
Best Practices:
Combine HAP RSI signals with overall market structure, trendlines, or support/resistance levels for higher accuracy.
Focus primarily on bright arrows for actionable trades.
Be aware that in strong trending markets or during RSI/ADX misalignment, signals may be less reliable.
Use medium and faded signals as early warnings rather than direct trade triggers.
Summary:
HAP RSI provides a visual, quality-based approach to spotting market reversals, displaying numeric RSI values, momentum gradients, and optional trend/volume confirmation. It is ideal for traders who want both clarity and precision in detecting potential turning points in the market
ORB 1m + 15mShow the opening range bound of each trading day for the first minute and first 15 minutes.
SOFT Canal BAS + alertes (extend future, offset)SOFT Parallel Channel (Base Support) with Alerts
This indicator allows you to define a parallel price channel based on the lower support line, extended into the future, with clean and reliable touch alerts.
The channel is defined using two historical anchor points (date/time + price) on the support line.
The upper boundary is automatically calculated using a fixed channel height.
Key Features
📐 Channel based on the LOWER line (support)
➡️ Extended into the future using extend.right
🔔 Alerts on touch of:
Lower channel (support)
Upper channel (resistance)
🧼 Anti-spam alerts (only one alert per touch)
⏱️ Optional confirmation on bar close
🎚️ Vertical offset control (move the entire channel up or down using input arrows)
👀 Optional visual labels (SUP / RES), disabled by default
How It Works
Select two points on the lower channel line
(date/time + price for Point 1 and Point 2).
Set the channel height (in Nasdaq points).
Optionally adjust the vertical offset to fine-tune the channel position.
Create TradingView alerts on:
Touch Support
Touch Resistance
Recommended Settings (Nasdaq M15 / M30)
Channel height: 200 – 400 points
Touch tolerance: 3 – 10 points
Alerts: On close + one alert per touch (cleanest behavior)
Important Notes
The channel becomes visible once TradingView has loaded the historical bars containing both anchor points.
This script does not read manual drawing tools (TradingView limitation).
The channel is fully calculated and drawn by the script itself.
No repainting: the channel geometry is fixed once defined.
Use Cases
Trend channels
Dynamic support / resistance
Mean reversion trades
Alert-based discretionary trading
SOFT – Stéphane Olivier Fabrice Trading
Designed for clean charts, precise alerts, and practical trading use.
Weekly EMA Squeeze (Bullish + Bearish)Purpose
The Weekly EMA Squeeze indicator identifies periods where price is compressing tightly around a cluster of weekly EMAs and then flags when that compression resolves with directional bias. It is designed to surface high-timeframe inflection points where trends are most likely to begin or meaningfully change.
This indicator operates entirely on weekly data, even when viewed on lower timeframes.
________________________________________
Core Components
1. Weekly EMA Cluster
• Uses three weekly EMAs (fast / mid / slow)
• Compression is defined by:
o Tight EMA spread
o Reduced weekly volatility (ATR contraction)
• Represents balance and indecision at a higher timeframe
2. Bullish Weekly EMA Squeeze
Triggered when:
• EMAs are tightly compressed
• Price is holding above or within the EMA cluster
• EMA slopes flatten or turn upward (optional filter)
• Optional requirement: weekly close above EMA cluster
Displayed as:
• Green upward triangles
• Green vertical shaded band marking the squeeze event window
3. Bearish Weekly EMA Squeeze
Triggered when:
• EMAs are tightly compressed
• Price is holding below or within the EMA cluster
• EMA slopes flatten or turn downward (optional filter)
• Optional requirement: weekly close below EMA cluster
Displayed as:
• Red downward triangles
• Red vertical shaded band marking the squeeze event window
4. Vertical Shaded Event Bands
• Each squeeze event (bull or bear) is visually marked with a vertical shaded region
• Shading appears on every qualifying event, including consecutive ones
• Purpose: clearly identify when the market entered a compressed, directional decision state
________________________________________
What the Indicator Is Signaling
• Compression + directional bias, not immediate breakouts
• Transition points between:
o Range → trend
o Trend → reversal
o Trend → re-acceleration after consolidation
This indicator does not attempt to predict magnitude — it identifies timing and regime change risk.
________________________________________
How to Use It
Best used for:
• High-timeframe bias setting
• Filtering lower-timeframe signals
• Identifying when to stop fading price
• Recognizing when volatility expansion is likely
Typical interpretations:
• Bullish squeeze → bias shifts upward; favor long exposure
• Bearish squeeze → bias shifts downward; favor defensive or short exposure
• Multiple squeezes in same direction → trend reinforcement
• Rapid bull ↔ bear flips → higher-timeframe indecision
________________________________________
What It Is Not
• Not an entry trigger by itself
• Not a momentum oscillator
• Not a replacement for breakout confirmation
This indicator answers:
“Is the weekly market coiling, and in which direction is pressure building?”
Enhanced ATR SupertrendEnhanced ATR Supertrend - Mathematically Sound Trend Following Indicator
OVERVIEW
This is a premium version of the classic Supertrend indicator, built with mathematical rigor and enhanced features for serious traders. Unlike basic implementations, this version offers proper band trailing logic, adaptive volatility modes, and multiple ATR calculation methods.
HOW IT WORKS
The Enhanced ATR Supertrend calculates dynamic support and resistance bands based on the Average True Range (ATR). The core principle is simple but powerful:
ATR Calculation: Measures market volatility using true range (the greatest of: high-low, high-previous close, or low-previous close)
Band Construction: Creates upper and lower bands by adding/subtracting ATR × Multiplier from the HL2 (high+low average)
Trailing Logic:
Upper band can ONLY move down or stay flat (never up) during downtrends
Lower band can ONLY move up or stay flat (never down) during uptrends
This prevents premature trend reversals and whipsaws
Trend Determination:
BULLISH when price closes above the upper band
BEARISH when price closes below the lower band
Line colour changes reflect current trend state
WHY IT'S BETTER
Proper Mathematics: Correct band trailing prevents the "flickering" seen in poorly coded versions
Adaptive Volatility: Optional mode adjusts multiplier based on current vs average volatility - tightens in chaos, widens in calm markets
Multiple ATR Methods: Choose between RMA (default), SMA, EMA, or WMA smoothing
Clean Visual Design: Professional presentation with optional dashboard showing real-time metrics
OSCILLATOR MODE - SPOTTING DOUBLE TOPS/BOTTOMS
When used as an oscillator in the lower pane (remove overlay), the Supertrend's trend changes can reveal powerful reversal patterns:
Double Bottoms: When the indicator flips bullish twice at similar price levels, it often signals strong support and potential reversal zones
Double Tops: When the indicator flips bearish twice at similar levels, it identifies resistance and potential breakdown zones
The step-like visualization makes these patterns easier to spot than traditional price action
Weekly Breakout Confirm + RS vs BTC + VolumePurpose
The Weekly Breakout Confirmation indicator validates whether price has structurally exited a prior weekly range and whether that breakout is supported by volume expansion and relative strength vs BTC.
It is a regime confirmation tool, designed to separate real breakouts from false ones.
________________________________________
Core Components
1. Weekly Donchian Channel
• Upper band (green): prior weekly range high
• Lower band (red): prior weekly range low
• Calculated on weekly data with no repainting
These levels define the structural range the market must escape to enter a new regime.
________________________________________
2. Weekly Breakout (W BO)
Triggered when:
• Weekly close breaks above the upper Donchian band
• Volume confirms expansion
• Optional filter: relative strength vs BTC is rising
Displayed as:
• Bullish breakout marker
• Green structure line remains on chart as reference
________________________________________
3. Weekly Breakdown (W BD)
Triggered when:
• Weekly close breaks below the lower Donchian band
• Volume confirms expansion
• Optional filter: relative strength vs BTC is weakening
Displayed as:
• Bearish breakdown marker
• Red structure line remains on chart as reference
________________________________________
4. Relative Strength vs BTC
• Measures asset performance relative to BTC on a weekly basis
• Helps identify:
o True altcoin leadership
o False breakouts driven only by BTC beta
• Optional requirement for breakout validation
________________________________________
5. Volume Confirmation
• Weekly volume must exceed a moving average threshold
• Filters out low-participation breakouts
• Ensures institutional-grade participation
________________________________________
What the Indicator Is Signaling
• Confirmed regime transitions
• Entry into:
o Sustained trends
o Distribution phases
o Structural breakdowns
Once a breakout is confirmed:
• The prior range is invalidated
• The green/red line becomes support/resistance reference, not a trigger
________________________________________
How to Use It
Best used for:
• Determining whether the market is trending or ranging
• Confirming whether weekly EMA squeezes are actionable
• Managing exposure duration and risk tolerance
Interpretation framework:
• W BO + rising RS + volume → trend acceptance
• W BO without RS → BTC-driven move (lower confidence)
• No recent W BO / W BD → consolidation regime
• W BD → risk-off, defensive posture
Coinbase/Binance Premium Histogram with SMA- Indicator Name and Purpose: The Coinbase/Binance Premium Histogram with SMA is a TradingView indicator designed to visualize the price differential, or premium, between Coinbase and Binance exchanges for a specified cryptocurrency base asset, such as BTC in BTCUSD.
- Dynamic Symbol Construction: It automatically extracts the base currency from the current chart symbol and constructs the appropriate tickers for Coinbase (e.g., COINBASE:BTCUSD) and Binance (e.g., BINANCE:BTCUSDT).
- Price Retrieval and Premium Calculation: The indicator fetches closing prices from both exchanges and computes the premium as the difference between the Coinbase price and the Binance price.
- Histogram Visualization: The premium is plotted as a histogram in a separate pane below the main chart. Positive premiums (higher prices on Coinbase) are colored green, while negative premiums (higher on Binance) are colored red.
- Simple Moving Average (SMA) Integration: A user-configurable SMA of the premium is included, with a default length of 14 periods, displayed as a gray line to offer a smoothed trend perspective.
- Analytical Utility: This tool facilitates the examination of exchange-specific pricing variations, which may indicate potential arbitrage opportunities or market disparities.
- Interpretation of the Premium: A positive Coinbase premium, indicating that Bitcoin trades at a higher price on Coinbase compared to Binance, often reflects strong buying pressure from U.S.-based investors and institutions. This heightened demand can signal potential upward momentum in Bitcoin's price, as it may precede broader market rallies driven by increased institutional interest and optimistic sentiment. Conversely, a negative premium suggests weaker U.S. demand or selling pressure, which could contribute to downward price movements.
- Compatibility with Other Cryptocurrencies: The script is designed to function with all cryptocurrencies that have a USD trading pair on Coinbase and a USDT pair on Binance. It delivers the highest proven signal strength for Bitcoin, where the premium has historically served as a reliable indicator of price direction. The indicator has also demonstrated effectiveness for other assets, such as Ethereum, where a positive premium similarly signals robust U.S. demand and potential bullish momentum. It can be applied to coins like Solana as well, though signal reliability may vary depending on market dynamics and institutional participation.




















