EMA Cross 9/21EMA Cross 9/21
A simple yet effective moving average crossover indicator that plots the 9-period and 21-period EMAs on your chart and highlights bullish and bearish crossovers.
🔍 Features:
📈 Bullish Signal: 9 EMA crosses above 21 EMA
📉 Bearish Signal: 9 EMA crosses below 21 EMA
🎯 Labels mark crossovers directly on the chart
🔷 Customizable EMA lengths
🛠️ Ideal For:
Trend-following traders
Swing traders
Entry/Exit signal seekers
🔧 Default Settings:
Short EMA: 9
Long EMA: 21
(You can adjust these to fit your strategy.)
Options
TraderFa Automatic FVGhe Fair Value Gap (FVG) indicator is a powerful technical analysis tool that identifies market inefficiencies by highlighting Fair Value Gaps across multiple timeframes. Discover key trading zones where institutions might be active—don’t miss your edge!
Introduction to the FVG Indicator
The Fair Value Gap indicator is designed to automatically detect areas of price imbalance—commonly referred to as Fair Value Gaps (FVGs)—directly on your chart. These zones occur when price moves aggressively in one direction, leaving behind a gap that represents a lack of order matching, and often becomes a magnet for future price action.
The concept is widely used by professional traders and is deeply rooted in liquidity-based analysis and institutional trading logic.
Key Features
Multi-timeframe FVG detection (up to 4 timeframes simultaneously):
Gain a layered perspective by monitoring price gaps on different timeframes all at once.
Automatic detection of bullish and bearish FVGs:
Highlighted zones where price surged or dropped too quickly—potential reaction areas.
Option to display or hide mitigated gaps:
You can choose to keep showing gaps that have already been filled or remove them from view.
Custom color settings for each timeframe:
Assign different colors for bullish and bearish gaps in each timeframe for better visual clarity.
How the Indicator Works
Utilizing the capabilities of Pine Script, the indicator fetches data such as high, low, open, and time from higher timeframes and compares it with current candles to detect valid FVGs.
The detection logic is based on:
A bullish FVG forms when the low of the current candle is higher than the high of two candles ago.
A bearish FVG forms when the high of the current candle is lower than the low of two candles ago.
These gaps are then visualized using boxes and labels, and updated or removed depending on whether the price has returned to fill the gap.
Use Cases in Trading
Reveal hidden liquidity zones:
Institutional traders often place orders around FVGs. Identifying these can help pinpoint high-probability entries.
Set precise entry, exit, or target zones:
Use gaps to identify potential reversal or continuation zones with minimal risk exposure.
Optimize multi-timeframe confluence:
Seeing FVGs from various timeframes simultaneously allows you to discover overlapping zones—excellent for timing trades with confidence.
Customizable Settings :
Enable/disable each of the four timeframes independently
Select your desired timeframe for each layer
Pick unique colors for bullish and bearish gaps
Show or hide mitigated (filled) gaps based on strategy
F inal Thoughts
The FVG indicator is a refined, high-precision tool built for traders who use price action and liquidity principles. Whether you're scalping or trading swing setups, this indicator offers an edge by visually representing inefficiencies in price—helping you anticipate where price is likely to react.
Ready to see the market through the lens of institutional behavior? Add the FVG indicator to your chart today and start spotting the gaps that really matter.
AccuTargetThis indicator has been carefully designed for entering options trades — specifically for anticipating a stock's rise — but it can also be used for regular stock trading. The shorter the time frame, the lower the target price is likely to be, and the shorter the time required to reach the target.
When using this indicator for options trading, make sure to select a contract expiration date that allows enough time, as the target is usually achieved after approximately nine candles, depending on the selected time frame. However, as is well known, market fluctuations are unpredictable and can impact outcomes.
Features of this indicator:
Displays the entry price of the trade.
Displays the target price.
Displays the stop-loss level if the stock’s direction changes.
Displays a message when the target is achieved.
Displays a table with trade information.
Can trigger an alert when a buy signal is generated.
Note: If you see that it needs any modifications or additions, please write your suggestions in the comments.
Binance Leveraged Liquidations ApproximationBinance Leveraged Liquidations Approximation (BLLA)
The Binance Leveraged Liquidations Approximation (BLLA) indicator is a tool designed to estimate liquidation levels for leveraged trading on Binance. It calculates the approximate prices at which liquidations could occur for long and short positions, based on the entry price and leverage levels selected by the user.
Key Features:
Liquidation Level Calculation:
Estimates liquidation prices for multiple leverage levels (e.g., 20x, 10x, 5x, etc.).
Supports both long and short positions.
Customization:
Allows the user to manually input the entry price or automatically calculate it as the midpoint between the low and high of a defined period.
Leverage levels are configurable, enabling the indicator to adapt to different trading strategies.
Clear Visualization:
Displays liquidation levels directly on the chart, with labels indicating the corresponding leverage.
Uses distinct colors for long positions (yellow) and short positions (blue).
Recommended Use:
Risk Management: Helps identify liquidation levels to adjust stop-loss orders and manage risk in leveraged trading.
Market Analysis: Provides a quick overview of key levels where significant price movements might occur due to mass liquidations.
Settings:
Entry Price: Enter manually or leave at 0.0 to calculate automatically.
Leverage: Configure desired leverage levels (e.g., 20x, 10x, 5x, etc.).
Transparency and Display: Adjust the transparency of the lines and the number of bars displayed.
Quick Instructions:
Add the indicator to your chart.
Enter the entry price or leave it at 0.0 to calculate automatically.
Configure leverage levels according to your strategy.
Observe liquidation levels on the chart and use them to manage your risk.
Note:
This indicator is an approximation and does not guarantee absolute accuracy of liquidation levels, as these may vary depending on market conditions and exchange policies.
Straddle Plot with VWAP and 20 EMA🧭 Description
This indicator is designed to analyze the behavior of combined option premiums in straddle strategies, using real-time option data. It visualizes both Call (CE) and Put (PE) option premiums of selected strike prices and combines them into a synthetic OHLC candle structure.
The goal is to help derivatives traders understand premium buildup, volatility expectations, and market sentiment without looking at individual option charts.
Unlike traditional price-based indicators, this tool focuses entirely on option data, combining:
The real-time premiums of Calls and Puts
A derived VWAP of the combined premiums (to assess mean deviation)
A 20-period EMA calculated on the synthetic straddle premium (for trend filtering)
🔍 How It Works
Users select an underlying symbol (e.g., NIFTY/BANKNIFTY) and up to 3 strike prices of the same expiry.
The script dynamically constructs the option symbols for CE and PE, fetches OHLC data using request.security(), and combines their data into a straddle representation.
A straddle candle is plotted using the summed OHLC of the CE and PE.
The script also computes:
- Combined CE close
- Combined PE close
- Straddle close
A VWAP line is calculated on the combined straddle close to assess mean reversion.
A 20-period EMA (approximated for daily trend) is applied to identify trend direction.
The indicator includes an interpretation model that compares total CE vs PE premium to highlight market bias:
Call premium > Put → bullish bias (Call Up)
Put premium > Call → bearish bias (Put Up)
Equal → neutral/sideways
📌 Use Case
This indicator is valuable for:
Traders using short straddles (who want to monitor decay or expansion)
Strangle/straddle breakout traders looking for premium expansion
Volatility traders assessing whether premiums are rising above VWAP/EMA
Identifying imbalance between CE and PE premiums intraday
📊 Visual Elements
Candlestick plot representing combined straddle OHLC
Line plots for CE, PE, and total straddle close
VWAP (purple) and Daily EMA (orange)
Real-time table showing:
- Selected strike prices
- Live VWAP & EMA
- Combined premiums
- CE/PE dominance ("Call Up", "Put Up", or "Same")
⚙️ Customization
Supports predefined underlyings or a custom symbol selector
Users can choose any expiry date and define strike prices
Table font size and screen layout are adjustable
Dropdown logic allows switching to any NSE-traded F&O symbol
📢 Disclaimer
This indicator is provided for educational purposes only. It does not constitute trading advice or a recommendation to buy/sell any financial instrument. Always consult your financial advisor before making trading decisions.
Options Volume ProfileOptions Volume Profile
Introduction
Unlock institutional-level options analysis directly on your charts with Options Volume Profile - a powerful tool designed to visualize and analyze options market activity with precision and clarity. This indicator bridges the gap between technical price action and options flow, giving you a comprehensive view of market sentiment through the lens of options activity.
What Is Options Volume Profile?
Options Volume Profile is an advanced indicator that analyzes call and put option volumes across multiple strikes for any symbol and expiration date available on TradingView. It provides a real-time visual representation of where money is flowing in the options market, helping identify potential support/resistance levels, market sentiment, and possible price targets.
Key Features
Comprehensive Options Data Visualization
Dynamic strike-by-strike volume profile displayed directly on your chart
Real-time tracking of call and put volumes with custom visual styling
Clear display of important value areas including POC (Point of Control)
Value Area High/Low visualization with customizable line styles and colors
BK Daily Range Identification
Secondary lines marking significant volume thresholds
Visual identification of key strike prices with substantial options activity
Value Area Cloud Visualization
Configurable cloud overlays for value areas
Enhanced visual identification of high-volume price zones
Detailed Summary Table
Complete breakdown of call and put volumes per strike
Percentage analysis of call vs put activity for sentiment analysis
Color-coded volume data for instant pattern recognition
Price data for both calls and puts at each strike
Custom Strike Selection
Configure strikes above and below ATM (At The Money)
Flexible strike spacing and rounding options
Custom base symbol support for various options markets
Use Cases
1. Identifying Key Support & Resistance
Visualize where major options activity is concentrated to spot potential support and resistance zones. The POC and Value Area lines often act as magnets for price.
2. Analyzing Market Sentiment
Compare call versus put volume distribution to gauge directional bias. Heavy call volume suggests bullish sentiment, while heavy put volume indicates bearish positioning.
3. Planning Around Institutional Activity
Volume profile analysis reveals where professional traders are positioning themselves, allowing you to align with or trade against smart money.
4. Setting Precise Targets
Use the POC and Value Area High/Low lines as potential profit targets when planning your trades.
5. Spotting Unusual Options Activity
The color-coded volume table instantly highlights anomalies in options flow that may signal upcoming price movements.
Customization Options
The indicator offers extensive customization capabilities:
Symbol & Data Settings : Configure base symbol and data aggregation
Strike Selection : Define number of strikes above/below ATM
Expiration Date Settings : Set specific expiry dates for analysis
Strike Configuration : Customize strike spacing and rounding
Profile Visualization : Adjust offset, width, opacity, and height
Labels & Line Styles : Fully configurable text and visual elements
Value Area Settings : Customize POC and Value Area visualization
Secondary Line Settings : Configure the BK Daily Range appearance
Cloud Visualization : Add colored overlays for enhanced visibility
How to Use
Apply the indicator to your chart
Configure the expiration date to match your trading timeframe
Adjust strike selection and spacing to match your instrument
Use the volume profile and summary table to identify key levels
Trade with confidence knowing where the real money is positioned
Perfect for options traders, futures traders, and anyone who wants to incorporate institutional-level options analysis into their trading strategy.
Take your trading to the next level with Options Volume Profile - where price meets institutional positioning.
Ultimate Dashboard (SPY + QQQ) [Corrected Bundle]Displays a table showing the signal (Green/Red) based on where the close is relative to the 50 EMA.
For weekly, daily, and hourly timeframes.
EMA Length is customizable (default 50).
Signals:
Green if close > 50 EMA
Red if close < 50 EMA
script covers 1min, 5min, 15min, 30min, 1hr, 4hrs, 1D, 1W, 1M timeframes
Table appears on the top right of your chart.
Colors dynamically update based on the signal.
Unusual Whale - Unusual Options Volume Data ScreenerHow to Use:
Custom Expiration Date: Use the calendar/date picker to select the expiration date. The chosen date is automatically converted to the "YYMMDD" format.
Custom Base Strike: Enter a round strike value from the options chain (for example, "270"). This value serves as the starting point (at-the-money) for the scan.
Strike Increment: Select the increment (e.g., 0.50, 1.00, 2.5, 5, or 10) to determine how the scan moves outward from the custom base strike.
Options per Side (Max 20): Choose the number of valid option strikes to scan on each side. The script scans downward (for calls) and upward (for puts) from the custom base strike.
Base Symbol: The base symbol is always taken from the chart (using syminfo.ticker); no manual entry is needed.
Scanning & Aggregation: The script automatically constructs option symbols using the base symbol, custom expiration date, option type (C or P), and the formatted strike. It retrieves volume data for these options and aggregates the cumulative volume for calls and puts separately.
Plotting: Cumulative call volume is plotted in green, and cumulative put volume is plotted in red—only if the required number of valid options is found.
Benefits of Scanning Options Volume for Unusual Activity:
Offers a comprehensive view of volume across multiple strikes, making unusual or extreme volume patterns easier to detect.
Helps gauge market sentiment by comparing aggregated call and put volumes, which may signal shifts in investor behavior.
Aggregating volume from several strike levels provides smoother, more reliable data than using a single strike, enhancing your analytical insights.
What to Do If Combinations Don't Yield Results:
Verify Your Inputs: Ensure that the Custom Base Symbol, Expiration Date, and Custom Base Strike are entered correctly and correspond to an active options chain.
Adjust Strike Increment: If the options aren’t loading as expected, try selecting a different strike increment that more closely matches the spacing in your options chain.
Reduce Options per Side: Lower the number of Options per Side (e.g., from 20 to a lower value) if the scan fails to find enough valid strikes.
Review Your Options Chain: Confirm that the contracts for the specified expiration and strike range exist and are available in your data feed.
Check Data Subscription: Make sure your TradingView plan includes access to the options data required for the selected symbols.
Cumulative Call Volume is Green, Put Volume is Red
Gann Percentage of High & Low Prices for Options - Keanu_RiTzThis Indicator is based on the text from Chapter 4 "Percentage of High & Low Prices" page number "30" from the book "WD Gann 45 years in Wall Street".
This Indicator is to be used on Intraday Timeframes and only on Options Charts (CALL & PUT) and not on any other chart.
The following is the text from that page :-
One of the greatest discoveries I ever made was how to figure the percentage of high and low prices on the averages and individual stocks.
The percentages of extreme high and low levels indicate future resistance levels.
There is a relation between every low price to some future high price and a percentage of the low price indicates what levels to expect the next high price.
At this price you can sell out long stocks and sell short with a limited risk.
The extreme high price or any minor tops are related to future bottoms er low levels.
The percentage of the high price tells where to expect low prices in the future and gives you resistance levels where you can buy with a limited risk.
The most important resistance level is 50% of any high or low price.
Second in importance is 100% on the lowest selling price on the averages or individual stocks.
You must also use 200%, 300%, 400%, 500%, 600% or more, depending upon the price and the Time Periods from High and Low.
Third in importance is 25% of the Lowest price or the Highest price.
Fourth in importance is 121/2% of the extreme Low or extreme High price.
Fifth in importance is 61/4% of the Highest price, but this is only to be used when the averages or individual stocks are selling at very high levels.
Sixth in importance is 33 1/3 and 66 2/3%. These percentages should be calculated and watched for resistance next after 25% and after 50%.
You should always have percentage tables made up on the Industrial Averages and on the individual stocks you trade in in order to know where these important resistance levels are located.
Description :
It plots the Intraday % levels from the highest high and lowest low of that day.
The calculation of these levels is based on the text from Chapter 4 "Percentage of High & Low Prices" page number "30" from the book "WD Gann 45 years in Wall Street".
I developed this indicator to see if those percentages work on Options prices or not,
and from my observation I found that it works wonderfully in Options as well.
These % levels work like magic and act as great Dynamic Support and Resistance levels.
Don't trust my words blindly and see for yourself.
This indicator is for educational and research purpose only.
It does not provide any BUY/SELL signals.
Price Range Deviation📌 Description: Price Range Deviation Indicator
This indicator measures how much a stock has moved over a recent period (e.g., 15 days) and compares that move to the average move of similar-length windows over a longer lookback period (e.g., 1 year or 252 days).
It helps identify when a stock has made an unusually large move compared to its historical norm — which can signal that the move is overextended.
📊 How It Works:
Recent Move ($): The absolute price change over the selected recent period.
Average Move ($): The average absolute price change over rolling windows of the same size across the full lookback period.
Move Ratio: The current move divided by the average move.
When the move ratio exceeds a custom threshold (e.g., 1.5× the average), the background highlights red to signal that the move is unusually large.
💡 Use Case:
Ideal for options traders looking to:
Identify overextended price moves
Sell out-of-the-money calls or puts beyond a high-move zone
Fade price exhaustion with high probability setups
Daily OHLC from 8:00 UTCDisplays Daily Open, High, and Low price levels, resetting at 8:00 AM UTC each day. Ideal for intraday trading reference points.
Options Chart Lite [Pt]█ Options Chart Lite
────────────────────────────
█ Introduction
Options Chart Lite is a simplified version of the full Options Chart+ tool — created for traders who want a clean and easy way to visualize option volume around price without extra complexity.
It displays live call and put volume and pricing directly on your TradingView chart, centered around the most relevant strikes for the selected expiry.
────────────────────────────
█ What Is Options Chart Lite ?
Options Chart Lite is a tool that shows real-time call and put activity in a clean, strike-by-strike table.
It provides:
- Side-by-side call/put volume and pricing
- Live table centered on current price
- Total call and put volume summary
- Quick insight into flow without overlays or clutter
────────────────────────────
█ Key Features
Visual Option Table
- Volume and price for calls and puts
- Table auto-centers around current price
- Up to 20 strikes shown
Total Volume Summary
- Call vs put volume shown at the bottom
Formatted Expiry + Timeframe
- Full expiry display (e.g. “Fri Apr 11, 2025”)
- Fixed to 1D timeframe
Reset & Warnings
- Button to reset strike range
- Optional delayed data notice
────────────────────────────
█ Inputs
Option Expiry Date (YYMMDD): Must match a valid expiry
Strike Increment: Strike spacing (e.g., 1, 2.5, 5)
Reference Strike Denominator: Rounds price to valid strike
Font Size Option: Choose Auto, Tiny, Small, or Normal
Reset Button: Re-centers if price moves
Delayed Data Warning: Toggle display of warning
────────────────────────────
█ Use Cases
Spot Key Strikes
See which strikes have the most activity.
Quick Flow Insights
Volume bias without opening an option chain.
Prep Levels
Align price action with strike flow.
Volume Skew Snapshot
Check if calls or puts dominate.
────────────────────────────
█ Known Limitations
- Invalid Expiry or Strike Inputs Will Error
Inputs must match real listed options for the symbol.
- Options Data Must Be Available
Volume will appear as 0 if TradingView data isn’t accessible.
- Strike Range is Limited
Script renders ~20 strikes. Use Reset Indicator if price moves too far.
Double RSI OscillatorThe Double RSI Oscillator
Hello Gs,
I came back from the dead and tried to see what a little tweak to RSI could do, and I think it is quite interesting and might be worth checking out.
Warning:
This indicator has lots of false signals unfortunatly
How does the DRSI Oscillator work?
Very simple, the DRSI oscillator at the very base is just 2 RSIs that should smooth each other out, making a smoother trend signal generation for trend analysis. One RSI is set to have lower values, by considering the lowest point of the price, and one RSI is set to have higher values using pretty much the same thing. The trend changes from positive to negative if RSI with higher values crosses negative treshhold, and from negative to positive if RSI with lower value crosses positive treshhold. On top of this I added some additional settings to smooth or speed it further, if these were a good idea, I guess only time will tell :D.
Settings
Here is a guide of what setting changes what and how it might be suitable for you:
RSI Optimism length: length of the RSI with higher values (higher values will be better for longer term, lower for medium term)
RSI Pesimism length: length of the RSI with lower values (higher values will be better for longer term, lower for medium term)
Positive treshhold: The value RSI pesimism needs to pass in order to change trends (in case of using RSI avg. the value the average needs to pass), making this higher can give you faster signals, but expect more false ones
Negative treshholds: The value RSI optimism needs to pass in order to change trends (in case of using RSI avg. the value the average needs to pass), lowering this can give you faster signals, but expect more false ones
Smoothing type: Select the type of smoothing (or none) to smooth your signals as you want, this one you need to play around with.
Smoothing length: The length of your smoothing method (if none is selected it wont change anything)
Use RSI average instead: self-explanatory, go figure
Above/Below Mean Trend: Changes the way trend logic works
Why consider using this indicator?
The DRSI Oscillator is a tool that has huge flexibility (due to tons of settings that base RSI doesnt, like trend treshholds), and is smoother allowing traders and investors to get high quality or high speed signals, allowing great entries and exits
Option Contract Size CalculatorOption Contract Size Calculator
This indicator helps you to figure out the ideal number of contracts for your trade and its only used for options day trading.
The indicator needs to fill the input section in order to give you the information table that includes Contract size .
The input section consists of two sections. The first section requires user entry of the delta of the options contract from the broker chain and the stop loss size on the chart.
The second section allows you to enter your account balance and risk per trade
(2% recommended) .
There is also the option for where you wish to display your table like bottom right , bottom left or top right, top left.
special thanks to @Mohamedawke for the open source script this code is based off
Options Chart+ [Pt]█ Introduction
Since the launch of options data support on TradingView, the landscape for retail options traders has started to shift. But until now, no tool in the public TradingView library has offered a full-featured, visual-first interface for reading option strike activity directly from your chart.
www.tradingview.com
Options Chart+ changes that — bringing an institutional-style strike analysis interface to TradingView.
It reads the option chain for any symbol and expiry, dynamically builds a strike-by-strike volume and price table, highlights top areas of market activity, and helps you interpret directional sentiment through both total and skew-adjusted implied moves.
────────────────────────────
█ What Is Options Chart+ ?
Options Chart+ is a premium script for analyzing call and put option volumes and pricing for any option chain that's readily available on TradingView.
It provides a real-time, on-chart display of:
- Strike-Level Volume and Price Table
- Gradient Heatmaps for Volume Activity
- Overlayed Top Strikes on the Chart
- Implied Move and Directional Bias Metrics
By visualizing where options traders are concentrating their positioning, this tool helps uncover potential support/resistance zones, directional bets, and key gamma levels — all from the flow.
────────────────────────────
█ Key Features
Visual Option Chain Table
- Centers around the current price
- Real-time volume and price per strike
- Clean formatting with total summaries
Gradient Volume Coloring
- Highlights activity using customizable color gradients
- Makes volume spikes obvious at a glance
Top Strike Overlays
- Automatically highlights top volume call/put strikes
- Overlays labeled lines on the chart for price context
Implied Move and Directional Bias
- ATM straddle = Total Implied Move
- Volume-weighted extrinsics = Directional Implied Move (DIM)
- Shows skew-based bias: bullish or bearish
────────────────────────────
█ Inputs & Customization
Option Expiry Date (YYMMDD): Must match valid options for the symbol
Strike Increment: Matches strike spacing (e.g., 1, 2.5, 5)
Reference Strike Denominator: Rounds the center strike
Volume Timeframe: Any valid chart timeframe
Gradient Volume Coloring: Toggle on/off
Call/Put Volume Colors: Fully customizable
Draw Top Strike Lines: Enables chart overlays
Start / End Offset: Customize overlay length
Font Size: Auto, Tiny, Small, or Normal
Delayed Data Warning: Adds footnote in the table
Reset Button: Re-centers the tool if price moves too far
────────────────────────────
█ Use Cases
1. Spotting High-Interest Strikes
Use gradient heatmaps and overlays to see where volume is clustering.
Example: Heavy calls at 4200 may act as a magnet or gamma level — perfect for breakout or fade setups.
2. Interpreting Sentiment with DIM
Gauge where the flow is leaning directionally.
Example: Bullish DIM = call extrinsics outweigh puts → sentiment skewed bullish.
3. Sizing Risk Around Implied Movement
Use Total Implied Move to set range boundaries.
Example: Avoid selling premium inside the expected move unless risk is tight.
4. Combining Volume and Price Action
Overlay strikes with price structure for confluence trades.
Example: A heavy put strike with price holding = potential bounce zone.
5. Structuring Straddles or Strangles
Use volume skew to inform multi-leg positions.
Example: If call side is bid up, lean strangle wider to the upside.
────────────────────────────
█ Known Limitations
- Invalid Expiry or Strike Inputs Will Error
You are responsible for selecting a valid expiry and strike increment that matches the symbol’s listed options.
- Options Data Must Be Available
This tool depends on TradingView's options feed. If you do not have access (delayed or real-time), the script will fail to load.
- Strike Range is Limited
Renders ~20 strikes max to preserve clarity. If price moves beyond that, use the Reset Indicator input.
────────────────────────────
█ Final Thoughts
Options Chart+ is built for traders who operate on flow, structure, and sentiment. It lets you trade with confidence by showing where the real positioning is happening — visually, clearly, and in real-time.
If you:
- Think in terms of option flow
- Trade around volume levels or gamma exposure
- Want faster access to skew and sentiment
- Or just need clarity over chaos in an options chain...
This tool is for you.
Market Sessions & LevelsOverview
This Pine Script indicator identifies key trading levels and market sessions, making it easier for traders to analyze price movements. It highlights the previous day's high and low, tracks premarket price action, and marks the first 5-minute high and low after the market opens.
Features
✅ Identifies Market Sessions:
Pre-Market Session (4:30 AM - 9:30 AM EST)
Regular Market Session (9:30 AM - 4:00 PM EST)
✅ Tracks Key Levels:
Previous Day’s High & Low
Premarket High & Low
First 5-Minute High & Low after market open
✅ Visual Cues for Easy Analysis:
Plots horizontal lines for each level with distinct colors
Displays labels for key price levels on the chart
How It Helps Traders
📊 Pre-Market Preparation: Helps traders spot key resistance/support levels before the market opens.
🚀 Momentum Trading: The first 5-minute high/low can act as breakout or reversal zones.
📉 Historical Price Context: Uses the previous day's high/low to gauge market sentiment.
Customization
The script can be easily modified to adjust session timings, colors, or additional levels based on your trading strategy.
💡 How to Use:
Apply the script to a 1-minute or 5-minute chart for the most accurate premarket and first 5-minute tracking.
Look for price reactions at the plotted levels to determine potential trade setups.
ATM Option Selling StrategyATM Option Selling Strategy – Explained
This strategy is designed for intraday option selling based on the 9/15 EMA crossover, 50/80 MA trend filter, and RSI 50 level. It ensures that all trades are exited before market close (3:24 PM IST).
. Indicators Used:
9 EMA & 15 EMA → For short-term trend identification.
50 MA & 80 MA → To determine the overall trend.
RSI (14) → To confirm momentum (above or below 50 level).
2. Entry Conditions:
🔴 Sell ATM Call (CE) when:
Price is below 50 & 80 MA (Bearish trend).
9 EMA crosses below 15 EMA (Short-term trend turns bearish).
RSI is below 50 (Momentum confirms weakness).
🟢 Sell ATM Put (PE) when:
Price is above 50 & 80 MA (Bullish trend).
9 EMA crosses above 15 EMA (Short-term trend turns bullish).
RSI is above 50 (Momentum confirms strength).
3. Position Sizing & Risk Management:
Sell 375 quantity per trade (Lot size).
50-Point Stop Loss → If option premium moves against us by 50 points, exit.
50-Point Take Profit → If option premium moves in our favor by 50 points, book profit.
Exit all trades at 3:24 PM IST → No overnight positions.
4. Exit Conditions:
✅ Stop Loss or Take Profit Hits → Automatically exits based on a 50-point move.
✅ Time-Based Exit at 3:24 PM → Ensures no open positions at market close.
Why This Works?
✔ Trend Confirmation → 50/80 MA ensures we only sell options in the direction of the market trend.
✔ Momentum Confirmation → RSI prevents entering weak trades.
✔ Controlled Risk → SL and TP protect against large losses.
✔ No Overnight Risk → All trades close before market close.
Ryna 3 EMA Multi-Timeframe Indicator**EMA Multi-Timeframe Strategy (Pine Script v6)**
This TradingView indicator is designed to assist traders using a **multi-timeframe trend-following strategy** based on Exponential Moving Averages (EMAs).
**Core Functionality**
- **Trend Identification:**
Uses a configurable **EMA (e.g., EMA 50)** on a **higher timeframe** (e.g., H1, D1, W1) to determine the market bias:
- If price is **above** the trend EMA → **Long bias**
- If price is **below** the trend EMA → **Short bias**
- **Entry Signals:**
Uses two EMAs (fast & slow, e.g., EMA 8 & EMA 21) on either:
- The **current chart timeframe**, or
- A **separately selected timeframe** (e.g., entry on M15, trend on H1)
→ Signals are generated based on **EMA crossovers**:
- **Bullish crossover** (fast crosses above slow) → Long signal
- **Bearish crossover** (fast crosses below slow) → Short signal
- Only when aligned with the higher-timeframe trend
- **Visual Output:**
- Optional display of entry EMAs when sourced from the trend timeframe
- Always displays the trend EMA
- Entry signals shown with triangle markers on the chart
- **Info Panel (Top Center):**
- Shows selected timeframes and EMA settings
- Indicates current trend bias (LONG / SHORT / NEUTRAL)
- Notes if entry EMAs are hidden due to settings
- **Alerts:**
- Optional alerts for long and short entry signals based on EMA crossovers
#### **User Inputs**
- **Trend Timeframe & EMA Length**
- **Entry Timeframe & EMA Fast/Slow Lengths**
- **Option to show/hide entry EMAs when using the trend timeframe**
- **Option to show/hide Infobox on Chart**
Session Range (Pips/Points) Marcos Trader## English Description
Title: Session Range Indicator (Pips/Points)
Summary:
This indicator calculates and displays the price range (high - low) for the Asian, London, and New York trading sessions directly on your chart. It helps you quickly visualize the volatility of each recent session, showing the result in whole Pips for Forex or in Points for other instruments.
Key Features:
Calculates the High-Low range for the Asia, London, & NY sessions.
Displays the range in whole Pips for Forex (automatically detects JPY pairs for correct calculation).
Displays the range in Points (based on syminfo.mintick) for Indices, Crypto, Commodities, Stocks, etc.
100% Configurable Session Times: Define the exact start time, end time, and most importantly, the Time Zone for each session (Asia, London, NY) in the indicator settings. This ensures accuracy regardless of Daylight Saving Time or your chart's timezone!
Shows clear labels with the range near the end of each calculated session.
Options to individually show or hide the labels for each session.
Allows configuration of label transparency.
Allows defining how many past session labels to display on the chart (default is 5).
Developed in Pine Script v6.
How to Use:
Add the indicator to your chart.
Open the indicator Settings (gear icon).
Go to the "Session Times" section.
For each session (Asia, London, NY), enter the schedule in HHMM-HHMM format and ensure you add the correct Time Zone using a colon followed by the standard name (e.g., :Europe/London, :America/New_York, :Asia/Tokyo, :UTC+2, :UTC-5). This step is crucial.
Adjust the display options under "Show Sessions" and "Appearance" according to your preferences.
Click "OK".
Notes:
The accuracy of the indicator critically depends on the correct configuration of the times and time zones in the settings. The range label appears near the last bar belonging to the defined session.
Black–Scholes model - Options premium calculatorBlack-Scholes Options Pricing Calculator in Pine Script Introduction
The Black-Scholes model is one of the most widely used mathematical models for pricing options. It provides a theoretical estimate of the price of European-style options based on factors such as the underlying asset price, strike price, time to expiration, volatility, risk-free rate, and option type.
This Pine Script implementation of the Black-Scholes options pricing model enables traders to calculate call and put option prices directly within TradingView, helping them assess potential trades more efficiently.
What Does This Script Do?
This script allows traders to input essential option parameters and instantly calculate both call and put option prices using the Black-Scholes formula. It provides:
• A user-friendly interface for inputting option parameters.
• Automatic computation of option prices.
• Real-time updates as market data changes.
Key Features:
• Uses the Black-Scholes formula to compute European call and put option prices.
• User-defined inputs for stock price, strike price, time to expiration, volatility, and risk-free rate.
• Displays calculated option prices on the TradingView chart.
Understanding the Black-Scholes Formula:
The Black-Scholes model is given by the following equations:
C=S0N(d1)−Xe−rtN(d2)C = S_0 N(d_1) - Xe^{-rt} N(d_2) P=Xe−rtN(−d2)−S0N(−d1)P = Xe^{-rt} N(-d_2) - S_0 N(-d_1)
Where:
• CC = Call option price
• PP = Put option price
• S0S_0 = Current stock price
• XX = Strike price
• rr = Risk-free interest rate
• tt = Time to expiration (in years)
• σ\sigma = Volatility of the stock (annualized)
• N(x)N(x) = Cumulative standard normal distribution
• d1d_1 and d2d_2 are given by:
d1=ln(S0/X)+(r+σ2/2)tσtd_1 = \frac{ \ln(S_0/X) + (r + \sigma^2/2)t }{ \sigma \sqrt{t} } d2=d1−σtd_2 = d_1 - \sigma \sqrt{t}
This script implements these calculations efficiently in Pine Script to help traders quickly determine fair values for options based on current market conditions.
Example Calculation:
(The following example values were true at the time of publishing this script. Option prices fluctuate constantly, so actual values may vary.)
• Underlying asset price (NIFTY): 23,519.35
• ATM Call Strike Price: 23,500
• ATM Put Strike Price: 23,550
• IV (Implied Volatility) for Call Option: 8.1%
• IV (Implied Volatility) for Put Option: 10.1%
• Expiry Date: April 3, 2025
Using the Black-Scholes model, the calculated theoretical prices are:
• Theoretical ATM CE price: ₹129
• Theoretical ATM PE price: ₹118
For comparison, the actual option prices from the option chain table at the time of writing were:
• Actual ATM CE price: ₹139.70
• Actual ATM PE price: ₹120.30
As we can see, there is a larger difference between the theoretical price and actual market price for the ATM Call option compared to the ATM Put option.
If you're an experienced trader, you likely know how to use this kind of information to identify potential market inefficiencies or trading opportunities.
How to Use This Script:
1. Add the script to your TradingView chart.
2. Input the necessary parameters such as stock price, strike price, volatility, risk-free rate, and time to expiration.
3. View the calculated call and put option prices directly on the chart.
This Black-Scholes options pricing calculator provides a convenient way to compute theoretical option prices within TradingView. It helps traders analyse whether an option is fairly priced based on market conditions.
While the Black-Scholes model has its limitations (e.g., it does not account for early exercise of American options or dividend payments), it remains a powerful tool for European-style options pricing and a foundational concept in financial markets.
A handy little tool! Unfortunately, this script requires manual data entry since automatic data capture is currently not possible. If this ever becomes feasible in the future, an updated version will be released.
Try it out and let me know your feedback!
Disclaimer:
Please note that this is only for study/educational purpose and is just one of the many tools a trader may use.
Use it at your own risk.
Regards!
Elliott Wave Identification By Akash Patel
This script is designed to visually highlight areas on the chart where there are consecutive bullish (green) or bearish (red) candles. It also identifies sequences of three consecutive candles of the same type (bullish or bearish) and highlights those areas with adjustable box opacity. Here's a breakdown of the functionality:
---
### Key Features:
1. **Bullish & Bearish Candle Identification:**
- **Bullish Candle:** When the closing price is higher than the opening price (`close > open`).
- **Bearish Candle:** When the closing price is lower than the opening price (`close < open`).
2. **Consecutive Candle Counter:**
- The script counts consecutive bullish and bearish candles, which resets when the direction changes (from bullish to bearish or vice versa).
- The script tracks these counts using the `bullishCount` and `bearishCount` variables, which are incremented based on whether the current candle is bullish or bearish.
3. **Highlighting Candle Areas:**
- If there are **3 or more consecutive bullish candles**, the script will highlight the background in a green color with 90% transparency (adjustable).
- Similarly, if there are **3 or more consecutive bearish candles**, the script will highlight the background in a red color with 90% transparency (adjustable).
4. **Three-Candle Sequence:**
- The script checks if there are three consecutive bullish candles (`threeBullish`) or three consecutive bearish candles (`threeBearish`).
- A box is drawn around these areas to visually highlight the sequence. The boxes extend to the right edge of the chart, and their opacity can be adjusted.
5. **Box Creation:**
- For bullish sequences, a green box is created using the high and low prices of the three candles in the sequence.
- For bearish sequences, a red box is created in the same manner.
- The box size is determined by the highest high and the lowest low of the three consecutive candles.
6. **Box Opacity:**
- You can adjust the opacity of the boxes through the input parameters `Bullish Box Opacity` and `Bearish Box Opacity` (ranging from 0 to 100).
- A higher opacity will make the boxes more solid, while a lower opacity will make them more transparent.
7. **Box Cleanup:**
- The script also includes logic to remove boxes when they are no longer needed, ensuring the chart remains clean without excessive box overlays.
8. **Extending Boxes to the Right:**
- When a bullish or bearish sequence is identified, the boxes are extended to the right edge of the chart for continued visibility.
---
### How It Works:
- **Bullish Area Highlight:** When three or more consecutive bullish candles are detected, the background will turn green to indicate a strong bullish trend.
- **Bearish Area Highlight:** When three or more consecutive bearish candles are detected, the background will turn red to indicate a strong bearish trend.
- **Three Consecutive Candle Box:** A green box will appear around three consecutive bullish candles, and a red box will appear around three consecutive bearish candles. These boxes can be extended to the right edge of the chart, making the sequence visually clear.
---
### Adjustable Parameters:
1. **Bullish Box Opacity:** Set the opacity (transparency) level of the bullish boxes. Ranges from 0 (completely transparent) to 100 (completely opaque).
2. **Bearish Box Opacity:** Set the opacity (transparency) level of the bearish boxes. Ranges from 0 (completely transparent) to 100 (completely opaque).
---
This indicator is useful for identifying strong trends and visually confirming market momentum, especially in situations where you want to spot sequences of bullish or bearish candles over multiple bars. It can be customized to suit different trading styles and chart preferences by adjusting the opacity of the boxes and background highlights.
Trading Capital Management for Option SellingTrading Capital Management for Option Selling
This Pine Script indicator helps manage trading capital allocation for option selling strategies based on price percentile ranking. It provides dynamic allocation recommendations for index options (NIFTY and BANKNIFTY) and individual stock positions.
Key Features:
- Dynamic buying power (BP) allocation based on close price percentile
- Flexible index allocation between NIFTY and BANKNIFTY
- Automated calculation of recommended number of stock positions
- Risk management through position size limits
- Real-time INDIA VIX monitoring
Main Parameters:
1. Window Length: Period for percentile calculation (default: 252 days)
2. Thresholds: Low (30%) and High (70%) percentile thresholds
3. Capital Settings:
- Trading Capital: Total capital available
- Max BP% per Stock: Maximum allocation per stock position
4. Buying Power Range:
- Low Percentile BP%: Base BP usage at low percentile
- High Percentile BP%: Maximum BP usage at high percentile
5. Index Allocation:
- NIFTY/BANKNIFTY split ratio
- Minimum and maximum allocation thresholds
Display:
The indicator shows two tables:
1. Common Metrics:
- Total BP Usage with percentage
- Current INDIA VIX value
- Current Close Price Percentile
2. Capital Allocation:
- Index-wise BP allocation (NIFTY and BANKNIFTY)
- Stock allocation pool
- Recommended number of stock positions with BP per stock
Usage:
This indicator helps traders:
1. Scale positions based on market conditions using price percentile
2. Maintain balanced exposure between indices and stocks
3. Optimize capital utilization while managing risk
4. Adjust position sizing dynamically with market volatility
FLAME | Digital Levels
FLAME Indicator Explanation:
The FLAME Indicator aims to help you identify dynamic support and resistance levels on the chart. The indicator is based on horizontal lines set by the user, and their color changes depending on whether the price is at or above these lines (support) or below them (resistance). Here's a detailed explanation of each part of the indicator:
1. User Inputs:
The indicator allows you to customize 10 horizontal lines on the chart, with each line having a specific value and color.
Lines: You can define 10 horizontal lines on the chart with a specific value. For example, line1 can be at a value of 3055, and line2 at 3040, etc.
Colors: You can customize the color of each line individually. For example, line1 could be blue, line2 red, and so on.
2. How Alerts Work:
If the candle touches any of the defined lines within the tolerance margin, an alert is triggered, and a message is sent containing:
The name of the asset.
The line that was touched.
The designated link.
3. The Indicator in Action:
When you open the chart, you will see colored lines on the chart.
When the price touches these lines, the lines' colors will change based on whether they represent support or resistance.
You will receive alerts when this happens, allowing you to monitor the markets more accurately.
Conclusion:
The FLAME Indicator is a powerful tool for identifying support and resistance levels on the chart. By using this indicator, you can customize the lines with different colors and receive real-time alerts when the price touches these levels. This helps in making well-informed trading decisions based on clear technical analysis.
Covered Call VisualYou enter Covered Call details and this draws the following lines:
Max Profit
Entry Price
Strike Price
Break even
You also enter entry and expiration dates and the lines will plot between those dates with the exception of the entry price.