AP_CandlePatterns_v3
Created by : Andrew Palladino
Date: 1/29/2017
This indicator displays a message above/below a bar when certain candle patterns appear. The indicator currently supports two candle patterns.
Consecutive Up/Down Bars:
The indicator searches for instances where there are more than n number of consecutive up bars or down bars on a given time frame. For example, the user can specify the minimum number of consecutive up/down bars, default is set to 8. When the number of consecutive up/down bars is greater or equal to 8, a label will be displayed above the high, for up bars, and below the low for down bars. The color of the next candle will turn red when the criteria is met.
Bearish/Bullish Pin Bar Reversal Signals:
The indicator will alert the trader when there is a Pin bar formation on the current time frame.
The Pin bar trend period is currently set to 20 bars, which translates to the following:
In an uptrend, the high of the Pin bar must be the highest of the last 20 bars.
In a downtrend, the low of the Pin bar must be the lowest of the last 20 bars. The trend bar period acts as a filter which ignores any pin bar formation during a trend continuation move. A trend continuation move is subjective and must be quantified by the user by setting the trend period value accordingly.
The trader has the ability to enable or disable individual candle formations.
Additional patterns will be added in the future.
Search in scripts for "liquidity"
AP_CandlePatterns_V2Created by : Andrew Palladino
Date: 1/29/2017
This indicator displays a message above/below a bar when certain candle patterns appear. The indicator currently supports two candle patterns.
Consecutive Up/Down Bars:
The indicator searches for instances where there are more than n number of consecutive up bars or down bars on a given time frame. For example, the user can specify the minimum number of consecutive up/down bars, default is set to 8. When the number of consecutive up/down bars is greater or equal to 8, a label will be displayed above the high, for up bars, and below the low for down bars. The color of the next candle will turn red when the criteria is met.
Bearish/Bullish Pin Bar Reversal Signals:
The indicator will alert the trader when there is a Pin bar formation on the current time frame.
The Pin bar trend period is currently set to 20 bars, which translates to the following:
In an uptrend, the high of the Pin bar must be the highest of the last 20 bars.
In a downtrend, the low of the Pin bar must be the lowest of the last 20 bars. The trend bar period acts as a filter which ignores any pin bar formation during a trend continuation move. A trend continuation move is subjective and must be quantified by the user by setting the trend period value accordingly.
The trader has the ability to enable or disable individual candle formations.
Additional patterns will be added in the future.
AP_CandlePatternsCreated by : Andrew Palladino
Date: 1/29/2017
This indicator displays a message above/below a bar when certain candle patterns appear. The indicator currently supports two candle patterns.
Consecutive Up/Down Bars:
The indicator searches for instances where there are more than n number of consecutive up bars or down bars on a given time frame. For example, the user can specify the minimum number of consecutive up/down bars, default is set to 8. When the number of consecutive up/down bars is greater or equal to 8, a label will be displayed above the high, for up bars, and below the low for down bars. The color of the next candle will turn red when the criteria is met.
Bearish/Bullish Pin Bar Reversal Signals:
The indicator will alert the trader when there is a bearish or bullish Pin bar reversal on the current time frame.
The trader has the ability to enable or disable individual candle formations. Additional patterns will be added in the future.
AP_CandlePatterns_v1The indicator currently only looks for instances where there are more than n number of consecutive up bars or down bars on a given time frame. For example, the user can specify the minimum number of consecutive up/down bars, default is set to 8. When the number of consecutive up/down bars is greater or equal to 8, a label will be displayed above the high, for up bars, and below the low for down bars. The color of the next candle will turn red when the criteria is met.
Additional candle patterns will be added in the near future.
AP_NthPivotCreated by: Andrew Palladino
Date: 1/16/2017
This indicator will display ONLY unhit pivots preceded by additional consecutive unhit pivots.
A pivot is defined as unhit when price travels above or below it without ever crossing the pivot level. A pivot is hit only when prices crosses that level at any given time after the pivot is formed.
The trader can change the following settings:
Pivot Time Frame can be set to: 15, 60, 240, D, W, M or Y
Minimum number of consecutive unhit pivots to display: Default set to 1.
GBPAUD Example:
In the example above there are two AP_NthPivot indicators overlayed.
The blue pivot corresponds to the most recent unhit daily pivot preceded by a second unhit pivot. The red pivot corresponds to the most recent unhit weekly pivot preceded by a second unhit pivot.
The minimum number of consecutive unhit pivots to display, for both cases, is set to 2.
Unhit pivots can become high probability targets, especially when the count is set to 2 or more.
Liquidity_Detection_Fx_Shepherd [ALLDYN]### Breakdown of the Basic "Fx_Shepherd_Liquidity" Script
#### 1. **Purpose of the Script:**
This basic version of the "Fx_Shepherd_Liquidity" script is designed to help traders detect potential liquidity grabs by analyzing price movements and candle patterns in the market. It works by identifying large price deviations and compares multiple candles to detect liquidity sweeps either to the upside or downside.
#### 2. **How it Works:**
- **User Inputs:**
- `Maru_rate`: This is a user-defined percentage that helps determine how much the price movement of a candle needs to deviate from the candle's range (high - low) to be considered a liquidity grab.
- `Compare`: Another percentage input used to compare the relative size of three candles versus one candle.
- `MA`: This represents the "Big candle period," or the moving average period for big candles.
- `urgent_rate`: This is used to determine urgency by comparing the current candle's range to an SMA of previous candles.
- **Key Calculation Steps:**
- **Candle Deviation (Up and Down):**
- `Up` measures how much the current candle closes above its open (bullish deviation).
- `Down` measures how much the current candle closes below its open (bearish deviation).
- **Average Deviations:**
- `UP_Sum` and `Do_Sum` calculate the SMA of Up and Down deviations, respectively, over the defined period (MA). These averages help detect when a candle deviates significantly from the norm.
- **Urgency Detection:**
- `Check_Up_Urgent` and `Check_Dow_Urgent` are conditions that check if the current candle’s high-low range exceeds the defined urgent rate. This signals whether the price movement is "urgent" or significant.
- **Liquidity Detection:**
- **For Upward Liquidity:**
- The script checks if the candle is bullish (`close > open`) and whether the price deviation (`close - open`) meets or exceeds the user-defined `Maru_rate`.
- The script then compares the size of the previous three candles (`high - low`) with a single candle (`Compare`) to confirm a liquidity grab.
- Finally, it looks for continuous upward candle patterns to confirm the strength of the move.
- **For Downward Liquidity:**
- Similar logic applies, but for bearish candles. It checks whether the candle is bearish (`close < open`) and applies the same size comparisons to detect downward liquidity grabs.
- **Candle Highlighting:**
- If the conditions for a liquidity grab are met (both urgency and size), the script changes the bar color to green for upward liquidity and yellow for downward liquidity. These colored bars visually highlight the candles that meet the liquidity grab conditions.
- The script also colors up to three consecutive candles if they meet the liquidity grab conditions (offset = -1, -2).
#### 3. **Benefits of Using This Script:**
- **Liquidity Grab Detection:**
This script helps detect potential liquidity grabs, which occur when large players in the market push the price in a direction to trigger stop-losses or lure retail traders into a position before reversing the price direction. By detecting these movements, traders can avoid being trapped and potentially take advantage of the upcoming reversal.
- **Simple & Lightweight:**
The script uses basic inputs and calculations to detect liquidity grabs, making it easy to use and understand. It's less complex than the advanced version, which makes it suitable for traders who prefer simplicity or are new to liquidity grab detection.
- **Visual Clarity:**
The script uses color changes (green for upward grabs and yellow for downward grabs) to help traders easily spot potential liquidity grab areas on the chart. These visual cues make it more straightforward to interpret.
#### 4. **When to Use This Basic Version:**
- **Quick Liquidity Detection:** This script is ideal for traders who need a quick way to detect potential liquidity grabs without the complexity of managing dynamic parameters or volume confirmation.
- **Simplified Trading Strategies:** If your trading strategy doesn’t rely heavily on volume or multi-timeframe liquidity grab adjustments, this script can work well for basic setups where price action is the primary indicator.
- **Faster Execution:** Since this version doesn’t require dynamic adjustments or volume confirmation, it executes faster, making it suitable for traders who need lightweight tools to stay on top of fast-moving markets.
### Conclusion:
The basic version of the **Fx_Shepherd_Liquidity** script offers a simplified tool for detecting potential liquidity grabs. Its straightforward design, adjustable Maru rate, and visual bar color changes make it easy to integrate into any trading strategy focused on price action. While it lacks the advanced features of the premium version, it serves as a solid, lightweight solution for traders who prefer simplicity over complexity.
TF Breakout BarIndicator Name: TF Breakout Bar
Creator: Andrew Palladino
Date: 12/14/2016
The TF Breakout Bar allows the user to check for a breakout or a breakdown on a specific time frame regardless of what time frame resolution the current chart is on.
The user can change the following:
Breakout and Breakdown time frame
Lookback bar period for breakouts
Lookback bar period for breakdowns
RSI5 Multi Time Frame IndicatorCreated by Andrew Palladino.
Date of Creation: 12/13/2016
Checks overbought or oversold conditions across 5 time frames.
If Time frame 1, 2 and 3 are all overbought then bar color changes to red
If Time frame 1, 2 and 3 are all oversold then bar color changes to green
If Time frame 1, 2, 3, 4 and 5 are all overbought then a vertical red line is added to the plot
If Time frame 1, 2, 3, 4 and 5 are all oversold then a vertical green line is added to the plot
The user has the ability to change:
1) Any of the 5 time frames (Set in minutes: m5 = 5, m15 = 15, h1 = 60, h4 = 240, D = 1440...)
2) RSI overbought threshold Level
3) RSI oversold threshold Level
4) RSI Period
Breakout BarThe following script colors breakout bars.
The user can specify the look back period.
If current close is highest of the past n bars it will color the bar light blue.
If current close is lowest of the past n bars it will color the bar red.
All other bars are black for down bars and white for up bars.
RSI MultiTFLooks for Triple Overbought/Oversold RSI conditions. Paints the bar red when Triple Overbought, and Lime when Triple Oversold.
Multi Time frame RSITriple RSI Indicator.
Colors bars red when RSI is overbought across 3 time frames specified by user.
Colors bars lime when RSI is oversold across 3 time frames specified by user.
os/ob levels and RSI period can also be customized.
Pip Spread to EMA TargetThis script calculates the total number of pips between current close and a target EMA. There are three thresholds that can be specified to determine when that total number of pip spread exceeds a standard deviation multiple set by user. Current standard deviation thresholds on pip spread are set to 2, 2.5 and 3. A pip spread that goes above 3 standard deviations is considered very extreme. The standard deviation is calculated across a predetermined set of bars. Currently look back period for standard deviation count is set to 3000.
Pip Spread to EMA TargetCalculates the pip spread to a target EMA. When spread exceeds a standard deviation multiple set by user background area goes blue. Blue zones are extreme spreads and opportunities for a reversion to EMA Target trade.
Bars Since EMA OverlayCounts number of bars since an EMA Touch or an EMA cross with close and shades the area when a threshold is exceeded. Currently supported for 3 thresholds.
TQ's Support & Resistance(My goal creating this indicator): Provide a way to categorize and label key structures on multiple different levels so I can create a plan based on those observable facts.
The Underlying Concept / What is Momentum?
Momentum indicates transaction pressure. If the algorithm detects price is going up, that would be considered positive momentum. If the algorithm detects price is going down negative momentum would be detected.
The Momentum shown is derived from a price action pattern. Unlike my previous Support & Resistance indicator that used Super Trend, this indicator uses a unique pattern I created. On the first bar bearish momentum is detected a resistance Level is made at the highest point of the previous bullish condition. On the first bar bullish momentum is detected a support Level is made at the lowest point of the previous bearish condition. This happens on 5 different Momentum Levels, (short-term to long-term). I currently use this pattern to trade so the source code is protected.
What is Severity?
Severity is How we differentiate the importance of different Highs and Lows. If Momentum is detected on a higher level the Supply or Demand Level is updated. The Color and Size representing that Level will be shown. Demand and Supply Levels made by higher levels are more SEVERE than a demand level made by a lower level.
Technical Inputs
- to ensure the correct calculation of Support and Resistance levels change BAR_INDEX. BAR_INDEX creates a buffer at the start of the chart. For example: If you set BAR_INDEX to 300. The script will wait for 300 bars to elapse on the current chart before running. This allows the script more time to gather data. Which is needed in order for our dynamic lookback length to never return an error (Dynamic lookback length can't be negative or zero). The lower the timeframe the greater the number of bars need. For Example, if I open up a 1min chart I would enter 5000 as my BAR_INDEX since that will provide enough data to ensure the correct calculation of Support and Resistance levels. If I was on a daily chart, I would enter a lower number such as 800. Don't be afraid to play around with this.
- Toggle options (Close) or (High & Low) creates Support and Resistance Levels using the Lowest close and Highest close or using the Lowest low and Highest high.
Level Inputs
- The indicator has 5 Different Levels indicating SEVEREITY of a Supply and Demand Levels. The higher the Level the more SEVERE the Level.
Display Inputs
- You have the option to customize the Length, Width, Line Style, and Colors of all 5 different
- This indicator includes a Trend Chart. To Easily verify the current trend of any displayed by this indicator toggle on Chart On/Off. You also get the option to change the Chart Position and the size of the Trend Chart
How Trend Is being Determined?
(Close > Current Supply Level) if this statement is true technically price made a HH, so the trend is bullish.
(Close < Current Demand Level) if this statement is true technically price made a LL, so the trend is bearish.
- Fully customize how you display Market Structure on different levels. Line Length, Line Width, Line Style, and Line color can all be customized.
How it can be used?
(Examples of Different ways you can use this indicator): Easily categorize the severity of each and every Supply or Demand Level in the market (The higher Level the stronger the level)
: Quickly Determine the trend of any Level.
: Get a consistent view of a market and how different Levels are behaving but just use one chart.
: Take the discretion from hand drawing support and resistance lines out of your trading.
: Find and categorize strong levels for potential breakouts.
: Trend Analysis, use Levels to create a narrative based on observable facts from these Levels.
: Different Targets to take money off the table.
: Use Severity to differentiate between different trend line setups.
: Find Great places to move your stop loss too.
Visible Range Support and Resistance [AlgoAlpha]🌟 Introducing the Visible Range Support and Resistance 🌟
Discover key support and resistance levels with the innovative "Visible Range Support and Resistance" indicator by AlgoAlpha! 🚀📈 This advanced tool dynamically identifies significant price zones based on the visible range of your chart, providing traders with crucial insights for making informed decisions.
Key Features:
Dynamic support and resistance levels based on visible chart range 📏
User-defined resolution for tailored analysis 🎯
Clear visual representation of significant key zones 🖼️
Easy integration with any trading strategy 💼
How to Use:
🛠 Add the Indicator : Add the indicator to favourites. Adjust settings like resolution and horizontal extension to suit your trading style.
📊 Market Analysis : Identify key support and resistance zones based on the highlighted areas. These zones indicate significant price levels where the market may react.
How it Works:
The indicator segments the price range into user-defined resolutions, analyzing the highest and lowest points to establish boundaries. It calculates the frequency of price action within these segments, highlighting key levels where price movements are least concentrated (areas where price tends to pivot). Customizable settings like resolution and horizontal extension allow for tailored analysis, while the intuitive visual representation makes it easy to spot potential support and resistance zones directly on your chart.
By leveraging this indicator, you can gain deeper insights into market dynamics and improve your trading strategy with data driven support and resistance analysis. Happy trading! 💹✨
Directional Pressure (maybexo)Liquidity Candles, observed in financial markets, display distinctive candlestick patterns that are noteworthy. These candles exhibit intentional price behavior aimed at triggering stop-loss orders and momentarily misleading traders. The pattern typically starts with a price movement against the current trend, activating stop-loss orders and capitalizing on liquidity from traders anticipating the prevailing trend. Subsequently, the price swiftly changes course, breaking and conclusively closing beyond the prior candle's range, often surprising unsuspecting traders.
Characteristics:
1. Liquidity Grab:
- Liquidity Candles initiate with a deliberate move against the existing trend, aimed at triggering stop-loss orders and gathering liquidity from traders who have placed stops in anticipation of the initial trend.
- Notably, the size of the wick in this liquidity grab is significant; a larger wick indicates a more substantial liquidity grab and can strengthen the indication of a potential market reversal.
2. Swift Reversal and Breakout:
- Following the liquidity grab, the price swiftly changes direction, breaking and conclusively closing above or below the previous candle's range.
3. Institutional Behavior:
- These candles are often linked to institutional trading behavior, suggesting potential involvement by significant market participants due to their distinct and deliberate price action.
// Diamonds
1. RSI Diamonds:
The RSI Diamonds represent RSI entering either overbought or oversold levels.
These Diamonds serve as an early indication for "Spooky Diamonds" as Spooky Diamonds can only form in these conditions
2. Spooky Diamonds:
The Spooky Diamonds highlight specific candle conditions, aiding in the identification of bullish or bearish momentum in the market while considering the RSI status.
Bullish Candle Momentum: The candle size is greater than the previous candle multiplied by a user-defined factor (filterMultiplier) and the closing price is higher than the opening price. This can suggest bullish momentum.
Bearish Candle Momentum: The candle size is greater than the previous candle multiplied by the filterMultiplier, and the closing price is lower than the opening price. This can suggest bearish momentum.
Important Notes:
The Candles + Diamonds should not be used in isolation as buy or sell signals but rather as additional information for your trading strategy.
The goal of this indicator is to provide a visual representation of RSI data and potential momentum during overbought or oversold conditions.
By utilizing the diamonds and candles, you can easily identify RSI levels and their interaction with candles, aiding in decision-making within your trading strategy.
Disclaimer: Always consider your risk tolerance and conduct thorough analysis before making any trading decisions.
Inspiration Credits:
Vanitati
Mr. Casino
Liquidity Engulfing (Nephew_Sam_)This indicator is inspired by Omar Agag's teaching from his IG and Youtube
Concept:
It's marks an Engulfing candle but with a twist - it should take out the previous candle's high/low then closes above/below the previous candles open.
Settings:
Optionally highlight the bar color, the label color and text
Liquidity Fvg IdentifierDear Traders,
This indicator is very effective and supports Price action Traders.
Swing Identification
This automatically Detect swings level and mark as per the chart Time frame. these lines can be used for support and resistance.This is represented by Yellow and Blue lines
There is an option to put Higher time frame swing levels and these are represented by Green and Red Lines. Eg: if you are trading in 5 mins and you also want 1 hour swing levels , then you can get this by selecting higher time frame 1 hour and select both Chart and Htf in the option provided.
Trade: If price is approaching where both Times frames swing lines are coinciding these levels act as strong Support and Resistance . You need to wait for proper price action to form and take Trades.
FVG
This also automatically detect Fare Value Gaps and mark as per the chart Time Frame. These can be used for reversal trades . This is represented buy purple blocks
There is an option to put higher time frame FVG and these are represented by Red Blocks. Eg : if you are trading in 15 mins and you also want 4 hours FVG, then you can get this by selecting Higher time frame 4 hours and select both chart and HTF in the option provided.
Trade: If price is approaching where both time frames FVG are coinciding , these box will act as strong support and reversal. wait for proper price action and trade can be taken.
Volume Breakout.
This will automatically detect and volume breakout of last 60 candles and plots below the candle. These can be adjusted in setting as per requirement. suppose you want for last 30 candles , you can select 30 and it will plot below candle when ever there is breakout.
Trade: When ever volume breakout is coming near swing or fvg support or resistance , this can be considered to support reversal.
Pls take your financial advisor suggesting before using taking trades .
any suggestion reach to us thru message
Thanks
Liquidity Levels [LuxAlgo]The Peak Activity Levels indicator displays support and resistance levels from prices accompanied by significant volume. The indicator includes a histogram returning the frequency of closing prices falling between two parallel levels, each bin shows the number of bullish candles within the levels.
1. Settings
Length: Lookback for the detection of volume peaks.
Number Of Levels: Determines the number of levels to display.
Levels Color Mode: Determines how the levels should be colored. "Relative" will color the levels based on their location relative to the current price. "Random" will apply a random color to each level. "Fixed" will use a single color for each level.
Levels Style: Style of the displayed levels. Styles include solid, dashed, and dotted.
1.1 Histogram
Show Histogram: Determines whether to display the histogram or not.
Histogram Window: Lookback period of the histogram calculation.
Bins Colors: Control the color of the histogram bins.
2. Usage
The indicator can be used to display ready-to-use support and resistance. These are constructed from peaks in volume. When a peak occurs, we take the price where this peak occurred and use it as the value for our level.
If one of the levels was previously tested, we can hypothesize that the level might be used as support/resistance in the future. Additional analysis using volume can be done in order to confirm a potential bounce.
The histogram can return various information to the user. It can show if the price stayed within two levels for a long time and if the price within two levels was mostly made of bullish or bearish candles.
In the chart above, we can see that over the most recent 200 bars (determined by Histogram Window) 68 closing prices fall between levels A and B, with 27 bars being bullish.
Additionally, the width of a bin and its length can sometimes give information about the volatility of a specific price variation. If a bin is very wide but short (a low number of closing prices fallen within the levels) then we can conclude a most of the movement was done on a short amount of time.
AVTRADINGPRO ICT .V1 AVTRADINGPRO ICT Indicator – Documentation and Optimization
📌 Overview
This script is an advanced indicator for TradingView developed by AVTRADINGPRO, designed to identify key elements of Institutional Trading Concepts (ICT), such as:
Market Structure Shifts (MSS)
Break of Structure (BOS)
Order Blocks (OB)
Fair Value Gaps (FVG)
Liquidity Zones
Volume Imbalances
Kill Zones (Key Sessions)
🛠 Settings and Customization
The indicator is highly customizable through inputs in the TradingView interface:
Market Structures
MSS (Market Structure Shifts): Detects trend reversals.
BOS (Break of Structure): Confirms trend continuation.
Length: Adjusts sensitivity (values between 3 and 10).
Order Blocks
Show Order Blocks: Enable/disable the display of order blocks.
Swing Lookback: Defines the historical range to identify OBs.
Customizable colors for bullish/bearish OBs.
Fair Value Gaps (FVGs)
FVG Type: Standard (FVG) or Implied (IFVG).
Balance Price Range (BPR): Equilibrium zone between FVGs.
Visualization: Up to 20 visible FVGs.
Liquidity
Margin: Adjusts the range around liquidity zones.
Colors for Buy Side / Sell Side Liquidity.
Kill Zones
Key Sessions: New York, London (open/close), Asia.
Customizable colors for each session.
FNO Straddle/Strangle Premium TrackerThe FNO Straddle/Strangle Premium Tracker is a powerful Pine Script indicator designed for options traders to monitor the combined premium of a straddle or strangle strategy for Indian F&O instruments. It tracks the sum of call and put option prices, visualizes the premium as a candlestick or line chart, and includes technical indicators like EMAs and premium percentage change. The indicator also provides a real-time data table, alerts for key events, and exportable data for analysis, making it ideal for tracking premium movements and identifying trading opportunities.
Key Features
Customizable Inputs: Select from a wide range of underlying symbols (e.g., NIFTY, BANKNIFTY, stocks like RELIANCE, TCS), expiry date, call/put strike prices, chart type (Candlestick or Line), and timeframe (1-min to Daily).
Premium Visualization: Plots the combined premium (Call + Put) as a candlestick or line chart, with customizable colors for easy trend identification.
Exponential Moving Averages (EMAs): Displays 21, 100, and 200-period EMAs to track premium trends, with alerts for premium crossing above/below the 21-period EMA.
Premium % Change: Shows the percentage change in the combined premium as a histogram for quick momentum analysis.
Real-Time Data Table: A table in the top-right corner displays the latest premium, call/put Last Traded Prices (LTP), and EMA values (21, 100, 200).
Error Handling: Alerts users with a warning label if the selected symbol, expiry, or strike is invalid or data is unavailable.
Data Export: Outputs the latest premium, call LTP, and put LTP as a text string for easy copying or analysis.
LTP Label: Displays the current premium value every 5 bars for quick reference.
How It Works
Input Selection: Choose the underlying symbol, expiry date (YYMMDD format, e.g., 250626 for June 26, 2025), call and put strike prices, chart type, and timeframe.
Data Fetching: The script fetches real-time OHLC (Open, High, Low, Close) data for the selected call and put options using the specified symbol and expiry.
Premium Calculation: Combines the call and put option prices to calculate the straddle/strangle premium (Open, High, Low, Close).
Visualization: Plots the premium as a candlestick (green for bullish, red for bearish) or a blue line chart, along with EMAs, call/put LTP lines, and a premium % change histogram.
Alerts & Notifications: Triggers alerts when the premium crosses the 21-period EMA and displays a warning if data is invalid.
Data Display: Shows key metrics in a table and provides exportable data for further analysis.
Inputs
Select Symbol: Choose the underlying instrument (e.g., NIFTY, BANKNIFTY, RELIANCE, etc.).
Expiry Date: Enter the option expiry in YYMMDD format (e.g., 250626).
Call/Put Strike: Specify the strike prices for the call and put options.
Chart Type: Select "Candlestick" or "Line" to visualize the premium.
Timeframe: Choose the data aggregation period (e.g., 1-min, 5-min, Daily).
Outputs
Chart: Candlestick or line plot of the combined premium, with EMAs (21, 100, 200), call/put LTP, and premium % change histogram.
Table: Real-time display of premium, call/put LTP, and EMA values.
Alerts: Notifications for premium crossing EMA21 or invalid data.
Export Data: A text string with the latest premium, call LTP, and put LTP for external use.
Use Cases
Straddle/Strangle Trading: Monitor premium movements for at-the-money (ATM) straddles or out-of-the-money (OTM) strangles to time entries/exits.
Trend Analysis: Use EMAs to identify bullish or bearish trends in the premium.
Momentum Trading: Leverage the premium % change histogram to spot rapid price movements.
Risk Management: Track call and put LTP individually to assess option price behavior.
Data Analysis: Export premium data for backtesting or strategy development.
How to Use
Add the indicator to your TradingView chart.
Configure the inputs (symbol, expiry, strikes, chart type, timeframe) based on your trading setup.
Monitor the chart for premium trends, EMA crossovers, and % change signals.
Use the table and export data for real-time insights or external analysis.
Set up alerts to get notified when the premium crosses the 21-period EMA.
Notes
Ensure the symbol, expiry, and strike prices are valid for your data provider to avoid "Invalid Symbol" errors.
The indicator works best on Indian F&O instruments (NSE/BSE) with active options chains.
For optimal performance, use shorter timeframes (e.g., 1-min, 5-min) for intraday trading or Daily for positional analysis.
The premium % change histogram helps identify volatility spikes, useful for breakout strategies.
Limitations
Requires valid option chain data from TradingView’s data provider.
Performance may vary on low-liquidity instruments or illiquid strike prices.
Alerts are limited to EMA21 crossovers; additional custom alerts can be added as needed.
Feedback
If you have suggestions or need additional features (e.g., Bollinger Bands, RSI, or volatility metrics), feel free to comment! Happy trading!