SMC IndicatorTitle: Smart Money Concepts Structure & ZigZag
Description: Master market structure with this precision Smart Money Concepts (SMC) tool. Unlike standard ZigZag indicators that repaint (change the past) as price moves, this indicator utilizes a robust, non-repainting detection engine to objectively map Swing Highs, Swing Lows, and structural breaks.
It is designed to help traders identify the true trend direction and spot critical reversal points without the confusion of disappearing signals.
How It Works:
1. Non-Repainting Pivots: The core of this indicator is a custom ZigZag algorithm that "locks in" Swing Highs (H) and Swing Lows (L) only after they are statistically confirmed by a user-defined deviation. Once a label appears, it stays there.
2. Break of Structure (BoS):
Signal: Trend Continuation.
Logic: Triggers when price breaks and closes past a confirmed pivot in the direction of the current trend.
Use Case: confirms the trend is healthy and identifies opportunities to join the move.
3. Change of Character (CHoCH):
Signal: Trend Reversal.
Logic: Triggers when price breaks a key pivot in the opposite direction of the current trend.
Use Case: Serves as an early warning signal that the trend may be ending or reversing.
4. The Ghost Line: A dotted line connects the last confirmed pivot to the current live price. This helps you visualize the developing leg of the structure before it is confirmed.
Visual Guide:
🔵 Blue Label: Bullish Break of Structure (BoS).
🔴 Maroon Label: Bearish Break of Structure (BoS).
🟢 Aqua Label: Bullish Change of Character (CHoCH).
🟠 Orange Label: Bearish Change of Character (CHoCH).
H / L: Confirmed Swing Highs and Lows.
Features:
Precision Tuning: "Deviation %" input supports values as low as 0.01 for scalping on 1-minute charts.
Smart Tooltips: Hover over settings to see recommended values for Daily, Hourly, and Minute timeframes.
Clean Visuals: Uses text-only labels to keep the chart clutter-free.
Alerts: Fully alert-enabled for Bullish/Bearish BoS and CHoCH signals.
Credits: This script is built upon classic Market Structure theory and Smart Money Concepts (SMC), optimized for real-time reliability.
지표 및 전략
Force Pulse█ OVERVIEW
Force Pulse is a fast-reacting oscillator that measures the internal strength of market sides by analyzing the aggregated dominance of bulls and bears based on candle size.
The indicator normalizes this difference into a 0–100 range, generates signals (OB/OS, midline cross, MA midline cross), and detects divergences between price and the oscillator.
It also offers advanced visualization, signal markers, and alerts, making it a versatile tool suitable for many trading styles.
█ CONCEPTS
Force Pulse was designed as a universal tool that can be applied to various trading strategies depending on its settings:
- increasing the period lengths and smoothing transforms it into a momentum/trend indicator, revealing a stable dominance of one market side.
- Lowering these parameters turns it into a peak/low detector, ideal for contrarian and mean-reversion strategies.
The oscillator analyzes the relationship between the sum of bullish and bearish candles over a selected period, based on:
- candle body size, or
- average candle body size (AVG Body).
Depending on the selected mode, OB/OS levels should be adjusted, as value dynamics differ between modes.
The output is normalized to 0–100, where:
> 50 – bullish dominance,
< 50 – bearish dominance.
The additional MA line is derived from smoothed oscillator values and serves as a signal line for midline crosses and as a trend filter.
The indicator also detects divergences (HL/LL) between price and the oscillator.
█ FEATURES
Bull & Bear Strength:
- Calculations are based on Body or AVG Body – mode selection requires adjusting OB/OS levels.
- Bullish and bearish candle values are summed separately.
- All results are normalized to the 0–100 scale.
Force Pulse Oscillator:
- The main line reflects the current dominance of either market side.
Dynamic colors:
- Green – above 50,
- Red – below 50.
Signal MA:
- SMA based on oscillator values functions as a signal line.
- Helps detect momentum shifts and generates signals via midline crosses.
- Can serve as a trend confirmation filter.
Overbought / Oversold:
- Configurable OB/OS levels, also for the MA line.
- Dynamic OB/OS line colors: when the MA line exceeds the defined threshold (e.g., MA > maOverbought or MA < maOversold), OB/OS lines change color (red/green).
- This often signals a potential reversal or correction and may act as additional confirmation for oscillator-generated signals.
Divergences:
- Detection based on swing pivots:
- Bullish: price LL, oscillator HL
- Bearish: price HH, oscillator LH
- Displayed as “Bull” / “Bear” labels.
Signals:
Supports multiple signal types:
- Overbought/Oversold Cross
- Midline Cross
- MA Midline Cross (based on the signal MA line)
- Signals appear as triangles above/below the oscillator.
Visualization:
- Gradient options for lines and levels.
- Full customization of colors, transparency, and line thickness.
Alerts available for:
- Divergences
- OB/OS crossings
- Midline crossings
- MA midline crossings
█ HOW TO USE
Add the indicator to your TradingView chart → Indicators → search “Force Pulse”
Parameter Configuration
Calculation Settings:
- Calculation Period (lookback) – defines the strength calculation window.
Force Mode (Body / AVG Body):
- Body – faster response, higher sensitivity.
- AVG Body – more stable output; adjust band levels and periods to your strategy.
- EMA Smoothing (smoothLen) – reduces oscillator noise.
- MA Length – length of the signal line (SMA).
Threshold Levels:
- Set Overbought/Oversold levels for both the oscillator and the MA line.
- Adjust levels depending on Body / AVG Body mode.
Divergence Detection:
- Enable/disable divergence detection.
- PivotLength affects both delay and signal quality.
- Signal Settings: Choose one or multiple signal types.
- Style & Colors: Full control over color schemes, gradients, and transparency.
Signal Interpretation
BUY:
- Oscillator leaves oversold (OS crossover).
- Midline cross upward.
- MA crosses the midline from below.
- Bullish divergence.
SELL:
- Oscillator leaves overbought (drops below OB).
- Midline cross downward.
- MA crosses the midline from above.
- Bearish divergence.
Trend / Momentum:
-Longer periods and stronger smoothing → stable directional signals.
-MA as a trend filter: e.g., signal line above the midline (50) and MA pointing upward indicates continuation of a bullish impulse.
Contrarian / Mean Reversion:
- Short periods → rapid detection of peaks and troughs; ideal for contrarian signals and pullback entries.
█ APPLICATIONS
- Trend Trading: Using midline and MA midline crosses to determine direction.
- Reversal Trading: OB/OS levels and divergences help identify reversals.
- Scalping & Intraday: Short settings + signal line above the midline with bullish MA → shows short-term impulse and continuation.
- Swing Trading: Longer MA and higher lookback provide a stable view of market-side dominance.
- Momentum Analysis: Force Pulse highlights the strength of the wave before price movement occurs.
█ NOTES
- In strong trends, the oscillator may stay in extreme zones for a long time — this reflects dominance, not necessarily a reversal signal.
- Divergences are more reliable on higher timeframes.
- OB/OS levels should be tailored to Body/AVG Body mode and the instrument.
- Best results come from combining the indicator with other tools (S/R, market structure, volume).
India VIX Tray - DynamicIndia VIX Table
Shows INDIAVIX value as a tray in Chart with Dynamic colour change according to Low Volatility, Moderate Volatility, High Volatility.
TF7 Option vs Index Change RatioOverview
This indicator helps traders visualise the strength and direction of an option's price movement compared to its underlying index (NIFTY or SENSEX).
It calculates a Change Ratio, which is the percentage move in the option compared to the index movement during the same bar. This is especially useful for intraday traders looking for signs of momentum, divergence, or unusual strength/weakness in option pricing.
How It Works
The ratio is calculated as:
(Option LTP − Option Open) / (Index Close − Index Open)
The value is capped between −10 and +10 to filter out extreme or invalid spikes.
The ratio is displayed as a color-coded column chart:
🟩 Green bars: Option is moving in the same direction as the index.
🟥 Red bars: Option is underperforming or moving opposite to the index.
A compact table shows the last 5 bars of:
Option price change (with +/− sign)
Index price change
Calculated ratio (also color-coded)
You can toggle the table visibility in the settings.
Inputs & Features
Select underlying index: NIFTY or SENSEX
Toggle the data table display
Clean formatting with signed values and conditional color highlights
⚠️ Disclaimer
This is a visual analysis tool, not a buy/sell signal. Always validate with your trading strategy and risk management
#OptionsTrading, #NIFTY, #SENSEX, #ChangeRatio, #IndexAnalysis, #Momentum, #Divergence, #Intraday
Titan AI: Smart MFI OscillatorTitan AI: Smart MFI Oscillator is not your standard Momentum indicator. It is a next-generation Hybrid Intelligence Engine designed to detect the true state of market liquidity. Unlike traditional oscillators that rely on static levels (like 80/20), Titan AI employs an Unsupervised Learning Algorithm (K-Means Clustering)** to adaptively classify Money Flow in real-time.
This indicator is built for traders who need to filter out noise and see the structural reality of the market. It answers the critical question: "Is the market actually trending with volume, or is it stuck in equilibrium?"
With the integrated "Smart MFI (INFO)" Dashboard, you get a tactical Heads-Up Display (HUD) that stabilizes complex volatility data into clear, institutional signals.
💎 Key Features
1. Adaptive AI Brain (K-Means Clustering):
Standard oscillators fail because they don't adapt to volatility changes. Titan AI solves this by running a clustering algorithm on historical data to define dynamic "Overbought" and "Oversold" zones.
- Result: The indicator "breathes" with the market, providing accurate signals in both low-volatility ranges and high-volatility trends.
2. Institutional Flow Classification:
The core logic doesn't just measure ups and downs; it classifies the **Money Flow Index (MFI)** into three institutional states displayed on the panel:
- 🟢 ACCUMULATION: Strong buying pressure detected (Smart Money Entry).
- 🔴 DISTRIBUTION: Strong selling pressure detected (Smart Money Exit).
- ⚪ EQUILIBRIUM: The market is balanced/ranging. (No Edge).
3. Visual Histogram & Whale Detector:
- Classic Flow: Green/Red bars for buying/selling pressure.
- 🐋 WHALE ACTIVITY (White Bars): The histogram turns WHITE when current volume exceeds 200% of the average**. This visually confirms that big players (Whales) are driving the price movement.
4. "Squeeze" & Extreme Blocks:
- Orange Blocks: These appear when momentum is statistically overextended. In a strong trend, this indicates a **"Turbo Zone"**. In a weak market, it signals imminent exhaustion.
- Peak Circles: Visual markers for potential tops and bottoms based on adaptive band crosses.
5. Smart MFI (INFO) Dashboard (HUD):
A professional panel fixed to your screen that uses Confirmed Data to prevent repainting.
- Trend: Macro direction (EMA 200).
- Momentum (AI): Immediate impulse direction.
- Flow (AI): The exact institutional state + numeric value.
🚀 How to Use
1. Trend Following (The Flow)
- Long Setup: Wait for the Dashboard to show TREND: BULLISH and FLOW: ACCUMULATION. Enter when the histogram is Green or White (Whale Volume).
- Short Setup: Wait for TREND: BEARISH and FLOW: DISTRIBUTION. Enter when the histogram is Red or White.
2. Trading Reversals (The Extremes)
- Exhaustion: If you see Orange Blocks followed by a Circle/Triangle, the move is overextended.
- Execution: Do not fade the move immediately. Wait for the Dashboard's Momentum to flip (e.g., from Bullish to Bearish) to confirm the reversal.
3. Filtering Noise (The Smart Filter)
- If the Dashboard says FLOW: EQUILIBRIUM (Grey), volatility is dead. Stay out of the market or wait for a breakout confirmed by an Accumulation/Distribution signal.
⚙️ Settings
- AI Training Data: Adjusts how much historical data the K-Means algorithm uses (Default: 300).
- Visuals: Toggle the classic Money Flow Histogram, Divergence Lines, or the Dashboard itself.
- Positions: You can move the panel to any corner of the chart.
⚠️ Disclaimer
This tool is for educational and analytical purposes only. Trading involves significant risk. Always use proper risk management. Past performance does not guarantee future results. BINANCE:BTCUSDT.P
IDWM Master StructureExecutive Summary
The IDWM Master Structure is a Multi-Timeframe (MTF) trading tool designed to force discipline by aligning traders with the "Parent" trend. It functions by locking onto the "Completed Auction" of a higher timeframe candle (like a Daily or Weekly bar) and projecting that structure onto your lower timeframe chart. Its primary goal is to define the "Dealing Range"—the hard boundaries where value was previously established—so you don't get lost in the noise of smaller price movements.
1. The Principle of Completed Auctions (Hierarchy)
Most technical indicators curve dynamically with every price tick. This script acts differently because it relies on "Settled Arguments." A closed Daily candle represents a finished battle between buyers and sellers; the High and Low are the historical results of that battle.
To enforce this, the script automatically selects a "Parent" timeframe based on your view:
Scalping (charts below 15 minutes) uses the 4-Hour Auction.
Intraday trading (15 minutes to 4 Hours) uses the Daily Auction.
Swing trading (Daily chart) uses the Weekly Auction.
2. Liquidity Pools & The Sticky Range
The High and Low lines drawn by the indicator are not just support and resistance; they represent Liquidity Pools. In market theory, stop-losses (Sell Stops below Lows, Buy Stops above Highs) accumulate at these edges.
Smart money often pushes price just past these lines to grab this liquidity (a "Stop Hunt") before reversing direction. To account for this, the script uses a "Sticky Range" mechanism. It refuses to redraw the box simply because price touched the line. Instead, it uses an Average True Range (ATR) Buffer. A new structure is only formed if the candle closes decisively outside the range plus this volatility buffer. This ensures you are trading real breakouts, not liquidity sweeps.
3. Internal Range Mechanics (Premium vs. Discount)
Inside the Master Box, the script applies Equilibrium Theory to help with trade location.
The most important internal line is the Equilibrium (EQ), which marks the exact 50% point of the range.
Premium Zone (Above EQ): Price is mathematically "expensive" relative to the recent range. Algorithms generally look to establish Short positions here.
Discount Zone (Below EQ): Price is considered "cheap." Algorithms generally look to establish Long positions here.
It also plots the Master Open, which acts as a "Line in the Sand." If price is currently trading above the Master Open, the higher timeframe candle is Green (Bullish), suggesting longs have a higher probability. If below, the candle is Red (Bearish).
4. Wick Theory (Failed Auctions)
The script places special emphasis on the wicks of the Master Candle because a wick represents a "Failed Auction"—a price level the market tried to explore but ultimately rejected.
The indicator highlights the background of the wick area (from the High to the Body). On a retest, these zones often act as supply or demand blocks because the market remembers the previous failure.
It also calculates the "Consequent Encroachment," which is the 50% midpoint of the wick. The rule of thumb here is that if a candle body can close past 50% of a wick, the rejection is nullified, and price will likely travel to fill the entire wick.
5. Energy Expansion (Breakout Targets)
Market energy transfers from Consolidation (inside the box) to Expansion (the breakout). When the price finally breaks the "Sticky Range" (confirming via the ATR buffer), the script projects where that energy will go.
It uses the height of the previous range to calculate Fibonacci extensions. Specifically, it targets the 1.618 Extension, often called the "Golden Ratio." This is a statistically significant level where expansion moves tend to exhaust themselves and reverse.
6. Safety Protocol: Live Detection
A dashboard monitors the state of the parent candle. If the text turns Magenta with a warning symbol, it means the Higher Timeframe candle is "Live" (still forming).
Trading off a live structure is considered higher risk because the "Auction" isn't finished—the High or Low can still shift. The safest approach is to trade when the dashboard indicates a standard, locked, historical structure.
SuperTrend Oscillator MTF█ OVERVIEW
SuperTrend Oscillator MTF is a multi-timeframe version of the classic SuperTrend converted into an oscillator. Instead of drawing the SuperTrend line on the price chart, it displays the distance of the close from the SuperTrend line simultaneously for the current timeframe and two additional timeframes. This allows you to instantly see the trend direction and strength across three selected timeframes in a single window.
█ CONCEPT
The classic SuperTrend value is subtracted from price and normalized so that trend direction can be directly compared across different timeframes without switching charts.
- Value above zero = price below SuperTrend line → bearish trend
- Value below zero = price above SuperTrend line → bullish trend
- The further away from zero, the stronger the trend.
█ FEATURES
- Three SuperTrend Oscillator lines: current TF, TF1 and TF2
- Automatic detection of 3-timeframe agreement
- BUY and SELL labels that appear only when all three timeframes turn in the same direction at the same moment
- Circle signals on every zero-line cross of the current timeframe
- Configurable soft gradient fill (can be disabled)
- Zero line changes color (green/red/gray) depending on 3-TF agreement
- Fully customizable colors for each timeframe
- Built-in alerts for all signal types
█ HOW TO USE
Add the indicator to the chart → set two additional timeframes and adjust ATR Period and Factor to suit your trading style.
Main settings:
- ATR Period → default 10
- Factor → default 3.0 (higher = fewer signals)
- TF 1 and TF 2 → any timeframes (e.g. 1H+4H, 4H+D, D+W, etc.)
- Enable gradient → turn fill on/off
- Show BUY/SELL labels (3 TF agreement) → enable/disable the strongest signals
Interpretation:
Two types of signals:
- Green/red circles → current timeframe changes trend direction (faster signal)
- BUY/SELL labels → all three timeframes simultaneously switch to the same direction (strongest confluence)
- Additionally, the zero line turns green or red when all three trends are aligned.
█ APPLICATIONS
Perfect for:
- Trend-following with multi-timeframe confirmation
- Filtering false breakouts on lower timeframes
- Scalping & day trading (use fast circle signals)
- Swing & position trading (wait for full 3-TF agreement)
Best combined with:
- Support/resistance levels and supply/demand zones – enter long after a confirmed breakout and retest of a key level (e.g. Change of Character, Break of Structure, Order Block, 0.618–0.786 Fibonacci) only when the oscillator shows 3-TF agreement or at least a bullish circle. Hold the trade to the next significant resistance/supply zone.
- Volume and Volume Profile – confirm move strength with rising volume and high-volume nodes at the breakout level. Declining volume while moving away from zero may signal trend exhaustion.
- Classic oscillators (RSI, Stochastic, MACD) – use primarily for spotting divergences and overbought/oversold conditions. One of the safest exits is when a regular or hidden divergence appears on RSI/Stochastic in an extreme zone, even if SuperTrend Oscillator MTF still shows alignment.
█ NOTES
- Works on all markets and all timeframes
- BUY/SELL labels (3-TF agreement) are the cleanest and strongest signals
- Circle signals are faster but more prone to noise
- Higher ATR Period = fewer signals, higher quality
Apex Trend & Liquidity Master with TP/SLThe Apex Trend & Liquidity Master is a systematic trading framework that identifies trend direction and key structural price levels for entry and exit decisions. The system uses a volatility-adaptive trend detection mechanism built on Hull Moving Averages with ATR-based bands to filter consolidation periods and isolate directional moves.
The liquidity detection engine identifies potential reversal zones by marking swing highs and lows that meet statistical significance thresholds. These zones represent areas where institutional order flow previously caused price rejection. Zones remain active until price closes through them, indicating mitigation of the level.
This implementation is an enhanced derivative of the original system with fully automated risk management. Stop losses are calculated using ATR multiples with entry candle wick protection as a minimum threshold, while take profits maintain a fixed 3:1 risk-reward ratio. An additional exit mechanism closes profitable positions when price reaches opposing supply or demand zones, providing early profit-taking at probable reversal points before full target completion.
Entry signals generate only on trend changes when volume exceeds average levels, reducing false breakouts in ranging conditions. The system includes complete position tracking with three distinct exit types: take profit hits, stop loss hits, and profitable zone contact exits. All calculations use confirmed historical data with no forward-looking bias, though supply/demand zone identification operates with a confirmation lag inherent to pivot point detection.
Algoticks.in: Bollinger Bands Strategy (Sample)Bollinger Bands Strategy - User Guide
Overview
This is a Mean Reversion strategy using Bollinger Bands. It generates trading signals when price moves outside the bands and then crosses back, or simply crosses the bands depending on the logic. It integrates with Algoticks.in API for automated trading on Delta Exchange.
Strategy Logic
Long Signal: When Price crosses below the Lower Band (Oversold / Dip Buy)
Short Signal: When Price crosses above the Upper Band (Overbought / Top Sell)
Automatically closes opposite positions before entering new ones
Quick Setup
1. Add to TradingView
Open TradingView and go to the chart
Click "Pine Editor" at the bottom
Paste the script code
Click "Add to Chart"
2. Configure Strategy Parameters
Strategy Settings
Length (default: 20): The lookback period for the SMA basis
StdDev (default: 2.0): The number of standard deviations for the bands
General API Settings
Paper Trading : Enable for testing without real money
Signal Type : Choose "Trading Signal" (default) for tracking
Exchange : DELTA (Delta Exchange)
Segment :
futures - Perpetual contracts
options - Call/Put options
spot - Spot trading
Order Settings: Basic
Quantity : Number of contracts (e.g., 1, 0.5, 2)
Validity :
GTC - Good Till Cancelled
IOC - Immediate or Cancel
FOK - Fill or Kill
DAY - Day order
Product : cross_margin or isolated_margin
Order Settings: Entry Type
Choose how orders are executed:
Market Order : Immediate fill at best price
Limit Order : Fill at specified price or better
Stop Market : Triggers at stop price, then market order
Stop Limit : Triggers at stop price, then limit order
Entry Prices (for Limit/Stop orders)
Limit Price:
Price : The value to use
Type : Last Price / Mark Price / Index Price
Mode :
Absolute - Exact price (e.g., 65000)
Relative - Offset from entry price
% Checkbox : If checked, relative uses percentage; if unchecked, uses points
Example:
Absolute: 65000 → Order at exactly 65000
Relative 1% (checked): Entry ± 1% of entry price
Relative 100 (unchecked): Entry ± 100 points
Trigger Price: Same logic as Limit Price, used for Stop orders
Exit / Bracket Prices (SL/TP)
Stop Loss (SL):
Type : Price type to monitor (Mark Price recommended)
Mode : Absolute or Relative
% : Percentage or points
SL : Stop loss value (e.g., 2 for 2%)
Trig : Optional trigger price (creates Stop-Limit SL)
Take Profit (TP): Same structure as SL
Example:
Long entry at 65000, SL = 2% → Exit at 63700 (65000 - 2%)
Short entry at 65000, TP = 3% → Exit at 63050 (65000 - 3%)
3. Options Trading Setup (Only if Segment = Options)
Strike Selection Method
User Defined Mode:
Manually specify exact strike and option type
Best for: Trading specific levels
Required fields:
Strike Price : e.g., "65000"
Option Type : Call or Put
Dynamic Mode:
System calculates strike based on ATM price
Best for: Automated strategies
Required fields:
Algo Type : Options Buying or Selling
Strike Offset : 0 (ATM), +1 (above ATM), -1 (below ATM)
Strike Interval : Gap between strikes (e.g., BTC: 500, ETH: 50)
Expiry Date Formats:
T+0 - Today
T+1 - Tomorrow
current week - This Friday
next week - Next Friday
current month - Last Friday of month
131125 - Specific date (13 Nov 2025)
4. Create Alert for Automation
Right-click on chart → "Add Alert"
Condition : Select your strategy name
Alert Actions : Webhook URL
Webhook URL : Your Algoticks.in API endpoint
Message : Leave as {{strategy.order.alert_message}} (contains JSON)
Click "Create"
The alert will automatically send JSON payloads to your API when signals occur.
Example Configurations
Standard Mean Reversion
Strategy: Length = 20, StdDev = 2.0
Segment: futures
Order Type: market_order
Quantity: 1
SL: 1% (Relative)
TP: 2% (Relative)
Wide Band Reversal
Strategy: Length = 20, StdDev = 2.5
Segment: futures
Order Type: market_order
Quantity: 1
SL: 1.5% (Relative)
TP: 3% (Relative)
Important Notes
Paper Trading First : Always test with paper trading enabled before live trading
Order Tags : Automatically generated for tracking (max 18 chars)
Position Management : Strategy closes opposite positions automatically
Signal Confirmation : Uses barstate.isconfirmed to prevent repainting
JSON Payload : All settings are converted to JSON and sent via webhook
Troubleshooting
No signals : Check if price is actually touching the bands
Orders not executing : Verify webhook URL and API credentials
Wrong strikes : Double-check Strike Interval for your asset
SL Bollinger Bands Strategy - User Guide
Overview
This is a Mean Reversion strategy using Bollinger Bands. It generates trading signals when price moves outside the bands and then crosses back, or simply crosses the bands depending on the logic. It integrates with Algoticks.in API for automated trading on Delta Exchange.
Strategy Logic
Long Signal: When Price crosses below the Lower Band (Oversold / Dip Buy)
Short Signal: When Price crosses above the Upper Band (Overbought / Top Sell)
Automatically closes opposite positions before entering new ones
Quick Setup
1. Add to TradingView
Open TradingView and go to the chart
Click "Pine Editor" at the bottom
Paste the script code
Click "Add to Chart"
2. Configure Strategy Parameters
Strategy Settings
Length (default: 20): The lookback period for the SMA basis
StdDev (default: 2.0): The number of standard deviations for the bands
General API Settings
Paper Trading : Enable for testing without real money
Signal Type : Choose "Trading Signal" (default) for tracking
Exchange : DELTA (Delta Exchange)
Segment :
futures - Perpetual contracts
options - Call/Put options
spot - Spot trading
Order Settings: Basic
Quantity : Number of contracts (e.g., 1, 0.5, 2)
Validity :
GTC - Good Till Cancelled
IOC - Immediate or Cancel
FOK - Fill or Kill
DAY - Day order
Product : cross_margin or isolated_margin
Order Settings: Entry Type
Choose how orders are executed:
Market Order : Immediate fill at best price
Limit Order : Fill at specified price or better
Stop Market : Triggers at stop price, then market order
Stop Limit : Triggers at stop price, then limit order
Entry Prices (for Limit/Stop orders)
Limit Price:
Price : The value to use
Type : Last Price / Mark Price / Index Price
Mode :
Absolute - Exact price (e.g., 65000)
Relative - Offset from entry price
% Checkbox : If checked, relative uses percentage; if unchecked, uses points
Example:
Absolute: 65000 → Order at exactly 65000
Relative 1% (checked): Entry ± 1% of entry price
Relative 100 (unchecked): Entry ± 100 points
Trigger Price: Same logic as Limit Price, used for Stop orders
Exit / Bracket Prices (SL/TP)
Stop Loss (SL):
Type : Price type to monitor (Mark Price recommended)
Mode : Absolute or Relative
% : Percentage or points
SL : Stop loss value (e.g., 2 for 2%)
Trig : Optional trigger price (creates Stop-Limit SL)
Take Profit (TP): Same structure as SL
Example:
Long entry at 65000, SL = 2% → Exit at 63700 (65000 - 2%)
Short entry at 65000, TP = 3% → Exit at 63050 (65000 - 3%)
3. Options Trading Setup (Only if Segment = Options)
Strike Selection Method
User Defined Mode:
Manually specify exact strike and option type
Best for: Trading specific levels
Required fields:
Strike Price : e.g., "65000"
Option Type : Call or Put
Dynamic Mode:
System calculates strike based on ATM price
Best for: Automated strategies
Required fields:
Algo Type : Options Buying or Selling
Strike Offset : 0 (ATM), +1 (above ATM), -1 (below ATM)
Strike Interval : Gap between strikes (e.g., BTC: 500, ETH: 50)
Expiry Date Formats:
T+0 - Today
T+1 - Tomorrow
current week - This Friday
next week - Next Friday
current month - Last Friday of month
131125 - Specific date (13 Nov 2025)
4. Create Alert for Automation
Right-click on chart → "Add Alert"
Condition : Select your strategy name
Alert Actions : Webhook URL
Webhook URL : Your Algoticks.in API endpoint
Message : Leave as {{strategy.order.alert_message}} (contains JSON)
Click "Create"
The alert will automatically send JSON payloads to your API when signals occur.
Example Configurations
Standard Mean Reversion
Strategy: Length = 20, StdDev = 2.0
Segment: futures
Order Type: market_order
Quantity: 1
SL: 1% (Relative)
TP: 2% (Relative)
Wide Band Reversal
Strategy: Length = 20, StdDev = 2.5
Segment: futures
Order Type: market_order
Quantity: 1
SL: 1.5% (Relative)
TP: 3% (Relative)
Important Notes
Paper Trading First : Always test with paper trading enabled before live trading
Order Tags : Automatically generated for tracking (max 18 chars)
Position Management : Strategy closes opposite positions automatically
Signal Confirmation : Uses barstate.isconfirmed to prevent repainting
JSON Payload : All settings are converted to JSON and sent via webhook
Troubleshooting
No signals : Check if price is actually touching the bands
Orders not executing : Verify webhook URL and API credentials
Wrong strikes : Double-check Strike Interval for your asset
SL
RSI Cascade DivergencesRSI Cascade Divergences is a tool for detecting divergences between price and RSI with an extended cascade-based strength accumulation logic. A “cascade” represents a sequence of multiple divergences linked through RSI pivot points. The indicator records RSI pivots, checks whether a divergence is present, assigns a strength value to each structure, and displays only signals that meet your minimum strength thresholds.
How Divergence Logic Works
The indicator identifies local RSI extremes (pivots) based on Pivot Length and Pivot Confirm.
For every confirmed pivot it stores:
the RSI value at the pivot,
the corresponding value of the RSI Source price,
the pivot’s bar index.
How a Divergence Is Formed
A divergence is detected when two consecutive RSI pivots of the same type show opposite dynamics relative to the price source defined in RSI Source (default: close), not relative to chart highs/lows.
Bearish divergence: the price source value at the second pivot is higher, but RSI forms a lower high.
Bullish divergence: the price source value at the second pivot is lower, but RSI forms a higher low.
The indicator does not use price highs/lows — only the selected price source at the pivot points.
Cascade Strength Calculation
Each new pivot is compared only with the previous pivot of the same type.
A cascade grows in strength if:
divergence conditions are met,
the difference in RSI values exceeds Min. RSI Distance,
the previous structure already had some strength or the previous pivot was formed in the OB/OS zone.
If the divergence occurs as RSI exits OB/OS, strength is additionally increased by +1.
Behavior in Strong Trends
Divergences may appear repeatedly and even form cascades with high strength. However, if price does not react meaningfully, this indicates strong trend pressure.
In such cases, divergences stop functioning as reversal signals:
RSI attempts to counter-move, but the dominant trend continues.
The indicator accurately reflects this — cascades may form but fail to trigger any reversal, which itself suggests a powerful, persistent trend.
Filtering and Context Reset
To avoid retaining irrelevant pivots:
when RSI is above Overbought → low pivots are cleared;
when RSI is below Oversold → high pivots are cleared.
This prevents false cascades during extreme RSI conditions.
Input Parameters
RSI Source — price source used in RSI calculations (close, hl2, ohlc4, etc.).
RSI Length — RSI calculation period.
Overbought / Oversold — RSI threshold zones.
Pivot Length — number of bars to the left required for a pivot.
Pivot Confirm — bars to the right required to confirm the pivot.
Min. RSI Distance — minimum difference between two pivot RSI values for the divergence to be considered meaningful.
Min. Strength (Bull / Bear) — minimum accumulated strength for:
confirming the signal,
displaying the strength label,
triggering alerts.
Weaker signals below these thresholds appear as dashed guide structures.
Visual
Display settings for lines, markers, and colors.
These parameters do not affect the indicator logic.
Important
Divergences — including cascades — should not be used as a standalone trading signal.
Always combine them with broader market context, trend analysis, structure, volume, and risk management tools.
Impulse Trend Suite (LITE) — V1.4+ Plu🚀 Impulse Trend Suite (LITE) — v1.4+
Smart trend visualization with precise flip arrows. A lightweight, momentum-filtered trend tool designed to stay clean, avoid repeated signals, and keep you focused only on real market direction.
FULL PRO VERSION --> fxsharerobots.com
✨ What’s New in v1.4+
Minor upgrades mostly visual
Added Blue fill between MA lines
clearer labels
📌 Core Features
Trend flip arrows (no spam, 1 signal per turn)
Continuous background zones (gap-free trend shading)
Adaptive Baseline + ATR structure channel
RSI + MACD momentum filter (suppresses weak signals)
Trend Status Panel (UP, DOWN, NEUTRAL)
🔍 Quick Guide
BUY setup = green arrow + green background
SELL setup = red arrow + red background
Stay in the move while color doesn’t change
ATR channel helps avoid chasing overextended candles
🆚 LITE vs PRO
========================================================
Feature LITE PRO
--------------------- -------- ------------------------------
Trend shading + arrows ✔ ✔ + confirmations
Neutral trend state ✔ ✔ enhanced
Alerts ✖ ✔ full suite
Reversal Zones ✖ ✔ predictive boxes
HTF Filter ✖ ✔ smarter trend bias
Included strategies ✖ ✔ + PDF training
🔓 Upgrade to PRO
Reversal Zones • Alerts • HTF Filter • Trend Continuation Strategy
👉 FULL PRO VERSION --> fxsharerobots.com
📈 Works on Forex, Stocks, Crypto, Indices, Metals
⌚ Scalping • Intraday • Swing • Long-term
==========================================================
🌠FULL PRO VERSION --> fxsharerobots.com/impulse-trend-pro/
💾 ALL DOWNLOADS --> fxsharerobots.com/downloads/
Happy trading! — FxShareRobots Team
SPX-to-ES Gamma Levels (20 GEX Levels)Draws GEX levels specified by user on ES futures chart.
User inputs SPX-to-ES offset, SPX price level, and length of box
ETH_LuxRelayAll good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good All good
Correlation Scanner📊 CORRELATION SCANNER - Financial Instruments Correlation Analyzer
🎯 ORIGINALITY AND PURPOSE
Correlation Scanner is a professional tool for analyzing correlation relationships between different financial instruments. Unlike standard correlation indicators that show the relationship between only two instruments, this script allows you to simultaneously track the correlation of up to 10 customizable instruments with a selected base asset.
The indicator is designed for traders working with cross-market analysis, portfolio diversification, and searching for related assets for arbitrage strategies.
🔧 HOW IT WORKS
The indicator uses the built-in ta.correlation() function to calculate the Pearson correlation coefficient between instrument closing prices over a specified period. Mathematical foundation:
1. Correlation Calculation: for each instrument, the correlation coefficient with the base asset is calculated over N bars (default 60)
2. Results Sorting: instruments are automatically ranked by absolute correlation value (from strongest to weakest)
3. Visualization: results are displayed in a table with color coding:
- Green: positive correlation (instruments move in the same direction)
- Red: negative correlation (instruments move in opposite directions)
- Color intensity depends on correlation strength
4. Correlation Strength Classification:
- Very Strong (💪💪💪): |r| > 0.8 — very strong relationship
- Strong (💪💪): |r| > 0.6 — strong relationship
- Medium (💪): |r| > 0.4 — medium relationship
- Weak: |r| > 0.2 — weak relationship
- Very Weak: |r| ≤ 0.2 — very weak relationship
📋 SETTINGS AND USAGE
MAIN PARAMETERS:
• Main Instrument — base instrument for comparison (default TVC:DXY - US Dollar Index)
• Correlation Period — calculation period in bars (10-500, default 60)
• Number of Instruments to Display — number of instruments to show (1-10)
• Table Position — table location on the chart
INSTRUMENT CONFIGURATION:
The indicator allows configuring up to 10 instruments for analysis. For each, you can specify:
• Instrument — instrument ticker (e.g., FX_IDC:EURUSD)
• Name — display name (emojis supported)
VISUAL SETTINGS:
• Show Chart Label with Correlation — display current chart's correlation with base instrument
• Table Header Color — table header color
• Table Row Background — table row background color
💡 USAGE EXAMPLES
1. DOLLAR IMPACT ANALYSIS: set DXY as the base instrument and track how dollar index changes affect currency pairs, gold, and cryptocurrencies
2. HEDGING ASSETS SEARCH: find instruments with strong negative correlation for risk diversification
3. PAIRS TRADING: identify assets with high positive correlation to find divergences and arbitrage opportunities
4. CROSS-MARKET ANALYSIS: track relationships between stocks, bonds, commodities, and currencies
5. SYSTEMIC RISK ASSESSMENT: identify periods of increased correlation between assets, which may indicate systemic risks
⚠️ IMPORTANT NOTES
• Correlation does NOT imply causation
• Correlation can change over time — regularly review the analysis period
• High past correlation doesn't guarantee the relationship will persist in the future
• Recommended to use the indicator in combination with fundamental analysis
🔔 ALERTS
The indicator includes a built-in alert condition: triggers when strong correlation (|r| > 0.8) is detected between the current chart and the base instrument.
Structure Analysis + Hammer Alert# Structure Resistance + Hammer Alert
## 📊 Indicator Overview
This indicator integrates Structure Breakout Analysis with Candlestick Pattern Recognition, helping traders identify market trend reversal points and strong momentum signals. Through visual markers and background colors, you can quickly grasp the bullish/bearish market structure.
---
## 🎯 Core Features
### 1️⃣ Structure Resistance System
- Auto-plot Previous High/Low: Automatically marks key support/resistance based on pivot points
- Structure Breakout Detection: Shows "BULL" when price breaks above previous high, "BEAR" when breaking below previous low
- Trend Background Color: Green background for bullish structure, red background for bearish structure
### 2️⃣ Bullish Momentum Candles (Hammer Patterns)
Detects candles with long lower shadows, indicating strong buying pressure at lows:
- 💪Strong Bull (Bullish Hammer): Green marker, bullish close with significant lower shadow
- 💪Weak Bull (Bearish Hammer): Teal marker, bearish close but strong lower shadow
### 3️⃣ Bearish Momentum Candles (Inverted Hammer/Shooting Star)
Detects candles with long upper shadows, indicating strong selling pressure at highs:
- 💪Weak Bear (Bullish Inverted Hammer): Orange marker, bullish close but significant upper shadow
- 💪Strong Bear (Shooting Star): Red marker, bearish close with significant upper shadow
### 4️⃣ Smart Marker Sizing
Markers automatically adjust size based on current trend:
- With-Trend Signals: Larger markers (e.g., hammer in bullish trend)
- Counter-Trend Signals: Smaller markers (e.g., shooting star in bullish trend)
- Neutral Trend: Medium-sized markers
---
## ⚙️ Parameter Settings
### Structure Resistance Parameters
- Swing Length: Default 5, higher values = clearer structure but fewer signals
- Show Lines/Labels: Toggle on/off options
### Bullish Momentum (Hammer) Parameters
- Lower Shadow/Body Ratio: Default 2.0, lower shadow must be 2x body size
- Upper Shadow/Body Ratio Limit: Default 0.2, upper shadow cannot be too long
- Body Position Ratio: Default 2.0, ensures body is at the top of candle
### Bearish Momentum (Inverted Hammer) Parameters
- Upper Shadow/Body Ratio: Default 2.0, upper shadow must be 2x body size
- Lower Shadow/Body Ratio Limit: Default 0.2, lower shadow cannot be too long
- Body Position Ratio: Default 2.0, ensures body is at the bottom of candle
### Filter & Display Settings
- Minimum Body Size: Filters out doji-like candles with tiny bodies
- Pattern Type Toggles: Show/hide different pattern types individually
- Background Transparency: Adjust background color intensity (higher = more transparent)
- Label Distance: Adjust marker distance from candles
---
## 📈 Usage Guidelines
### Trading Signal Interpretation
**Long Signals (Strongest to Weakest):**
1. Bullish Structure + Bullish Hammer (💪Strong Bull) → Strongest long signal
2. Bullish Structure + Bearish Hammer (💪Weak Bull) → Secondary long signal
3. Bearish Structure + Hammer → Potential reversal signal
**Short Signals (Strongest to Weakest):**
1. Bearish Structure + Shooting Star (💪Strong Bear) → Strongest short signal
2. Bearish Structure + Bullish Inverted Hammer (💪Weak Bear) → Secondary short signal
3. Bullish Structure + Shooting Star → Potential reversal signal
### Practical Tips
✅ Trend Following: Prioritize large marker signals (aligned with trend)
✅ Structure Confirmation: Wait for structure breakout before entry to avoid false breaks
✅ Multiple Timeframes: Confirm trend direction with higher timeframes
⚠️ Counter-Trend Caution: Small marker signals (counter-trend) require stricter risk management
---
## 🔔 Alert Setup
This indicator provides 9 alert conditions:
- Individual Patterns: Bullish Hammer, Bearish Hammer, Bullish Inverted Hammer, Shooting Star
- Combined Signals: Bullish Momentum, Bearish Momentum, Bull/Bear Momentum
- Structure Breakouts: Bullish Structure Break, Bearish Structure Break
---
## 💡 FAQ
**Q: Why do hammers sometimes appear without markers?**
A: Check "Minimum Body Size" setting - the candle body may be too small and filtered out
**Q: Too many or too few markers?**
A: Adjust "Lower Shadow/Body Ratio" or "Upper Shadow/Body Ratio" parameters - higher ratios = stricter conditions
**Q: How to see only the strongest signals?**
A: Disable "Bearish Hammer" and "Bullish Inverted Hammer", keep only "Bullish Hammer" and "Shooting Star"
**Q: Can it be used on all timeframes?**
A: Yes, but recommended for 15-minute and higher timeframes - shorter timeframes have more noise
---
## 📝 Disclaimer
⚠️ This indicator is a supplementary tool and should be used with other technical analysis methods
⚠️ Past performance does not guarantee future results - always practice proper risk management
⚠️ Recommended to test on demo account before live trading
---
**Version:** Pine Script v6
**Applicable Markets:** Stocks, Futures, Cryptocurrencies, and all markets
MSSM – Multi-Session Structural Map (Precision Sweeps)MSSM – Multi-Session Structural Map (Precision Sweeps)
This indicator provides a structured view of the market based on four key components:
1). Previous session levels
2). Confirmed fractal swing points
3). Volume pocket highlights
4). Non-repainting precision liquidity sweep markers
It is designed to help analyze how price interacts with important reference areas and structural points. This tool does not generate signals or predictions. All information is visual and educational only.
HOW THE INDICATOR WORKS
PREVIOUS SESSION LEVELS
The script plots the previous session’s High, Low, and Mid. These levels help observe how the current session behaves around the prior day’s range. They act as reference areas only.
FRACTAL SWING MAP (NON-REPAINTING)
Confirmed fractals are used to mark historical swing highs and swing lows. Since fractals confirm after a certain number of bars, the swings do not repaint once formed. These swings provide a clearer view of market structure.
VOLUME POCKETS
The indicator highlights areas where volume expands relative to a rolling volume average. These regions show increased participation or activity. The highlights are informational and do not imply direction.
PRECISION LIQUIDITY SWEEPS (NON-REPAINTING)
A sweep is tagged only when:
• Price trades beyond a confirmed swing high or swing low
• Price closes back inside the previous swing level
• A wick rejection occurs
• Volume expands relative to a recent rolling average
These markers simply show where price interacted with liquidity around prior structural levels. They do not indicate a trading signal or bias.
HOW TO ADD THE INDICATOR
Open the Pine Editor in TradingView
Search the indicator name and add to favorites.
Click “Add to chart”
Adjust settings as needed (fractals, sweeps, volume pockets, or session levels)
HOW TO READ AND USE THE INDICATOR
SESSION LEVELS
Observe whether price respects, rejects, compresses around, or expands beyond the previous session high, low, or midpoint. These are observational reference levels only.
FRACTALS
Fractal highs and lows help visualize structural turning points. They provide a clearer picture of where liquidity may rest above or below past swing levels.
VOLUME POCKETS
When volume expands compared to the recent average, the candle is shaded. These areas may show increased participation, but no directional meaning is implied.
PRECISION SWEEPS
Sweeps highlight when price reaches beyond a prior confirmed swing level and then rejects that area with displacement. These markers identify interactions with liquidity, but they are not signals and do not forecast future outcomes.
CUSTOMIZATION OPTIONS
Users can adjust:
• Session level visibility
• Fractal sensitivity
• Volume pocket threshold
• Sweep sensitivity and visibility
• Transparency and styling
This makes the tool flexible across different symbols and timeframes.
IMPORTANT NOTES AND POLICY COMPLIANCE
• The indicator does not provide buy or sell signals
• The indicator does not predict price or direction
• All plotted elements are based on past price behavior
• All components are informational only
• Users should perform their own analysis and risk evaluation
• Past behavior does not guarantee future performance
SUMMARY
MSSM provides a structured view of price by combining previous session levels, confirmed swing structure, volume expansion zones, and non-repainting sweep identification. Its purpose is to assist traders in visually analyzing market structure while staying fully aligned with TradingView’s House Rules and content policies.
Hash Pivot DetectorHash Pivot Detector
Professional Support & Resistance Detection with Multi-Timeframe Zone Analysis
Developed by Hash Capital Research, the Hash Pivot Detector is a sophisticated indicator designed for identifying key support and resistance levels using pivot-based detection with institutional-grade zone analysis.
Key Features
Zone-Based Detection
Unlike traditional single-line S/R indicators, Hash Pivot Detector uses configurable zones around pivot levels to represent realistic institutional order areas. Adjustable zone width accommodates different asset volatilities.
Multi-Timeframe Analysis
Displays higher timeframe support/resistance levels alongside current timeframe pivots, providing crucial context for institutional positioning and stronger price barriers.
Clean Visual Design
Features Hash Capital's signature fluorescent color scheme (pink resistance, cyan support) optimized for dark charts with high contrast and instant visual recognition. Semi-transparent zones keep your chart clean and readable.
How It Works
The indicator uses pivot high/low detection with configurable left and right bar parameters. When a pivot is confirmed, it plots:
Primary support/resistance lines at pivot levels
Semi-transparent zones representing realistic order areas
Higher timeframe S/R levels as crosses for additional context
Recommended Settings
For Swing Trading:
Pivot Bars: 10-20 left/right
Zone Width: 0.5-1.0%
HTF: Daily (on 1H-4H charts)
For Intraday Trading:
Pivot Bars: 5-10 left/right
Zone Width: 0.3-0.5%
HTF: 1H or 4H (on 5min-15min charts)
Asset-Specific Zone Width:
Forex/Crypto: 0.3-0.5%
Stocks: 0.5-1.0%
Volatile Assets: 1.0-2.0%
What Makes It Different
✓ Zone-based approach (more realistic than lines)
✓ Multi-timeframe confluence detection
✓ Minimal visual clutter with maximum information
✓ Professional institutional aesthetic
✓ Comprehensive tooltips for easy optimization
✓ No repainting - all pivots are confirmed
Best Used For
Identifying high-probability entry/exit zones
Setting stop-loss and take-profit levels
Recognizing breakout/breakdown areas
Multi-timeframe confluence analysis
Swing trading and position trading
Intraday scalping with adjusted parameters
Notes
Works on all timeframes and markets
Fully customizable colors and parameters
All settings include detailed optimization guidance
Clean code, efficient performance
No alerts or notifications (visual analysis only)
CRT + SMC MY//@version=5
indicator("CRT + SMC MultiTF (Fixed Requests)", overlay=true, max_labels_count=500, max_boxes_count=200)
// ---------------- INPUTS ----------------
htfTF = input.string("60", title="HTF timeframe (60=1H, 240=4H)")
midTF = input.string("5", title="Mid timeframe (5 or 15)")
execTF = input.string("1", title="Exec timeframe (1 for sniper)")
useMAfilter = input.bool(true, "Require HTF MA filter")
htf_ma_len = input.int(50, "HTF MA length")
showOB = input.bool(true, "Show Order Blocks (midTF)")
showFVG = input.bool(true, "Show Fair Value Gaps (execTF)")
showEntries = input.bool(true, "Show Entry arrows & SL/TP")
slBuffer = input.int(3, "SL buffer (ticks)")
rrTarget = input.float(4.0, "Default R:R target")
useKillzone = input.bool(false, "Use London/NY Killzone (approx NY-5 timezone)")
// ---------------- REQUESTS (ALL at top-level) ----------------
// HTF series
htf_open = request.security(syminfo.tickerid, htfTF, open)
htf_high = request.security(syminfo.tickerid, htfTF, high)
htf_low = request.security(syminfo.tickerid, htfTF, low)
htf_close = request.security(syminfo.tickerid, htfTF, close)
htf_ma = request.security(syminfo.tickerid, htfTF, ta.sma(close, htf_ma_len))
htf_prev_high = request.security(syminfo.tickerid, htfTF, high )
htf_prev_low = request.security(syminfo.tickerid, htfTF, low )
// midTF series for OB detection
mid_open = request.security(syminfo.tickerid, midTF, open)
mid_high = request.security(syminfo.tickerid, midTF, high)
mid_low = request.security(syminfo.tickerid, midTF, low)
mid_close = request.security(syminfo.tickerid, midTF, close)
mid_median_body = request.security(syminfo.tickerid, midTF, ta.median(math.abs(close - open), 8))
// execTF series for FVG and micro structure
exec_high = request.security(syminfo.tickerid, execTF, high)
exec_low = request.security(syminfo.tickerid, execTF, low)
exec_open = request.security(syminfo.tickerid, execTF, open)
exec_close = request.security(syminfo.tickerid, execTF, close)
// Also get shifted values needed for heuristics (all top-level)
exec_high_1 = request.security(syminfo.tickerid, execTF, high )
exec_high_2 = request.security(syminfo.tickerid, execTF, high )
exec_low_1 = request.security(syminfo.tickerid, execTF, low )
exec_low_2 = request.security(syminfo.tickerid, execTF, low )
mid_low_1 = request.security(syminfo.tickerid, midTF, low )
mid_high_1 = request.security(syminfo.tickerid, midTF, high )
// ---------------- HTF logic ----------------
htf_ma_bias_long = htf_close > htf_ma
htf_ma_bias_short = htf_close < htf_ma
htf_sweep_high = (htf_high > htf_prev_high) and (htf_close < htf_prev_high)
htf_sweep_low = (htf_low < htf_prev_low) and (htf_close > htf_prev_low)
htf_final_long = htf_sweep_low and (not useMAfilter or htf_ma_bias_long)
htf_final_short = htf_sweep_high and (not useMAfilter or htf_ma_bias_short)
// HTF label (single label updated)
var label htf_label = na
if barstate.islast
label.delete(htf_label)
if htf_final_long
htf_label := label.new(bar_index, high, "HTF BIAS: LONG", style=label.style_label_left, color=color.green, textcolor=color.white)
else if htf_final_short
htf_label := label.new(bar_index, low, "HTF BIAS: SHORT", style=label.style_label_left, color=color.red, textcolor=color.white)
// ---------------- midTF OB detection (heuristic) ----------------
mid_body = math.abs(mid_close - mid_open)
is_bear_mid = (mid_open > mid_close) and (mid_body >= mid_median_body)
is_bull_mid = (mid_open < mid_close) and (mid_body >= mid_median_body)
mid_bear_disp = is_bear_mid and (mid_low < mid_low_1)
mid_bull_disp = is_bull_mid and (mid_high > mid_high_1)
// Store last OB values (safe top-level assignments)
var float last_bear_ob_top = na
var float last_bear_ob_bot = na
var int last_bear_ob_time = na
var float last_bull_ob_top = na
var float last_bull_ob_bot = na
var int last_bull_ob_time = na
if mid_bear_disp
last_bear_ob_top := mid_open
last_bear_ob_bot := mid_close
last_bear_ob_time := timenow
if mid_bull_disp
last_bull_ob_top := mid_close
last_bull_ob_bot := mid_open
last_bull_ob_time := timenow
// Draw OB boxes (draw always but can be toggled)
if showOB
if not na(last_bear_ob_top)
box.new(bar_index - 1, last_bear_ob_top, bar_index + 1, last_bear_ob_bot, border_color=color.new(color.red,0), bgcolor=color.new(color.red,85))
if not na(last_bull_ob_top)
box.new(bar_index - 1, last_bull_ob_top, bar_index + 1, last_bull_ob_bot, border_color=color.new(color.green,0), bgcolor=color.new(color.green,85))
// ---------------- execTF FVG detection (top-level logic) ----------------
// simple 3-candle gap heuristic
bull_fvg_local = exec_low_2 > exec_high_1
bear_fvg_local = exec_high_2 < exec_low_1
// Compute FVG box coords at top-level
fvg_bull_top = exec_high_1
fvg_bull_bot = exec_low_2
fvg_bear_top = exec_high_2
fvg_bear_bot = exec_low_1
if showFVG
if bull_fvg_local
box.new(bar_index - 2, fvg_bull_top, bar_index, fvg_bull_bot, border_color=color.new(color.green,0), bgcolor=color.new(color.green,85))
if bear_fvg_local
box.new(bar_index - 2, fvg_bear_top, bar_index, fvg_bear_bot, border_color=color.new(color.red,0), bgcolor=color.new(color.red,85))
// ---------------- micro structure on execTF ----------------
micro_high = exec_high
micro_low = exec_low
micro_high_1 = exec_high_1
micro_low_1 = exec_low_1
micro_bos_long = micro_high > micro_high_1
micro_bos_short = micro_low < micro_low_1
// ---------------- killzone check (top-level) ----------------
kill_ok = true
if useKillzone
hh = hour(time('GMT-5'))
mm = minute(time('GMT-5'))
// London approx
inLondon = (hh > 2 or (hh == 2 and mm >= 45)) and (hh < 5 or (hh == 5 and mm <= 0))
inNY = (hh > 8 or (hh == 8 and mm >= 20)) and (hh < 11 or (hh == 11 and mm <= 30))
kill_ok := inLondon or inNY
// ---------------- Entry logic (top-level boolean decisions) ----------------
hasBullOB = not na(last_bull_ob_top)
hasBearOB = not na(last_bear_ob_top)
entryLong = htf_final_long and hasBullOB and micro_bos_long and bull_fvg_local and kill_ok
entryShort = htf_final_short and hasBearOB and micro_bos_short and bear_fvg_local and kill_ok
// ---------------- SL / TP suggestions and plotting ----------------
var label lastEntryLabel = na
if entryLong or entryShort
entryPrice = close
suggestedSL = entryLong ? (htf_low - slBuffer * syminfo.mintick) : (htf_high + slBuffer * syminfo.mintick)
slDist = math.abs(entryPrice - suggestedSL)
suggestedTP = entryLong ? (entryPrice + slDist * rrTarget) : (entryPrice - slDist * rrTarget)
if showEntries
label.delete(lastEntryLabel)
lastEntryLabel := label.new(bar_index, entryPrice, entryLong ? "ENTRY LONG" : "ENTRY SHORT", style=label.style_label_center, color=entryLong ? color.green : color.red, textcolor=color.white)
line.new(bar_index, suggestedSL, bar_index + 20, suggestedSL, color=color.orange, style=line.style_dashed)
line.new(bar_index, suggestedTP, bar_index + 40, suggestedTP, color=color.aqua, style=line.style_dashed)
plotshape(entryLong, title="Entry Long", location=location.belowbar, color=color.green, style=shape.triangleup, size=size.small)
plotshape(entryShort, title="Entry Short", location=location.abovebar, color=color.red, style=shape.triangledown, size=size.small)
alertcondition(entryLong, title="CRT SMC Entry Long", message="Entry Long — HTF bias + midTF OB + execTF confirmation")
alertcondition(entryShort, title="CRT SMC Entry Short", message="Entry Short — HTF bias + midTF OB + execTF confirmation")
IU Momentum OscillatorDESCRIPTION:
The IU Momentum Oscillator is a specialized trend-following tool designed to visualize the raw "energy" of price action. Unlike traditional oscillators that rely solely on closing prices relative to a range (like RSI), this indicator calculates momentum based on the ratio of bullish candles over a specific lookback period.
This "Neon Edition" has been engineered with a focus on visual clarity and aesthetic depth. It utilizes "Shadow Plotting" to create a glowing effect and dynamic "Trend Clouds" to highlight the strength of the move. The result is a clean, modern interface that allows traders to instantly gauge market sentiment—whether the bulls or bears are in control—without cluttering the chart with complex lines.
USER INPUTS:
- Momentum Length (Default: 20): The number of past candles analyzed to count bullish occurrences.
- Momentum Smoothing (Default: 20): An SMA filter applied to the raw data to reduce noise and provide a cleaner wave.
- Signal Line Length (Default: 5): The length of the EMA signal line used to generate crossover signals and the "Trend Cloud."
- Overbought / Oversold Levels (Default: 60 / 40): Thresholds that define extreme market conditions.
- Colors: Fully customizable Neon Cyan (Bullish) and Neon Magenta (Bearish) inputs to match your chart theme.
LONG CONDITION:
- Signal: A Buy signal is indicated by a small Cyan Circle.
- Logic: Occurs when the Main Momentum Line (Glowing) crosses ABOVE the Grey Signal Line.
- Visual Confirmation: The "Trend Cloud" turns Cyan and expands, indicating that bullish momentum is accelerating relative to the recent average.
SHORT CONDITIONS:
- Signal: A Sell signal is indicated by a small Magenta Circle.
- Logic: Occurs when the Main Momentum Line (Glowing) crosses BELOW the Grey Signal Line.
- Visual Confirmation: The "Trend Cloud" turns Magenta, indicating that bearish pressure is increasing.
WHY IT IS UNIQUE:
1. Candle-Count Logic: Most oscillators calculate price distance. This indicator calculates price participation (how many candles were actually green vs red). This offers a different perspective on trend sustainability.
2. Optimized Performance: The script uses math.sum functions rather than heavy for loops, ensuring it loads instantly and runs smoothly on all timeframes.
3. Visual Hierarchy: It uses dynamic gradients and transparency (Alpha channels) to create a "Glow" and "Cloud" effect. This makes the chart easier to read at a glance compared to flat, single-line oscillators.
HOW USER CAN BENEFIT FROM IT:
- Trend Confirmation: Traders can use the "Trend Cloud" to stay in trades longer. As long as the cloud is thick and colored, the trend is strong.
- Divergence Spotting: Because this calculates momentum differently than RSI, it can often show divergences (price goes up, but the count of bullish candles goes down) earlier than standard tools.
- Scalping: The crisp crossover signals (Circles) provide excellent entry triggers for scalpers on lower timeframes when combined with key support/resistance levels.
DISCLAIMER:
This source code and the information presented here are for educational and informational purposes only. It does not constitute financial, investment, or trading advice.
Trading in financial markets involves a high degree of risk and may not be suitable for all investors. You should not rely solely on this indicator to make trading decisions. Always perform your own due diligence, manage your risk appropriately, and consult with a qualified financial advisor before executing any trades.
MACDiver — From axis v1.1MACDiver Indicator
A Pine Script indicator that identifies bullish and bearish divergences between price action and the MACD oscillator. It uses pivot highs/lows in both price and MACD series to detect potential reversal signals. When price makes higher highs (or lower lows) while MACD makes lower highs (or higher lows), the indicator marks these divergences with lines and labels on the chart, providing potential trading signals.
LionheartLionheart is an extremely successful trading strategy involving the 5, 13 and 55 EMA. It is designed to be the MOST successful when used on the daily timeframe and only after the daily candle has closed upon firing of the trade signal.
Daily Key Levels (Staggered Start)Daily Key Levels (Staggered Start)
Tên chỉ báo đã nói lên mọi thứ rồi. Dùng thử nhé






















