Combined F&O Indicator BY SUPERSINGHExplanation of the Code
Inputs and Settings: The script allows customization of the indicator lengths like RSI, EMA, Stochastic, ATR, etc. You can change these parameters directly from the indicator settings panel.
Moving Averages (EMA): We calculate three different EMAs (9, 20, and 50-period) to track the short, medium, and long-term trends.
RSI: Relative Strength Index (RSI) is calculated with a default period of 14.
Stochastic Oscillator: The Stochastic %K and %D lines are calculated to identify overbought or oversold conditions.
Bollinger Bands: Bollinger Bands with a period of 20 and a standard deviation of 2 are plotted to highlight overbought and oversold areas.
MACD: The Moving Average Convergence Divergence (MACD) is calculated with standard 12, 26, and 9 periods to identify bullish and bearish trends.
ATR: The Average True Range (ATR) is used to measure volatility. It is plotted as a reference to gauge price movement.
Buy and Sell Conditions:
Buy Condition: When the RSI is below 30 (indicating oversold), the Stochastic %K crosses above %D, and the price is above all three EMAs (indicating a bullish trend), and the MACD line is above the signal line.
Sell Condition: When the RSI is above 70 (indicating overbought), the Stochastic %K crosses below %D, and the price is below all three EMAs (indicating a bearish trend), and the MACD line is below the signal line.
Signals: The script plots buy signals when all conditions for a bullish trend are met and sell signals for a bearish trend. Buy and Sell signals are marked below and above the price bars, respectively.
Plots: The script plots the three EMAs, the Bollinger Bands, the RSI with overbought/oversold levels, and the MACD histogram.
Customizing Open Interest Data
Since Pine Script does not support Open Interest data directly, you would need to:
Use a data provider that includes Open Interest (if your broker or exchange offers this via TradingView).
Manually analyze Open Interest trends on external platforms and incorporate them into your decision-making.
If Open Interest is available on your chart, you can conditionally filter buy and sell signals based on rising or falling Open Interest to further refine your entry/exit strategy.
Next Steps
Copy and paste the code above into TradingView’s Pine Script editor.
Modify any settings or indicators as per your preferences.
Backtest the strategy to ensure that it works effectively on historical data.
Notes
Ensure that the buy and sell conditions align with your risk tolerance and trading style.
You might need to fine-tune the parameters based on the asset you're trading, as different instruments may behave differently.
Indicateurs et stratégies
rsi 1450The code has been reverted to its original version without the arrow modifications. Let me know if you need any further adjustments!
Relative Volatility Measure (RVM) Daily ChartsThis was uploaded before I believe by © AIFinPlot and it's gone.
I use this to know and to see WHEN volatility cycles are high meaning high volatility is present in the chart from price expansion or volatility increasing in the product (as it goes in cycles that can be very different from every other day) to low volatility ONLY for the daily chart to know my environmental conditions on the 3-1 minute timeframe, so I can avoid trending, breakout strategies when on low volatility (yellow and red areas) and utilize breakouts or trend strategies on high volatility environments (no color). tweak it. hope it helps!!
This is a script only to give you a holistic idea of the volatility for the last couple of hours or days. It is not a product to predict future volatility or any future volatility. Combine this with looking at how size candles have grown or decreased, order flows and speed, swings getting bigger or smaller, and checking with the VIX to gauge volatility in order to know if your strategy will work in current conditions.
works well with daily charts and this is for analysis before trading.
03 kingestrategia destinada apenas a analise educativa, sem fins monetarios, o que poderia ocasionar perdas.
ATR Multiples LinesPlotted ATR lines plotted on the chart based on TP and SL levels for both longs and shorts. Adjustable multipliers for both longs and shorts. Ideal for backtesting strategies with fixed TP and SL levels
All-in-One Script (KAMA + ATR + EMA/Bollinger)This All-in-One Script (KAMA + ATR + EMA/Bollinger) is a comprehensive trading system that combines three different technical analysis tools in a single indicator:
1. KAMA (Kaufman Adaptive Moving Average):
- An advanced moving average that automatically adjusts to market volatility
- Moves quickly during trending periods and slowly in sideways markets
- Default period is set to 21
- Displayed with a blue line
- Adapts to both trending and ranging markets
2. ATR (Average True Range) Levels:
- Creates volatility-based support and resistance levels
- Uses daily (D) timeframe by default
- Utilizes 14-period ATR value
- Shows upper (green) and lower (red) ATR levels on the last bar
- Displays price values next to each level
- Helps identify potential price targets and stop levels
3. EMA (Exponential Moving Average) and Bollinger Bands:
- 9-period EMA displayed with thick orange line
- Optional Bollinger Bands based on this EMA
- Additional smoothing options available:
* SMA (Simple Moving Average)
* EMA (Exponential Moving Average)
* SMMA/RMA (Smoothed/Running Moving Average)
* WMA (Weighted Moving Average)
* VWMA (Volume Weighted Moving Average)
Customization Options:
- Each component (KAMA, ATR, EMA) can be toggled on/off independently
- Adjustable period values for all indicators
- Configurable Bollinger Band deviation multiplier (default 2.0)
- EMA offset value can be adjusted
- Various color and style settings
Use Cases:
1. Trend Following:
- Identify trend direction and strength
- Spot potential trend reversals
- Monitor momentum changes
2. Volatility Trading:
- Determine dynamic support/resistance levels
- Set appropriate stop-loss levels
- Gauge market volatility conditions
3. Price Action Analysis:
- Multiple timeframe analysis
- Trend confirmation
- Divergence identification
4. Risk Management:
- ATR-based position sizing
- Dynamic stop-loss placement
- Volatility-adjusted targets
Trading Applications:
- Suitable for both trend followers and swing traders
- Effective in various market conditions
- Helps in both entry and exit decisions
- Provides multiple confirmation signals
- Works across different timeframes
Technical Details:
- Built for TradingView platform
- Uses Pine Script version 6
- Optimized for real-time calculation
- Minimal performance impact
- Reliable data processing
This indicator is ideal for traders who want a comprehensive view of market conditions without overcrowding their charts with multiple indicators. It combines trend following, volatility measurement, and momentum analysis in one package.
fm_surfing_1This is a pretty simple startegy that follows trend. Recommended time frams is D1.
when close price brakes up the EMA build based on high prices given that RSI is above 55 and RSI is above its Moving average - we buy.
when close price brakes down the EMA build based on low prices given that RSI is below 45 and RSI is below its moving average - we sell.
system closes previose trade if there is opposite signal
system uses take profit and stop loss as well as trailing stop
DIY Strategy Indicator Essentials KitOverview:
The DIY Strategy Indicator Essentials Kit is a comprehensive suite of foundational indicators designed to help traders build and refine their own strategies. This tool integrates key components such as Multi-Timeframe VWAP lines, Support/Resistance VWAP Bands, Customizable Moving Averages, and an Entry/Exit Color Coded MACD, offering flexibility and customization for a wide range of trading styles. By combining these essential elements into one cohesive package, this script provides a strong foundation for technical analysis while remaining adaptable to your individual needs.
Future updates will expand functionality, adding more tools and features to enhance your trading workflow.
Key Features:
VWAP Bands: Multi-standard deviation VWAP bands with customizable themes to help identify overbought and oversold levels in the market. Includes options to toggle single or double bands for deeper insights.
Daily, Weekly, and Monthly VWAP Lines: Displays VWAP levels that reset daily, weekly, or monthly, offering traders clear benchmarks for tracking market trends.
Daily 5 Moving Average: A smooth, daily timeframe 5-period moving average plotted on all timeframes. Includes advanced smoothing methods like McGinley and customizable labels for added clarity.
Multi-Timeframe MACD: A fully customizable MACD that works across multiple timeframes, with optional histogram color changes to signal trend exhaustion and cross detection.
Customizable Moving Averages: Incorporates up to four moving averages with selectable types (SMA, EMA, VWMA, or RMA) and lengths.
How It Works:
VWAP components (Daily, Weekly, Monthly, and Bands) help traders identify key support and resistance levels.
The Daily 5 Moving Average leverages higher-timeframe data to avoid "stairstepping" on lower timeframes, providing a smoother representation of trends.
The MACD section enables traders to detect momentum shifts, with color-coded signals and optional dot markers for line crosses.
Moving Averages can be customized to reflect user preferences, catering to various trading strategies such as trend-following or mean-reversion.
How to Use:
Enable or disable components through the settings menu to tailor the indicator to your trading style.
Adjust VWAP bands and MA types to reflect market conditions or personal preferences.
Monitor MACD histogram color changes for potential trend exhaustion and crossovers.
Use VWAP levels to confirm key market areas or improve entry/exit timing.
Purpose and Originality:
This script is designed to consolidate essential tools into one cohesive indicator, making it ideal for traders looking to optimize limited indicator slots. While inspired by widely-used concepts, this script is original in its integration of advanced smoothing methods, customizable VWAP bands, and multi-timeframe MACD enhancements. The focus is on adaptability and practicality, empowering traders to customize their workspace while maintaining clarity and efficiency.
Acknowledgements:
Parts of this script’s functionality have been adapted and modified from open-source scripts within the TradingView library. It is a community-driven effort to enhance trading capabilities while respecting the original work of contributors.
BK MA Horizontal Lines
Indicator Description:
I am incredibly proud and excited to share my first indicator with the TradingView community! This tool has been instrumental in helping me optimize my positioning and maximize my trades.
Moving Averages (MAs) are among the top three most crucial indicators for trading, and I believe that the Daily, Weekly, and Monthly MAs are especially critical. The way I’ve designed this indicator allows you to combine MAs from your Daily timeframe with one or two from the Weekly or Monthly timeframes, depending on what is most relevant for the specific product or timeframe you’re analyzing.
For optimal use, I recommend:
Spacing your chart about 11 spaces from the right side.
Setting the Labels at 10 in the indicator configuration.
Keeping the line thickness at size 1, while using size 2 for my other indicator, "BK BB Horizontal Lines", which follows a similar concept but applies to Bollinger Bands.
If you find success with this indicator, I kindly ask that you give back in some way through acts of philanthropy, helping others in the best way you see fit.
Good luck to everyone, and always remember: God gives us everything. May all the glory go to the Almighty!
Previous OHLC By JDThe "Previous OHLC By JD" indicator helps traders visualize key historical price levels on their charts. It tracks the Open, High, Low, and Close (OHLC) prices from a specified timeframe to identify potential support and resistance levels.
Features:
Custom Timeframe: Choose the timeframe for OHLC levels.
Visibility Toggles: Turn the Open, High, Low, and Close lines on or off.
Color Customization: Set unique colors for each OHLC line.
Adjustable Thickness: Modify line thickness for better visibility.
Automatic Labels: Each line is labeled with its price and timeframe.
How to Use:
Select Timeframe: Choose the desired timeframe (e.g., 1 hour, 4 hours, 1 day).
Toggle Visibility: Show or hide the Open, High, Low, and Close lines.
Customize Colors: Set colors for each OHLC line.
Adjust Thickness: Set the line thickness.
Interpret Levels:
Open Line: Sentiment at the start of the period.
High Line: Potential resistance level.
Low Line: Potential support level.
Close Line: Sentiment at the end of the period.
Use this indicator to gain insights into historical price action and make informed trading decisions.
ColorRSI_Histo_ZeroLineO Color RSI mede a velocidade e a mudança dos preços, variando entre 0 e 100. Tradicionalmente, valores acima de 70 indicam sobrecompra, enquanto abaixo de 30 indicam sobrevenda. No entanto, no Indicador Color RSI, essas zonas são destacadas por cores, facilitando a leitura.
Zona de Sobrecompra (Acima de 70): Representada por uma cor vermelha intensa, indicando que o ativo pode estar sobrecomprado e sujeito a uma correção.
Zona Neutra (Entre 30 e 70): Colorida em amarelo ou laranja, sugerindo que o mercado não está nem em condição extrema de compra ou venda, indicando equilíbrio.
Zona de Sobrevenda (Abaixo de 30): Colorida em verde ou verde-claro, alertando que o ativo pode estar sobrevendido e, portanto, sujeito a uma possível reversão de preço.
Transições suaves entre cores: Algumas versões do Color RSI podem apresentar transições graduais de cor conforme o valor do indicador se aproxima de limites críticos, oferecendo um feedback visual mais dinâmico.
Esse tipo de visualização facilita a rápida identificação de condições extremas do mercado e pode ser utilizado para reforçar a tomada de decisões de compra ou venda.
Global Liquidity Index (Billions USD)This Pine Script indicator calculates the total global liquidity by combining M2/M3 money supply data from major economies converted to USD. The final value is displayed in billions of USD.
This was inspired by Raoul Pal's (@RaoulGMI on X.com) work on global liquidity and its effect on markets.
Countries and Monetary Measures Used:
United States (USM2) - M2 Money Supply
China (CNM2) - M2 Money Supply
Japan (JPM2) - M2 Money Supply
European Union (EUM2) - M2 Money Supply
South Korea (KRM2) - M2 Money Supply
Canada (CAM2) - M2 Money Supply
India (INM2) - M2 Money Supply
Taiwan (TWM2) - M2 Money Supply
Great Britain (GBM2) - M2 Money Supply
Australia (AUM3) - M3 Money Supply
Features:
Time Offset: Allows shifting the data forward or backward by a specified number of bars but data pushed ahead of the chart data will be truncated.
Scale Range: Set to display between 50,000 and 100,000 billion USD
Overlay Option: Can be displayed as an overlay on the main chart
Left Scale: Uses the left price scale for values
Currency Conversion: Automatically converts all values to USD using real-time FX rates
Calculation Method:
Retrieves M2/M3 data for each country
Converts non-USD values to USD using current exchange rates
Sums all values
Divides by 1 billion for easier reading
Applies any time offset requested by the user
The indicator provides a comprehensive view of global liquidity by tracking approximately 80% of the world's monetary supply through these major economies.
Advanced Buy/Sell Signals with Sessions 2025 KravchenkoНаданий вами скрипт — це торгова стратегія, реалізована в Pine Script, яка використовується для створення сигналів купівлі та продажу на основі комбінації різних технічних індикаторів. Ось розбивка компонентів: ### Ключові компоненти: 1. **RSI (індекс відносної сили)**: використовується для визначення умов перекупленості або перепроданості на ринку. - **Умова**: стратегія шукає RSI нижче 30 (перепроданість) для сигналів купівлі та RSI вище 70 (перекупленість) для сигналів продажу. 2.
signal buy javad/time/15mThis indicator is designed to give a buy signal on a 15-minute time frame by specifying a profit limit and a loss limit.
Smart Trend, Crypto - WORK IN PROGRESSDescription of the Script
This Pine Script is a trend-following trading indicator designed to help traders identify buy and sell opportunities while managing risk through take-profit (TP) and stop-loss (SL) levels. Here’s what the script does in detail:
Core Features:
1. Trend Detection Using EMA Crossover:
• Fast EMA and Slow EMA are calculated using adjustable lengths.
• A Buy Signal is triggered when the Fast EMA crosses above the Slow EMA (bullish trend).
• A Sell Signal is triggered when the Fast EMA crosses below the Slow EMA (bearish trend).
2. Support for Multi-Condition Signals:
• The script combines EMA crossovers, RSI levels, and ADX strength to determine signals:
• Relative Strength Index (RSI): Detects overbought or oversold conditions.
• Average Directional Index (ADX): Ensures trends have sufficient strength.
• Signals only trigger if all selected conditions are met.
Risk Management Features:
3. Stop-Loss Levels:
• Stop-loss levels are calculated based on a percentage distance from the last Buy or Sell Signal.
• For a Buy Signal, the stop-loss is set below the buy price.
• For a Sell Signal, the stop-loss is set above the sell price.
• These levels are plotted as horizontal lines on the chart.
4. Take-Profit Levels:
• Take-profit levels are calculated as a percentage distance from the last Buy or Sell Signal:
• For a Buy Signal, the TP level is above the buy price.
• For a Sell Signal, the TP level is below the sell price.
• Take-Profit Bubbles:
• Small bubbles appear on the chart at TP levels only for the current Buy or Sell Signal.
• This helps focus on the latest trade without cluttering the chart.
Visual Aids:
5. Background Highlighting for Trend Identification:
• The chart background changes color to reflect the detected trend:
• Green for a bullish trend (Buy Signal).
• Red for a bearish trend (Sell Signal).
6. Clear Signal Markers:
• Buy Signal: A green triangle below the price bar.
• Sell Signal: A red triangle above the price bar.
• These markers help visually identify signal points on the chart.
Customizability:
• Adjustable Parameters: The script allows the user to customize:
• EMA lengths, ADX threshold, RSI levels, TP percentage, and SL percentage.
• Preset Configurations: Quick settings for popular assets like BTC, ETH, and others.
Usage:
1. Buy and Sell Signals:
• Use the signals to enter long (Buy) or short (Sell) trades.
2. Risk Management:
• Follow the Stop Loss and Take Profit levels to manage risk and lock in profits.
3. Trend Confirmation:
• Observe background colors and EMA lines to confirm trend direction.
This script provides a comprehensive tool for identifying trades, managing risk, and visually simplifying trend-following strategies. Let me know if you need further clarifications!
RSI-Bollinger-Volume-ATR-Trend Entry with Smart Money ConceptsЦей скрипт для TradingView на основі RSI, смуги Боллінджера, EMA, ATR, об'єму та концепції "Smart Money". Він враховує торгові сесії (Азія, Франкфурт, Європа, Нью-Йорк) для фільтрації сигналів і використовує рівні ордерних блоків для підтвердження входу. Сигнали купівлі/продажу відображаються стрілками.
Nagz H&LEnglish:
The indicator shows the fractals where stop-losses may be located and can be used to trade from their taking.
You can adjust the length of the fractal (the number of bars with which it is surrounded on both sides, to confirm the validity).
You can also display lines from fractal points for clarity.
To keep the chart clean, you can enable deletion of already taken fractals.
Example of use with deleted fractals and without lines:
Credit Spread Position Overlay//@version=5
indicator("SPX Credit Spread Overlay", overlay=true)
// --- User Inputs ---
buySide = input.string("Put", title="Buy Side (Put/Call)", options= )
sellSide = input.string("Put", title="Sell Side (Put/Call)", options= )
spreadWidth = input.int(50, title="Width of the Spread (Strike Difference)", minval=1)
optionIV = input.float(0.20, title="Implied Volatility (IV) Approx.", minval=0.01, maxval=5) // Placeholder for IV
numContracts = input.int(1, title="Number of Contracts", minval=1) // SPX options are cash-settled, so we can track number of contracts
expirationDate = input.string("2024-01-19", title="Expiration Date (yyyy-mm-dd)") // Placeholder for expiration date
// --- SPX Specific Adjustments ---
spxPrice = close // SPX spot price (current price)
spxMultiplier = 100 // SPX options multiplier for cash-settled contracts
// --- Calculating Strike Prices ---
buyStrike = buySide == "Call" ? spxPrice + spreadWidth : spxPrice - spreadWidth
sellStrike = sellSide == "Call" ? spxPrice + 2 * spreadWidth : spxPrice - 2 * spreadWidth
// --- Plotting Strike Prices ---
plot(buyStrike, color=color.green, linewidth=2, title="Buy Strike")
plot(sellStrike, color=color.red, linewidth=2, title="Sell Strike")
// --- Simplified Premium Calculation (Using IV and Price) ---
// Approximation for premiums based on IV
buyPremium = optionIV * 0.5 * buyStrike / 100 // Simplified calculation for buy option premium
sellPremium = optionIV * 0.5 * sellStrike / 100 // Simplified calculation for sell option premium
// --- Net Credit / Debit Calculation ---
netPremium = sellPremium - buyPremium
maxProfit = netPremium * spxMultiplier * numContracts // Maximum profit is the net premium times the SPX multiplier and contracts
maxLoss = (sellStrike - buyStrike) * spxMultiplier * numContracts - maxProfit // Maximum loss is the strike difference minus the premium received
// --- Profit/Loss Calculation for Various Underlying Prices ---
pl = 0.0
if (buySide == "Put" and spxPrice < buyStrike)
pl := maxProfit - (buyStrike - spxPrice) * spxMultiplier * numContracts
else if (sellSide == "Put" and spxPrice < sellStrike)
pl := maxProfit - (sellStrike - spxPrice) * spxMultiplier * numContracts
else
pl := maxProfit
// --- Plotting Profit/Loss ---
plot(pl, color=color.blue, title="Profit/Loss Curve", linewidth=2)
hline(0, "Break-even", color=color.gray, linestyle=hline.style_dashed)
// --- Max Profit / Max Loss Visualization ---
bgcolor(spxPrice >= buyStrike ? color.new(color.green, 90) : na, title="Max Profit Region")
bgcolor(spxPrice <= sellStrike ? color.new(color.red, 90) : na, title="Max Loss Region")
// --- Adding Labels for Strikes ---
label.new(bar_index, buyStrike, text="Buy Strike: " + str.tostring(buyStrike), color=color.green, style=label.style_label_left, yloc=yloc.abovebar)
label.new(bar_index, sellStrike, text="Sell Strike: " + str.tostring(sellStrike), color=color.red, style=label.style_label_left, yloc=yloc.belowbar)
// --- Expiration Date Visualization ---
label.new(bar_index, high, text="Exp: " + expirationDate, color=color.yellow, style=label.style_label_down, yloc=yloc.abovebar)
// --- Implied Volatility (IV) Plot ---
ivPlot = plot(optionIV, color=color.purple, title="Implied Volatility (IV)")
// --- Dynamic IV Adjustment Placeholder ---
// This part cannot fetch real IV from SPX options, but you can dynamically adjust the 'optionIV' input.
CCI with DivergencesThis indicator identifies bullish and bearish divergences using the Commodity Channel Index (CCI). It is designed to help traders visualize divergence points with trendlines and labels, making it easier to spot potential market reversals.
Key Features:
Detects Bullish Divergences (CCI higher low while price forms a lower low).
Detects Bearish Divergences (CCI lower high while price forms a higher high).
Plots trendlines to connect divergence points for clear visualization.
Labels the divergence points with "Bull" or "Bear" for added clarity.
Includes alerts for both bullish and bearish divergences, so you never miss a signal.
How to Use:
Add this indicator to your chart and look for divergences in conjunction with other analysis methods.
Use the alerts to stay informed about new divergences as they form.
Disclaimer: This script is for educational purposes only and should not be considered financial advice. Trading in financial markets involves substantial risk and may not be suitable for all investors. Always do your own research and consult a professional financial advisor before making any trading decisions.
Anchored GB TimeCustomizable indicator designed to track the number of hours elapsed since a user-defined starting point, such as the weekly market open. It highlights significant time intervals by checking the elapsed hour count against predefined GB Numbers and CE Numbers, offering precise insights for time-based trading strategies.
Custom Start Time:
Choose the day and hour when the counter resets, making it adaptable to different asset classes and market sessions.
Perfect for aligning with weekly opens or specific algorithmic strategies.
GB and CE Numbers:
Predefined sets of Goldbach (GB) Numbers and Critical Event (CE) Numbers.
Labels are displayed when the hour counter matches one of these significant numbers.
Customizable Appearance:
Separate settings for GB and CE labels:
Enable or disable each set.
Customize label colors, sizes, and vertical offsets.
Time Zone Support:
Select your desired time zone for accurate start time synchronization with your chart.
Consistent Label Placement:
Labels remain fixed above the candles regardless of zoom level or price range, ensuring clarity on any chart.
Useful for:
Time-Based Strategies: Identify key market intervals for entries or exits based on elapsed trading hours.
Custom Session Tracking: Monitor time progression across different market sessions or instruments.
Algorithmic Insights: Integrate time-based rules into your trading systems with precision.
How to Use:
1. Set the start day and hour using the Algo Start Day and Algo Start Hour inputs.
2. Customize the appearance of GB Time and CE Numbers labels as needed.
3. Align the chart's time zone with the indicator for accurate time tracking.
In the chart example, price is anchored to Sunday at 6pm, the opening hour for the week for futures