Sanjay AhirPull Backs , Swings Marking
useful for market structure
useful For Smc Strcture
useful for ICT mapping
Indicadores e estratégias
Ehlers Dominant Cycle Stochastic RSIEhlers Enhanced Cycle Stochastic RSI
OVERVIEW
The Ehlers Enhanced Cycle Stochastic RSI is a momentum oscillator that automatically adjusts its lookback periods based on the dominant market cycle. Unlike traditional Stochastic RSI which uses fixed periods, this indicator detects the current cycle length and scales its calculations—making it responsive in fast markets and stable in slow ones.
The indicator combines John Ehlers' digital signal processing research with the classic Stochastic RSI indicator, then adds a confirmation system to ensure cycle measurements are reliable.
THE THEORY
Traditional oscillators use fixed lookback periods (ie, 14-bar RSI). This creates a fundamental problem: markets don't move in fixed cycles. A 14-period RSI might capture the rhythm perfectly during one market phase, then completely miss it when conditions change.
Ehlers' research demonstrated that price data contains measurable cyclical components. If you can detect the dominant cycle length, you can tune your indicators to match it—like tuning a radio to the right frequency.
This indicator takes that concept further by using three independent cycle detection methods and only trusting the measurement when they agree:
Hilbert Transform — A mathematical technique from signal processing that extracts cycle period from the phase relationship between price and its derivative. It is fast but can be noisy.
Autocorrelation Periodogram — Measures how similar the price series is to lagged versions of itself. The lag with highest correlation reveals the dominant cycle. More stable than Hilbert, but slightly slower to adapt.
Goertzel Algorithm (DFT) — A frequency-domain approach that calculates spectral power at each candidate period. Identifies which frequencies contain the most energy.
When all three methods converge on similar period estimates, confidence is high. When they disagree, the market may be in a non-cyclical or in transition.
HOW IT CHANGES THE STOCHASTIC RSI
Standard Stochastic RSI:
1. Calculate RSI with fixed period (14 bars)
2. Apply Stochastic formula over fixed period (14 bars)
3. Smooth with fixed periods
Ehlers Enhanced Cycle Stochastic RSI:
1. Detect dominant cycle using three methods
2. Confirm cycle measurement (methods must agree)
3. Calculate RSI with period scaled to the detected cycle
4. Apply Stochastic formula with cycle-scaled lookback
5. Smooth adaptively
The result: when the market is cycling quickly (say, 15-bar cycles), the indicator uses shorter periods and responds faster. When the market stretches into longer cycles (such as 40-bar cycles), it automatically extends its lookback to avoid whipsaws.
The Period Multipliers let you fine-tune this relationship:
• 1.0 = Use the full detected cycle (smoother, fewer signals)
• 0.5 = Use half the cycle (more responsive, catches turns earlier)
INTERPRETATION
Reading the Oscillator:
• K Line (Blue) — The main signal line. Moves between 0 and 100.
• D Line (Orange) — Smoothed version of K. Use for confirmation.
• Above 80 — Overbought. Momentum stretched to upside.
• Below 20 — Oversold. Momentum stretched to downside.
• Crossovers — K crossing above D suggests bullish momentum shift; K crossing below D suggests bearish.
Spectral Dilation (optional):
When enabled, applies a bandpass filter before cycle detection. This isolates the frequency band of interest and reduces noise. Useful for:
• Very noisy instruments
• Lower timeframes
• When confidence stays persistently low
NIFTY Weekly Option Seller DirectionalHere’s a straight description you can paste into the TradingView “Description” box and tweak if needed:
---
### NIFTY Weekly Option Seller – Regime + Score + Management (Single TF)
This indicator is built for **weekly option sellers** (primarily NIFTY) who want a **structured regime + scoring framework** to decide:
* Whether to trade **Iron Condor (IC)**, **Put Credit Spread (PCS)** or **Call Credit Spread (CCS)**
* How strong that regime is on the current timeframe (score 0–5)
* When to **DEFEND** existing positions and when to **HARVEST** profits
> **Note:** This is a **single timeframe** tool. The original system uses it on **4H and 1D separately**, then combines scores manually (e.g., using `min(4H, 1D)` for conviction and lot sizing).
---
## Core logic
The script classifies the market into 3 regimes:
* **IC (Iron Condor)** – range/mean-reversion conditions
* **PCS (Put Credit Spread)** – bullish/trend-up conditions
* **CCS (Call Credit Spread)** – bearish/trend-down conditions
For each regime, it builds a **0–5 score** using:
* **EMA stack (8/13/34)** – trend structure
* **ADX (custom DMI-based)** – trend strength vs range
* **Previous-day CPR** – in CPR vs break above/below
* **VWAP (session)** – near/far value
* **Camarilla H3/L3** – for IC context
* **RSI (14)** – used as a **brake**, not a primary signal
* **Daily trend / Daily ADX** – used as **hard gates**, not double-counted as extra points
Then:
* Scores for PCS / CCS / IC are **cross-penalised** (they pull each other down if conflicting)
* Final scores are **smoothed** (current + previous bar) to avoid jumpy signals
The **background colour** shows the current regime and conviction:
* Blue = IC
* Green = PCS
* Red = CCS
* Stronger tint = higher regime score
---
## Scoring details (per timeframe)
**PCS (uptrend, bullish credit spreads)**
* +2 if EMA(8) > EMA(13) > EMA(34)
* +1 if ADX > ADX_TREND
* +1 if close > CPR High
* +1 if close > VWAP
* RSI brake:
* If RSI < 50 → PCS capped at 2
* If RSI > 75 → PCS capped at 3
* Daily gating:
* If daily EMA stack is **not** uptrend → PCS capped at 2
**CCS (downtrend, bearish credit spreads)**
* +2 if EMA(8) < EMA(13) < EMA(34)
* +1 if ADX > ADX_TREND
* +1 if close < CPR Low
* +1 if close < VWAP
* RSI brake:
* If RSI > 50 → CCS capped at 2
* If RSI < 25 → CCS capped at 3
* Daily gating:
* If daily EMA stack is **not** downtrend → CCS capped at 2
**IC (range / mean-reversion)**
* +2 if ADX < ADX_RANGE (low trend)
* +1 if close inside CPR
* +1 if near VWAP
* +0.5 if inside Camarilla H3–L3
* +1 if daily ADX < ADX_RANGE (daily also range-like)
* +0.5 if RSI between 45 and 55 (classic balance zone)
* Daily gating:
* If daily ADX ≥ ADX_TREND → IC capped at 2 (no “strong IC” in strong trends)
**Cross-penalty & smoothing**
* Each regime’s raw score is reduced by **0.5 × max(other two scores)**
* Final IC / PCS / CCS scores are then **smoothed** with previous bar
* Scores are always clipped to ** **
---
## Regime selection
* If one regime has the highest score → that regime is selected.
* If there is a tie or close scores:
* When ADX is high, trend regimes (PCS/CCS) are preferred in the direction of the EMA stack.
* When ADX is low, IC is preferred.
The selected regime’s score is used for:
* Background colour intensity
* Minimum score gate for alerts
* Display in the info panel
---
## DEFEND / HARVEST / REGIME alerts
The script also defines **management signals** using ATR-based buffers and Camarilla breaks:
* **DEFEND**
* Price moving too close to short strikes (PCS/CCS/IC) relative to ATR, or
* Trend breaks through Camarilla with ADX strong
→ Suggests rolling away / widening / converting to reduce risk.
* **HARVEST**
* Price has moved far enough from your short strikes (in ATR multiples) and market is still range-compatible
→ Suggests booking profits / rolling closer / reducing risk.
* **REGIME CHANGED**
* Regime flips (IC ↔ PCS/CCS) with cooldown and minimum score gate
→ Suggests switching playbook (range vs trend) for new entries.
Each of these has a plotshape label plus an `alertcondition()` for TradingView alerts.
---
## UI / Panel
The **top-right panel** (optional) shows:
* Strategy + final regime score (IC / PCS / CCS, x/5)
* ADX / RSI values
* CPR status (Narrow / Normal / Wide + %)
* EMA Stack (Up / Down / Mixed) and EMA tightness
* VWAP proximity (Near / Away)
* Final **IC / PCS / CCS** scores (for this timeframe)
* H3/L3, H4/L4, CPR Low/High and VWAP levels (rounded)
These values are meant to be **read quickly at the decision time** (e.g. near the close of the 4H bar or daily bar).
---
## Intended workflow
1. Run the script on **4H** and **1D** charts separately.
2. For each timeframe, read the panel’s **IC / PCS / CCS scores** and regime.
3. Decide:
* Final regime (IC vs PCS vs CCS)
* Combined score (e.g. `AlignScore = min(Score_4H, Score_1D)`)
4. Map that combined score to **your own lot-size buckets** and trade rules.
5. During the life of the position, use **DEFEND / HARVEST / REGIME** alerts to adjust.
The script does **not** auto-calculate lot size or P&L. It focuses on giving a structured, consistent **market regime + strength + levels + management** layer for weekly option selling.
---
## Disclaimer
This is a discretionary **decision-support tool**, not a guarantee of profit or a replacement for risk management.
No performance is implied or promised. Always size positions and manage risk according to your own capital, rules, and regulations.
MTF Trend Avcısı ema ve supertrendi birleştirip h2-h3-h4 uyumlu olduğu zaman al sat sinyali üreten indikatördür
ZLSMA Cross ATR Targets - Enhanced Trading StrategyZLSMA Cross ATR Targets - Enhanced Trading Strategy
📊 Overview
This indicator combines Zero-Lag Least Squares Moving Average (ZLSMA) crossover signals with ATR-based dynamic risk management to provide precise entry and exit points. Unlike standard moving average crossovers, this system uses a zero-lag implementation to reduce signal delays and incorporates multi-timeframe analysis for improved accuracy.
🎯 What Makes This Script Unique
1. Zero-Lag LSMA Implementation:
Uses a dual-smoothing technique: 2 * SMA(price, length) - SMA(SMA(price, length), length)
This eliminates the typical lag found in standard moving averages
Provides faster reaction to price changes while maintaining smoothness
2. Multi-Timeframe Signal Generation:
Analyzes price action on a higher timeframe (default: 15-min) regardless of chart timeframe
Reduces noise and false signals common in single-timeframe systems
All calculations (ZLSMA, ATR, close price) are synchronized to the signal timeframe
3. Dynamic ATR-Based Risk Management:
Stop Loss: Automatically calculated using ATR multiplier (default: 1.0x)
Take Profit 1: First target at 1.5x ATR (adjustable)
Take Profit 2: Extended target at 3.0x ATR (adjustable)
Risk-Reward ratios are displayed on each trade label for transparency
4. Optional Signal Filters:
Trend Filter: Uses 200 EMA to filter trades - only buys above, sells below (optional)
Volatility Filter: Ensures minimum ATR % to avoid low-volatility false signals (optional)
Both filters can be independently toggled on/off
5. Real-Time Performance Tracking:
Automatically tracks completed trades (TP1, TP2, or SL hits)
Calculates win rate, total P/L, and average P/L per trade
Live P/L displayed for current open position
Performance-based color coding (Green/Blue/Orange/Red)
🔧 How It Works
Signal Generation:
BUY Signal: Triggered when price crosses above ZLSMA on the signal timeframe
SELL Signal: Triggered when price crosses below ZLSMA on the signal timeframe
If filters are enabled, signals are validated against trend direction and volatility conditions
Trade Execution:
Entry price is locked at the close of the crossover bar
SL, TP1, and TP2 are calculated using the ATR value from the signal timeframe
Horizontal lines extend into the future (default: 240 bars) for visual clarity
Labels display all trade parameters including risk-reward ratios
Position Management:
System monitors each bar to detect if price hits SL, TP1, or TP2
Once a target is hit, the trade is marked as complete and statistics update
"Show Only Latest Trade" toggle cleans up historical signals for chart clarity
📈 How to Use
Settings:
Signal Timeframe: Timeframe for ZLSMA and ATR calculations (higher = fewer signals)
ZLSMA Length: Lookback period (100 default, lower = more responsive)
ATR Length: Period for volatility measurement (14 default)
SL/TP Multipliers: Adjust risk-reward profile to your trading style
Filters: Enable/disable trend and volatility filters as needed
Dashboard:
Fixed position (top-right corner) shows:
Current trade status and live P/L
Entry, SL, TP1, TP2 prices
Total performance statistics
Strategy settings summary
Alerts:
Enable alerts in settings to receive notifications on new signals
Each alert includes full trade details (Entry, SL, TP1, TP2)
⚙️ Why This Combination Works
The mashup of ZLSMA, multi-timeframe analysis, ATR-based targets, and optional filters creates a complete trading system:
ZLSMA provides faster signals than traditional moving averages
Higher timeframe reduces noise and improves signal quality
ATR-based targets adapt to current market volatility (no fixed pip targets)
Trend filter keeps you aligned with the bigger picture
Volatility filter avoids choppy, low-conviction setups
Performance tracking allows data-driven strategy optimization
This is not just a combination of existing indicators—it's a complete risk-managed trading framework with built-in analytics.
⚠️ Risk Disclaimer: This indicator is for educational purposes only. Past performance does not guarantee future results. Always use proper risk management and never risk more than you can afford to lose.
ichimoku complex value Signal [Levels 1-3]This is a signal indicator utilizing composite values of the Ichimoku kinko hyo
The signal is generated when it reaches the period of ichimoku kinko hyo I set.
Lv1: Low reliability. Recommended for scalping.
Lv2: Higher reliability than Level 1, but unsuitable for holding positions for a long duration.
Lv3: High reliability. Suitable for holding positions for a long duration.
Important Note: Do not set your stop-loss too tight. You may get stopped out during a retest or a fakeout movement.
EURUSD, USDJPY, and other Forex pairs: 4-Hour (4H)
BTCUSD, ETHUSD, and other Crypto assets: 1-Hour (1H)
XAUUSD (GOLD): 5-Minute (5m)
NQ1!: 4-Hour (4H)
Normal Dist Deviation LevelsThis indicator shows where the current price sits within a normal-distribution “sigma” framework and projects those levels as short, local reference lines rather than full trailing bands.
It first calculates a moving average (SMA or EMA, user-selectable) over a chosen lookback length and the corresponding standard deviation of price around that mean. The mean is treated as the 0σ level, and fixed price levels are computed at ±1σ, ±2σ, and ±3σ from that mean for the most recent bar.
For each of these sigma prices, the script draws a short horizontal segment that spans only a limited number of candles into the past and into the future, giving clean local “price bars” instead of bands across the entire chart. The colors and line styles differentiate 0σ (blue), ±1σ (solid), ±2σ (dashed), and ±3σ (dotted), visually marking moderate to extreme deviations from the mean.
To make interpretation easier, the indicator also places text labels to the right of the price bars, a couple of candles ahead of the line ends. Each label shows both the statistical region and its approximate normal-distribution probability, such as “50% (0σ)”, “15.87% (+1σ / -1σ)”, “2.27% (+2σ / -2σ)”, and “0.14% (+3σ / -3σ)”, so you can quickly see how unusual the current deviation is in probabilistic terms.
Regular & Hidden Build UPWealthcon inspired Regular & Hidden Build up . Auto detects Scrip from overlay Spot chart
Higher Timeframe MA High Low BandsHigher Timeframe Customer MA High Low Bands. There are 3 different Moving Average Parameters Available. Indicator will plot 3 lines of MA Length With Source of High, Close and Low. User can change relevant MA parameters / Show or Hide MA.
Happy Trading
Reversal SMC Suite Pro by TradeswithBThe Reversal SMC Suite is an intraday Smart Money Concepts toolkit designed to help traders visually analyze structure, imbalances, and displacement during trending or volatile sessions. This script combines multiple SMC elements—reversals, order blocks, FVGs, HTF bias, and pivot-based support/resistance—into one organized framework to support decision-making.
This indicator does not generate buy or sell signals and does not guarantee results. It is strictly a charting and visualization tool intended to help traders study market behavior.
🔍 Key Features
1. Reversal Detection
Swing Failure Pattern (SFP)
Bullish/Bearish Engulfing
Momentum candle detection (ATR-based)
Optional unified “reversal” signal
Visual arrows and reversal blocks
These are designed to highlight potential turning points based on price behavior—not to predict or guarantee outcomes.
2. HTF Trend Filter
Optional higher timeframe EMA/SMA filter
Customizable HTF resolution
Bias modes: Long only / Short only / Both
This helps you align lower-timeframe reversals with broader market context.
3. Dynamic Order Blocks
Automated OB detection (Body, Wick, or Hybrid)
Smart mitigation logic (body-based or wick-based)
Configurable lookback and OB count
Optional ATR body-size filter for OB quality
Real-time mitigation removal
These tools help visualize areas of interest where price previously showed displacement.
4. Fair Value Gaps (FVG)
Automatic gap detection
Optional FVG extension until filled
Per-side max FVG limit
Useful for identifying imbalance zones and measuring how price revisits inefficiencies.
5. Support / Resistance
Pivot-based S/R with left/right bar settings
Auto-drawing with customizable line counts
Optional S/R visibility toggle
🎛 Presets Included
Several visual configurations are included for convenience:
Custom / Manual (default)
Intraday ORB 5–15m (optimized for fast futures charts)
Clean SMC (Trend + OB)
FVG + OB Combo
Presets adjust inputs automatically to give new users cleaner starting points.
🧠 How To Use
This script is meant to be paired with any strategy or workflow that benefits from:
visual structure analysis,
HTF/LTF alignment,
OB + FVG context, or
intraday trend identification.
It does not replace risk management, strategy rules, or trade planning.
⚠️ Important Notes / Disclaimer
This indicator does not generate trading signals.
No part of this script guarantees profitable outcomes.
It is for educational and informational purposes only.
Always perform your own analysis and use proper risk management.
Past market behavior does not guarantee future results.
IBIT premium(vs NAV)This Pine Script calculates and plots the real-time trading premium or discount of the IBIT ETF relative to its official Net Asset Value (NAV).
It shows whether IBIT is trading above NAV (premium) or below NAV (discount) in percentage terms.
This version is accurate because it uses TradingView’s built-in ETF NAV financial data, rather than estimating BTC per share.
⸻
Key Data Sources Used
• Market Price:
The script pulls the live IBIT market price from NASDAQ:IBIT.
• Official NAV:
It retrieves the daily Net Asset Value (NAV) using TradingView’s financial data function and expands it across all intraday timeframes so it can be compared with real-time prices.
• Platform used: TradingView
⸻
How the Premium Is Calculated
The script uses the standard ETF premium formula:
\text{Premium (\%)} = \frac{\text{Market Price} - \text{NAV}}{\text{NAV}} \times 100
• Positive value → IBIT is trading at a premium
• Negative value → IBIT is trading at a discount
• Zero → IBIT is trading exactly at NAV
⸻
What the Chart Displays
• A real-time premium (%) line in a separate indicator panel
• A 0% reference line showing fair value
• ±1% and ±2% guide lines for abnormal deviation detection
• A live value label on the latest bar showing the exact current premium
⸻
Why This Script Is Accurate
• Uses official ETF NAV, not a BTC-per-share estimate
• NAV updates once per day, exactly as reported by the issuer
• Works on all timeframes (1-minute to daily)
• Shows true market mispricing, not synthetic BTC tracking error
⸻
How Traders Typically Use It
• Detect temporary dislocations between IBIT price and NAV
• Monitor liquidity stress during high volatility
• Validate whether IBIT is trading efficiently versus BTC
• Support ETF–BTC–Futures arbitrage analysis
⸻
Important Limitation
• NAV is only updated once per trading day
• During fast BTC moves, the premium may widen temporarily and normalize later via authorized participant (AP) arbitrage
APEX-SIGNAL PRO STMDescription:
APEX-SIGNAL PRO is a comprehensive trading system designed for traders who prioritize consistency and risk management. Unlike traditional indicators, APEX integrates Smart Money Concepts (SMC), Liquidity Sweeps, and Volatility analysis into a single, clean interface.
The core philosophy of this system is the "No-Ruin Protocol" — a built-in risk engine that ensures you never over-leverage, helping you survive in the market long-term while capturing high R:R setups.
Key Features:
💎 Snipe Mode (Tier A): High-probability entry signals based on Liquidity Sweeps + Reversal Candles.
🌊 Flow Mode (Tier B): Trend-following logic for capturing momentum.
🛡️ No-Ruin Dashboard: Real-time position sizing and risk calculator displayed directly on your chart.
📊 Smart Structure: Automatically identifies Supply/Demand zones and Order Blocks.
🚫 100% Non-Repaint: All signals are permanent once the candle closes. No disappearing arrows.
How to Use:
Identify Trend: Use the dashboard to check the current market bias (Bullish/Bearish).
Wait for Signal: Look for the GREEN (Buy) or RED (Sell) labels.
Confirm Structure: Ensure the price is reacting to a valid Supply/Demand zone shown on the chart.
Manage Risk: Follow the TP/SL levels and Lot Size recommended by the dashboard.
⚠️ Disclaimer: Trading financial markets involves risk. This tool is designed to assist in analysis and does not guarantee profits. Past performance is not indicative of future results.
🔓 Access: This is an Invite-Only script. To request access, stm29112025@gmail.com
DH EMA 28/72/200 Unified Ribbon (Scaled HTF)Unified EMA Ribbon (28/72/200)
This indicator merges two popular EMA systems — 21/55/200 and 34/89/200 — into a single, smoother trend-tracking ribbon.
Each pair of EMAs is averaged to create:
EMA 28 (average of 21 & 34)
EMA 72 (average of 55 & 89)
EMA 200 retained as long-term trend filter
The unified ribbon reduces noise, improves trend clarity, and provides clean pullback zones for high-probability entries, especially on the H1 timeframe.
Ghost Phase [Bit2Billions]Ghost Phase — Advanced Chart Pattern Suite
*An intelligent charting framework that identifies key price structures, geometric patterns, and trend dynamics with real-time precision.*
Ghost Phase is designed to streamline market analysis by automatically detecting and visualizing price structures and chart patterns. It integrates multiple analytical modules—geometric channels, wedges, triangles, double tops/bottoms, harmonic patterns, and trendlines (including curved trendlines)—into a single, rule-based system. Each component works in harmony to provide a structured view of market behavior, highlighting potential breakouts, reversals, and continuation setups.
This suite enhances trading workflow by clearly differentiating patterns using distinct boxes, lines, colors, and line types (solid, dashed, dotted), allowing traders to quickly interpret complex price dynamics without manual chart clutter.
Key Features & Components
1. Geometric Channels
* Ascending, Descending, and Ranging channels for trend visualization and directional bias.
* Real-time auto-detection ensures patterns are updated with evolving price action.
2. Wedges & Triangles
* Rising/Falling Wedges (Expanding & Contracting).
* Ascending/Descending Triangles (Expanding & Contracting).
* Diverging & Converging Triangles.
* Supports pattern-specific breakout and reversal identification.
3. Double Tops & Bottoms
* Automatic recognition of key reversal zones.
* Visual cues allow fast, rule-based entry and exit decisions.
4. Harmonic Patterns
* Cypher, Shark, Crab, Butterfly, Bat, and Gartley pattern recognition.
* Advanced visual mapping of harmonic structures for precise market setups.
5. Trendlines
* Standard and curved trendlines, including real-time Ghost Curve candidate detection.
* Helps identify both micro and macro directional trends efficiently.
6. Auto Pattern Detection & Clarity Tools
* Smart overlap-avoidance minimizes chart clutter.
* All patterns auto-drawn directly on the chart.
* Uses clear boxes, colors, and line types for quick interpretation and structured analysis.
Visual Design & Chart Clarity Standards
* Only essential live labels are displayed; historical labels remain hidden.
* Organized, modular visuals with consistent color schemes and line types.
* Clean, structured charts reduce cognitive load and improve decision-making speed.
What Ghost Phase Solves
* Reduces manual charting and repetitive analysis.
* Speeds up workflow with automated visual tools.
* Cuts through market noise for improved clarity.
* Establishes a consistent, rule-based analytical framework for multiple markets and timeframes.
Inputs & Settings
* Default settings pre-configured
* Simple Show/Hide toggles for modules
* Minimal exposed fields for ease of use
Recommended Timeframes & Markets
* Works best on 15M, 1H, 4H, Daily, and higher
* Suitable across forex, crypto, indices, and liquid equities
* Pivot-based modules may show noise on illiquid assets
Performance & Limitations
* May draw many objects → disable unused modules for speed
* Refresh the chart if historical buffer issues occur
* TradingView platform limitations handled internally
License & Legal
* Proprietary © 2025
* Redistribution, resale, or disclosure prohibited
* Independently developed with proprietary extensions
* Any resemblance to other tools may result from public-domain concepts
Respect & Transparency
* Built on widely recognized public trading concepts.
* Developed with respect for the TradingView community.
* Any overlaps or similarities can be addressed constructively.
Disclaimer
* Educational purposes only
* Not financial advice
* Trading carries risk — always use paper testing and proper risk management
FAQs
* Source code is not public
* Works best on 15m, 1H, 4H, Daily, Weekly charts
* Modules can be hidden/shown with toggles
* Alerts can be set up manually by users
* Supports multiple markets: forex, crypto, indices, and equities
About Ghost Trading Suite
Author: BIT2BILLIONS
Project: Ghost Trading Suite © 2025
Indicators: Ghost Matrix, Ghost Protocol, Ghost Cipher, Ghost Shadow
Strategies: Ghost Robo, Ghost Robo Plus
Pine Version: V6
The Ghost Trading Suite is designed to simplify and automate many aspects of chart analysis. It helps traders identify market structure, divergences, support and resistance levels, and momentum efficiently, reducing manual charting time.
The suite includes several integrated tools — such as Ghost Matrix, Ghost Protocol, Ghost Cipher, Ghost Shadow, Ghost Robo, and Ghost Robo Plus — each combining analytical modules for enhanced clarity in trend direction, volatility, pivot detection, and momentum tracking.
Together, these tools form a cohesive framework that assists in visualizing market behavior, measuring momentum, detecting pivots, and analyzing price structure effectively.
This project focuses on providing adaptable and professional-grade tools that turn complex market data into clear, actionable insights for technical analysis.
Crafted with 💖 by BIT2BILLIONS for Traders. That's All Folks!
Changelog
v1.0 – Core Release
* Added detection and visualization of ascending, descending, and ranging channels.
* Implemented expanding and contracting wedges with automatic labeling.
* Added diverging, converging, ascending, and descending triangles (expanding & contracting).
* Introduced double top and double bottom reversal pattern detection.
* Integrated harmonic patterns: Cypher, Shark, Crab, Butterfly, Bat, Gartley.
* Added trendline tools, including curved trendlines with real-time Ghost Curve candidate detection.
* Implemented auto pattern detection for triangles, wedges, and channels
FAD% - Futures vs Spot Spread (Trend Color)WEALTHCON inspired TRUE & HIDDEN LONG Build up Scanner, Only for educational purpose. Automatically detects the overlay chart SCRIP. Use spot chart
ATH line from ATH candleATH Line from ATH Candle draws a horizontal line at the instrument’s most recent All-Time High (ATH) and keeps it extended to the right for an easy visual reference.
What it shows A green horizontal line plotted at the latest ATH level (based on High by default, optional Close). A label plotted to the right of the most recent candle displaying: ATH: the ATH price (rounded to 0 decimals) : how many weeks ago that ATH was set (rounded to 0 decimals) Diff: current price vs ATH in % (close / ATH − 1) rounded to 0 decimals Inputs Use High (else Close) : choose whether ATH is calculated from candle highs or closes. Label bars to the right : moves the label further right to avoid overlapping the current price. Notes The indicator always tracks the latest ATH. When a new ATH is made, the line and label update automatically. Results depend on the available historical data for the symbol (ATH is computed from loaded history). If you have feature requests (e.g., show multiple ATH levels, add date of ATH, or use monthly/weekly ATH), feel free to comment.
Daily ATR Dashboard - NIRALADaily ATR Dashboard: Volatility at a Glance
What is this?
The "Daily ATR Dashboard" is a simple, non-intrusive utility tool designed for intraday traders. It places a clean information table in the top-right corner of your chart, displaying the Daily Average True Range (DATR) for the current session and the previous two days.
Why is it useful?
Understanding daily volatility is crucial for setting realistic targets and stop-losses.
Know the Range: Instantly see how much the instrument typically moves in a day.
Context: Compare today's volatility with yesterday's and the day before to gauge if the market is expanding (becoming more volatile) or contracting (consolidating).
Clean Charts: Instead of plotting a messy ATR line indicator below your price action, this dashboard gives you the raw data you need without cluttering your workspace.
Features:
Real-Time Data: The "Today" row updates in real-time as the current daily candle develops.
Historical Context: Automatically fetches and displays the final DATR values for the previous two sessions ("Yesterday" and "Day Before").
Highlighted Current Day: The current day's data is highlighted in yellow for immediate visibility.
Customizable: You can adjust the ATR length (default is 14) and the text size to fit your screen perfectly.
How to Read It:
Today: The current volatility of the ongoing daily session.
Yesterday / Day Before: The finalized volatility of past sessions.
Tip: If "Today's" ATR is significantly lower than the previous days, expect potential expansion or a breakout soon. If it is significantly higher, the market may be overextended.
Settings:
DATR Length: The lookback period for the ATR calculation (Default: 14).
Text Size: Adjust the size of the table text (Tiny, Small, Normal, Large).
Session Highs & Lows - Pinhead TradesMarks out the session highs and lows + Sweeps
*Very good for looking for reversal entry's targeting opposing session liquidity
Color-Changing EMA 8 (Stateful) + Buy/SellThis indicator is a state-based micro-trend detection engine built around the Fibonacci EMA pair 8 and 21, designed to reveal real momentum shifts at the earliest statistically valid moment. Instead of simply coloring the line based on price position, it analyzes acceleration and directional consistency, meaning it detects when price is actually gaining or losing force, not just moving up or down. This makes it especially effective for scalping, short-term trend riding, and momentum reversals inside active market sessions.
The color-changing EMA line operates as a three-state trend machine. Green indicates confirmed bullish acceleration, red indicates confirmed bearish acceleration, and black represents a neutral or undecided momentum state. These colors are not cosmetic; they only activate after two consecutive bars confirm the same directional acceleration, filtering out one-bar fakeouts and random noise. This debounce logic is what allows the indicator to flip cleanly at real turning points instead of constantly repainting.
Buy and Sell signals are generated using a non-repainting state transition system. A Buy signal only appears when the trend state flips from confirmed bearish to confirmed bullish. A Sell signal only appears when the trend flips from confirmed bullish to confirmed bearish. This prevents repetitive signals in the same direction and ensures every tag represents a true regime change, not a continuation spam signal.
Each Buy and Sell label is intentionally offset back one candle, placing the signal directly on the bar where the momentum shift first became structurally valid — not on the reaction candle afterward. A matching vertical line is drawn through that bar to visually anchor the transition point in price. This allows traders to clearly see where momentum actually flipped, making back-testing, execution review, and real-time entries far more precise.
Because this indicator tracks acceleration instead of trend lag, it excels at capturing the natural humps and valleys inside trending markets. It is particularly effective on instruments with clean liquidity behavior such as Gold, BTC, ETH, major futures, and index products. In active volatility conditions, this allows traders to ride multiple micro-moves within a single macro trend.
This indicator does not predict the future; it detects when the market has objectively changed state. It is a momentum confirmation engine, not a guessing tool. Like all momentum systems, it performs best during expansion phases and should be used with caution during low-volatility chop, overnight compression, and pre-news conditions.
My script//@version=6
indicator("ISIN demo")
// Define inputs for two symbols to compare.
string symbol1Input = input.symbol("NASDAQ:AAPL", "Symbol 1")
string symbol2Input = input.symbol("GETTEX:APC", "Symbol 2")
if barstate.islastconfirmedhistory
// Retrieve ISIN strings for `symbol1Input` and `symbol2Input`.
var string isin1 = request.security(symbol1Input, "", syminfo.isin)
var string isin2 = request.security(symbol2Input, "", syminfo.isin)
// Log the retrieved ISIN codes.
log.info("Symbol 1 ISIN: " + isin1)
log.info("Symbol 2 ISIN: " + isin2)
// Log an error message if one of the symbols does not have ISIN information.
if isin1 == "" or isin2 == ""
log.error("ISIN information is not available for both symbols.")
// If both symbols do have ISIN information, log a message to confirm whether both refer to the same security.
else if isin1 == isin2
log.info("Both symbols refer to the same security.")
else
log.info("The two symbols refer to different securities.")
RT-Bitcoin Funding CandlesIntroduction
The RT-Bitcoin Funding Candles indicator and the RT-Bitcoin Spot vs Perp Funding indicator are designed to visualize Bitcoin funding conditions using estimated spot versus perpetual futures pricing. Together, they help traders see how funding has been behaving and where leveraged traders may be leaning over time. These two indicators are meant to be used together, and this write-up will cover how to utilize both tools.
The RT-Bitcoin Funding Candles indicator converts estimated funding information into custom candle colors on the chart. The RT-Bitcoin Spot vs Perp Funding indicator shows the same concept in a separate panel, similar to how many traders use RSI or other oscillators.
Both tools are intended as context layers around funding behavior, not standalone signal generators. RT-Bitcoin Funding Candles Indicator
The RT-Bitcoin Funding Candles indicator uses estimated differences between Bitcoin spot prices and perpetual futures prices to color each candle based on whether conditions are more aligned with bullish leveraged positioning or bearish spot-driven pressure.
In general terms: When perpetual futures trade at a premium to spot for extended periods, conditions are often associated with more aggressive leveraged long positioning.
When perpetual futures trade at a discount to spot, conditions can indicate stress on leveraged longs or periods where spot demand is stronger relative to perp. The indicator converts this estimated spot versus perp relationship into a color scale on the candles:
Bullish / Leveraged Funding Scale
Dark Blue → Blue → Light Blue → White
Bearish / Spot Funding Scale
Dark Red → Red → Orange → Yellow This allows traders to look at a BTC chart and quickly see whether estimated funding has been skewed toward leveraged longs or more spot-driven pressure during each candle.
Displaying Funding Candles On Top Of Price
By default, some chart layouts may draw the RT-Bitcoin Funding Candles indicator behind the main price candles. To make the funding candles fully visible: Right click on the RT-Bitcoin Funding Candles indicator on your chart.
Select Visual Order .
Choose Bring to Front . Once this is done, the funding candles will sit on top of or replace the normal bar colors, making the funding bias easier to see at a glance.
RT-Bitcoin Funding Candles Settings
The RT-Bitcoin Funding Candles indicator includes a small set of tuning options so traders can control which exchange data is used and how sensitive the color transitions are.
Key settings include:
Exchange Selection
Allows the trader to select which funding source is used for the calculation. Common options include: Binance, Deribit and Bybit. This lets traders align the indicator with the exchange they track most closely.
Smoothness Adjuster
Controls how sensitive the candle colors are to short-term changes in the spot versus perp relationship. Lower smoothing values will make colors react more quickly, but can be noisier. Higher smoothing values will make colors change less often, focusing on more persistent funding conditions. Customizing Funding Candle Colors
Traders who prefer different color palettes can customize the funding candle colors in the Style tab of the indicator settings. Open the RT-Bitcoin Funding Candles indicator settings.
Go to the Style tab.
Adjust the colors and opacities for each bullish and bearish funding color step.
This allows traders to keep the same logic while matching the visuals to their own chart themes.
RT-Bitcoin Spot vs Perp Funding Indicator
The RT-Bitcoin Spot vs Perp Funding indicator presents the same core concept in a separate, oscillator-style panel, similar to how traders might use RSI or other momentum tools.
Instead of recoloring the main candles, it plots lines that reflect how strong the estimated spot versus perp funding relationship has been over time. This can make it easier to compare current conditions to previous periods and to see when funding has moved into more extreme zones. RT-Bitcoin Spot vs Perp Funding Settings
The RT-Bitcoin Spot vs Perp Funding indicator provides a set of inputs so traders can tune how the estimated funding lines behave visually:
Premium Sensitivity
Controls how sensitive the plotted lines are to changes in the underlying estimated spot versus perp relationship. Higher sensitivity will cause the lines to move more aggressively. Lower sensitivity will smooth smaller fluctuations and focus on larger swings.
Premium Smoother
Applies additional smoothing to the raw estimated funding data. Because the underlying data can be noisy in its raw form, this setting helps reduce erratic spikes so that major shifts in funding are easier to read.
Exchange Toggles
Allows the trader to choose which exchanges are displayed in the panel. For example: Show or hide Binance funding lines.
Show or hide Deribit funding lines.
Show or hide Bybit funding lines. If multiple exchanges are enabled, multiple lines can be displayed for comparison.
Line Colors
Line colors and thickness can be adjusted in the Style tab. This makes it possible to:
Assign different colors to each exchange.
Emphasize key lines while de-emphasizing others. How Traders Commonly Use These Tools
The RT-Bitcoin Funding Candles and the RT-Bitcoin Spot vs Perp Funding indicators are typically used as part of a broader BTC workflow rather than on their own. Common usage patterns include: Context Around Extremes
Comparing current estimated funding conditions to past extremes to see when funding has become unusually one-sided relative to history.
Trend And Funding Alignment
Studying whether strong trends are being supported by consistent estimated leveraged funding, or whether price is moving against the prevailing estimated funding bias.
Multi Tool Confluence
Combining estimated funding candles or the spot versus perp panel with other tools such as RT-Main Indicator, Machine Learning Reversion Bands, or pivots to build a more complete picture of market conditions.
Exchange Comparison
Using the Spot vs Perp Funding panel to compare how different exchanges are pricing estimated funding at the same time and to see when one venue becomes an outlier. In all cases, these indicators are intended to provide an additional layer of information about how spot and perp markets have been behaving. They are not designed to be automatic entry or exit systems.
Important Note
The RT-Bitcoin Funding Candles and the RT-Bitcoin Spot vs Perp Funding indicators use chart-based calculations and publicly available pricing to approximate funding behavior. They do not access private exchange order books or actual liquidation feeds, do not reveal real trader positions, and cannot guarantee that any specific funding condition will lead to a particular price move.
These tools are intended to provide additional context around funding, positioning, and potential areas of interest. They are not standalone signal generators and should always be used together with your own analysis, testing, and risk management. Historical funding patterns or past interactions with these indicators do not guarantee future results.
🐋 Tight lines and happy trading!
RT-Bitcoin Spot vs Perp FundingIntroduction
The RT-Bitcoin Funding Candles indicator and the RT-Bitcoin Spot vs Perp Funding indicator are designed to visualize Bitcoin funding conditions using estimated spot versus perpetual futures pricing. Together, they help traders see how funding has been behaving and where leveraged traders may be leaning over time. These two indicators are meant to be used together, and this write-up will cover how to utilize both tools.
The RT-Bitcoin Funding Candles indicator converts estimated funding information into custom candle colors on the chart. The RT-Bitcoin Spot vs Perp Funding indicator shows the same concept in a separate panel, similar to how many traders use RSI or other oscillators.
Both tools are intended as context layers around funding behavior, not standalone signal generators. RT-Bitcoin Funding Candles Indicator
The RT-Bitcoin Funding Candles indicator uses estimated differences between Bitcoin spot prices and perpetual futures prices to color each candle based on whether conditions are more aligned with bullish leveraged positioning or bearish spot-driven pressure.
In general terms: When perpetual futures trade at a premium to spot for extended periods, conditions are often associated with more aggressive leveraged long positioning.
When perpetual futures trade at a discount to spot, conditions can indicate stress on leveraged longs or periods where spot demand is stronger relative to perp. The indicator converts this estimated spot versus perp relationship into a color scale on the candles:
Bullish / Leveraged Funding Scale
Dark Blue → Blue → Light Blue → White
Bearish / Spot Funding Scale
Dark Red → Red → Orange → Yellow This allows traders to look at a BTC chart and quickly see whether estimated funding has been skewed toward leveraged longs or more spot-driven pressure during each candle.
Displaying Funding Candles On Top Of Price
By default, some chart layouts may draw the RT-Bitcoin Funding Candles indicator behind the main price candles. To make the funding candles fully visible: Right click on the RT-Bitcoin Funding Candles indicator on your chart.
Select Visual Order .
Choose Bring to Front . Once this is done, the funding candles will sit on top of or replace the normal bar colors, making the funding bias easier to see at a glance.
RT-Bitcoin Funding Candles Settings
The RT-Bitcoin Funding Candles indicator includes a small set of tuning options so traders can control which exchange data is used and how sensitive the color transitions are.
Key settings include:
Exchange Selection
Allows the trader to select which funding source is used for the calculation. Common options include: Binance, Deribit and Bybit. This lets traders align the indicator with the exchange they track most closely.
Smoothness Adjuster
Controls how sensitive the candle colors are to short-term changes in the spot versus perp relationship. Lower smoothing values will make colors react more quickly, but can be noisier. Higher smoothing values will make colors change less often, focusing on more persistent funding conditions. Customizing Funding Candle Colors
Traders who prefer different color palettes can customize the funding candle colors in the Style tab of the indicator settings. Open the RT-Bitcoin Funding Candles indicator settings.
Go to the Style tab.
Adjust the colors and opacities for each bullish and bearish funding color step.
This allows traders to keep the same logic while matching the visuals to their own chart themes.
RT-Bitcoin Spot vs Perp Funding Indicator
The RT-Bitcoin Spot vs Perp Funding indicator presents the same core concept in a separate, oscillator-style panel, similar to how traders might use RSI or other momentum tools.
Instead of recoloring the main candles, it plots lines that reflect how strong the estimated spot versus perp funding relationship has been over time. This can make it easier to compare current conditions to previous periods and to see when funding has moved into more extreme zones. RT-Bitcoin Spot vs Perp Funding Settings
The RT-Bitcoin Spot vs Perp Funding indicator provides a set of inputs so traders can tune how the estimated funding lines behave visually:
Premium Sensitivity
Controls how sensitive the plotted lines are to changes in the underlying estimated spot versus perp relationship. Higher sensitivity will cause the lines to move more aggressively. Lower sensitivity will smooth smaller fluctuations and focus on larger swings.
Premium Smoother
Applies additional smoothing to the raw estimated funding data. Because the underlying data can be noisy in its raw form, this setting helps reduce erratic spikes so that major shifts in funding are easier to read.
Exchange Toggles
Allows the trader to choose which exchanges are displayed in the panel. For example: Show or hide Binance funding lines.
Show or hide Deribit funding lines.
Show or hide Bybit funding lines. If multiple exchanges are enabled, multiple lines can be displayed for comparison.
Line Colors
Line colors and thickness can be adjusted in the Style tab. This makes it possible to:
Assign different colors to each exchange.
Emphasize key lines while de-emphasizing others. How Traders Commonly Use These Tools
The RT-Bitcoin Funding Candles and the RT-Bitcoin Spot vs Perp Funding indicators are typically used as part of a broader BTC workflow rather than on their own. Common usage patterns include: Context Around Extremes
Comparing current estimated funding conditions to past extremes to see when funding has become unusually one-sided relative to history.
Trend And Funding Alignment
Studying whether strong trends are being supported by consistent estimated leveraged funding, or whether price is moving against the prevailing estimated funding bias.
Multi Tool Confluence
Combining estimated funding candles or the spot versus perp panel with other tools such as RT-Main Indicator, Machine Learning Reversion Bands, or pivots to build a more complete picture of market conditions.
Exchange Comparison
Using the Spot vs Perp Funding panel to compare how different exchanges are pricing estimated funding at the same time and to see when one venue becomes an outlier. In all cases, these indicators are intended to provide an additional layer of information about how spot and perp markets have been behaving. They are not designed to be automatic entry or exit systems.
Important Note
The RT-Bitcoin Funding Candles and the RT-Bitcoin Spot vs Perp Funding indicators use chart-based calculations and publicly available pricing to approximate funding behavior. They do not access private exchange order books or actual liquidation feeds, do not reveal real trader positions, and cannot guarantee that any specific funding condition will lead to a particular price move.
These tools are intended to provide additional context around funding, positioning, and potential areas of interest. They are not standalone signal generators and should always be used together with your own analysis, testing, and risk management. Historical funding patterns or past interactions with these indicators do not guarantee future results.
🐋 Tight lines and happy trading!






















