Resumen de Tendencia.v01📊 Trend Summary with SMA 200 📊
This Pine Script displays a summary table showing the price trend across multiple timeframes (Weekly, Daily, 4H, 1H, 15M, and 5M) based on the 200-period Simple Moving Average (SMA).
✅ Easy to interpret:
Bullish (✅ Green) → Price above SMA 200
Bearish (❌ Red) → Price below SMA 200
⚡ Features:
🔹 Evaluates trends across different timeframes.
🔹 Displays a compact summary table in the top-right corner.
🔹 Keeps the chart clean without extra lines.
Perfect for traders who need a quick multi-timeframe trend analysis! 🚀📈
Autor: Luis Alberto Flores
#Trading #PineScript #SMA200 #AnálisisTécnico #Tendencia
Options
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.
Weekday Labels with Infinite Vertical LinesThis indicator is 2 part of "Daily Separator with Day". Add this indicator for open all adventage this 2 indicator
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 *
Daily Separator with Daythis indicator about vertical lines at weekly days. Add at chart a 2 part of this indicator - Weekdays Labels to have all advantages this indicator
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.
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.
Open & Close PriceShows open and closing price; controls for extensions. Toggles for visibility.
Shades opening day gap, controls for extensions. Toggles for visibility.
Does not work for hourly or above as opening price is set to 9:30 am eastern which does not appear on the axis for hourly or above. And I'm not a coder.
But for sub hourly charts - it's an easy tool I've been looking for for a while just for myself.
It's imperfect; but sharing for anyone that was looking for something similar.
Range%This indicator displays the range of each candle i.e. High minus Low as a percentage of the previous closing price. It does not account for gaps, making it particularly useful for intraday trading. By tracking the volatility cycle of candles, this indicator helps identify periods of increased or decreased market volatility, allowing traders to pinpoint the best days to execute trades.
If the Range% is below low line candles will turn White and If Range% is above the High Line Candles will turn Red.
Option Value/Time Value DifferenceThis indicator calculates and visualizes the difference between two option contracts (either their time value or option value) based on a user-selected underlying instrument (e.g., NIFTY 50). It fetches real-time data for the underlying and the two specified options, computes their intrinsic and time values, and plots either the time value or option value (ask price) along with their difference. A customizable table displays key details, including strike prices, option types (Call/Put), and the selected values, with a dark mode option for better visibility.
Key Features:
Flexible Plotting: Choose to plot and display either the Time Value (option price minus intrinsic value) or the Option Value (ask price) for two option strikes.
Difference Calculation: Plots the difference between the two options’ selected values (time value or option value) as a distinct line.
Dynamic Table: Shows strike prices, option types (CE/PE), and the selected values (time value or option value) for both options, plus their difference.
Dark Mode Support: Toggle between light and dark themes for the table display.
Real-Time Data: Uses TradingView’s request.security to fetch live prices for the underlying and options.
Use Case:
This script is ideal for options traders who want to compare two strikes (e.g., a Call and a Put, or two Calls/Puts at different strikes) and analyze their time value or option value differences in real-time. It’s particularly useful for strategies like spreads, straddles, or strangles.
How to Use
Add to Chart:
Open TradingView, go to the Pine Editor, paste this script, and click “Add to Chart.”
Configure Inputs:
Underlying Instrument: Enter the symbol of the underlying asset (e.g., NSE:NIFTY for NIFTY 50).
Option Instrument 1: Enter the symbol of the first option (e.g., NSE:NIFTY250327C24000 for a Call expiring March 27, 2025, at strike 24000).
Option Instrument 2: Enter the symbol of the second option (e.g., NSE:NIFTY250327C24500 for a Call at strike 24500).
Plot Type: Select either Time Value (default) or Option Value to determine what is plotted and displayed.
Dark Mode: Check this box to switch the table to a dark theme (default is light).
Interpret Outputs:
Chart Lines:
Blue Line: Value of the first option (time value or option value, based on selection).
Red Line: Value of the second option.
Purple Line: Difference between the two options’ values.
Table (Middle-Left Position):
Row 1: Strike price and type (CE/PE) of the first option.
Row 2: Strike price and type of the second option.
Row 3: Selected value (time value or option value) of the first option.
Row 4: Selected value of the second option.
Row 5: Difference between the two options’ values.
Adjust Settings:
Modify the input symbols or plot type via the indicator’s settings to suit your analysis needs.
Inputs
Underlying Instrument (Symbol, Default: NSE:NIFTY):
The ticker symbol of the underlying asset (e.g., NIFTY 50 index).
Option Instrument 1 (Symbol, Default: NSE:NIFTY250327C24000):
The ticker symbol of the first option contract. Must follow a format like NSE:NIFTY (e.g., Call at 24000).
Option Instrument 2 (Symbol, Default: NSE:NIFTY250327C24500):
The ticker symbol of the second option contract (e.g., Call at 24500).
Plot Type (String, Options: Time Value, Option Value, Default: Time Value):
Choose whether to plot and display the Time Value (option price minus intrinsic value) or the Option Value (ask price).
Dark Mode (Boolean, Default: false):
Enable for a dark-themed table; disable for a light theme.
Outputs
Plotted Lines:
Value 1 (Blue): Time value or option value of the first option, depending on the Plot Type.
Value 2 (Red): Time value or option value of the second option.
Difference (Purple): The difference between Value 1 and Value 2 (e.g., Time Value 1 - Time Value 2).
Table Display:
Strike prices and option types (Call/Put) for both options.
Selected values (time value or option value) for each option.
The difference between the two options’ selected values.
Ivan Gomes StrategyIG Signals+ - Ivan Gomes Strategy
This script is designed for scalping and binary options trading, generating buy and sell signals at the beginning of each candle. Although it is mainly optimized for short-term operations, it can also be used for medium and long-term strategies with appropriate adjustments.
How It Works
• The indicator provides buy or sell signals at the start of the candle, based on a statistical probability of candle patterns, depending on the timeframe.
• It is essential to enter the trade immediately after the signal appears and exit at the end of the same candle.
• If the first operation results in a loss (Loss), the script will send another trade signal at the start of the next candle. However, if the first trade results in a win (Gain), no new signal will be generated.
• The signals follow cycles of 3 candles, regardless of the timeframe. However, if a Doji candle appears, the cycle is interrupted, and no signals will be generated until the next valid cycle starts.
• The strategy consists of up to two trades per cycle: if the first trade is not successful, the second trade serves as an additional attempt to recover.
Key Points to Consider
1. Avoid trading in sideways markets – If price levels do not fluctuate significantly, the accuracy of the signals may decrease.
2. Trade in the direction of the trend – Using Ichimoku clouds or other trend indicators can help confirm trend direction and improve signal reliability. If the market is in an uptrend (bullish trend) and the indicator generates a sell signal, the most prudent decision would be to wait for a buy signal that aligns with the main trend. The same applies to downtrends, where buy signals may be riskier.
These decisions should be based on chart reading and supported by other technical analysis tools, such as support and resistance levels, which indicate zones where price might face obstacles or reverse direction. Additionally, Fibonacci retracement levels can help identify possible pullback points within a trend. Moving averages are also useful for visualizing the general market direction and confirming whether an indicator signal aligns with the overall price structure. Combining these tools can increase trade accuracy and prevent unnecessary trades against the main trend, reducing risks.
3. Works based on probability statistics – The algorithm analyzes candle formations and their statistical probabilities depending on the timeframe to optimize trade entries.
4. Best suited for scalping and binary options – This strategy performs best in 1-minute and 5-minute timeframes, allowing for multiple trades throughout the day.
Technical Details
• The script detects the candle cycle and assigns an index to each candle to identify patterns and possible reversals.
• It recognizes reference candles, stores their colors, and compares them with subsequent candles to determine if a signal should be triggered.
• Doji candle rules are implemented to avoid false signals in indecisive market conditions. When a Doji appears, the script does not generate signals for that cycle.
• The indicator displays visual alerts and notifications, ensuring fast execution of trades.
Disclaimer
The IG Signals+ indicator was created to assist traders who struggle to analyze the market by providing objective trade signals. However, no strategy is foolproof, and this script does not guarantee profits.
Trading involves significant financial risk, and users should test it in a demo account before trading with real money. Proper risk management is crucial for long-term success.
Trend Vanguard StrategyHow to Use:
Trend Vanguard Strategy is a multi-feature Pine Script strategy designed to identify market pivots, draw dynamic support/resistance, and generate trade signals via ZigZag breakouts. Here’s how it works and how to use it:
ZigZag Detection & Pivot Points
The script locates significant swing highs and lows using configurable Depth, Deviation, and Backstep values.
It then connects these pivots with lines (ZigZag) to highlight directional changes and prints labels (“Buy,” “Sell,” etc.) at key turning points.
Support & Resistance Trendlines
Pivot highs and lows are used to draw dashed S/R lines in real-time.
When price crosses these lines, the script triggers a breakout signal (long or short).
EMA Overlays
Up to four EMAs (with customizable lengths and colors) can be overlaid on the chart for added trend confirmation.
Enable/disable each EMA independently via the settings.
Repaint Option
Turning on “Smooth Indicator Lines” (repaint) uses future data to refine past pivots.
This can make historical signals look cleaner but does not reflect true historical conditions.
Turning it off ensures signals remain fixed once they appear.
Strategy Entries & Exits
On each new ZigZag “Buy” or “Sell” signal, the script closes any open position and flips to the opposite side (if desired).
Works with the built-in TradingView Strategy engine for backtesting.
Additional Inputs (Placeholders)
Volume Filter and RSI Filter settings exist but are not fully implemented in the current code. Future versions may incorporate these filters more directly.
How to Use
Add to Chart: Click “Indicators” → “Invite-Only Scripts” (or “My Scripts”) and select “Trend Vanguard Strategy.”
Configure Settings:
Adjust ZigZag Depth, Deviation, and Backstep to fine-tune pivot sensitivity.
Enable or disable each EMA to see how it aligns with market trends.
Toggle “Smooth Indicator Lines” on or off depending on whether you want repainting.
Backtest and Forward Test:
Use TradingView’s “Strategy Tester” tab to review hypothetical performance.
Remember that repainting can alter past signals if enabled.
Monitor Live:
Watch for breakout triangles or ZigZag labels to identify potential reversal or breakout trades in real time.
Disclaimer: This script is purely educational and not financial advice. Always combine it with sound risk management and thorough analysis. Enjoy exploring the script, and feel free to experiment with the different settings to match your trading style!
RSI and EMA crossover with big candlesThis TradingView indicator identifies big bullish and bearish candles using RSI, EMA crossovers, and wick analysis. It helps traders spot potential trend continuation or reversal points by labeling significant price movements and providing real-time alerts.
NOTE: THIS WORKS BEST ON 2 MINS TIME FRAME ONLY
Key Features:
✅ Big Candle Detection:
Detects large candles based on body size and recent price action.
Differentiates between bullish (green) and bearish (red) candles.
✅ Wick Analysis & RSI Filtering:
Ensures candles have relatively small wicks for stronger signals.
RSI confirmation:
Bullish signals require RSI above 59.
Bearish signals require RSI below 40.
✅ Candle Counting & Labeling:
Labels bullish and bearish candles with sequential numbers.
Adds PUTS and CALLS labels when an 8 EMA crosses the 21 EMA.
Adjusts label positioning for better visibility.
✅ Configurable Alerts for #2 Candle:
Alerts trigger when the second bullish or bearish candle is detected.
Users can enable/disable alerts from the script settings.
✅ EMA Crossover Signals:
Bullish crossover (8 EMA above 21 EMA): Displays a "CALLS" label below the candle.
Bearish crossover (8 EMA below 21 EMA): Displays a "PUTS" label above the candle.
Usage:
📊 Trend Confirmation: Use the big candle signals + EMA crossover for stronger trade setups.
🔔 Alerts: Get notified when the second big candle forms.
📉 Reversals & Continuation Patterns: Identify shifts in momentum early.
This script is perfect for traders looking for a clean and powerful price action-based indicator with automated alerts. 🚀
Combined Options IndicatorCombined Options Indicator
Indicator combines 2 option charts value with an operator.In the example, It combines 48600 strike call and put of banknifty, effectievely giving straddle price.
Features:
Combine any two option instruments (calls or puts) with customizable parameters
Support for different underlying instruments (NIFTY, BANKNIFTY, etc.)
Apply various operators: addition, subtraction, multiplication, division, or exponentiation
Visualize results as either candlesticks or a line chart
Customizable colors for bullish and bearish movements
Information panel displaying individual and combined values
Usage:
Input all components of each option symbol separately including instrument name, expiry details (year, month, day), option type (call/put), and strike price. The indicator automatically constructs the symbols, retrieves their data, and applies your selected operation to display the combined values.
Ideal for option traders looking to track custom spreads, analyze volatility, or create tailored trading indicators based on option price relationships.
Mon to Fri + LSE and NYSE📌 Highlight Custom Days & Market Hours Indicator 📌
🔹 Overview:
This script allows traders to visually highlight specific weekdays and market sessions directly on their TradingView charts. With customizable checkboxes, you can choose which days of the week to highlight, along with session times for the New York Stock Exchange (NYSE) and London Stock Exchange (LSE).
🔹 Features:
✅ Select individual weekdays (Monday–Friday) to highlight in blue
✅ Highlight NYSE open hours (2:30 PM – 9:30 PM UK time) in green
✅ Highlight LSE open hours (8:00 AM – 4:30 PM UK time) in orange
✅ Ensures NYSE & LSE sessions are only highlighted on weekdays (no weekends)
✅ Clean and simple visualization for enhanced market awareness
🔹 How to Use:
1️⃣ Add the indicator to your TradingView chart
2️⃣ Use the settings panel to enable/disable specific weekdays
3️⃣ Toggle NYSE or LSE session highlights based on your trading preference
🚀 Perfect for traders who follow institutional sessions and want better time-based confluence in their strategies!
NSE: 2in1 Options-Index (Nifty-Bank-MID-Fin)
1. Using Two Charts in One Indicator with Buy and Sell Signals on Both Charts
Dual-Chart Functionality: This indicator allows you to monitor two charts simultaneously – the main chart (Options) and the underlying index chart (NIFTY, BANKNIFTY, etc.).
The index chart (below the main chart) shows the underlying index movement.
The main chart displays the Options data (e.g., NIFTY options, BANKNIFTY options).
Buy/Sell Signals on Both Charts:
Buy and sell signals are generated on both the options chart and the index chart, ensuring you don’t miss any trading opportunities.
This dual-chart setup helps you correlate the movement of the index with the options data for better decision-making.
2. Works Across Major Indices (NIFTY, BANKNIFTY, FINNIFTY, etc.)
Automatic Index Detection: The script automatically detects the underlying index based on the chart symbol. It supports:
NIFTY, BANKNIFTY, FINNIFTY, MIDCPNIFTY, SENSEX
Flexibility: Whether you’re trading NIFTY options or BANKNIFTY options, the indicator adapts to the selected index and provides accurate signals.
3. Helps You Select ATM, ITM, and OTM Strikes (Ideal for Beginners and Advanced Traders)
ATM (At-The-Money) Strike Calculation:
The script calculates the ATM strike price based on the current spot price of the underlying index.
ITM (In-The-Money) and OTM (Out-Of-The-Money) Strikes:
Users can adjust the strike price using a slider to select ITM or OTM strikes.
This feature is especially helpful for beginners who are learning about options trading and want to understand the difference between ITM, ATM, and OTM strikes.
Strike Price Display:
The selected strike price is displayed on the chart, making it easy to identify the right strike for your trades.
4. Double EMA Selection for Trading
Customizable EMAs:
The script uses two Exponential Moving Averages (EMAs) to generate signals:
Short EMA (Default: 21 periods)
Long EMA (Default: 34 periods)
Users can customize the EMA lengths based on their trading strategy.
5. Option Chart in the Main Chart with Index Chart Below for Easy Monitoring
Integrated Chart Setup:
The main chart displays the options data (e.g., NIFTY options, BANKNIFTY options).
The index chart (below the main chart) shows the underlying index movement.
Benefits:
This setup allows you to monitor both the options and the index in a single view, making it easier to:
Correlate the movement of the index with the options data.
Identify trading opportunities directly on the chart.
No need to switch between multiple charts – everything is in one place.
6. Targets and Stop-Loss When the Signal is Generated
Dynamic Targets and Stop-Loss:
The script calculates targets and stop-loss levels based on the Predicted Range (PR) bands.
Trailing Stop-Loss:
The stop-loss level adjusts dynamically as the price moves in your favor.
Target Levels:
Two target levels are provided (Target 1 and Target 2) based on the PR bands.
Visual Indicators:
Targets and stop-loss levels are plotted on the chart with labels and lines for easy reference.
Colors:
Trailing Stop: Light Pink
Target 1: Light Green
Target 2: Light Green
7. Various Other Options in One Indicator
Advanced Statistical Bands (KRO Settings):
The script includes Kernel Regression Oscillator (KRO) settings for advanced traders.
Plots upper and lower bands based on standard deviation and kernel regression.
Helps identify overbought and oversold conditions.
Customizable Alerts:
Users can enable/disable alerts for:
Buy/Sell signals.
Trailing stop-loss hits.
Target achievements.
Summary of Benefits
All-in-One Tool: Combines candlestick analysis, EMAs, options strike selection, targets, stop-loss, and advanced statistical bands in a single indicator.
Beginner-Friendly: Helps new traders understand ATM, ITM, and OTM strikes while providing clear buy/sell signals.
Advanced Features: Includes KRO settings, dynamic targets, and trailing stop-loss for experienced traders.
Dual-Chart Setup: Monitor options and the underlying index simultaneously for better decision-making.
Customizable: Adjust EMA lengths, strike prices, colors, and alerts to suit your trading style.
Put/Call RatioPut/Call Ratio Indicator
This indicator visualizes the Put/Call Ratio for various market symbols, helping traders assess market sentiment and potential reversals. It offers a dropdown menu to select from a range of Put/Call Ratios, including broad equities (CBOE), major indices (SPX, QQQ, IWM, VIX), and individual stocks (TSLA, GOOG, META, AMZN, MSFT, INTC).
The indicator plots the Put/Call Ratio with adjustable moving averages and standard deviation bands to highlight overbought or oversold conditions. A short-term moving average (default: 10 periods) is displayed with trend-based coloring, while longer-term moving averages (defaults: 30 and 200 periods) are calculated but hidden by default. Bands at 1, 1.5, and 2 standard deviations provide context for extreme readings.
Key Overbought/Oversold Signals:
Short-Term Extremes: The 10-day moving average moves beyond 1 standard deviation from the 200-day moving average, signaling potential overbought (above) or oversold (below) conditions. This will be highlighted by red or green background color.
Ratio Extremes: The Put/Call Ratio line itself crosses outside 2 standard deviations from the 200-day moving average, indicating stronger overbought or oversold zones.
Conditional coloring of the ratio line reflects its position relative to the bands, and background shading highlights when the short-term moving average crosses key levels.
Key Features:
Selectable Put/Call Ratio symbols.
Trend-colored moving averages.
Standard deviation bands for volatility analysis.
Dynamic line and background coloring for quick insights.
Usage:
Use this indicator to gauge market sentiment—high ratios may suggest bearish sentiment or oversold conditions, while low ratios may indicate bullish sentiment or overbought conditions. Combine with price action or other tools for confirmation.