KKS_CUSTOMThis Pine Script combines a **Relative Strength Index (RSI) indicator with smoothing options** (SMA, EMA, WMA, VWMA, and Bollinger Bands) and **divergence detection** for bullish and bearish signals. It allows users to customize RSI settings, apply different moving averages, and enable Bollinger Bands for enhanced trend analysis. The script also detects **regular bullish and bearish divergences**, marking them on the chart with labels and providing alert conditions for potential trade signals. This versatile indicator helps traders identify overbought/oversold conditions and possible trend reversals efficiently. 🚀
Options
Datos - BigBang by Arturo ArguellesIndicador para colocar datos y marca de agua, así como visualizar la información del activo y su temporalidad
Sígueme en redes: @fxarturo_bigbang
IronCondor 10am 30TF by RMThe IronCondor 10am 30TF indicator shows Iron Condor trades win rate over a large number of days.
The default ETFs in this indicators are "QQQ", "SPY", "RUT" , "CBTX" and "SPX", other entries have not been tested.
Iron Condor quick explanation:
- Iron Condors trades have four options, generally, are based around a Midpoint price (Current Market Price Strike) and
- Two equally distances Strikes for the SELL components (called the Body of the Iron Condor)
- Further away from the two SELLs, another Two BUYs for protection (not considered in this indicator)
- Iron Condors are used for Passive Income based on small gains most of the time.
The IronCondor 10am 30TF has its logic created based on the premises that:
- Most days the market prices stay within a range.
- As example the S&P market prices would stay within 1% on about 80% of the time
- The moving markets (bullish or bearish) occur about 20% of the time
- The biggest market price volatility generally occurs before market opens and then around the first hour or so of trade in the day.
- After the first hour or so of the market the prices would be most likely to stay within a range.
The operation is simple:
- At the Trade Star time in the day (say 10:30 Hrs.) draws a vertical yellow line, then
- Creates two blue horizontal lines for the SELL limits in the Iron Condor Body, at +/- 1% price boundary (check Ticker list below for values)
- At the Trade End time (say 16:00 Hrs.) checks that none of the SELL limits have been broken by highs or lows during the trade day
(The check is done calculating at Trade End time the high/lows 10 bars back for 30 min TF - timeframe)
- There is a label at each Trade End time with Win/Loss and Body value.
- There is one final label with overall calculated past performance in Win percentage out of 'n' trades
Defaults and User Entries:
- The User can modify the Midpoint price called 'IronCondor Midpoint STRIKE' (default is the Candle Close at the selected time)
- The User can modify the Body value called 'IronCondor Body' (default is the Ticker's selected value as per list below)
"QQQ" or "SPY" Body = 5
"RUT" or "CBTX" Body = 20
"SPX" Body = 60
* Disclaimer: This is not a Financial tool, it cannot used as any kind of advice to invest or risk moneys in any market,
Markets are volatile in nature - with little or no warning - and will drain your account if you are not careful.
Use only as an academic demonstrator => * Use at your own risk *
Squeeze Volatility Scanner con ADXThis indicator works with the Bollinger bands and Kepler in addition on the ADX. The red band indicates the start of the Squeeze.
VWAP & SMA 5 Buy/Sell Signalsenables signal for buying when bullish candle is observed above sma5 and vwap similiarly generates a sell signal when bearish candle is observedbelow sma5 and vwap
EMA9/EMA20 Crossover Signalssimple and best do not complicate trading, just take action on sell and buy signal make sure the rsi is closer to overbought and oversold level for longer trades and scalping if closer to 50, stay till it crosses back, should work best in trending market, range bound market add bbollinger band to see if it makes sense. enjoy and recommend.
sogge333: Price alert every 15 minutes in timeWith this indicator you will be able to get an alarm of the current price of your favorite asset every 15 minutes.
Good for recorgnizing current price action during work or where ever you want to be noticed. Works awesome with your smartwatch 😎
HOW TO:
Go to 15 minutes Chart, than click on 'Add Alert' -> under Condition choose 'sogge333: Price alert every 15 minutes in time'
TROUBLESHOOTING: Sometimes the alert won't work, because of internet connection issues.
Have fun with this and good look for trading!!! 🍀 🤑
Nifty ATM Strike PricePurpose:
The script automatically calculates and plots the ATM strike price based on the close of each candle, rounding to the nearest 50 points, which is typical for Nifty options.
Functionality:
It provides traders a visual representation of the ATM strike price over time, which can be useful for options trading strategies and market analysis.
Optimized Pivot ReversalThe optimized pivot reversal strategy is a trading approach that aims to identify potential reversal points in the market using pivot points, indicators, and filters. This strategy can help traders determine optimal entry and exit points for their trades. Here are the key components of the optimized pivot reversal strategy:
Components:
Pivot Points:
Pivot points are significant price levels calculated based on the high, low, and close of previous trading sessions. They act as potential support and resistance levels.
In the strategy, pivot points are used to identify areas where the market might reverse direction.
Divergence Detection:
Divergence occurs when the price of an asset is moving in the opposite direction of a momentum indicator, such as the RSI (Relative Strength Index).
Bullish divergence happens when the price makes a lower low, but the indicator makes a higher low.
Bearish divergence occurs when the price makes a higher high, but the indicator makes a lower high.
Divergence detection helps in identifying potential reversal points.
ATR (Average True Range):
ATR measures the volatility of the asset and is used to set stop-loss and take-profit levels.
The strategy uses ATR to dynamically adjust stop-loss and take-profit levels based on the current market volatility.
Trend Filter:
The trend filter, often using a moving average like the 200-period SMA (Simple Moving Average), helps determine the overall market trend.
Long trades are taken only when the price is above the moving average (indicating an uptrend).
Short trades are taken only when the price is below the moving average (indicating a downtrend).
Risk-Reward Ratio:
The strategy incorporates a fixed risk-reward ratio, such as 1:5, to ensure that potential profits outweigh potential losses.
This is achieved by setting stop-loss and take-profit levels at a predefined multiple of the ATR.
Optimized Pivot Reversal Strategy Steps:
Identify Pivot Points: Use historical price data to calculate pivot points and determine potential reversal zones.
Detect Divergence: Use an indicator like RSI to identify bullish or bearish divergences at pivot points.
Apply Trend Filter: Use a moving average to filter trades based on the overall market trend.
Set Stop-Loss and Take-Profit: Calculate dynamic stop-loss and take-profit levels using the ATR.
Execute Trades: Enter long trades when bullish divergence and uptrend conditions are met. Enter short trades when bearish divergence and downtrend conditions are met. Exit trades based on the stop-loss and take-profit levels.
AnoSun - Lot Size Calculator📌 Description du Script : Lot Size Calculator
Ce script Pine Script v6 est un calculateur avancé de taille de lot destiné aux traders Forex, Indices et Crypto. Il détermine automatiquement la taille de lot optimale en fonction du solde, du risque, du stop-loss et de l’effet de levier.
🔹 Fonctionnalités principales :
✅ Mode de calcul flexible : possibilité de trader en Lots standard ou en Leverage.
✅ Estimation dynamique du spread : basé sur la volatilité du marché (high - low).
✅ Intégration des commissions : prend en compte les frais de trading pour un calcul précis.
✅ Conversion automatique des unités : adapte la valeur du pip en fonction de la devise (USD, JPY, EUR, GBP).
✅ Alerte si la taille du lot est trop grande : avertit lorsque la taille dépasse 2 lots standard.
✅ Affichage sur graphique : affiche la taille du lot, le risque en dollars, le risque réel en %, le spread et les commissions.
🛠 Utilisation :
Configurer son solde, son risque (%) et son stop-loss.
Choisir le mode de calcul (Lots ou Leverage).
Le script affiche la taille du lot idéale et ajuste selon les conditions du marché.
Ce script est idéal pour les traders souhaitant un money management précis et automatisé sur TradingView ! 🚀📊
Créateur : Anosun
VMA [Extreme Advanced Custom Table for BTCUSD]This indicator implements a Variable Moving Average (VMA) with a 33-period length—selected in homage to the Tesla 369 concept—to dynamically adjust to market conditions. It not only calculates the adaptive VMA but also displays a custom table of key metrics directly on the chart. Here’s how to use it:
Apply to Your Chart:
Add the indicator to your chart (optimized for BTCUSD, though it can be used on other symbols) and choose your desired source (e.g., close).
Customize Your Visuals:
Trend & Price Lines: Toggle the trend colors, price line, and bar coloring based on the VMA’s direction.
Channels & Slope: Enable the volatility channel and slope line to visualize market volatility and the VMA’s momentum.
Pivot Points & Super VMA: Activate pivot high/low markers for potential reversal points and a Super VMA (SMA of VMA) for an extra smoothing layer.
Table Customization: Adjust the table’s position, colors, and font sizes as needed for your viewing preference.
Monitor Key Metrics:
The dynamic table displays essential information:
VMA Value & Trend: See the current VMA and whether the trend is Bullish, Bearish, or Neutral.
Volatility Index (vI) & Slope: Quickly assess market volatility and the VMA’s slope (both absolute and percentage).
Price-VMA Difference & Correlation: Evaluate how far the price is from the VMA and its correlation.
Higher Timeframe VMA: Compare the current VMA with its higher timeframe counterpart (set via the “Higher Timeframe” input).
Alerts for Key Conditions:
Built-in alert conditions notify you when:
The trend changes (bullish/bearish).
The VMA slope becomes extreme.
The price and VMA correlation falls below a defined threshold.
The VMA crosses its higher timeframe average.
How to Use the Script:
Add to Your Chart:
Open TradingView and apply the indicator to your BTCUSD (or any other) chart.
The indicator will overlay on your chart, plotting the VMA along with optional elements such as the price line, volatility channels, and higher timeframe VMA.
Customize Your Settings:
Inputs:
Choose your data source (e.g., close price).
Adjust the VMA length (default is 33) if desired.
Visual Options:
Toggle trend colors, bar coloring, and additional visuals (price line, volatility channels, slope line, pivot points, and Super VMA) to suit your trading style.
Table Customization:
Set the table position, colors, border width, and font size to ensure key metrics are easily visible.
Higher Timeframe:
You can change the higher timeframe input (default is Daily) to better fit your analysis routine.
Interpret the Indicator:
Trend Analysis:
Watch the color-coded VMA line. A rising (orange) VMA suggests bullish momentum, while a falling (red) one indicates bearish conditions.
What Sets This Script Apart:
Dynamic Adaptation:
Unlike a fixed-period moving average, the VMA adjusts its sensitivity in real time by integrating a volatility measure, making it more adaptive to market swings.
Multi-Layered Analysis:
With integrated volatility channels, pivot points, slope analysis, and a higher timeframe VMA, this tool gives you a fuller picture of market dynamics.
Immediate Data at a Glance:
The real-time table consolidates multiple key metrics into one view, saving time and reducing the need for additional indicators.
Custom Alerts:
Pre-built alert conditions allow for timely notifications, ensuring you don’t miss critical market changes.
HTF EMA Pivot PointsHTF EMA Pivot Points - TradingView Indicator
📌 Overview
The HTF EMA Pivot Points indicator displays Exponential Moving Averages (EMAs) from higher timeframes (HTF) on your current chart. These EMAs act as dynamic support and resistance levels, helping traders identify key areas where price is likely to react.
⚡ Key Features
✅ Plots EMAs from multiple timeframes (1H, 4H, Daily)
✅ Works on any chart (1M, 5M, 15M, etc.)
✅ Acts as pivot points for price action, helping with trade entries & exits
✅ Customizable EMA lengths for flexibility
✅ Ideal for scalping, 0DTE options trading, and swing trading
🛠 How It Works
The script calculates EMAs from 1H, 4H, and Daily charts and overlays them on your current timeframe. These levels often act as support and resistance zones, where price tends to bounce or reject.
🎯 How to Use It for Trading
📍 Bullish Setup (Buy Calls)
• Price bounces off a higher timeframe EMA (e.g., 4H or Daily EMA)
• Confirmation with RSI or Fair Value Gaps (FVGs)
📍 Bearish Setup (Buy Puts)
• Price rejects from a higher timeframe EMA
• Confirmation with other indicators (RSI, MACD, Order Flow)
🚀 Why Use This Indicator?
• Filters out noise from lower timeframe EMAs
• Confirms trend direction using key moving averages
• Helps avoid false breakouts by identifying strong institutional levels
This is a must-have tool for traders who rely on higher timeframe confluence for scalping, options trading, or swing trading. 📈🔥
Monthly Options Expiration 2025Monthly Options Expiration 2025
Plots the monthly options expiration dates in advance for the year 2025.
Happy trading and all the best.
AllDay Session TimesIndicator: Custom Session Times
This indicator is designed to assist traders by visualizing specific trading session times on the TradingView platform. It highlights two important trading sessions: the Day Session and the Evening Session, providing a visual aid that helps traders navigate the markets with greater accuracy.
Day Session Time Range:
Starts: 10:55 UTC+2
Ends: 13:30 UTC+2
Evening Session Time Range:
Starts: 16:55 UTC+2
Ends: 18:30 UTC+2
How It Works:
Colors and Backgrounds: This indicator uses background colors to differentiate the sessions. The green background appears during the Day Session, while the blue background indicates the Evening Session.
Lines: Session time ranges are also marked with clear lines on the chart, making it easier to identify the specific session periods.
Time Zone: The time zone is set to UTC+2 (Europe/Helsinki), but it can easily be adjusted to match your local time zone.
Why Use This Indicator?
This indicator is especially useful for traders who focus on specific market sessions. For example:
The Day Session might be when the market is more active, and trends are clearer.
The Evening Session could be a good time to observe market adjustments based on the events of the day and find potential trading opportunities.
By visualizing these specific time frames, the indicator helps reduce distractions and enables a more focused approach to trading.
Use Cases:
This indicator is ideal for:
Day traders and swing traders who want to focus on certain market sessions.
Technical analysts who prefer to visualize market behavior within specific time frames.
Strategy optimization and a more precise assessment of market conditions.
Features:
Visual session markers that help traders focus on key trading periods.
Easy customization of time zone and session time ranges.
Background colors and lines that improve chart readability and session tracking.
Made By AllDayEsa
Weekly Change(Green&Red) & Percentage Change(Blue&Yellow)Display bar chart of weekly price action. Use to determine the maximum price change in one week. It would be the possible strike price for a covered call option for weekly income.
WD Gann: Vertical Lines for Predefined Days/Bars AgoThis Pine Script draws vertical lines on the chart at specific time intervals, inspired by WD Gann’s theories of time cycles . WD Gann, a famous trader, believed that market movements were influenced by predictable time cycles. This script enables traders to visualize these key time cycles on the chart by placing vertical lines at predefined intervals (in bars ago), helping to identify potential turning points in the market.
The time intervals used in this script are inspired by Gann’s work, as well as astrological and numerological principles , which many traders believe influence market behavior . You can customize which time intervals (such as 3, 7, 9, 21, etc.) you want to track by enabling or disabling specific vertical lines on the chart.
Key Features:
Time Cycles Based on Gann’s Theory: Draws vertical lines at significant time intervals such as 3, 7, 9, 21, 27 bars ago, which are commonly used by Gann traders.
Astrological & Numerological Significance: The predefined intervals also align with key numerological and astrological values, allowing for a broader perspective on market cycles.
Customizable Intervals: You can choose which time intervals to display by enabling or disabling checkboxes for each cycle, allowing flexibility in chart analysis.
Visual Labels: Each vertical line is labeled with its corresponding "bars ago" value, providing clear reference points for the selected time cycles.
What Users Can Do:
Track and analyze market movements based on time cycles that are significant to Gann’s theory, as well as numerological and astrological influences.
Enable or disable vertical lines for specific cycles, like the 3-bar cycle, 9-bar cycle, or 365-bar cycle, depending on the intervals that align with your trading strategy.
Combine with other technical analysis tools and Gann techniques (e.g., Gann Angles, Gann Fans, or Square of Nine) for a more comprehensive trading approach.
This tool is designed for traders who believe in the power of time cycles to influence market behavior, and is especially useful for predicting turning points or key price movements based on these cycles.
Precision Trade Zone By KittisakThis indicator is designed for Money Management calculations, helping to facilitate risk management in trading, determining suitable leverage based on acceptable risk, and adjusting the Stop Loss level to align with the calculated leverage.
Abbreviation Descriptions
LR : Suitable Leverage.
EP : Entry Price.
BEP : Break-Even Point (a point where you can move your Stop Loss to prevent losses once the price reaches a certain level).
SL : Stop Loss (a recalculated Stop Loss level to match the leverage. You should use this as the Stop Loss price instead of the initial level you set).
TP : Take Profit (a point where you take profit based on the defined risk-reward ratio).
Note
When first activating the indicator, an error may occur, and no output will be displayed. This happens because you must first specify the Entry Price and Stop Loss in the indicator settings.
How Much Leverage Should You Use?
It may seem like a simple question but is difficult to answer.
Method for Calculating Suitable Leverage
Use the formula:
Leverage = Acceptable Loss / (Distance between Entry Price and Stop Loss + (Buy Fee + Sell Fee))
Calculating the Correct Stop Loss Point
(Stop Loss levels will be slightly adjusted or extended)
For Long Positions :
New Stop Loss = Entry Price * (1 - Acceptable Loss / (Calculated Leverage * 100))
For Short Positions :
New Stop Loss = Entry Price * (1 + Acceptable Loss / (Calculated Leverage * 100))
Calculating the Correct Take Profit Point
(Take Profit levels will be slightly adjusted or extended)
For Long Positions :
Take Profit = Entry Price * (1 + (Acceptable Loss / (Calculated Leverage * 100) * RR) + ((Buy Fee + Sell Fee) / 100))
For Short Positions :
Take Profit = Entry Price * (1 - (Acceptable Loss / (Calculated Leverage * 100) * RR) + ((Buy Fee + Sell Fee) / 100))
Benefits of This Calculation
1. Accurate Risk Assessment
The calculated leverage accounts for trading fees. For example, if you aim for a 2% loss, this method ensures the actual loss is exactly 2%, not more (e.g., 2% plus fees).
2. Eliminates Guesswork
Randomly setting leverage can lead to risks because the Stop Loss level may not align with your position. This calculation ensures that the leverage aligns precisely with your desired Stop Loss level.
3. Realistic Profit Targets
For example, with a 2% acceptable loss and a 1:2 RR, you expect a 4% profit. However, without this calculation, fees may reduce your profit below 4%. This method includes fees, ensuring your profit matches the intended target.
Caution
This indicator does not account for slippage or requotes. Use it with caution and allow a buffer for slippage in your calculations.
Indicator นี้มีไว้สำหรับคำนวณ Money Management ซึ่งจะช่วยอำนวยความสะดวกในการจัดการความเสี่ยงในการเทรด การคำนวณ Leverage ที่เหมาะสมกับความเสี่ยงที่คุณยอมรับได้ และจัดการจุด Stop Loss ให้เหมาะสมกับ Leverage นั้น
คำอธิบายเกี่ยวกับคำย่อ
LR หมายถึง Leverage ที่เหมาะสม
EP หมายถึง Entry Price หรือราคาเข้าซื้อ
BEP หมายถึง Break-Even Point หรือจุดคุ้มทุน (คุณสามารถย้าย Stop Loss มาที่จุดนี้เมื่อราคาไปถึงจุดหนึ่งเพื่อป้องกันการขาดทุนได้)
SL หมายถึง Stop Loss (ซึ่งเป็น Stop Loss ที่คำนวณใหม่เพื่อให้ตำแหน่งเหมาะสมกับ Leverage ที่คำนวณได้ คุณควรใช้จุดนี้เพื่อเป็นราคา Stop Loss แทนจุด Stop Loss ที่คุณกำหนดไว้ในตอนแรก)
TP หมายถึง Take Profit (เป็นจุดที่คุณจะขายทำกำไรตาม RR ที่กำหนดไว้)
* หมายเหตุ เมื่อเริ่มเปิด Indicator จะเกิด Error ขึ้น และไม่มีผลลัพท์ใด ๆ แสดงให้เห็น นั่นเป็นเพราะคุณต้องเข้าไปกำหนด Entry Price และ Stop Loss ในการตั้งค่าของ Indicator เสียก่อน
ต้องใช้ Leverage เท่าไหร่? มันเป็นคำถามที่ดูเหมือนง่าย แต่ตอบยาก
วิธีคำนวณ Leverage ที่เหมาะสม ใช้สมการคือ
Levarage = การขาดทุนที่ยอมรับได้ / (ระยะห่างระหว่าง Entry Price และ Stop Loss + (ค่าธรรมเนียมซื้อ + ค่าธรรมเนียมขาย))
นำผลลัพท์ Leverage ที่ได้มาคำนวณเพื่อหาจุด Stop Loss ที่ถูกต้อง (จุดของ Stop Loss จะมีการยืดขยายออกไปเล็กน้อย) โดยใช้สมการ
ตำแหน่ง Stop Loss ใหม่ = Entry Price * (1 - การขาดทุนที่ยอมรับได้ / (Leverage ที่คำนวณได้ * 100)) // สำหรับ Long
ตำแหน่ง Stop Loss ใหม่ = Entry Price * (1 + การขาดทุนที่ยอมรับได้ / (Leverage ที่คำนวณได้ * 100)) // สำหรับ Short
นำผลลัพท์ Leverage ที่ได้มาคำนวณเพื่อหาจุด Take Profit ที่ถูกต้อง (จุดของ Take Profit จะมีการยืดขยายออกไปเล็กน้อย) โดยใช้สมการ
ตำแหน่ง Take Profit = Entry Price * (1 + (การขาดทุนที่ยอมรับได้ / (Leverage ที่คำนวณได้ * 100) * RR) + ((ค่าธรรมเนียมซื้อ + ค่าธรรมเนียมขาย) / 100)) // สำหรับ Long
ตำแหน่ง Take Profit = Entry Price * (1 - (การขาดทุนที่ยอมรับได้ / (Leverage ที่คำนวณได้ * 100) * RR) + ((ค่าธรรมเนียมซื้อ + ค่าธรรมเนียมขาย) / 100)) // สำหรับ Short
ข้อดีของการคำนวณคือ
1. คุณจะได้ค่า Leverage ที่เหมาะสมกับความเสี่ยงที่คุณยอมรับได้โดยรวมค่าธรรมเนียมเข้าไปในนั้นแล้ว นั่นหมายความว่า ความสูญเสียจะเป็น 2% (ตามตัวอย่าง) จริง ๆ ไม่ใช่ 2% และถูกหักค่าธรรมเนียมเพิ่มอีก กลายเป็นสูญเสียมากกว่า 2%
2. การตั้ง Leverage มั่ว ๆ กลายเป็นความเสี่ยง นั่นเพราะตำแหน่งของ Stop Loss ไม่ได้อยู่ในจุดที่ควรจะเป็น การคำนวณนี้ช่วยให้คุณได้ Leverage ในตำแหน่ง Stop Loss ที่คุณต้องการโดยแท้จริง
3. ผลกำไรที่ได้รับตรงกับความต้องการจริง ๆ เช่น การขาดทุนที่ยอมรับได้ 2% และ RR 1:2 สิ่งที่คุณคิดคือกำไร 4% แต่จริง ๆ แล้วไม่ถึง 4% นั่นเพราะว่าโดนหักค่าธรรมเนียมไปส่วนหนึ่ง การคำนวณนี้ได้รวมค่าธรรมเนียมให้แล้ว คุณจึงได้กำไรที่ 4% อย่างถูกต้องตามต้องการ
ข้อควรระวัง
Indicator นี้ไม่ได้มีการควบคุมความเสี่ยงในเรื่องของ slippage หรือ requote โปรดใช้งานอย่างระมัดระวังและมีการเผื่อระยะสำหรับ slippage ด้วย
Best of Option Indicator - Manoj WadekarPlot this indicator for both CALL and PUT options and buy only when color of candle is YELLOW and above BLACK line.
Options Levels Support and ResistanceAre you sometimes clueless of where you are going to find support or resistance for the stock price? Nothing can be more powerful than market positioning via options levels.
This indicator visualizes key institutional options levels including short-term and longer-term Put/Call Walls, and projected implied move ranges.
Key Features:
Displays major support/resistance levels derived from options data
Shows institutional Put Walls (PW) and Call Walls (CW) - areas of significant options activity
Identifies short-term and longer-term gamma levels for more precise trading
Includes an option statistics (IV, Put/Call ratio, trend) in a clean dashboard
Automatically(*) updates throughout the trading day to reflect current market positioning
Currently supporting 440 of the most popular tickers.
Presents gamma flip levels for indexes SPX, RUT, NDX and VIX
Trading Applications:
Identify key price levels where institutional options activity may influence price movement
Gauge market sentiment through IV levels, Put/Call ratios, and options positioning
Plan entries/exits around major Put/Call walls where price reversals are more likely
Monitor changes in institutional positioning through level trends
Levels are calculated externally using comprehensive options data and updated into the indicator multiple times per day. Note that I can't guarantee it will be timely updated since TradingView offers no access to external data nor a way to programmatically update the script.
This code simply renders the levels I calculate using external software. I had to make the code as short as possible to accommodate more tickers, reason why there is no commenting.
The last update time (New York/EST) is shown in the dashboard.
OHOL_VWAP_STIts all about OH and OL concept for Nifty Future.
1.When OH candle formed and breaks the high we can enter the position, candle should be below supertrend , moving average and vwap .
2..When OL candle formed and breaks the high we can enter the position, candle should be above supertrend , moving average and vwap .
Rich's DikFat Money-Counter - ITM/OTM Options Price ViewerScript Overview
This Pine Script is a custom indicator designed for use on the TradingView platform. It analyzes options contracts, extracting key information from the options symbol, and then visualizes the relationship between the current price of the underlying asset and the option's strike price. Here’s a detailed explanation of the script and its components:
Key Features
Symbol Format Validation: The script checks whether the current symbol matches the expected format of an options symbol (like TSLA250131C400.0).
Extraction of Option Components: It extracts the base symbol (e.g., TSLA), expiration date (e.g., 250131), option type (C for call, P for put), and strike price (e.g., 400.0) from the options symbol.
Price Difference Calculation: It calculates the difference between the current price of the base asset (e.g., TSLA) and the option's strike price. Depending on whether the option is a call or put, the calculation is adjusted.
Visualization: The result is plotted on the chart, with color-coded filling to indicate whether the price difference is positive (ITM) or negative (OTM).
Detailed Explanation of Code Components
1. Indicator Definition
indicator("Rich's DikFat Money-Counter - In the Money/Out of the Money Options Price Viewer", shorttitle="Options Price Viewer", overlay=true)
This line defines the indicator's name, short title, and specifies that it should be plotted on the price chart (with overlay=true).
2. Symbol Detection
currentSymbol = syminfo.ticker
This retrieves the symbol of the current asset being analyzed. The script expects this symbol to be an options contract, for example, TSLA250131C400.0.
3. Symbol Format Validation
isOptionSymbol = str.length(currentSymbol) >= 9 and str.match(currentSymbol, "^ + {6} +(\. +)?$") != ""
This checks whether the current symbol matches the expected format for an option:
The symbol must have at least 9 characters.
It must follow a specific pattern: a base symbol (letters), a 6-digit expiration date, an option type (C for Call or P for Put), and a strike price that could include decimals.
[/list>
4. Extracting Option Components
If the symbol is a valid option symbol, the following code extracts the components:
baseSymbol := str.match(currentSymbol, "^ +")
expirationDate := str.substring(currentSymbol, str.length(baseSymbol), str.length(baseSymbol) + 6)
optionType := str.substring(currentSymbol, str.length(baseSymbol) + 6, str.length(baseSymbol) + 7)
strikePrice := str.substring(currentSymbol, str.length(baseSymbol) + 7, str.length(currentSymbol))
baseSymbol: Extracts the letters representing the stock symbol (e.g., TSLA).
expirationDate: Extracts the expiration date in the form of a 6-digit number (e.g., 250131).
optionType: Extracts the option type (C for Call, P for Put).
strikePrice: Extracts the strike price, which is the value after the option type (e.g., 400.0).
[/list>
5. Fetching the Base Symbol Price
baseSymbolClose = request.security(baseSymbol, "1", close)
This line uses the request.security() function to get the most recent close price of the base symbol (e.g., TSLA) on a 1-minute chart.
6. Converting the Strike Price to a Float
strikePriceFloat = na(strikePrice) ? na : str.tonumber(strikePrice)
Converts the strike price string to a numerical value (float). If the strike price is not available (i.e., na), it will not proceed with calculations.
7. Price Difference Calculation
priceDifference = baseSymbolClose - strikePriceFloat
This calculates the difference between the base symbol's close price and the strike price. For a Call option, this represents how much the stock price is above or below the strike price.
8. Adjusting for Put Options
if optionType == "P"
priceDifference := strikePriceFloat - baseSymbolClose
If the option is a Put, the price difference is reversed because a Put option becomes valuable when the stock price is below the strike price.
9. Plotting the Price Difference
priceDiffPlot = plot(priceDifference, title="Price Difference (Strike - Base)", color=color.blue, linewidth=2, style=plot.style_line, offset=0)
This line plots the calculated price difference as a blue line.
10. Zero Line Plot
zeroLinePlot = plot(0, "Zero Midline", color=color.white, linewidth=1, style=plot.style_line, offset=0)
This plots a white line at the zero level. This helps visually separate when the price difference is positive or negative.
11. Filling the Area Between the Price Difference and Zero Line
fill(priceDiffPlot, zeroLinePlot, color=color.new(priceDifference > 0 ? color.green : color.red, 70))
This fills the area between the price difference plot and the zero line:
Green if the price difference is positive (indicating the option is In the Money for Calls or Out of the Money for Puts).
Red if the price difference is negative (indicating the option is Out of the Money for Calls or In the Money for Puts).
Final Thoughts
This script is useful for traders and options investors who want to track the status of an option relative to the current price of the underlying asset. The green and red fill colors provide an immediate visual cue for whether the option is ITM or OTM. By applying this indicator on TradingView, users can easily see whether a particular option is valuable (ITM) or worthless (OTM) based on the current market price of the underlying asset. This makes it a valuable tool for quick decision-making in options trading.
Venta's DikFat Spread Visualizer & Dynamic Options Chain
**Venta's DikFat Spread Visualizer and Options Chain Strike Scanner** is a powerful trading tool designed to give users an immediate view of the nearest options strikes relative to the current price of the underlying asset. This script dynamically displays a selected number of call and put options strikes from the **options chain**, visualizing them directly on the chart for better decision-making.
By default, the script shows options strikes for the current chart’s price, but users have the flexibility to extend the view to include strikes on the opposite side of the market. The available options allow you to show either 3, 6, or 9 strikes on either side of the current price level.
This tool is essential for options traders who want to track strike prices in relation to the underlying asset's price movements. It provides key visual clues such as strike price distributions, volatility, and potential areas of market basing—all in a customizable and user-friendly interface.
---
█ CONCEPTS
This script pulls real-time **options strikes** directly from the **options chain**, providing traders with the ability to see call and put strikes as dynamic price markers on their chart. The concept revolves around understanding the proximity and distribution of strikes based on the current price and market conditions.
Key Features
**Dynamic Options Strike Display**: The script automatically identifies and displays the options strikes closest to the current market price of the underlying asset.
**Customizable Strike Range**: Choose between 3, 6, or 9 strikes on either side of the current price, giving flexibility in visualizing different strike ranges.
**Current Chart Focused by Default**: When added to the chart, the script focuses on the strikes closest to the current price. However, users can opt to include strikes on the opposite side of the market for a broader view.
**Instant Market Context**: The displayed
strikes offer a snapshot of the options market and how the current price relates to potential option expiration levels, helping traders understand key zones.
**Visual Clues on Spreads & Volatility**: This script not only displays the strikes but also provides instant visual clues that reflect the volatility and spread of the options market.
---
█ HOW IT WORKS
The script operates by accessing the **options chain** for the underlying asset, identifying the nearest call and put strikes, and plotting them as visual markers on the chart. This real-time strike data is dynamic, adjusting automatically as the market price moves.
Strike Calculation
The script uses the current price of the underlying asset as a base point and calculates the nearby **options strikes** from the **options chain**.
Depending on the user's settings, the script will plot up to 9 strikes on either side of the price level.
This calculation is performed using live market data, making sure the plotted strikes always reflect the most current market conditions.
Visual Clues
**Spreads**: The space between the plotted call and put options strikes provides immediate insights into the current bid/ask spreads. If the spread between strike prices is wide, it suggests increased volatility or a higher level of uncertainty in the market. Conversely, narrow spreads often indicate market stability or a lack of price movement.
**Market Basing**: When options strikes form a concentrated group near a certain price level, it can indicate that the market is building up or basing at a key level. This might signal the potential for a breakout or a reversal.
**Volatility Insights**: Wider gaps between strikes, particularly on the call side versus the put side (or vice versa), can indicate an imbalance in options trading activity, often a reflection of higher volatility expectations. This visual clue can help traders assess when the market is pricing in significant movements.
Customization and User Settings
**Number of Strikes**: The number of options strikes shown is fully customizable, allowing users to display 3, 6, or 9 strikes on either side.
**Show Opposite Strikes**: By default, the script shows strikes on the current side of the market, but users can enable the option to show strikes on the opposite side to gain a more complete view of the market's options landscape.
**Strike Colors & Width**: Customize the visual appearance of the plotted strikes by adjusting the color and line width for better clarity and chart aesthetics.
---
█ POTENTIAL USE CASES
This indicator is especially valuable for **options traders**, **market analysts**, and anyone interested in gaining insights into the underlying options market. Here are some of the key use cases:
**Options Traders**: Quickly identify the nearest strike prices and understand the risk/reward potential for options positions. The ability to customize the number of strikes shown allows traders to focus on the most relevant price levels.
**Volatility Monitoring**: Use the visual clues from the spread between strike prices to assess the level of volatility in the options market. A wider spread suggests that options traders are expecting more significant price moves, while a narrow spread indicates less expected movement.
**Support and Resistance Identification**: The clustering of strike prices on one side of the market can indicate a potential support or resistance level. By monitoring these levels, traders can get a sense of where the market may reverse or consolidate.
**Market Sentiment Analysis**: A large concentration of call strikes above the current price level, or put strikes below, can be an indication of market sentiment, such as whether traders are generally bullish or bearish.
**Risk Management**: By tracking nearby options strikes, traders can adjust their strategies to minimize risk, especially when market price levels approach significant strike points.
---
█ FEATURES
**Real-Time Data**: The script pulls data from the **options chain**, ensuring that the plotted strikes are always up-to-date with the current market price.
**User-Friendly Interface**: Clear and customizable inputs allow users to easily adjust the number of strikes displayed and control visual settings such as colors and line widths.
**Visual Strike Indicators**: Instantly spot volatility, market basing, and spread imbalances through visual clues from the plotted strikes, enhancing your market analysis.
---
█ LIMITATIONS
**Accuracy Depends on Market Data**: This indicator relies on the available **options chain** data. While the data is updated in real-time, its accuracy may depend on the liquidity and availability of options contracts in the market.
**Not Suitable for Non-Options Traders**: If you don’t trade options, the relevance of this indicator may be limited as it is designed specifically to provide insight into the options market.
**Data Delays**: In fast-moving markets, there may be a slight delay in the updating of strike prices, depending on the data feed.
---
█ HOW TO USE
**Load the Script**: Add the **Venta's DikFat Spread Visualizer and Options Chain Strike Scanner** script to your TradingView chart.
**Adjust Settings**: Use the input options to select the number of strikes you want to display (3, 6, or 9). You can also choose whether to display only the current chart’s strikes or include strikes from the opposite side.
**Interpret the Strikes**: Look at the plotted strikes to gain insights into where the market is currently pricing options and where major strike prices are located. Pay attention to the spreads, concentrations, and volatility signals.
**Monitor the Market**: As the market moves, watch how the strikes shift and cluster, providing you with real-time information about market sentiment and potential volatility.
---
█ THANKS
We would like to extend our gratitude to the PineCoders community for their ongoing support and contributions to the TradingView Pine Script ecosystem. Special thanks to The Options Team.
Previous Day High and Low by DRK TradingThe Previous Day High and Low Indicator is a simple yet powerful tool designed for traders who want to keep track of critical levels from the previous trading session. This indicator automatically marks the high and low of the previous day on your chart with dashed horizontal lines, making it easier to identify key support and resistance zones.
Features:
Horizontal Lines: Clearly marks the previous day's high and low levels.
Dynamic Updates: Automatically updates at the start of a new trading day.
Visual Clarity: Includes labels at the start of the day for quick reference.
Customizable: Works seamlessly across all timeframes and instruments.
Use Case:
Identify potential breakout and reversal zones.
Enhance intraday and swing trading strategies by focusing on key price levels.
Plan stop-loss and target levels based on historical price movements.
This indicator is perfect for price action traders, intraday scalpers, and swing traders who rely on past price behavior to make informed decisions.