Options Greeks AnalyzerOptions Greeks Analyzer (Training & Learning Guide)
________________________________________
1. Introduction
Options trading is advanced compared to regular stock trading, and one of the most important aspects is Options Greeks. Greeks are mathematical values that measure how the price of an option will react to changes in various factors such as the underlying asset’s price, volatility, interest rates, and time to expiry.
This Options Greeks Analyzer tool is built using TradingView Pine Script v5. It serves as a real time training and analysis dashboard that helps learners visualize how options greeks behave, how option prices change, and how traders can make informed decisions.
📌 Educational Disclaimer:
This tool is only for training and learning purposes. It is not a financial advice tool nor to be used for live trading decisions. The data shown is theoretical Black Scholes model calculations, which may differ from actual option market prices.
________________________________________
2. How the Tool Works
The Options Greeks Analyzer is divided into different modules. Below is a step by step walkthrough:
________________________________________
Step 1: User Inputs
• Implied Volatility (IV%) — You can manually enter volatility, which is the most important factor in option pricing. Higher IV = higher option premium.
• Expiry Selection — Choose from preset durations like 7D, 14D, 30D etc. Days to expiry directly affect time decay (Theta).
• Strike Price Mode — You can select either:
o ATM (At-the-Money = Current price of stock/index)
o Custom strike (Enter your own strike price)
• Risk-Free Rate (%) — A small interest rate factor (like government bond yield) used for theoretical valuation.
• Table Customization — Choose table size, position, and whether to show price lines for easy visibility.
________________________________________
Step 2: Market Data & Volatility
• The tool takes the current market price (Spot Price) as input.
• It calculates realized volatility from historical price fluctuations (using past 30 bars/log returns).
• Implied Volatility (manual input) is then compared to realized vol:
o If IV > Historical Volatility → Market pricing is “expensive” (HIGH IV RANK).
o If IV < Historical Volatility → Market is “cheap” (LOW IV RANK).
o Otherwise, it’s MEDIUM.
📌 Why it matters?
Traders can decide whether buying or selling options is favorable. Beginners learn that timing entry with volatility is more critical than just looking at market direction.
________________________________________
Step 3: Black-Scholes Formula
The core engine uses the Black-Scholes model, a mathematical formula widely used to compute option fair prices.
It uses the following inputs:
• Current price (Spot)
• Strike Price
• Time to Expiry (T)
• Risk Free Rate (r)
• Implied Volatility (σ)
This produces:
• Call Option Price
• Put Option Price
📌 This teaches learners how premiums are derived theoretically and why the same strike can have different values depending on IV and time.
________________________________________
Step 4: Option Greeks Calculation
The tool computes the first order Greeks:
• Delta → Measures how much the option price changes when the underlying stock moves by 1 point.
(Call Delta ranges 0–1, Put Delta ranges -1 to 0).
• Gamma → Sensitivity of Delta to price change. A measure of volatility risk.
• Theta → Time decay. Shows how much value option loses as each day passes. Calls and Puts have negative Theta (decay).
• Vega → Measures how sensitive option price is to volatility changes.
• Rho → Interest rate sensitivity. Mostly minor in equity options but important for training.
📌 New traders learn how each factor impacts profits/losses. Instead of random guessing, they see mathematical impact in numbers.
________________________________________
Step 5: Dashboard & Visualization
The tool builds a professional dashboard table on the chart.
It shows categories such as:
1. Asset Info — Spot, Strike, DTE (days to expiry), IV%, IV Rank, 1-Day Trend, Moneyness (ATM/OTM/ITM).
2. Option Prices — Call, Put, Break-even levels, Time Value, Expected Move (%), Realized vs Implied Vol.
3. Greeks with Visual Progress Bars — Easily shows Delta, Gamma, Vega, Theta, Rho in intuitive graphical representations.
4. Status Bar — Suggests theoretical bias like:
o HIGH IV → Favor Option Selling
o LOW IV → Favor Option Buying
o MEDIUM → Neutral observation
5. Recommendation Line — Offers training-based suggestions like “Buy Straddles”, “Sell Call Spreads”, etc. These are not signals, but scenarios to learn strategies.
________________________________________
3. How It Helps Beginners
1. Learn Greeks in Action:
Beginners often memorize formulas but never see real-time changes. This dashboard updates every bar to show how Greeks change dynamically.
2. Compare Volatilities:
Traders understand difference between historical vs implied volatility and why option premiums behave differently.
3. Understand Risk Levels:
The tool highlights when Gamma risk is high (danger for sellers) or when Theta is most favorable.
4. Training Mode for Strategies:
Helps beginners experiment by changing IV, strike, expiry and seeing how straddles, spreads, naked options would behave theoretically.
5. Prepares Before Live Trading:
Safe environment to practice option analysis without risking capital.
________________________________________
4. Educational Use Cases
• Scenario 1: Change expiry from 7D to 30D — see how Theta becomes slower for longer expiries.
• Scenario 2: Increase IV from 25% to 80% — watch how option premiums inflate, and recommendation changes from “Buy” to “Sell”.
• Scenario 3: Select OTM vs ITM strikes — check how delta moves from near 0 to near 1.
By running these scenarios, learners understand why professional traders hedge Greeks instead of directional gambling.
________________________________________
5. Disclaimer
This Options Greeks Analyzer is built strictly for educational and training purposes.
• It uses theoretical formulas (Black-Scholes) that may not match actual option market prices.
• The recommendations are for learning strategy logic only, not real-world execution signals.
• Trading in options carries significant risks and may result in capital loss.
📌 Always consult with a financial advisor before applying real strategies.
________________________________________
✅ Summary
This Options Greeks Analyzer:
• Teaches how Greeks, IV, and premiums work.
• Provides a real-time interactive dashboard for training.
• Helps beginners practice option scenarios safely.
• Is meant strictly for learning and not live trading execution.
________________________________________
________________________________________
Disclaimer from aiTrendview
This script and its trading signals are provided for training and educational purposes only. They do not constitute financial advice or a guaranteed trading system. Trading involves substantial risk, and there is the potential to lose all invested capital. Users should perform their own analysis and consult with qualified financial professionals before making any trading decisions. aiTrendview disclaims any liability for losses incurred from using this code or trading based on its signals. Use this tool responsibly, and trade only with risk capital.
Analisis Tren
Cloud FlipCloud Flip Indicator
Overview
The Cloud Flip Indicator is a trend-following technical analysis tool that visualizes market momentum through a dynamic cloud formation between two exponential moving averages (EMAs). It provides clear visual signals for trend direction changes and potential entry/exit points.
Key Features
1. Dynamic Cloud Visualization
Adaptive Cloud: A color-changing cloud that fills the space between fast and slow EMAs
Trend Clarity: Instantly identify bullish and bearish market conditions through color changes
Visual Depth: Optional shadow effects for enhanced chart readability
2. Dual EMA System
Fast EMA: Responsive to recent price movements (default: 20 periods)
Slow EMA: Captures longer-term trend direction (default: 50 periods)
Customizable Periods: Adjust both EMAs to match your trading style
3. Crossover Signals
Bullish Signals: Upward triangle (▲) when fast EMA crosses above slow EMA
Bearish Signals: Downward triangle (▼) when fast EMA crosses below slow EMA
Clear Entry Points: Visual markers appear directly on the chart at crossover points
4. Alert System
Real-time Notifications: Get alerted when crossovers occur
Customizable Alerts: Choose between bullish, bearish, or both signal types
Price Integration: Alert messages include the exact price at crossover
How It Works
The indicator operates on a simple yet effective principle:
Bullish Trend: When the fast EMA is above the slow EMA, the cloud turns green (customizable), indicating upward momentum
Bearish Trend: When the fast EMA is below the slow EMA, the cloud turns red (customizable), indicating downward momentum
Trend Changes: Crossovers between the EMAs signal potential trend reversals
Customization Options
Period Settings
Fast Period: Controls the responsiveness of the fast-moving average
Lower values (10-25): More sensitive to price changes, suitable for short-term trading
Higher values (25-50): Smoother signals, fewer false positives
Slow Period: Defines the longer-term trend
Typical range (50-200): Higher values for position trading
Lower values (30-50): For swing trading approaches
Visual Settings
Uptrend Color: Customize the bullish trend color
Downtrend Color: Customize the bearish trend color
Shadow Toggle: Enable/disable cloud transparency for cleaner charts
Alert Settings
Enable Alerts: Master switch for all notifications
Alert on Bullish Cross: Receive notifications for upward crossovers
Alert on Bearish Cross: Receive notifications for downward crossovers
Trading Applications
1. Trend Following
Enter long positions when the cloud turns bullish (green)
Enter short positions when the cloud turns bearish (red)
Use the cloud color as a trend filter for other strategies
2. Crossover Trading
Buy signals: When you see the upward triangle (▲)
Sell signals: When you see the downward triangle (▼)
Combine with volume or momentum indicators for confirmation
3. Support and Resistance
The slow EMA often acts as dynamic support in uptrends
The slow EMA often acts as dynamic resistance in downtrends
The cloud itself can act as a support/resistance zone
Best Practices
Multiple Timeframes: Use on multiple timeframes for confluence
Higher timeframes for trend direction
Lower timeframes for entry timing
Risk Management:
Don't rely solely on crossover signals
Use appropriate stop losses below/above the cloud
Consider the overall market context
Optimization:
Backtest different period combinations for your specific market
Adjust settings based on asset volatility
Consider market conditions (trending vs ranging)
Advantages
Clear Visual Signals: No ambiguity in trend direction
Reduced Noise: EMAs smooth out price fluctuations
Versatility: Works across all markets and timeframes
Simplicity: Easy to understand and implement
Limitations
Lagging Indicator: Based on moving averages, signals come after price moves
Whipsaws: Can generate false signals in ranging markets
No Predictive Power: Shows current trend, not future direction
Installation
Add the indicator to your TradingView chart
Adjust the period settings to match your trading style
Customize colors to your preference
Set up alerts if desired
Use in conjunction with your existing trading strategy
VWMA CandlesVWMA Candles – Smarter Candle Coloring with Volume Awareness
This indicator enhances your chart candles by showing their relationship to the Volume-Weighted Moving Average (VWMA). It visually integrates the VWMA and price action, making it easier to spot momentum shifts, value zones, and price interaction with volume-weighted levels. I saw this indicator idea from TrendSpider on threads and decided to try and make my own. This is my first publicly shared script so go easy on me!
IN ORDER FOR THE COLOR CODING TO WORK PROPERLY, YOU MUST:
GO TO -> CHART SETTINGS -> SYMBOLS AND DISABLE BODIES, BORDERS, AND WICKS.
How it works:
The VWMA is plotted on your chart with a customizable band around it.
Candles change color depending on their position relative to the VWMA and its band:
Green → Price is above the VWMA (bullish bias).
Orange → Price is near or touching the VWMA/band (potential reaction zone).
Red → Price is below the VWMA (bearish bias).
You can choose between custom candles (full plotcandle styling) or simply recolor your existing chart candles with barcolor.
Customization options:
Select how the band is calculated: by % of VWMA, ATR multiple, or Ticks/Points.
Adjust colors separately for candle body, wick, and border.
Choose to show/hide the VWMA line and the band fill.
Fine-tune transparency for a clean look on any chart background.
Why traders use it:
Quickly spot when price is stretched away from the VWMA (overextended conditions).
Identify when candles are interacting with the VWMA (potential support/resistance).
Add volume-sensitivity to your trend analysis compared to standard moving averages.
Authors Note: The default settings work well with stocks on the weekly timeframe, although this can be used on any timeframe. The settings are highly adjustable for you to tune it to your liking.
EMA + RSI Daily Bias Clarity Indi📊 EMA + RSI Daily Bias • Clarity Panel
This indicator is built for clarity, structure, and confidence in trading.
It combines EMAs, RSI, and a Daily Bias filter into one panel that helps you quickly understand trend, momentum, and alignment without cluttering your chart.
It does not provide signals or financial advice — instead, it simplifies your decision-making process by presenting conditions in a clear format.
🔧 Features
📈 Customizable EMAs (Fast & Slow)
Define short-term vs. medium-term trend direction.
Adjust the lengths for scalping, intraday, or swing trading.
🎯 RSI Integration
Tracks momentum on your active timeframe.
Highlights overbought (OB) and oversold (OS) conditions.
Used to filter entries and avoid chasing stretched moves.
🧭 Daily Bias (Higher Timeframe RSI)
Pulls RSI from the Daily chart (or chosen HTF).
Helps confirm if your local trade setup is aligned with higher timeframe momentum.
✨ Clarity Panel with Emojis
Displays Trend, HTF Bias, RSI reading, and State.
States include:
⏳ WAIT → No alignment or unclear conditions.
🟢 / 🔴 CONFIRM → Trend, RSI, and bias all align for a setup.
💰 COLLECT → RSI stretched to OB/OS, take partials or be cautious.
⚡ Optional Chart Markers
BUY/SELL labels appear when conditions align.
Alerts can be enabled for CONFIRM and COLLECT conditions.
💡 How to Use
Start with EMAs → Check if price is trending above or below EMAs to determine short-term direction.
Look at Daily Bias → See if RSI bias from higher timeframe (Daily by default) agrees with your local setup.
Check RSI → If RSI is neutral, WAIT. If RSI confirms momentum with trend + bias, CONFIRM. If RSI is stretched into OB/OS, COLLECT.
Use Panel for Quick Reads → The panel gives you a “dashboard” view of conditions so you don’t second-guess.
Combine with Your Own Strategy → This script is best used as a clarity filter to stay disciplined, not as a standalone signal generator.
📊 Example Workflow
Price above both EMAs ✅
Daily Bias shows BULL ✅
RSI at 62 (above midline, not yet overbought) ✅
→ Panel shows 🟢 CONFIRM → consider entering long.
Later, RSI rises to 72 (overbought) → Panel switches to 💰 COLLECT → take profits or tighten stops.
⚠️ Disclaimer
This script is for clarity and educational purposes only.
It does not provide financial advice, signals, or guaranteed profits.
Always use proper risk management and combine with your own trading plan.
POC Migration Velocity (POC-MV) [PhenLabs]📊POC Migration Velocity (POC-MV)
Version: PineScript™v6
📌Description
The POC Migration Velocity indicator revolutionizes market structure analysis by tracking the movement, speed, and acceleration of Point of Control (POC) levels in real-time. This tool combines sophisticated volume distribution estimation with velocity calculations to reveal hidden market dynamics that conventional indicators miss.
POC-MV provides traders with unprecedented insight into volume-based price movement patterns, enabling the early identification of continuation and exhaustion signals before they become apparent to the broader market. By measuring how quickly and consistently the POC migrates across price levels, traders gain early warning signals for significant market shifts and can position themselves advantageously.
The indicator employs advanced algorithms to estimate intra-bar volume distribution without requiring lower timeframe data, making it accessible across all chart timeframes while maintaining sophisticated analytical capabilities.
🚀Points of Innovation
Micro-POC calculation using advanced OHLC-based volume distribution estimation
Real-time velocity and acceleration tracking normalized by ATR for cross-market consistency
Persistence scoring system that quantifies directional consistency over multiple periods
Multi-signal detection combining continuation patterns, exhaustion signals, and gap alerts
Dynamic color-coded visualization system with intensity-based feedback
Comprehensive customization options for resolution, periods, and thresholds
🔧Core Components
POC Calculation Engine: Estimates volume distribution within each bar using configurable price bands and sophisticated weighting algorithms
Velocity Measurement System: Tracks the rate of POC movement over customizable lookback periods with ATR normalization
Acceleration Calculator: Measures the rate of change of velocity to identify momentum shifts in POC migration
Persistence Analyzer: Quantifies how consistently POC moves in the same direction using exponential weighting
Signal Detection Framework: Combines trend analysis, velocity thresholds, and persistence requirements for signal generation
Visual Rendering System: Provides dynamic color-coded lines and heat ribbons based on velocity and price-POC relationships
🔥Key Features
Real-time POC calculation with 10-100 configurable price bands for optimal precision
Velocity tracking with customizable lookback periods from 5 to 50 bars
Acceleration measurement for detecting momentum changes in POC movement
Persistence scoring to validate signal strength and filter false signals
Dynamic visual feedback with blue/orange color scheme indicating bullish/bearish conditions
Comprehensive alert system for continuation patterns, exhaustion signals, and POC gaps
Adjustable information table displaying real-time metrics and current signals
Heat ribbon visualization showing price-POC relationship intensity
Multiple threshold settings for customizing signal sensitivity
Export capability for use with separate panel indicators
🎨Visualization
POC Connecting Lines: Color-coded lines showing POC levels with intensity based on velocity magnitude
Heat Ribbon: Dynamic colored ribbon around price showing POC-price basis intensity
Signal Markers: Clear exhaustion top/bottom signals with labeled shapes
Information Table: Real-time display of POC value, velocity, acceleration, basis, persistence, and current signal status
Color Gradients: Blue gradients for bullish conditions, orange gradients for bearish conditions
📖Usage Guidelines
POC Calculation Settings
POC Resolution (Price Bands): Default 20, Range 10-100. Controls the number of price bands used to estimate volume distribution within each bar
Volume Weight Factor: Default 0.7, Range 0.1-1.0. Adjusts the influence of volume in POC calculation
POC Smoothing: Default 3, Range 1-10. EMA smoothing period applied to the calculated POC to reduce noise
Velocity Settings
Velocity Lookback Period: Default 14, Range 5-50. Number of bars used to calculate POC velocity
Acceleration Period: Default 7, Range 3-20. Period for calculating POC acceleration
Velocity Significance Threshold: Default 0.5, Range 0.1-2.0. Minimum normalized velocity for continuation signals
Persistence Settings
Persistence Lookback: Default 5, Range 3-20. Number of bars examined for persistence score calculation
Persistence Threshold: Default 0.7, Range 0.5-1.0. Minimum persistence score required for continuation signals
Visual Settings
Show POC Connecting Lines: Toggle display of colored lines connecting POC levels
Show Heat Ribbon: Toggle display of colored ribbon showing POC-price relationship
Ribbon Transparency: Default 70, Range 0-100. Controls transparency level of heat ribbon
Alert Settings
Enable Continuation Alerts: Toggle alerts for continuation pattern detection
Enable Exhaustion Alerts: Toggle alerts for exhaustion pattern detection
Enable POC Gap Alerts: Toggle alerts for significant POC gaps
Gap Threshold: Default 2.0 ATR, Range 0.5-5.0. Minimum gap size to trigger alerts
✅Best Use Cases
Identifying trend continuation opportunities when POC velocity aligns with price direction
Spotting potential reversal points through exhaustion pattern detection
Confirming breakout validity by monitoring POC gap behavior
Adding volume-based context to traditional technical analysis
Managing position sizing based on POC-price basis strength
⚠️Limitations
POC calculations are estimations based on OHLC data, not true tick-by-tick volume distribution
Effectiveness may vary in low-volume or highly volatile market conditions
Requires complementary analysis tools for complete trading decisions
Signal frequency may be lower in ranging markets compared to trending conditions
Performance optimization needed for very short timeframes below 1-minute
💡What Makes This Unique
Advanced Estimation Algorithm: Sophisticated method for calculating POC without requiring lower timeframe data
Velocity-Based Analysis: Focus on POC movement dynamics rather than static levels
Comprehensive Signal Framework: Integration of continuation, exhaustion, and gap detection in one indicator
Dynamic Visual Feedback: Intensity-based color coding that adapts to market conditions
Persistence Validation: Unique scoring system to filter signals based on directional consistency
🔬How It Works
Volume Distribution Estimation:
Divides each bar into configurable price bands for volume analysis
Applies sophisticated weighting based on OHLC relationships and proximity to close
Identifies the price level with maximum estimated volume as the POC
Velocity and Acceleration Calculation:
Measures POC rate of change over specified lookback periods
Normalizes values using ATR for consistent cross-market performance
Calculates acceleration as the rate of change of velocity
Signal Generation Process:
Combines trend direction analysis using EMA crossovers
Applies velocity and persistence thresholds to filter signals
Generates continuation, exhaustion, and gap alerts based on specific criteria
💡Note:
This indicator provides estimated POC calculations based on available OHLC data and should be used in conjunction with other analysis methods. The velocity-based approach offers unique insights into market structure dynamics but requires proper risk management and complementary analysis for optimal trading decisions.
Machine Learning-Inspired Supply & Demand Zones [AlgoPoint]This indicator is a Smart Supply & Demand Zone tool, developed with principles inspired by Machine Learning (ML). It intelligently filters out market noise, allowing you to focus only on the most significant zones where institutional order flow is likely present.
💡 How It Works: Why Is This Indicator "Smart"?
Unlike traditional indicators that only measure simple price movements, this script uses an algorithm that asks the same critical questions an experienced market analyst would to qualify a zone:
- 1. Price Imbalance: How fast and aggressively did the price leave the zone? Our algorithm measures the body size of the "departure candle" relative to the current market volatility (ATR). A zone is only considered if it was formed by an explosive move that is statistically significant, indicating a major imbalance between buyers and sellers.
- 2. Volume Confirmation: Did the "smart money" participate in this move? The script checks if the volume on the departure candle was significantly higher than the recent average volume. A spike in volume confirms that the move was backed by institutional interest, adding strength and validity to the zone.
- 3. Valid Pivot Structure: Did the zone originate from a meaningful swing high or low? The algorithm first identifies a valid pivot structure, ensuring that zones are not drawn from insignificant or random price fluctuations.
Only when a potential zone passes these three critical tests—our "quality filter"—is it drawn on your chart.
🚀 Features & How to Use
Using the indicator is straightforward. You will see two primary types of boxes on your chart:
* 🟥 Red Box (Supply Zone): An area of potential resistance where selling pressure is likely to be strong. Look for potential shorting opportunities as the price approaches this zone.
* 🟩 Green Box (Demand Zone): An area of potential support where buying pressure is likely to be strong. Look for potential long opportunities as the price pulls back into this zone.
Dynamic Zone Management
This indicator is not static; it lives and breathes with the market:
- Fresh Zone: A newly formed zone appears in its full, vibrant color. These are the highest-probability zones as they have not yet been re-tested.
- Broken / Flipped Zone: You have full control over what happens when a zone is broken! In the settings, you can choose:
- Delete Zone: The zone will be removed completely when the price closes through it.
- Show as Broken (Flip): When broken, the zone will turn gray, stop extending, and remain on your chart. This is extremely useful for identifying Support/Resistance Flips, where a broken demand zone becomes new resistance, or a broken supply zone becomes new support.
⚙️ Settings & Customization
Fine-tune the indicator to match your personal trading style via the settings menu:
- Breakout Behavior: The most powerful feature. Choose between Delete Zone and Show as Broken (Flip) to customize your chart.
- Zone Finding Logic: Control the indicator's sensitivity.
- Selective: Requires both strong imbalance and high volume. Finds fewer, but higher-quality, zones.
- Moderate: Requires either strong imbalance or high volume. Finds more potential zones.
- Sensitivity Settings: Adjust the ATR Multiplier and Volume Multiplier to make the criteria for a "strong" zone stricter or looser.
BE-Fib Channel 2 Sided Trading█ Overview:
"BE-Fib Channel 2 Sided Trading" indicator is built with the thought of 2 profound setups named "Cup & Handle (C&H)" and "Fibonacci Channel Trading (FCT)" with the context of "day trading" or with a minimum holding period.
█ Similarities, Day Trading Context & Error Patterns:
While the known fact is that both C&H and FCT provide setups with lesser risk with bigger returns, they both share the similar "Base Pattern".
Note: Inverse of the above Image shall switch the setups between long vs short.
Since the indicator is designed for smaller time-frame candles, there may be instances where the "base pattern" does not visually resemble a Cup & Handle (C&H) pattern. However, patterns are validated using pivot points. The points labeled "A" and "C" can be equal or slightly slanted. Settings of the Indicator allows traders a flexibility to control the angle of these points to spot the strategies according to set conditions. Therefore, understanding the nuances of these patterns is crucial for effective decision-making.
█ 2 Sided Edge: FCT suggests to take trade closer to the yellow line to get better RR ratio. this leaves a small chance of doubt as to; what if price is intended to break the Yellow line thereby activating the C&H.
Wait for the confirmation is a Big FOMO with a compromised RR.
Hence, This indicator is designed to handle both the patterns based on the strength, FIFO and pattern occurring delay.
█ How to Use this Indicator:
Step 1: Enable the Show Sample Sensitivity option to understand the angle of yellow line shown in the sample image. By enabling this option, On the last bar you shall see 4 lines being plotted depicting the max angle which is acceptable for both long and short trades.
Note: Angle can be controlled via setting "Sensitivity".
Higher Sensitivity --> Higher Setup identification --> can lead to failed setups due to 2 sided trading.
Lower Sensitivity --> Lower Setup identification --> can increase the changes of being right.
Step 2: Adjust the look back & look forward periods which shall be used for identifying patterns.
Note: Smaller values can lead to more setups being identified but can hamper the performance of the indicator while increasing the chances of failures. larger values identifies more significant setup but leads to more waiting period thereby compromising on the RR.
Step 3: Adjust the Base Range.
Note: Smaller values can lead to more setups being identified but can hamper the performance of the indicator while increasing the chances of failures. larger values identifies more significant setup but leads to more Risk on play.
Step 4: set the Entry level for FCT & Set the SL for Both FCT & C&H and Target Reward ratio for C&H.
█ Features of Indicator & How it works:
1. Patterns are being identified using Pivot Points method.
2. Tracks & validates both the setups simultaneously on every candle and traded one at a time based on FIFO, New setups found in-between, Defined Entry Levels while on wait for the other pattern to get activated.
3. Alerts added for trade events.
4. FCT setups are generally traded with trailed SL level and increasing Target level on every completed bar. while C&H has the standard SL & TP level with no Trail SL option.
DISCLAIMER: No sharing, copying, reselling, modifying, or any other forms of use are authorized for our documents, script / strategy, and the information published with them. This informational planning script / strategy is strictly for individual use and educational purposes only. This is not financial or investment advice. Investments are always made at your own risk and are based on your personal judgement. I am not responsible for any losses you may incur. Please invest wisely.
Happy to receive suggestions and feedback in order to improve the performance of the indicator better.
Universal Trend+ [BackQuant]Universal Trend+
This indicator blends several well-known technical ideas into a single composite trend and momentum model. It can be show primarily as an overlay or a oscillator:
In which it produces two things:
a composite oscillator that summarizes multiple signals into one normalized score
a regime signal rendered on the chart as a colored ribbon with optional 𝕃 and 𝕊 markers
The goal is to simplify decision-making by having multiple, diverse measurements vote in a consistent framework, rather than relying on any single indicator in isolation.
What it does
Computes five independent components, each reading a different aspect of price behavior
Converts each component into a standardized bullish / neutral / bearish vote
Averages the available votes to a composite score
Compares that score to user thresholds to label the environment bullish, neutral, or bearish
Colors a fast/slow moving-average ribbon by the current regime, optionally paints candles, and can plot the composite oscillator in a lower pane
The five components (conceptual)
1)RSI Momentum Bias
A classic momentum gauge on a selectable source and lookback. The component emphasizes whether conditions are persistently strong or weak and applies a neutral buffer to avoid reacting to trivial moves. Output is expressed as a vote: bullish, neutral, or bearish.
2) Rate-of-Change Impulse
A smoothed rate-of-change that focuses on short bursts in acceleration. It is used to detect impulsive pushes rather than slow drift. Extreme readings cast a directional vote, mid-range readings abstain.
3) EMA Oscillator
A slope-style trend gauge formed by contrasting a fast and a slow EMA on a chosen source, normalized so that the sign and relative magnitude matter more than absolute price. A small dead-zone reduces whipsaws.
4) T3-Based Normalized Oscillator
A T3 smoother is transformed into a bounded oscillator via rolling normalization, then optionally smoothed by a user-selectable MA. This highlights directional drift while keeping scale consistent across symbols and regimes.
5) DEMA + ATR Bands State
A double-EMA core is wrapped in adaptive ATR bands to create a stepping state that reacts when pressure exceeds a volatility envelope. The component contributes an event-style vote on meaningful shifts.
Each component is designed to measure something different: trend slope, momentum impulse, normalized drift, and volatility-aware pressure. Their diversity is the point.
Composite scoring model
Standardization: Each component is mapped to -1 (bearish), 0 (neutral), or +1 (bullish) using bands and guards to cut noise.
Aggregation: The composite score is the average of the available votes. If a component is inactive on a bar, the composite uses the votes that are present.
Decision layer: Two user thresholds define your action bands.
Above the upper band → bullish regime
Below the lower band → bearish regime
Between the bands → neutral
This separation between measurement, aggregation, and decision avoids over-fitting any single threshold and makes the tool adaptable across assets and timeframes.
Plots and UI
Composite oscillator (optional lower pane): A normalized line that trends between bearish and bullish zones with user thresholds drawn for context.
Signal ribbon (on price): A fast/slow MA pair tinted by the current regime to give an at-a-glance market state.
Markers: Optional 𝕃 and 𝕊 labels when the regime flips.
Candle painting and background tint: Optional visual reinforcement of state.
Color and style controls: User inputs for long/short colors, threshold line color, and visibility toggles.
How it can be used
1) Regime filter
Use the composite regime to define bias. Trade only long in a bullish regime, only short in a bearish regime, and stand aside or scale down in neutral. This simple filter often reduces whipsaw.
2) Confirmation layer
Keep your entry method the same (breaks, pullbacks, liquidity sweeps, order-flow cues) but require agreement from the composite regime or a fresh flip in the 𝕃/𝕊 markers.
3) Momentum breakouts
Look for the composite oscillator to leave neutrality while the EMA oscillator is already positive and the ATR-band state has flipped. Confluence across components is the intent.
4) Pullback entries within trend
In a bullish regime, consider entries on shallow composite dips that recover before breaching the lower band. Reverse the logic in a bearish regime.
5) Exits and risk
Common choices are:
reduce on a return to neutral,
exit on an opposite regime flip, or
trail behind your own stop model (ATR, structure, session levels) while using the ribbon for context.
6) Multi-timeframe workflow
Select a higher timeframe for bias with this indicator, and time executions on a lower timeframe. The indicator itself stays on a single chart; you can load a second chart or pane if you prefer a strict top-down process.
Strengths
Diversified evidence: Five independent perspectives keep the model from hinging on one idea.
Noise control: Neutral buffers and a composite layer reduce reaction to minor wiggles.
Clarity: A single oscillator and a clearly colored ribbon present a complex assessment in a simple form.
Adaptable: Thresholds and lookbacks let you tune for faster or slower markets.
Practical tuning
Thresholds: Wider bands produce fewer regime flips and longer holds. Narrower bands increase sensitivity.
Lookbacks: Shorter lookbacks emphasize recent action; longer lookbacks emphasize stability.
T3 normalization window and volume factor: Increase the window to suppress noise on choppy symbols; tweak the factor to adjust the smoother’s response.
ATR factor for the band state: Raise it to demand more decisive pressure before registering a shift; lower it to respond earlier.
Alerts
Built-in alerts trigger when the regime flips long or short. If you prefer confirmed signals, set your alerts to bar close on your timeframe. Intrabar the composite can move with price; bar-close confirmation stabilizes behavior.
Limitations
Sideways markets: Even with buffers, any trend model can chop in range-bound conditions.
Lag vs sensitivity trade-off: Tighter thresholds react faster but flip more often; wider thresholds are steadier but later.
Asset specificity: Volatility regimes differ. Expect to retune ATR and normalization settings when switching symbols or timeframes.
Final Remarks
Universal Trend+ is meant to act like a disciplined voting committee. Each component contributes a different angle on the same underlying question: is the market pressing up, pressing down, or doing neither with conviction. By standardizing and aggregating those views, you get a single regime read that plays well with many entry styles and risk frameworks, while keeping the heavy math under the hood.
Unfilled ImbalancesUNFILLED IMBALANCES TRACKER - IDENTIFY HIGH-PROBABILITY REVERSAL ZONES
This advanced indicator automatically detects and tracks unfilled price imbalances (Fair Value Gaps/FVGs) between candle bodies, providing traders with crucial levels where price is likely to return.
METHODOLOGY
This indicator employs an approach to imbalance detection that differs from standard FVG indicators:
1. Body-to-Body Gap Detection: Unlike typical FVG indicators that use wicks, this system exclusively tracks gaps between candle bodies, filtering out noise and focusing on the most significant price inefficiencies.
2. Dynamic Partial Fill Tracking: Our unique algorithm continuously monitors and adjusts imbalance zones as they're partially filled, showing exactly how much of each gap remains unfilled in real-time. This feature helps traders identify the strongest remaining levels.
3. Dual Fill Detection Logic: Proprietary fill detection offers two distinct modes - Distal (gap filled when touched) and Through (requires complete price movement through the entire gap), allowing adaptation to different market behaviors.
KEY FEATURES
Real-Time Imbalance Detection
Identifies body-to-body gaps between consecutive candles
Tracks both bullish and bearish imbalances
Automatically removes filled imbalances from the chart
Advanced Fill Detection Modes
Distal Mode: Imbalance considered filled when price touches the near edge
Through Mode: Requires price to completely trade through the gap
Body Fill Option: Requires candle body (not just wick) to enter the gap zone
Partial Fill Visualization
Watch imbalances shrink in real-time as price partially fills them
Visual representation shows exact percentage of gap remaining
Critical for position sizing and risk management
Flexible Display Options
Full Box Mode: Shows complete imbalance zones
Line Mode: Displays only critical edge levels for cleaner charts
Customizable visual parameters (colors, transparency, line thickness)
Smart Extension Features
Auto-extends visual elements to current price bar
Optional extension into future (0-500 bars)
Statistics table showing active imbalances count and fill rates
TRADING METHODOLOGY
Unfilled imbalances represent areas where price moved too quickly, leaving behind inefficiencies that markets tend to revisit. This indicator helps identify:
High-probability entry zones for trend continuation trades
Logical take profit targets at unfilled gaps
Stop loss placement beyond strong imbalance zones
Market structure breaks when key imbalances are filled
Supply and demand zone identification
HOW TO USE
Apply the indicator to any timeframe (works best on 15m and above)
Configure fill detection mode based on your trading style
Watch for price approaching unfilled imbalance zones
Use partial fill information to gauge zone strength
Combine with your existing strategy for confirmation
TARGET AUDIENCE & BEST PRACTICES
This tool is designed for traders who understand price action and market structure. It works best on:
Liquid instruments with consistent volume
Trending markets where imbalances are more likely to be revisited
Higher timeframes for more reliable signals
LIMITATIONS & CONSIDERATIONS
Imbalances may not always be filled, especially in strong trending markets
Performance varies across different market conditions and instruments
Should be used in conjunction with other analysis methods, not as a standalone system
Gap detection is based on candle closes and may miss intrabar movements
Historical imbalances from many bars ago may lose relevance
SETTINGS EXPLANATION
The indicator includes multiple customization options:
Require Body Fill: Controls whether wicks or bodies must enter gaps
Fill Detection Mode: Choose between Distal or Through modes
Visual Display: Select between boxes or lines
Alert Configuration: Set minimum age before fill alerts trigger
Debug Mode: Learn how the algorithm works with visual feedback
This indicator represents months of research into price inefficiency patterns and provides a systematic approach to identifying and tracking these critical market levels.
Note: Works on all timeframes and markets. Best results on liquid instruments with consistent volume patterns.
Muzyorae - ICT Quarter Cycle (Once)ICT Quarterly Theory — 06:00 to 12:00 (NY) Micro-Quarters
This tool focuses on the 06:00–12:00 New York time window and subdivides it into four equal “micro-quarters,” each 90 minutes long. In many ICT layouts this block is treated as a single higher-level quarter; here we break it into a finer structure to help you frame intraday narratives, liquidity runs, and session shifts with consistent time anchors.
How it’s partitioned
q1: 06:00 → 07:30 (NY)
q2: 07:30 → 09:00 (NY)
q3: 09:00 → 10:30 (NY)
q4: 10:30 → 12:00 (NY)
Each boundary is plotted at the exact start time, so you can see where one 90-minute cycle ends and the next begins. Labels can be placed above or below price, and colors/styles are configurable to match your chart.
Why it’s useful
Provides fixed time scaffolding for building AM session bias, execution windows, and narrative transitions.
Helps distinguish pre-cash open, cash open, and late-AM distribution/accumulation phases without guessing.
Standardizes replay and journaling: the same 90-minute checkpoints every day.
Key features
NY-time anchored (handles DST automatically through TradingView’s exchange time).
Four precise 90-minute segments inside the 06:00–12:00 block.
Customizable line styles, colors, and label placement (above/below).
Optional visibility controls to keep charts clean.
Note: Some ICT mappings name the 06:00–12:00 block differently (e.g., Q2 vs. Q3). This indicator uses the same time bounds regardless of the label you prefer; you can rename the macro label in settings if desired.
Disclaimer: Time framing does not guarantee outcomes. Use alongside your own analysis, risk management, and execution plan.
Muzyorae - ICT Quarterly Theory (Intraday)ICT Quarterly Theory — Intraday
What it is
ICT’s Quarterly Theory models the intraday session as repeating cycles of four “quarters.” On NY time, a trading day is split into four macro quarters of 6 hours each:
Q1: 00:00–06:00 NY (Asia / pre-London)
Q2: 06:00–12:00 NY (London–NY overlap, AM session)
Q3: 12:00–18:00 NY (Midday / PM session)
Q4: 18:00–24:00 NY (Asia re-open / late session)
Each macro quarter can be further subdivided into micro quarters of 90 minutes (q1–q4). This fractal view helps traders frame accumulation → expansion → distribution → liquidation phases and align executions with time-of-day liquidity.
Why it matters
Orderflow, liquidity raids, and displacement are highly time-dependent. Marking the quarters makes it easier to:
Anticipate when the market is likely to deliver the day’s expansion (often Q2) versus retracement/distribution (often Q3) or late liquidity runs (often Q4).
Compare today’s behavior to prior days within the same quarter windows.
Anchor bias, entries, and risk management to session-specific highs/lows rather than arbitrary clock times.
What this indicator shows
Macro quarters (6h): Vertical lines and optional labels (Q1–Q4) on NY time.
Micro quarters (90m): Optional finer verticals inside each macro quarter (q1–q4) for precise timing.
True Open (Q2 AM): Optional line at the AM session’s true open (default 06:00 NY) to study premium/discount development from the intraday benchmark.
Futures Sunday handling: Optional treatment of Sunday 18:00 NY as Q4 (useful for FX/futures).
Label controls: Choose above/below placement, offset, size, and colors; micro labels can be toggled independently.
Performance-friendly: De-duplicated labels and a look-back “days to show” setting keep charts clean.
How to use
Timeframe: Works on intraday charts (1–60m). 5–15m is a common balance of signal vs. noise.
Bias framing:
Map Asia (Q1), AM expansion (Q2), midday distribution (Q3), late session runs (Q4).
Compare where the daily range forms versus the True Open to gauge premium/discount and likely continuations.
Execution: Look for standard ICT tools (liquidity sweeps, FVGs, displacement, PD arrays) inside the active quarter to avoid fighting time-of-day flow.
Review: Scroll back multiple days and evaluate where the day’s high/low typically forms relative to Q2–Q3; adapt expectations.
Settings (high level)
Show Macro Labels / Micro Lines / Micro Labels
Label position (above/below), X-shift, colors, sizes
Days to show, de-dup window (prevents label overlaps)
Q2 True Open toggle and extension (doesn't work)
Include Sunday as Q4 (18:00 NY)
Notes
Quarter boundaries are fixed to America/New York session logic to match ICT timing.
This is a context tool; it does not generate buy/sell signals. Combine with your existing execution model.
Past behavior does not guarantee future results. Use proper risk management.
Goldbach Time IndicatorA simple, time-only study that highlights “Goldbach minutes”—bars where any of three time transforms hit a curated integer set. It’s designed for timing research, session rhythm analysis, and building time-of-day confluence with your own strategy.
What it shows
Three time transforms (per bar, using your UTC offset):
Minute (Raw) → the current minute mm (yellow)
Min+Hr → mm + hh with a smart 60→00 rule & capped to 77 (lime)
Min−Hr → mm − hh (only if ≥ 0) (orange)
A minute is flagged when a transform equals a value in the script’s Goldbach set:
0, 3, 7, 11, 14, 17, 23, 29, 35, 41, 44, 47, 50, 53, 56, 59, 65, 71, 77
Background tint whenever there is ≥1 hit on the bar.
Goldbach Count histogram (0–3) showing how many of the three transforms hit.
Reference lines at common values (0, 11, 23, 35, 47, 59).
Live info table (bottom-right): current time (with offset), each transform’s value, and hit status.
Optional crosshair pane label showing time and “Goldbach: YES/NO”.
“00” guardrails (fewer false pings)
Zeros are plotted only when they’re time-valid:
1- Full hour: raw minute is 00
2- Equal pair: mm == hh > 0 so mm−hh = 0
3- Sum=60: mm + hh == 60 so Min+Hr becomes 00
Inputs
UTC Offset (−12…+14): shifts the evaluation clock.
Show Pane Label: on-chart crosshair label (optional).
Show All Plot Lines: plot everything (incl. tiny values 0–3) or, when OFF, show only “meaningful” hits (≥4) plus the strictly-validated 00 cases.
How to use it
Add as a separate pane (overlay=false).
Choose your UTC offset so the indicator matches your session clock.
Look for clusters (Goldbach Count 2–3) and compare with your own trade triggers, session opens, or news windows.
Treat this as timing confluence, not a buy/sell signal.
Notes
Purely time-derived (no price inputs). It doesn’t look ahead; values can update on the live bar as time advances.
The Min+Hr track can exceed 59; it’s capped at 77 to fit the set.
No alerts are included by design; pair it with your strategy’s alerts if needed.
Short description:
Highlights bars where mm, mm+hh, or mm−hh land in a curated “Goldbach” set, with strict 00 rules, UTC offset, count histogram, and a live info table—useful for time-of-day confluence research.
Support and Resistance levels from Options DataINTRODUCTION
This script is designed to visualize key support and resistance levels derived from options data on TradingView charts. It overlays lines, labels, and boxes to highlight levels such as Put Walls (gamma support), Call Walls (gamma resistance), Gamma Flip points, Vanna levels, and more.
These levels are intended to help traders identify potential areas of price magnetism, reversal, or breakout based on options market dynamics. All calculations and visualizations are based on user-provided data pasted into the input field, as Pine Script cannot directly fetch external options data due to platform limitations (explained below).
For convenience, my website allows users to interact with a bot that will generate the string for up to 30 tickers at once getting nearly real-time data on demand (data is cached for 15min). With the output string pasted into this indicator, it's a bliss to shuffle through your portfolio and see those levels for each ticker.
The script is open-source under TradingView's terms, allowing users to study, modify, and improve it. It draws inspiration from common options-derived metrics like gamma exposure and vanna, which are widely discussed in financial literature. No external code is copied without rights; all logic is original or based on standard mathematical formulas.
How the Options Levels Are Calculated
The levels displayed by this script are not computed within Pine Script itself—instead, they rely on pre-calculated values provided by the user (via a pasted data string). These values are derived from options chain data fetched from financial APIs (e.g., using libraries like yfinance in Python). Here's a step-by-step overview of how these levels are generally calculated externally before being input into the script:
Fetching Options Data:
Historical and current options chain data for a ticker (e.g., strikes, open interest, volume, implied volatility, expirations) is retrieved for near-term expirations (e.g., up to 90 days).
Current stock price is obtained from recent history.
Gamma Support (Put Wall) and Resistance (Call Wall):
Gamma Calculation: For each option, gamma (the rate of change of delta) is computed using the Black-Scholes formula:
gamma = N'(d1) / (S * sigma * sqrt(T))
where S is the stock price, K is the strike, T is time to expiration (in years), sigma is implied volatility, r is the risk-free rate (e.g., 0.0445), and N'(d1) is the normal probability density function.
Weighted gamma is multiplied by open interest and aggregated by strike.
The Put Wall is the strike below the current price with the highest weighted gamma from puts (acting as support).
The Call Wall is the strike above the current price with the highest weighted gamma from calls (acting as resistance).
Short-term versions focus on strikes closer to the money (e.g., within 10-15% of the price).
Gamma Flip Level:
Net dealer gamma exposure (GEX) is calculated across all strikes:
GEX = sum (gamma * OI * 100 * S^2 * sign * decay)
where sign is +1 for calls/-1 for puts, and decay is 1 / sqrt(T).
The flip point is the price where net GEX changes sign (from positive to negative or vice versa), interpolated between strikes.
Vanna Levels:
Vanna (sensitivity of delta to volatility) is calculated:
vanna = -N'(d1) * d2 / sigma
where d2 = d1 - sigma * sqrt(T).
Weighted by open interest, the highest positive and negative vanna strikes are identified.
Other Levels:
S1/R1: Significant strikes with high combined open interest and volume (80% OI + 20% volume), below/above price for support/resistance.
Implied Move: ATM implied volatility scaled by S * sigma * sqrt(d/365) (e.g., for 7 days).
Call/Put Ratio: Total call contracts divided by put contracts (OI + volume).
IV Percentage: Average ATM implied volatility.
Options Activity Level: Average contracts per unique strike, binned into levels (0-4).
Stop Loss: Dynamically set below the lowest support (e.g., Put Wall, Gamma Flip), adjusted by IV (tighter in low IV).
Fib Target: 1.618 extension from Put Wall to Call Wall range.
Previous day levels are stored for comparison (e.g., to detect Call Wall movement >2.5% for alerts).
Effect as Support and Resistance in Technical Trading
Options levels like gamma walls influence price action due to market maker hedging:
Put Wall (Gamma Support): High put gamma below price creates a "magnet" effect—market makers buy stock as price falls, providing support. Traders might look for bounces here as entry points for longs.
Call Wall (Gamma Resistance): High call gamma above price leads to selling pressure from hedging, acting as resistance. Rejections here could signal trims, sells or even shorts.
Gamma Flip: Where gamma exposure flips sign, often a volatility pivot—crossing it can accelerate moves (bullish above, bearish below).
Vanna Levels: Positive/negative vanna indicate volatility sensitivity; crosses may signal regime shifts.
Implied Move: Shows expected range; prices outside suggest overextension.
S1/R1 and Fib Target: Volume/OI clusters act as classic S/R; Fib extensions project upside targets post-breakout.
In trading, these are not guarantees—combine with TA (e.g., volume, trends). High activity levels imply stronger effects; low CP ratio suggests bearish sentiment. Alerts trigger on proximities/crosses for awareness, not advice.
Limitations of the TradingView Platform for Data Pulling
TradingView's Pine Script is sandboxed for security and performance:
No direct internet access or API calls (e.g., can't fetch yfinance data in-script).
Limited to chart data/symbol info; no real-time options chains.
Inputs are static per load; updates require manual pasting.
Caching isn't persistent across sessions.
This prevents dynamic data pulling, ensuring scripts remain lightweight but requiring external tools for fresh data.
Creative Solution for On-Demand Data Pulling
To overcome these limitations, users can use external tools or scripts (e.g., Python-based) to fetch and compute levels on demand. The tool processes tickers, generates a formatted string (e.g., "TICKER:level1,level2,...;TIMESTAMP:unix;"), and users paste it into the script's input. This keeps data fresh without violating platform rules, as computation happens off-platform. For example, run a local script to query APIs and output the string—adaptable for any ticker.
Script Functionality Breakdown
Inputs: Custom data string (parsed for levels/timestamp); toggles for short-term/previous/Vanna/stop loss; style options (colors, transparency).
Parsing: Extracts levels for the chart symbol; gets timestamp for "updated ago" display.
Drawing: Lines/labels for levels; boxes for gamma zones/implied move; clears old elements on updates.
Info Panel: Top-right summary with metrics (CP ratio, IV, distances, activity); emojis for quick status.
Alerts: Conditions for proximities, crosses, bounces (e.g., 0.5% bounce from Put Wall).
Performance: Uses vars for persistence; efficient for real-time.
This script is educational—test thoroughly. Not financial advice; past performance isn't indicative of future results. Feedback welcome via TradingView comments.
Draw Trend LinesSometimes the simplest indicators help traders make better decisions. This indicator draws simple trend lines, the same lines you would draw manually.
To trade with an edge, traders need to interpret the recent price action, whether it's noisy or choppy, or it's trending. Trend Lines will help traders with that interpretation.
The lines drawn are:
1. lower tops
2. higher bottoms
Because trends are defined as higher lows, or lower highs.
When you see "Wedges", formed by prices chopping between top and bottom trend lines, that's noisy environment not to be traded. When you learn to "stop yourself", you already have an edge.
Often when you see a trend, it's still not too late. Trend will continue until it doesn't. But the caveat is a very steep trend is unlikely to continue, because buying volume is extremely unbalanced to cause the steep trend, and that volume will run out of energy. (Same on the sell side of course)
Trends can reverse, and when price action breaks the trend line, Breakout/Breakdown traders can take this as an entry signal.
Enjoy, and good trading!
Volume Profile + Pivot Levels [ChartPrime]⯁ OVERVIEW
Volume Profile + Pivot Levels combines a rolling volume profile with price pivots to surface the most meaningful levels in your selected lookback window. It builds a left-side profile from traded volume, highlights the session’s Point of Control (PoC) , and then filters pivot highs/lows so only those aligned with significant profile volume are promoted to chart levels. Each promoted level extends forward until price retests it—so your chart stays focused on levels that actually matter.
⯁ KEY FEATURES
Rolling Volume Profile (Period & Resolution)
Calculates a profile over the last Period bars (default 200). The profile is discretized into Volume Profile Resolution bins (default 50) between the highest high and lowest low inside the window. Each bin accumulates traded volume and is drawn as a smooth left-side polyline for compact, lightweight rendering.
HL = array.new()
// collect highs/lows over 'start' bars to define profile range
for i = 0 to start - 1
HL.push(high ), HL.push(low )
H = HL.max(), L = HL.min()
bin_size = (H - L) / bins
// accumulate per-bin volume
for i = 0 to bins - 1
for j = 0 to start - 1
if close >= (L + bin_sizei) - bin_size and close < (L + bin_size*(i+1)) + bin_size
Bins += volume
Delta-Aware Coloring
The script tracks up-minus-down volume across all period to compute a net Delta . The profile, PoC line, and PoC label adopt a teal tone when net positive, and maroon when net negative—an immediate read on buyer/seller dominance inside the window.
Point of Control (PoC) + Volume Label
Automatically marks the highest-volume bin as the PoC . A horizontal PoC line extends to the last bar, and a label shows the absolute volume at the PoC. Toggle visibility via PoC input.
Pivot Detection with Volume Filter
Identifies raw pivots using Length (default 10) on both sides of the bar. Each candidate pivot is then validated against the profile: only pivots that land within their bin and meet or exceed the Filter % threshold (percentage of PoC volume) are promoted to chart levels. This removes weak, low-participation pivots.
// pivot promotion when volume% >= pivotFilter
if abs(mid - p.value) <= bin_size and volPercent >= pivotFilter
// draw labeled pivot level
line.new(p.index - pivotLength, p.value, p.index + pivotLength, p.value, width = 2)
Forward-Extending, Self-Stopping Levels
Promoted pivot levels extend forward as dotted rays. As soon as price intersects a level (high/low straddles it), that level stops extending—so your chart doesn’t clutter with stale zones.
Concise Level Labels (Volume + %)
Each promoted pivot prints a compact label at the pivot bar with its bin’s absolute volume and percentage of PoC volume (ordering flips for highs vs. lows for quick read).
Lightweight Visuals
The volume profile is rendered as a smooth polyline rather than dozens of boxes, keeping charts responsive even at higher resolutions.
⯁ SETTINGS
Volume Profile → Period : Lookback window used to compute the profile (max 500).
Volume Profile → Resolution : Number of bins; higher = finer structure.
Volume Profile → PoC : Toggle PoC line and volume label.
Pivots → Display : Show/hide volume-validated pivot levels.
Pivots → Length : Pivot detection left/right bars.
Pivots → Filter % 0–100 : Minimum bin strength (as % of PoC) required to promote a pivot level.
⯁ USAGE
Read PoC direction/color for a quick net-flow bias within your window.
Prioritize promoted pivot levels —they’re backed by meaningful participation.
Watch for first retests of promoted levels; the line will stop extending once tested.
Adjust Period / Resolution to match your timeframe (scalps → higher resolution, shorter period; swings → lower resolution, longer period).
Tighten or loosen Filter % to control how selective the level promotion is.
⯁ WHY IT’S UNIQUE
Instead of plotting every pivot or every profile bar, this tool cross-checks pivots against the profile’s internal volume weighting . You only see levels where price structure and liquidity overlap—clean, data-driven levels that self-retire after interaction, so you can focus on what the market actually defends.
PulseMA Oscillator Normalized v2█ OVERVIEW
PulseMA Oscillator Normalized v2 is a technical indicator designed for the TradingView platform, assisting traders in identifying potential trend reversal points based on price dynamics derived from moving averages. The indicator is normalized for easier interpretation across various market conditions, and its visual presentation with gradients and signals facilitates quick decision-making.
█ CONCEPTS
The core idea of the indicator is to analyze trend dynamics by calculating an oscillator based on a moving average (EMA), which is then normalized and smoothed. It provides insights into trend strength, overbought/oversold levels, and reversal signals, enhanced by gradient visualizations.
Why use it?
Identifying reversal points: The indicator detects overbought and oversold levels, generating buy/sell signals at their crossovers.
Price dynamics analysis: Based on moving averages, it measures how long the price stays above or below the EMA, incorporating trend slope.
Visual clarity: Gradients, fills, and colored lines enable quick chart analysis.
Flexibility: Configurable parameters, such as moving average lengths or normalization period, allow adaptation to various strategies and markets.
How it works?
Trend detection: Calculates a base exponential moving average (EMA with PulseMA Length) and measures how long the price stays above or below it, multiplied by the slope for the oscillator.
Normalization: The oscillator is normalized based on the minimum and maximum values over a lookback period (default 150 bars), scaling it to a range from -100 to 100: (oscillator - min) / (max - min) * 200 - 100. This ensures values are comparable across different instruments and timeframes.
Smoothing: The main line (PulseMA) is the normalized oscillator (oscillatorNorm). The PulseMA MA line is a smoothed version of PulseMA, calculated using an SMA with the PulseMA MA length. As PulseMA MA is smoothed, it reacts more slowly and can be used as a noise filter.
Signals: Generates buy signals when crossing the oversold level upward and sell signals when crossing the overbought level downward. Signals are stronger when PulseMA MA is in the overbought or oversold zone (exceeding the respective thresholds for PulseMA MA).
Visualization: Draws lines with gradients for PulseMA and PulseMA MA, levels with gradients, gradient fill to the zero line, and signals as triangles.
Alerts: Built-in alerts for buy and sell signals.
Settings and customization
PulseMA Length: Length of the base EMA (default 20).
PulseMA MA: Length of the SMA for smoothing PulseMA MA (default 20).
Normalization Lookback Period: Normalization period (default 150, minimum 10).
Overbought/Oversold Levels: Levels for the main line (default 100/-100) and thresholds for PulseMA MA, indicating zones where PulseMA MA exceeds set values (default 50/-50).
Colors and gradients: Customize colors for lines, gradients, and levels; options to enable/disable gradients and fills.
Visualizations: Show PulseMA MA, gradients for overbought/oversold/zero levels, and fills.
█ OTHER SECTIONS
Usage examples
Trend analysis: Observe PulseMA above 0 for an uptrend or below 0 for a downtrend. Use different values for PulseMA Length and PulseMA MA to gain a clearer trend picture. PulseMA MA, being smoothed, reacts more slowly and can serve as a noise filter to confirm trend direction.
Reversal signals: Look for buy triangles when PulseMA crosses the oversold level, especially when PulseMA MA is in the oversold zone. Similarly, look for sell triangles when crossing the overbought level with PulseMA MA in the overbought zone. Such confirmation increases signal reliability.
Customization: Test different values for PulseMA Length and PulseMA MA on a given instrument and timeframe to minimize false signals and tailor the indicator to market specifics.
Notes for users
Combine with other tools, such as support/resistance levels or other oscillators, for greater accuracy.
Test different settings for PulseMA Length and PulseMA MA on the chosen instrument and timeframe to find optimal values.
Day Range Breakout Strategy + Trend Structure Filter🚀 Enhanced Strategy for Breaking Previous Day’s Extremes with Market Structure-Based Trend
The strategy focuses on breakouts of previous day’s highs and lows, filtered by trend direction based on market structure.
🔑 Key Improvements
1️⃣ Solved the repainting issue.
There are similar strategies in the community, but the historical results of those algorithms do not correspond to the results of real backtesting.
2️⃣ Added a trend filter.
In most cases, this makes it possible to achieve higher profitability. It works as follows:
The script determines market structure based on a defined number of previous candles.
If there are higher highs and higher lows, this is considered an uptrend structure.
If there are lower highs and lower lows, this is considered a downtrend structure.
The trend filter is adjusted using the Lookback Period setting.
3️⃣ Choice of entry principle.
Implemented the ability to choose whether trades are opened based on closing prices or by high/low breakout, which allows finding the optimal settings for a specific instrument.
4️⃣ Improved entry/exit logic.
When an opposite signal appears, before entering a trade, the script first closes the previous position.
✅ This makes the strategy fully ready for algorithmic trading via webhook on any exchange that supports this function.
5️⃣ Better visualization.
🟥 Red and 🟩 green backgrounds indicate the trend direction.
⚙️ How It Works
The principle of the strategy as follows:
Wait for the breakout of the previous day’s high or low.
Enter long on a breakout of the high, or short on a breakout of the low in the market structure trend direction.
Exit occurs on the breakout of the opposite extreme.
📈 This allows capturing long trends.
⚠️ But, like all similar strategies, in a sideways market it produces losing trades.
⚙️ Default Settings
Breakout Confirmation:
The breakout is determined by the candle close.
You can also choose high/low, but this often gives more false signals. However, on some assets, it may show higher profitability in backtesting.
Trend Structure Period:
The default value is 15.
This means the script analyzes the last 15 candles on the selected timeframe to determine market structure as described above.
Position Size:
Fixed at $1,000, which is 1% of the initial capital of $100,000 to keep risks under control.
Commission:
Set to 0.1%, which is sufficient for most cryptocurrency exchanges.
Slippage:
Configured at 1 tick.
Funding Note:
Keep in mind that funding is not included in this strategy.
It’s impossible to predict whether it will be positive or negative, and it can vary significantly across exchanges, so it is not part of the default settings.
🕒 Recommended Settings
Timeframe: 1H and higher
On lower timeframes → significant discrepancies may occur between historical and real backtesting data.
On higher timeframes → minor differences are possible, related to slippage, sharp moves, and other unpredictable situations.
⚠️ Important Notes
Always remember: Strategy results may not repeat in the future.
The market constantly changes, so:
✅ Monitor the situation
✅ Backtest regularly
✅ Adjust settings for each asset
Also remember about possible bugs in any algorithmic trading strategy.
Even if a script is well-tested, no one knows what unpredictable events the market may bring tomorrow.
⚠️ Risk Management:
Do not risk more than 1% of your deposit per trade, otherwise you may lose your account balance, since this strategy works without stop losses.
⚠️ Disclaimer
The author of the strategy does not encourage anyone to use this algorithm and bears no responsibility for any possible financial losses resulting from its application!
Any decision to use this strategy is made personally by the owners of TradingView accounts and cryptocurrency exchange accounts.
📝 Final Notes
This is not the final version. I already have ideas on how to improve it further, so follow me to not miss updates.
🐞 Bug Reports
If you notice any bugs or inconsistencies in my algorithm,
please let me know — I will try to fix them as quickly as possible.
💬 Feedback & Suggestions
If you have any ideas on how this or any of my other strategies can be improved, feel free to write to me. I will try to implement your suggestions in the script.
Wishing everyone good luck and stable profits! 🚀💰
Session & Swing Levels + Smart AlertsMulti-Timeframe Level Tracker with Advanced Alert System
This comprehensive indicator combines session-based trading levels with multi-timeframe swing analysis, for key level identification and alert management.
Key Features:
Session Analysis:
Asia Session (7:00 PM - 4:00 AM ET) - Tracks high/low levels during Asian market hours
London Session (3:00 AM - 11:00 AM ET) - Identifies key European session levels
Previous Day Levels - Displays prior day's high and low levels
Visual session backgrounds and customizable timezone support
Multi-Timeframe Swing Detection:
Up to 5 configurable timeframes (default: 15m, 1h, 4h, 1D, 1W)
Intelligent swing high/low identification using customizable pivot strength
Each timeframe uses distinct colors for easy identification
Advanced Alert System:
Anti-repainting protection - Alerts only trigger on confirmed bars for reliable live trading
Specific alert messages for each level type (Asia High, London Low, Previous Day levels, etc.)
Individual alert toggles for each session and timeframe
Timestamps in Eastern Time for consistency
Visual Customization:
Independent color schemes for sessions and timeframes
Configurable line styles (solid, dashed, dotted) and widths
Separate styling for active vs. mitigated levels
Optional line extension past mitigation points
📊 How It Works:
Level Creation: Automatically identifies and draws key levels at session closes
Mitigation Detection: Monitors price interaction with levels in real-time
Visual Updates: Changes line appearance when levels are crossed
Smart Alerts: Sends targeted notifications with level-specific information
Relative and Absolute Support Resistance Levels (MTF)Relative and Absolute SR Levels
1. Relative SR Levels
This indicator is unique and powerful because it doesn't rely on the traditional method of just finding swing highs and lows. Instead, it uses a more sophisticated approach focused on identifying 'Candle Strength' on a higher timeframe. This method helps pinpoint more reliable and impactful price zones.
Key Features that Make this Indicator Unique:
1. Non - Repainting
2. Zero Lag
3. Higher and Current Time Frame Support
4. Intelligent Algo for Dynamic Line Visibility
5. Very Sophisticated approach than traditional SR Levels
Higher Timeframe (HTF) Analysis:
The indicator calculates S&R levels based on a timeframe larger than your current chart. For example, if you are on a 5-minute chart, you can set the indicator to analyze the 30-minute or 1-hour timeframe.
This is crucial because levels from larger timeframes often hold more significance and are respected more frequently on smaller timeframes.
Focus on Candle Strength :
This feature is highly effective because Candle Strength typically indicate strong market momentum and often leave behind important S&R levels.
Dynamic Line Visibility:
This is one of the most clever features. The indicator draws all identified levels but keeps them invisible by default. On the last bar, it intelligently analyses the current price and makes only a select number of levels visible. This prevents your chart from becoming cluttered.
The number of visible lines is completely customizable using the 'Number of Lines to Display' input. You can set it to show just the 2 or 3 most relevant levels, for example.
Automatic S&R Selection:
The indicator automatically sorts the identified S&R levels based on their distance from the current price. It then picks the closest lines, both above and below the current price, to display. This ensures that the levels shown on the chart are the ones most relevant to the current market situation, helping you focus on the most immediate areas of interest.
2. Absolute Levels:
This indicator is a powerful tool designed to identify and visualize "Absolute Levels", which are essentially significant price zones created by strong market movements.
This works on current timeframe and doesn't use Higher/Multi Time Frame Concept.
ZLEMA Trend Index 2.0ZTI — ZLEMA Trend Index 2.0 (0–1000)
Overview
Price Mapped ZTI v2.0 - Enhanced Zero-Lag Trend Index.
This indicator is a significant upgrade to the original ZTI v1.0, featuring enhanced resolution from 0-100 to 0-1000 levels for dramatically improved price action accuracy. The Price Mapped ZTI uses direct price-to-level mapping to eliminate statistical noise and provide true proportional representation of market movements.
Key Innovation: Instead of statistical normalization, this version maps current price position within a user-defined lookback period directly to the ZTI scale, ensuring perfect correlation with actual price movements. I believe this is the best way to capture trends instead of directly on the charts using a plethora of indicators which introduces bad signals resulting in drawdowns. The RSI-like ZTI overbought and oversold lines filter valid trends by slicing through the current trading zone. Unlike RSI that can introduce false signals, the ZTI levels 1 to 1000 is faithfully mapped to the lowest to highest price in the current trading zone (lookback period in days) which can be changed in the settings. The ZTI line will never go off the beyond the ZTI levels in case of extreme trend continuation as the trading zone is constantly updated to reflect only the most recent bars based on lookback days.
Core Features
✅ 10x Higher Resolution - 0-1000 scale provides granular movement detection
✅ Adjustable Trading Zone - Customizable lookback period from 1-50 days
✅ Price-Proportional Mapping - Direct correlation between price position and ZTI level
✅ Zero Statistical Lag - No rolling averages or standard deviation calculations
✅ Multi-Strategy Adaptability - Single parameter adjustment for different trading styles
Trading Zone Optimization
📊 Lookback Period Strategies
Short-term (1-3 days):
Ultra-responsive to recent price action
Perfect for scalping and day trading
Tight range produces more sensitive signals
Medium-term (7-14 days):
Balanced view of recent trading range
Ideal for swing trading
Captures meaningful support/resistance levels
Long-term (21-30 days):
Broader market context
Excellent for position trading
Smooths out short-term market noise
⚡ Market Condition Adaptation
Volatile Markets: Use shorter lookback (3-5 days) for tighter ranges
Trending Markets: Use longer lookback (14-21 days) for broader context
Ranging Markets: Use medium lookback (7-10 days) for clear boundaries
🎯 Timeframe Optimization
1-minute charts: 1-2 day lookback
5-minute charts: 2-5 day lookback
Hourly charts: 7-14 day lookback
Daily charts: 21-50 day lookback
Trading Applications
Scalping Setup (2-day lookback):
Super tight range for quick reversals
ZTI 800+ = immediate short opportunity
ZTI 200- = immediate long opportunity
Swing Trading Setup (10-day lookback):
Meaningful swing levels captured
ZTI extremes = high-probability reversal zones
More stable signals, reduced whipsaws
Advanced Usage
🔧 Real-Time Adaptability
Trending days: Increase to 14+ days for broader perspective
Range-bound days: Decrease to 3 days for tighter signals
High volatility: Shorter lookback for responsiveness
Low volatility: Longer lookback to avoid false signals
💡 Multi-Timeframe Approach
Entry signals: Use 7-day ZTI on main timeframe
Trend confirmation: Use 21-day ZTI on higher timeframe
Exit timing: Use 3-day ZTI for precise exits
🌐 Session Optimization
Asian session: Shorter lookback (3-5 days) for range-bound conditions
London/NY session: Longer lookback (7-14 days) for trending conditions
How It Works
The indicator maps the current price position within the specified lookback period directly to a 0-1000 scale and plots it using ZLEMA (Zero Lag Exponential Moving Average) which has the least lag of the available popular moving averages:
Price at recent high = ZTI at 1000
Price at recent low = ZTI at 1
Price at mid-range = ZTI at 500
This creates perfect proportional representation where every price movement translates directly to corresponding ZTI movement, eliminating the false signals common in traditional oscillators.
This single, versatile indicator adapts to any market condition, timeframe, or trading style through one simple parameter adjustment, making it an essential tool for traders at every level.
Credits
ZLEMA techniques widely attributed to John Ehlers.
Disclaimer
This tool is for educational purposes only and is not financial advice. Backtest and forward‑test before live use, and always manage risk.
Please note that I set this as closed source to prevent source code cloning by others, repackaging and republishing which results in multiple confusing choices of the same indicator.
master2.0 ✅ How It Works
The Master 2.0 indicator is a custom-developed trend and signal tool based on a modified range filter algorithm, specifically designed for clarity, non-repainting signals, and actionable trade execution.
🔧 1. Custom Adaptive Range Filter (Original Logic)
At its core is a custom-built filter that adapts to price volatility. Unlike standard MAs or public-domain range indicators, this version:
(1) Uses a double-smooth EMA logic on absolute price changes.
(2)Multiplies the range by an Impact Factor, giving a dynamic width.
(3) Applies a custom filter algorithm that limits noise and locks on trend movement.
This logic was modified from the concept of range-based filters, but entirely re-engineered to serve trend-following and TP triggering.
🟩 2. Visual Trend Zones (Upper/Lower Lines)
The filtered value generates two dynamic lines:
(1)One above the filter
(2)One below the filter
These create a color-filled “trend tunnel”, making it easy to identify:
(3)🔵 Uptrend (blue fill)
(4)🔴 Downtrend (red fill)
(5)🟡 Sideways market (no fill or neutral color)
These visual cues allow instant identification of market direction without reading complex data
📈 3. Smart Buy/Sell Signals (Confirmed, Non-Repainting ✅)
(1)🚀 Smart Buy is triggered when a confirmed uptrend begins (filter shifts upward with a
new confirmation).
(2)🔻 Smart Sell appears at the start of a confirmed downtrend.
(3)Sideways filters out choppy signals, reducing whipsaws.
✅ All signals are confirmed only after the candle closes (barstate.isconfirmed is used), meaning:
🔒 No repainting or false previews — 100% reliable on live charting.
💰 4. Take Profit System (Unique Utility)
This indicator tracks the entry price after a signal, and auto-detects when a Take Profit level
(in pips) is reached.
(1)💰 Book Profit alert is triggered above/below the candle.
(2)Helps secure gains without relying on external bots or platforms.
🔔 5. Real-Time Alerts Included
All alerts are built-in for automation:
(1)🚀 Smart Buy
(2)🔻 Smart Sell
(3)💰 Book Profit (Buy/Sell)
Advanced Candlestick Patterns [MAB]🔎 Overview
Advanced Candlestick Patterns is a framework that detects well-defined candlestick patterns with a consistent Validation / Devalidation process, optional swing-context filters , and a hidden-candle reconstruction mode for stricter pattern anatomy.
The goal is clarity and discipline: signals are described, thresholds are visible, and risk parameters are explicit.
⚙️ Key Features
📊 Pattern Engine (Extensible) — Modular detection methods so new patterns can be added without changing workflow.
✅ Validation / Devalidation — Clear rules for confirmation and invalidation; plotted with distinct lines for transparency.
📈 Swing Filter (Optional) — Require setups to align with local swing highs/lows via selectable lookbacks.
🧩 Hidden-Candle Mode — Reconstructs OHLC (prev close + current extremes) to reveal intra-bar structure; visuals may differ from native bars.
🎯Target Systems — Choose Points, Percentage, or Risk:Reward; info label shows EP/SL/TP-1.
Performance-Safe Controls — Label size, info toggle, and non-editable internal lines.
📈 How to Use
Add the script to your chart (after access is granted).
Choose pattern types for Bullish and Bearish detection from the inputs.
⁃ Enable Hidden Candles if you want stricter intra-bar anatomy.
⁃ Enable Detect near Swings and pick a swing length (Smaller/Medium/Bigger).
💬Decide whether to show Trade Info Labels (Entry, SL, Target 1).
🎯Set your Target Mode (Points / Percentage / Risk:Reward) and parameter.
✅ Use the plotted Validation (confirmation) and Devalidation (invalidation) levels to plan.
Tip: With Detect near Swings ON, a setup counts only if the prior bar’s high/low equals the rolling extreme. If too strict, adjust the lookback or disable.
💡Recommended charting
• Intraday structure: 5m–15m–30m
• Swing confirmation: 2h-4h–1D
• Test across multiple symbols; avoid cherry-picking.
🛡 Risk Management System
This tool displays mechanics— you control the risk. A common template:
Entry : Entry is typically considered only after validation.
Stop-Loss : Initial SL at the structure-defined level (displayed).
Target 1 : Choose Points / % / Risk:Reward (e.g., 1R).
After TP-1 : Consider partial profits and trail the remainder via ATR / short MA / swing boxes (user-defined).
No target or trail is guaranteed—market conditions change.
🧭 Visual Guide
#1. Input Selections Window:
#2. Bearish Patterns: Valid and Devaild rules for the Bearish Patterns
#3. Bullish Patterns: Valid and Devalied rules for the Bullish Patterns
#4. Spotted Bullish Harami Pattern & Trade Info label explained:
#5. Spotted Bearish Engulfing Pattern:
⚠️ Important Notes
⏱️ Timeframes : Works on all timeframes. For intraday, start 5m–15m; for swing, use 4h–1D. Evaluate on bar close .
✅ Instruments : Any OHLC market (Crypto/FX/Indices/Equities). Forward-adjusted data may show minor visual differences.
🧩 Hidden-Candle Mode : Detection follows reconstructed bars; visuals may differ from native candles.
🔔 Signal Lifecycle : Deterministic New → Validated → Devalidated . Levels reset to na when devalidated.
🚫 No Look-Ahead : No repainting after bar close. Intrabar values can update until the bar closes.
📊 Performance : High label/line counts can slow charts on lower TFs; reduce label size or toggle Trade Info if needed.
🔐 Conclusion and Access
This framework promotes a disciplined, rules-first approach to pattern-based trading: clear definitions, visible Validation/Devalidation levels, and explicit risk references.
👉 For how to request access, please see the Author’s Instructions section below.
🧾 Disclaimer
This script is intended solely for educational and informational purposes. It does not provide financial or investment advice, nor should it be interpreted as a recommendation to buy, sell, or trade any securities or derivatives.
We are not SEBI-registered advisors , and the strategies shown are not personalized guidance . Past performance or backtested results are not indicative of future outcomes and should not be relied upon for live trading without thorough evaluation.
Trading in financial markets—especially options—involves significant risk. Both profits and losses are inherent to the trading process.
MuLegend's Break & Retest StrategyThis strategy was produced to help traders who trade NQ: win! try it out on a demo, see how you like and happy trading!! Works well if you are a break & retest trader!!!
MuMu
@atltime2shine on IG