AlphaStrike: Volatility & Pinbar Reversion SystemDescription:
The Concept: Solving the "Context" Problem One of the hardest challenges in trading is identifying whether the market is in a "Trend State" or a "Mean Reversion State." Using trend indicators in a range leads to false breakouts, while using reversal indicators in a strong trend leads to catching falling knives.
This script solves this issue by combining an ATR-based Trend Filter with a conditional Price Action Reversion engine. It does not simply overlay two indicators; it uses a filtering logic to ensure that Reversal signals are only generated when Momentum, Volatility, and Candle Geometry all align at the same time.
How It Works (The Logic) This script functions as a "Hybrid" system with two distinct engines running simultaneously:
1. The Trend Engine (Bias Filter) We use an ATR-based SuperTrend calculation to determine the dominant market direction.
Purpose: This acts as a "No Trade Zone" filter.
Logic: If the Trend Line is Green, the statistical bias is bullish. If Red, the bias is bearish. This helps traders avoid shorting strong uptrends or buying weak downtrends.
2. The Reversal Engine (Signal Generator) This is where the script differentiates itself from standard "Bollinger + RSI" mashups. A signal is NOT generated just because price hits a band. The script requires a specific "Pinbar" candle pattern to validate the move.
The "Blue Dot" (Bullish Reversal) Logic:
Condition A: Price must be below the Lower Bollinger Band (2 Standard Deviations).
Condition B: RSI (14) must be Oversold (< 35).
Condition C (The Filter): The candle must form a Bullish Pinbar. The script calculates the ratio of the lower wick to the body. If the wick is 2x longer than the body, it confirms that buyers actively rejected the lower prices.
The "Orange Dot" (Bearish Reversal) Logic:
Condition A: Price must be above the Upper Bollinger Band.
Condition B: RSI (14) must be Overbought (> 65).
Condition C (The Filter): The candle must form a Bearish Pinbar (long upper wick), indicating buyer exhaustion.
Visual Guide & Usage
Green/Red Line: Use this to trail your Stop Loss or determine trend direction.
Triangles (Breakouts): These marks indicate a shift in volatility where the trend officially flips.
Dots (Reversals): These are high-probability zones for scalps or entering on pullbacks.
Built-In Risk Management To assist with position sizing, a "Smart Risk" table is included in the bottom right corner.
It automatically detects the nearest market structure (Swing Highs/Lows).
It calculates the distance from the current price to that structure.
It displays the suggested position size to maintain a fixed risk percentage (configurable in Settings).
Note: You must input your Account Balance in the settings for this to work.
Settings
Crypto: Default settings (Factor 3.5) are optimized for high-volatility assets like BTC/ETH to reduce noise.
TradFi: For Forex or Stocks, consider lowering the Factor to 3.0.
Disclaimer This tool is designed for educational analysis and risk management assistance. It does not constitute financial advice. Past performance of signals (like those shown on the chart) does not guarantee future results. Always manage your risk.
지표 및 전략
EMA 20/50/200 - Warning Note Before Cross EMA 20/50/200 - Smart Cross Detection with Customizable Alerts
A clean and minimalistic indicator that tracks three key Exponential Moving Averages (20, 50, and 200) with intelligent near-cross detection and customizable warning system.
═══════════════════════════════════════════════════════════════════
📊 KEY FEATURES
✓ Triple EMA System
• EMA 20 (Red) - Fast/Short-term trend
• EMA 50 (Yellow) - Medium/Intermediate trend
• EMA 200 (Green) - Slow/Long-term trend & major support/resistance
✓ Smart Near-Cross Detection
• Get warned BEFORE crosses happen (not after)
• Adjustable threshold percentage (how close is "close")
• Automatic hiding after cross to prevent false signals
• Configurable lookback period
✓ Dual Warning System
• Price Label: Appears directly on chart near EMAs
• Info Table: Positioned anywhere on your chart
• Both show distance percentage and direction
• Dynamic positioning to avoid blocking candles
✓ Color-Coded Alerts
• GREEN warning = Bullish cross approaching (EMA 20 crossing UP through EMA 50)
• RED warning = Bearish cross approaching (EMA 20 crossing DOWN through EMA 50)
✓ Cross Signal Detection
• Golden Cross (EMA 50 crosses above EMA 200)
• Death Cross (EMA 50 crosses below EMA 200)
• Fast crosses (EMA 20 and EMA 50)
═══════════════════════════════════════════════════════════════════
⚙️ CUSTOMIZATION OPTIONS
Warning Settings:
• Custom warning text for bull/bear signals
• Adjustable opacity for better visibility
• Toggle distance and direction display
• Flexible table positioning (9 positions available)
• 5 text size options
Alert Settings:
• Golden/Death Cross alerts
• Fast cross alerts (20/50)
• Near-cross warnings (before it happens)
• All alerts are non-repainting
Display Options:
• Show/hide each EMA individually
• Toggle all signals on/off
• Adjustable threshold sensitivity
• Dynamic label positioning
═══════════════════════════════════════════════════════════════════
🎯 HOW TO USE
1. ADD TO CHART
Simply add the indicator to any chart and timeframe
2. ADJUST THRESHOLD
Default is 0.5% - increase for less frequent warnings, decrease for earlier warnings
3. SET UP ALERTS
Create alerts for:
• Near-cross warnings (get notified before the cross)
• Actual crosses (when EMA 20 crosses EMA 50)
• Golden/Death crosses (major trend changes)
4. CUSTOMIZE APPEARANCE
• Change warning text to your language
• Adjust opacity for your chart theme
• Position table where it's most convenient
• Choose label size for visibility
═══════════════════════════════════════════════════════════════════
💡 TRADING TIPS
- Use the near-cross warning to prepare entries/exits BEFORE the cross happens
- Green warning = Prepare for potential long position
- Red warning = Prepare for potential short position
- Combine with other indicators for confirmation
- Higher timeframes = more reliable signals
- Warning disappears after cross to avoid confusion
═══════════════════════════════════════════════════════════════════
🔧 TECHNICAL DETAILS
- Pine Script v6
- Non-repainting (all signals confirm on bar close)
- Works on all timeframes
- Works on all instruments (stocks, crypto, forex, futures)
- Lightweight and efficient
- No external data sources required
═══════════════════════════════════════════════════════════════════
📝 SETTINGS GUIDE
Near Cross Settings:
• Threshold %: How close EMAs must be to trigger warning (default 0.5%)
• Lookback Bars: Hide warning for X bars after a cross (default 3)
Warning Note Style:
• Text Size: Tiny to Huge
• Colors: Customize bull/bear warning colors
• Position: Place table anywhere on chart
• Opacity: 0 (solid) to 90 (very transparent)
Price Label:
• Size: Tiny to Large
• Opacity: Control transparency
• Auto-positioning: Moves to avoid blocking candles
Custom Text:
• Bull/Bear warning messages
• Toggle distance display
• Toggle direction display
═══════════════════════════════════════════════════════════════════
⚠️ IMPORTANT NOTES
- Warnings only appear BEFORE crosses, not after
- After a cross happens, warning is hidden for the lookback period
- Adjust threshold if you're getting too many/too few warnings
- This is a trend-following indicator - best used with confirmation
- Always use proper risk management
═══════════════════════════════════════════════════════════════════
Happy Trading! 📈📉
If you find this indicator useful, please give it a boost and leave a comment!
For questions or suggestions, feel free to reach out.
ADX Trend VisualizerThis is an enhanced version of the excellent indicator created by ⓒ BeikabuOyaji (Thank You!).
I've made it more visually intuitive by improving the ADX DI line crossover visualization and adding signal alerts.
This indicator utilizes standard ADX calculations and focuses on intuitive visual separation of signals.
It serves as an excellent reference tool for comparison with existing indicators.
MACD Zero-Line Strategy (Long Only)Strategy to Open order when Mac-D Signal Cross up 0, Sell when it cross down 0
Regular Volume Indicator with 30-Day Average PointsRegular Volume Indicator with past 30-days average lines.
If the day's trading volume is more than that, it will have a dot pop out.
ASFX - Automatic VWAPs & Key LevelsAutomate your AVWAPs and key levels for day trading! NY Market open VWAP, Previous day NY VWAP, and more are included. Inital Balance and Opening Range are also automated.
Advanced Bollinger Bands Optimized - Precision SignalsThis indicator creates an advanced Bollinger Bands system with integrated ATR bands and intelligent trading signals. It features:
**Core Components:**
- Standard Bollinger Bands (20-period SMA with 1.382 standard deviations)
- ATR-based outer bands expanding on the Bollinger Bands
- Dynamic bandwidth analysis using Z-Score to measure current volatility relative to historical levels
**Market State Detection:**
Identifies five market conditions based on bandwidth Z-Score:
- Extreme Squeeze (ultra-low volatility)
- Squeeze (low volatility)
- Normal (average volatility)
- Expansion (high volatility)
- Extreme Expansion (ultra-high volatility)
**Signal System:**
Generates 5 bullish and 5 bearish signals:
*Bullish Signals:*
1. Bottom Divergence - Price makes new lows while Z-Score is relatively high
2. Width Reversal - Bandwidth rebounds from extreme squeeze
3. Extreme Squeeze Reversal - Recovery from extreme volatility compression
4. Squeeze Breakout Up - Price breaks above upper band during squeeze
5. State Transition - Market transitions from squeeze to expansion
*Bearish Signals:*
1. Top Divergence - Price makes new highs while Z-Score is relatively low
2. Width Reversal - Bandwidth declines from extreme expansion
3. Extreme Expansion Reversal - Contraction from extreme volatility expansion
4. Squeeze Breakout Down - Price breaks below lower band during squeeze
5. State Transition - Market transitions from expansion to squeeze
**Features:**
- Real-time signal table showing active signals
- Adjustable sensitivity parameters for divergence, reversal, and breakout signals
- Signal cooldown system to prevent duplicate alerts
- Clean visual display with band fills and alert markers
- No additional external indicators required
This tool helps traders identify volatility changes, trend reversals, and breakout opportunities using only price data and bandwidth analysis.
Katik EMA BUY SELLThis strategy uses EMA 9, EMA 20, and EMA 200 to generate Buy and Sell signals.
BUY Conditions
EMA 9 crosses above EMA 20
Stoploss: Recent Swing Low
Target: EMA 9 touches or crosses EMA 200
SELL Conditions
EMA 9 crosses below EMA 20
Stoploss: Recent Swing High
Target: EMA 9 touches or crosses EMA 200
Features
Automatic Long & Short entries
Dynamic swing-based stoploss
Clear EMA plots with line width 3
Works on all timeframes
Short Squeeze Screener _ SYLGUYO//@version=5
indicator("Short Squeeze Screener — Lookup Table", overlay=false)
// ===========================
// TABLEAU INTERNE DES DONNÉES
// ===========================
// Exemple : remplace par tes données réelles
var string tickers = array.from("MARA", "BBBYQ", "GME")
var float short_float_data = array.from(28.5, 47.0, 22.3)
var float dtc_data = array.from(2.3, 15.2, 5.4)
var float oi_growth_data = array.from(12.0, 22.0, 4.0)
var float pcr_data = array.from(0.75, 0.45, 1.1)
// ===========================
// CHARGEMENT DU TICKER COURANT
// ===========================
string t = syminfo.ticker
var float short_f = na
var float dtc = na
var float oi = na
var float pcr = na
// Trouve le ticker dans la base
for i = 0 to array.size(tickers) - 1
if array.get(tickers, i) == t
short_f := array.get(short_float_data, i)
dtc := array.get(dtc_data, i)
oi := array.get(oi_growth_data, i)
pcr := array.get(pcr_data, i)
// ===========================
// SCORE SHORT SQUEEZE
// ===========================
score = 0
score += (short_f >= 30) ? 1 : 0
score += (dtc >= 7) ? 1 : 0
score += (oi >= 10) ? 1 : 0
score += (pcr <= 1) ? 1 : 0
plot(score, "Short Squeeze Score", linewidth=2)
P_Multi-ORB & Session Breakers// WHAT THIS SCRIPT DOES:
// 1. Opening Range Breakout (ORB):
// - Calculates High/Low of the first 5 mins (9:30-9:35 AM EST).
// - Calculates High/Low of the first 60 mins (9:30-10:30 AM EST).
// - Draws infinite lines for breakout levels.
//
// 2. Session Liquidity Breakers:
// - Tracks High/Low of ASIA & LONDON sessions.
// - Alerts and labels when subsequent sessions break these levels.
//
// HOW TO USE:
// - Optimized for 5m or 15m charts on NQ/ES.
// - This version is colored for WHITE/LIGHT background charts.
Mirpapa_Lib_LineLibrary "Mirpapa_Lib_Line"
CreateLine(_breachMode, _isBull, _leftTime, _rightTime, _price, _lineColor, _lineWidth, _lineStyle, _text)
CreateLine
@description 라인 생성 (값 전달 방식 - 모든 좌표 직접 지정).\
호출자가 모든 좌표와 시간을 계산하여 전달.\
breachMode: "price"(고가/저가 돌파) 또는 "close"(종가 돌파).\
Parameters:
_breachMode (string) : 돌파 처리 방식: "price" 또는 "close"
_isBull (bool) : 상승(true) 또는 하락(false)
_leftTime (int) : 라인 시작 시간
_rightTime (int) : 라인 종료 시간
_price (float) : 라인 가격
_lineColor (color) : 라인 색상
_lineWidth (int) : 라인 두께
_lineStyle (string) : 라인 스타일 (line.style_solid, line.style_dashed 등)
_text (string) : 라인 텍스트
Returns: 성공 여부와 라인 데이터
ProcessLineDatas(_openLines, _closedLines, _closeCount, _colorClose, _currentBarIndex, _currentLow, _currentHigh, _currentTime)
ProcessLineDatas
@description 라인 확장 및 돌파 처리.\
열린 라인들을 현재 bar까지 확장하고, 돌파 조건 체크.\
_closeCount: 돌파 횟수 (이 횟수만큼 돌파 시 라인 종료).\
breachMode에 따라 돌파 체크 방식 다름 (price/close).\
종료된 라인은 _closedLines로 이동하고 _colorClose 색상 적용.\
barstate.islast와 barstate.isconfirmed에서 호출 권장.
Parameters:
_openLines (array) : 열린 라인 배열
_closedLines (array) : 닫힌 라인 배열
_closeCount (int) : 돌파 카운트 (이 횟수만큼 돌파 시 종료)
_colorClose (color) : 종료된 라인 색상
_currentBarIndex (int) : 현재 bar_index
_currentLow (float) : 현재 low
_currentHigh (float) : 현재 high
_currentTime (int) : 현재 time
Returns: bool 항상 true
BreachMode
BreachMode
Fields:
PRICE (series string)
CLOSE (series string)
LineData
LineData
Fields:
_breachMode (series string) : 돌파 처리 방식
_isBull (series bool) : 상승(true) 또는 하락(false) 방향
_line (series line) : 라인 객체
_price (series float) : 라인 가격
_text (series string) : 라인 텍스트
_breached (series bool) : 돌파 여부
_breakCount (series int) : 돌파 카운트
M20M60_win10_libLibrary "M20M60_win10_lib"
f_m20m60_win10_features(srcOpen, srcHigh, srcLow, srcClose, bandCenter, bandWidth)
Parameters:
srcOpen (float)
srcHigh (float)
srcLow (float)
srcClose (float)
bandCenter (float)
bandWidth (float)
f_m20m60_win10_is_cluster5(bodyMean, rangeMean, cBandDiff, insideRatio, maxAbove)
Parameters:
bodyMean (float)
rangeMean (float)
cBandDiff (float)
insideRatio (float)
maxAbove (float)
f_m20m60_win10_is_cluster1(bodyMean, rangeMean, cBandDiff, insideRatio, maxAbove)
Parameters:
bodyMean (float)
rangeMean (float)
cBandDiff (float)
insideRatio (float)
maxAbove (float)
Value Charts by Mark Helweg1. Introduction
This script is a simplified implementation of the Value Charts concept introduced by Mark Helweg and David Stendahl in their work on “Dynamic Trading Indicators”. It converts raw price into value units by normalizing distance from a dynamic fair‑value line, making it easier to see when price is relatively overvalued or undervalued across different markets and timeframes. The code focuses on plotting Value Chart candlesticks and clean visual bands, keeping the logic close to the original idea while remaining lightweight for intraday and swing trading.
2. Key Features
- Dynamic fair‑value axis
Uses a moving average of the chosen price source as the fair‑value line and a volatility‑based deviation (smoothed True Range) to scale all price moves into comparable value units.
- Normalized Value Chart candlesticks
OHLC prices are transformed into value units and displayed as a dedicated candlestick panel, visually similar to standard candles but detached from raw price, highlighting relative extremes instead of absolute levels.
- Custom upper and lower visual limits
User‑defined upper and lower bands frame the majority of action and emphasize extreme value zones, helping the trader spot potential exhaustion or mean‑reversion conditions at a glance.
- Clean, publishing‑friendly layout
Only the normalized candles and three simple reference lines (top, bottom, zero) are plotted, keeping the chart uncluttered and compliant with presentation standards for published scripts.
3. How to Use
1. Attach the indicator to a separate pane (overlay = false) on any market and timeframe you trade.
2. Set the “Period (Value Chart)” to control how fast the fair‑value line adapts: shorter values react more quickly, longer values smooth more.
3. Adjust the “Volatility Factor” so that most candles stay between the upper and lower limits, with only true extremes touching or exceeding them.
4. Use the Value Chart candlesticks as a relative overbought/oversold tool:
- Candles pressing into the Top band suggest overvalued conditions and potential for pullbacks or reversions.
- Candles pressing into the Bottom band suggest undervalued conditions and potential for bounces.
5. Combine the signals with your existing price‑action, volume, or trend‑filter rules on the main chart; the Value Chart panel is designed as a context and timing tool, not a standalone trading system.
Equal Highs & Lows Strategy // ------------------------------------------------------------------------------
// 🧠 THE MARKET PSYCHOLOGY (WHY THIS WORKS):
// ------------------------------------------------------------------------------
// 1. THE MAGNET THEORY:
// "Equal Highs" (EQH) and "Equal Lows" (EQL) are not random. They represent
// Retail Support and Resistance. Retail traders are taught to put Stop Losses
// just above Double Tops or just below Double Bottoms.
// - Therefore, these lines represent massive pools of LIQUIDITY (Money).
// - Price is often engineered to move toward these lines to "unlock" that money.
//
// 2. THE INSTITUTIONAL TRAP (STOP HUNTS):
// Institutions need liquidity to fill large orders without slippage.
// - To Buy massive amounts, they need many Sellers -> They push price BELOW EQL
// to trigger retail Sell Stops.
// - To Sell massive amounts, they need many Buyers -> They push price ABOVE EQH
// to trigger retail Buy Stops.
//
// 3. THE STRATEGY (TURTLE SOUP):
// We do not trade the initial touch. We wait for the "Sweep & Reclaim".
// - Bullish Signal (GRAB ⬆): Price drops below the Green Line (EQL), grabs the
// stops, but buyers step in and force the candle to CLOSE back above the line.
// - Bearish Signal (GRAB ⬇): Price spikes above the Red Line (EQH), grabs the
// stops, but sellers step in and force the candle to CLOSE back below the line.
// ------------------------------------------------------------------------------
Combined: Net Volume, RSI & ATR# Combined: Net Volume, RSI & ATR Indicator
## Overview
This custom TradingView indicator overlays **Net Volume** and **RSI (Relative Strength Index)** on the same chart panel, with RSI scaled to match the visual range of volume spikes. It also displays **ATR (Average True Range)** values in a table.
## Key Features
### Net Volume
- Calculates buying vs selling pressure by analyzing lower timeframe data
- Displays as a **yellow line** centered around zero
- Automatically selects optimal timeframe or allows manual override
- Shows net buying pressure (positive values) and selling pressure (negative values)
### RSI (Relative Strength Index)
- Traditional 14-period RSI displayed as a **blue line**
- **Overlays directly on the volume chart** - scaled to match volume spike heights
- Includes **70/30 overbought/oversold levels** (shown as dotted red/green lines)
- Adjustable scale factor to fine-tune visual sizing relative to volume
- Optional **smoothing** with multiple moving average types (SMA, EMA, RMA, WMA, VWMA)
- Optional **Bollinger Bands** around RSI smoothing line
- **Divergence detection** - identifies regular bullish/bearish divergences with labels
### ATR (Average True Range)
- Displays current ATR value in a **table at top-right corner**
- Configurable period length (default: 50)
- Multiple smoothing methods: RMA, SMA, EMA, or WMA
- Helps assess current market volatility
## Use Cases
- **Momentum & Volume Confirmation**: See if RSI trends align with net volume flows
- **Divergence Trading**: Automatically spots when price makes new highs/lows but RSI doesn't
- **Volatility Assessment**: Monitor ATR for position sizing and stop-loss placement
- **Overbought/Oversold + Volume**: Identify exhaustion when RSI hits extremes with volume spikes
## Customization
All components can be toggled on/off independently. RSI scale factor allows you to adjust how prominent the RSI line appears relative to volume bars.
Support & Resistance Auto-Detector by Rakesh Sharma📊 SUPPORT & RESISTANCE AUTO-DETECTOR
Automatically identifies and displays key price levels where traders make decisions. No more manual drawing - let the algorithm do the work!
✨ KEY FEATURES:
- Auto-detects Swing High/Low levels with strength rating
- Previous Day High/Low (PDH/PDL) - Most important intraday levels
- Previous Week High/Low (PWH/PWL) - Strong swing levels
- Previous Month High/Low (PMH/PML) - Major turning points
- Round Number levels (Psychological barriers)
- S/R Zones (Better than exact lines)
- Breakout/Breakdown alerts
- Live Dashboard with trade bias
🎯 PERFECT FOR:
Nifty, Bank Nifty, Stocks, Forex, Crypto - All markets, all timeframes
⚡ SMART FEATURES:
- Strength Rating: Very Strong/Strong/Medium/Weak
- Distance Calculator: Shows points to next S/R
- Trade Bias: "Buy Dips" / "Sell Rallies" / "Breakout"
- Break Alerts: Get notified on PDH/PDL breaks
- Clean Chart: Shows only most important levels
💡 TRADING EDGE:
Trade bounces at support, rejections at resistance, or breakouts through key levels. Combines perfectly with price action and other indicators.
Created by: Rakesh Sharma
4 EMA Cross Indicator - @orelkakoonA clean, simple EMA crossover indicator built for clarity and momentum.
This indicator uses 4 EMAs (8, 21, 50, 63) to help visualize short-term momentum within the broader trend.
It highlights bullish crossovers when EMA 8 crosses above EMA 21, and bearish crossovers when EMA 8 crosses below EMA 21, making trend shifts easy to spot at a glance.
Designed for traders who want clear signals, less noise, and better timing within an existing trend.
IDX Sector Monitor - RRG
// ═══════════════════════════════════════════════════════════════════════════════
// IDX SECTOR MONITOR - RRG EDITION
// ═══════════════════════════════════════════════════════════════════════════════
// Track Indonesian stock sectors with Relative Rotation Graph (RRG) analysis.
//
// Features:
// • Custom sector indices (equal-weighted)
// • Multi-timeframe performance (1D, 1W, 1M, etc.)
// • RRG status vs IHSG/LQ45 benchmark
//
// RRG Quadrants:
// 💚 Leading - Outperforming, strong momentum (BUY zone)
// 💛 Weakening - Still strong but slowing down (TAKE PROFIT)
// 💙 Improving - Weak but gaining momentum (WATCHLIST)
// ❤️ Lagging - Underperforming, avoid (SELL zone)
//
// ═══════════════════════════════════════════════════════════════════════════════
MSTR mNAV indicatorTrack and compute MicroStrategy's mNAV (EV divided by BTC reserve value) over time.
- compute method: www.strategy.com
- data source: www.strategy.com




















