Filtered Buy/Sell Signals After Stochastic Extreme Crossover//@version=5
indicator("Filtered Buy/Sell Signals After Stochastic Extreme Crossover", overlay=true)
// Define parameters
lr_period = 6
tma_period = 5
stoch_k = 8
stoch_d = 4
stoch_smooth = 4
// Compute Linear Regression Forecast (6, close)
linRegForecast = ta.linreg(close, lr_period, 0)
// Compute Triangular Moving Average (5)
tma = ta.sma(ta.sma(close, math.ceil(tma_period / 2)), tma_period)
// Compute the Average Line
averageLine = (linRegForecast + tma) / 2
// Compute Stochastic (8,4,4)
k = ta.sma(ta.stoch(close, high, low, stoch_k), stoch_smooth)
d = ta.sma(k, stoch_d)
// Track last confirmed Stochastic crossovers
var float lastBuyCrossover = na
var float lastSellCrossover = na
if ta.crossover(k, d) and k < 30
lastBuyCrossover := bar_index // Store the bar index of last Buy crossover below 30
if ta.crossunder(k, d) and k > 70
lastSellCrossover := bar_index // Store the bar index of last Sell crossover above 70
// Define Buy & Sell Signal Conditions with Confirmation
buySignal = ta.crossover(linRegForecast, tma) and lastBuyCrossover > lastSellCrossover
sellSignal = ta.crossunder(linRegForecast, tma) and lastSellCrossover > lastBuyCrossover
// Plot the indicators
plot(linRegForecast, color=color.blue, title="Linear Regression Forecast")
plot(tma, color=color.green, title="Triangular Moving Average (TMA)")
plot(averageLine, color=color.white, title="Average Line", linewidth=2) // White Average Line
// Plot Buy and Sell Signals
plotshape(series=buySignal, location=location.belowbar, color=color.green, style=shape.labelup, size=size.small, title="BUY")
plotshape(series=sellSignal, location=location.abovebar, color=color.red, style=shape.labeldown, size=size.small, title="SELL")
Forecasting
GMMA Long-Short SignalIntroduction
This indicator is based on multiple EMA (Exponential Moving Average) constructions, aiming to identify buy and sell signals in the market. It calculates different periods of EMA lines and generates trading signals based on the relationship between prices and these EMA lines. This indicator is suitable for the TradingView platform and supports real-time alerts and chart drawing.
Indicator Composition
EMA Lines
This indicator calculates the following periods of EMA lines:
Short-term EMA lines: 3, 5, 8, 10, 12, 15
Medium-term EMA lines: 30, 35, 40, 45, 50, 60
Long-term EMA lines: 120, 140, 160, 180, 200, 240
These EMA lines are drawn on the chart with different colors and line widths, making it convenient for users to observe.
Trading Signals
The indicator generates four types of trading signals:
Buy Signal 1 (Buy 1): Triggered when the price meets the conditions of the short-term EMA line and the K-line is a bullish line.
Buy Signal 2 (Buy 2): Triggered when the price meets the conditions of the medium-term EMA line and the K-line is a bullish line.
Buy Signal 2 (Buy 3): Triggered when the price meets the conditions of the long-term EMA line and the K-line is a bullish line.
Sell Signal 1 (Sell 1): Triggered when the price meets the conditions of the short-term EMA line and the K-line is a bearish line.
Sell Signal 2 (Sell 2): Triggered when the price meets the conditions of the medium-term EMA line and the K-line is a bearish line.
Sell Signal 2 (Sell 2): Triggered when the price meets the conditions of the long-term EMA line and the K-line is a bearish line.
My usage method
I tend to rely on buy and sell signals 1 and 2.
Signal 3 is slightly lagging when it appears under normal circumstances, and entering at this time requires taking on greater risk, but it can be used as a reference for partial profit-taking.
I speculate that signal 3 may be credible when trading in highly volatile crazy stocks(WSB, meme...etc), as their prices fluctuate greatly (this speculation has not been verified by me, please judge for yourself).
The short, medium, and long-term EMMA indicators can mutually serve as support or resistance levels, and I personally prefer to use the long-term (red) EMMA as the final resistance or support.
If you find that signals appear frequently and buy and sell signals intersect, it usually means that the market is in a consolidation phase (box adjustment). At this time, you can either wait patiently for a candlestick that can break through the box to make a decision, or you can switch to a higher time-level candlestick chart, such as when multiple signals appear continuously on the 5-minute chart, switch to the 15-minute chart.
The above is my insight into using this indicator, and if you have a better strategy, you are welcome to leave a message. I will update the indicator according to the situation.
Wish we can all harvest rich profits!!!!!
BTC/SOL Ratio Oscillator(tested data was at 4 hour intervals)
Above 0.5: The BTC/SOL ratio is increasing (BTC outpacing SOL). From our analysis, SOL rose only 37.4% of the time after this (34/91 cases), so it’s less predictive here.
Below 0.5: The ratio is decreasing (SOL outpacing BTC). SOL rose 81.9% of the time after this (149/182 cases), suggesting a likely SOL increase.
Near 0.5: Ratio stable, SOL’s direction less clear (48% up in our data).
@silas_fernandesíndice síntetico de juros //@silas_fernandes
// Seleção de pares de moedas
par_moeda1 = request.security("EURUSD", "D", close) // Pode substituir por outros pares
par_moeda2 = request.security("USDJPY", "D", close)
// Cálculo do índice sintético de juros (diferença de valores)
indice_sintetico = par_moeda1 - par_moeda2
Toby's Key LevelsAn Indicator that helps determine Key Areas on the chart. You set the values you want the horizontal lines to update. They horizontal lines will be used for exits and entries of trade. My recommendation for these Key Areas are as follows ( These recommendations are mostly for day trading and swing trading ):
XAU: Value distance of 50 ex. XAUUSD.
NAS: Value distance of 250 ex. NAS100/USTEC.
ETH: Value distance of 100 ex. ETHUSD.
AUD pairs: Value distance of 0.0200 ex. GBPAUD, EURAUD.
CAD pairs: Value distance of 0.0100 ex. NZDCAD, EURCAD.
CHF pairs: Value distance of 0.0100 ex. CADCHF, GBPCHF.
GBP pairs: Value distance of 0.00350 ex. EURGBP.
JPY pairs: Value distance of 2.00 ex. EURJPY, GBPJPY.
NZD pairs: Value distance of 0.015 ex. GBPNZD, AUDNZD.
Note:
These are subject to change and you can alter the lines anyhow you want to suit your trading style. These are what I recommend. Remember, Market is King.
Safe Trading!
Liquidation Cascade Strategy by billyLes liquidations extrêmes sur Bitcoin sont des moments rares où le marché révèle ses excès. AegisTide Pro est le premier algorithme qui capture scientifiquement ces paniques pour en faire votre allié, tout en protégeant vos gains avec une stratégie de sortie intelligente.
EMA & Stochastic Strategy BUY&SELL POINTExample of Usage: When you encounter a signal in the M15 timeframe, check the M5 timeframe to confirm. If you find the same signal, then decide to enter the order.
Caution: Avoid entering orders when the EMA lines are very close together or when they are crossing.
Adjust your risk-reward ratio as you see fit.
Price Projector [MacAlgo] Description:
Price Projector is a forward-looking visualization tool designed to help traders project potential future price movements based on historical drift data. By defining up to two anchor points and leveraging the average drift in price changes from each, the script draws forecast lines (Anchor 1 and Anchor 2) as well as an optional average projection (Anchor 3). Additionally, an optional shaded area around each projection can be displayed to convey a sense of uncertainty or variability in the future path.
Key Features:
1. Multiple Anchors
Specify up to two custom anchor points (by date/time). Each anchor gathers up to 500 bars of historical data from the time it is activated.
Optionally display a third “average” projection line that combines the drift from both anchors.
2. Dynamic Drift Calculation
For each anchor, the script measures the incremental price changes (delta percents) from bar to bar.
Positive and negative drifts are computed separately and averaged, capturing the general upward/downward trend from the chosen anchor point to the latest confirmed bar.
3. Growth Factor & Area Width
The Growth Factor (0–100) allows you to adjust how much the historical drift influences the projection.
The Area Width (0–100) expands or contracts the shaded region around the forecast line, highlighting potential upper and lower bounds.
4. Customizable Styling
Choose colors, transparency, and line width for each anchor’s forecast line.
Toggle an optional connector line that links the anchor’s first bar to its last bar, visualizing the range where data was collected.
Enable or disable a shaded area around each projection line for clearer visualization.
5. Automatic Forward Projection
Once the data is gathered, the script projects future bars (up to 500 bars ahead) using the average drift calculations.
The resulting lines and shaded areas help you quickly assess possible price paths.
How to Use:
1. Add the Indicator to Your Chart
In TradingView, open the Indicators menu, search for “Price Projector ,” and apply it to your chart.
2. Configure Anchor Points
In the indicator’s Inputs section, set the date/time for Anchor Point 1 and Anchor Point 2.
Once a bar’s time is greater than or equal to the anchor point, the script begins collecting data until the last confirmed bar.
3. Adjust Growth Factor & Area Width
Growth Factor modifies how strongly the historical drift influences future price estimates.
Area Width adjusts the size of the shaded range drawn around the projection line.
4. Styling & Display Options
You can pick the color, transparency, and line thickness for each anchor.
Toggle Execution Window Line to show or hide the connector line between the anchor’s initial bar and the final bar used in calculations.
Enable Show Area to fill the space around the forecast line, giving a visual sense of upper/lower bounds.
Turn on Show Anchor 3 Line to draw a combined average projection using data from both anchors.
5. Interpret the Forecast
Once the script processes historical data for each anchor, it will automatically draw forecast lines for Anchor 1, Anchor 2, and (optionally) the average Anchor 3.
Use these lines to gauge potential future price trends under the assumption that recent drift patterns continue.
Examples:
Here you can see all three Anchor Points. Anchor Point 3 is used as a balance between Anchor Point 1 and Anchor Point 2 by using the average of he two.
You can customize which Anchor Points you want to see on the chart, remove the area coloring, etc.
Conclusion:
Price Projector offers a straightforward way to visualize projected price paths based on historical drift from one or two anchor points. By adjusting the Growth Factor, Area Width, and styling options, you can tailor the display to match your preferences and gain deeper insight into potential price trajectories. As always, combine this tool with other forms of analysis and risk management to make more informed trading decisions.
Disclaimer:
This script is provided for informational and educational purposes only. It should not be construed as financial or investment advice. Past performance is not indicative of future results. Trading in financial markets involves significant risk of loss. Always conduct your own due diligence and consult a licensed financial professional before making any trading or investment decisions.
Expiry Day Special IndicatorExpiry Day Special Indicator
The Expiry Day Special Indicator is designed to detect catalytic price action patterns that commonly occur between 9:15 AM to 10:15 AM (IST) in the Nifty & Bank Nifty markets but not limited to these specific markets. While these patterns are particularly useful on expiry days, they are not limited to expiry trading alone. They can also be applied on other trading days when similar conditions arise, making them versatile for intraday traders.
How It Works
This indicator scans for bullish and bearish price action patterns within the first trading hour and plots potential buy and sell signals based on key market structures.
• Bearish Patterns: Identifies strong rejection zones and weakness in price action to signal potential short trades.
• Bullish Patterns: Recognizes reversal formations that indicate potential long trade opportunities.
• Time Filter: The setup is valid only between 9:15 AM - 10:15 AM (IST) to focus on high-impact market moves.
Why This Indicator?
1. Specialized for Nifty & Bank Nifty – Designed specifically for Indian markets.
2. Early Trend Identification – Helps traders capture moves early in the session.
3. Works Beyond Expiry Days – Although optimized for expiry trading, it can also detect similar patterns on regular days.
📌 Note: This indicator does not provide trading advice; always use proper risk management.
Scrodinger IndicatorProjetado para auxiliar traders na identificação de probabilidades de breakouts, análise estatística de movimentos de preço, além de fornecer suporte através de VWAP (Volume Weighted Average Price) com bandas de desvio padrão e médias móveis exponenciais (EMAs).
Ele combina estatísticas de rompimentos, alertas dinâmicos, análise de tendência e indicadores de momentum, oferecendo uma abordagem quantitativa para a tomada de decisões no mercado.
🛠️ Funcionalidades Principais
🔹 1. Breakout Probability (Probabilidade de Rompimento)
Calcula a probabilidade de o preço atingir determinados níveis de alta e baixa com base no histórico de candles.
Exibe níveis de resistência e suporte dinâmicos usando um fator percentual ajustável.
Indica estatísticas de win/loss baseadas na frequência dos rompimentos anteriores.
Alertas personalizáveis para notificações quando o preço atinge níveis críticos.
🔹 2. VWAP + Bandas de Desvio Padrão
VWAP (Volume Weighted Average Price) como referência para o preço médio ponderado pelo volume.
Bandas de desvio padrão ajudam a identificar regiões de sobrecompra e sobrevenda.
Suporte a múltiplos desvios-padrão configuráveis pelo usuário.
Opção de exibir o VWAP da sessão anterior para análise de continuidade.
🔹 3. Médias Móveis Exponenciais (EMAs) e MACD
EMA rápida e EMA lenta para detectar tendências de curto e longo prazo.
Indica cruzamentos entre as EMAs, fornecendo sinais de compra e venda.
MACD (Moving Average Convergence Divergence) com histograma para medir força e direção da tendência.
🔹 4. Sistema de Alertas Avançado
Notificações para rompimentos de suporte/resistência.
Alertas configuráveis para mudanças de tendência (Bullish/Bearish).
Opção de incluir detalhes como ticker, preço, viés direcional e porcentagem de probabilidade.
📊 Como Utilizar o Scrodinger Indicator?
Ajuste a porcentagem de nível (%) para definir a distância entre os níveis de breakout.
Configure a quantidade de linhas de suporte e resistência desejadas no gráfico.
Habilite ou desabilite estatísticas para visualizar dados quantitativos sobre rompimentos.
Ative o VWAP e suas bandas para visualizar regiões de interesse baseadas em volume.
Monitore os cruzamentos das EMAs e MACD para confirmações de tendência.
Smart Adaptive Signal SystemSmart Adaptive Signal System
Description: The Smart Adaptive Signal System is a sophisticated indicator that generates intelligent buy/sell signals by dynamically adapting to market conditions. It predicts target prices based on momentum and volatility, providing more accurate and reliable trading opportunities.
How It Works:
Dynamic Signal Generation: The system predicts target prices by considering factors such as volatility and momentum. This allows it to react instantly to trend changes and market fluctuations.
Adaptive Thresholds: Buy and sell signals are triggered with adaptive thresholds, adjusting according to market volatility. This ensures flexibility in the face of sudden market changes.
Trend-Based Reset: Users can choose to reset threshold values based on a time interval or trend change. This feature helps the system re-adapt to current market conditions for greater accuracy.
Target Price Prediction: Target prices are calculated using momentum and volatility, helping the system predict future price movements.
How to Use:
Buy/Sell Signals: The indicator generates buy and sell signals based on market conditions. Look for a "down arrow" for a buy signal and an "up arrow" for a sell signal on the chart.
Target Price Lines: Along with buy and sell signals, the system draws target price lines. This helps you visualize potential future price levels.
Flexible Settings: Users can customize analysis periods, minimum change percentages, and other parameters to fit their needs.
Features:
Dynamic buy and sell signals
Target price predictions
Volatility and momentum-based analysis
User-friendly and flexible settings
Trend-based adaptive resetting
Alerts: The Smart Adaptive Signal System responds quickly to sudden market changes, but always use it in conjunction with other indicators like support and resistance levels. Signal accuracy may vary depending on market conditions.
Candle Bias ForecastCandle Bias Forecast Indicator
Description:
The Candle Bias Forecast Indicator is an original multi‐timeframe analysis tool that generates price forecast levels based on the difference between candle biases on two different timeframes. It uses innovative calculations to provide potential forecast levels that align with current price action.
How It Works:
1. Candle Bias Calculation:
For each candle, the indicator computes a “candle bias” using the formula:
candleBias = (((open + close)/2 - (high + low)/2) + ((close - open)/(high - low)))/2
This measure captures both the positioning of the candle’s body within its range and the normalized move from open to close.
2. Multi-Timeframe Analysis:
The script uses multiple timeframe pairs (e.g., 5-minute vs. 30-minute, 10-minute vs. 60-minute, etc.). For each pair, the bias is computed on the lower timeframe and on the higher timeframe.
3. Normalization with ATR:
To translate the dimensionless bias difference into price terms, the indicator multiplies the difference by the lower timeframe’s Average True Range (ATR). This scales the forecast adjustment to current market volatility.
4. Forecast Computation:
The forecast level for each pair is then calculated as:
forecast = close + (lowerTF_ATR * (lowerTF_bias - higherTF_bias))
This yields forecast levels that are plotted on the chart and connected by lines for a visual guide.
How to Use:
- Visual Confirmation: Add the indicator to your 1 to 15 minute chart to see forecast levels overlaid on the price.
- Supplementary Analysis: Use these forecast levels as an additional tool alongside your other analysis methods. They can help indicate potential support/resistance areas or directional bias.
Important Notes:
- Not a Standalone Signal: This indicator is intended to supplement your analysis. Always combine it with other tools and sound risk management practices.
- For Educational & Research Use: The indicator is provided “as is” without any guarantee of performance. It is designed to illustrate an innovative approach to multi-timeframe analysis.
- Disclaimer: Past performance is not indicative of future results. Use this tool at your own risk.
By combining candle bias with ATR-based normalization and multi-timeframe analysis, this indicator offers a unique perspective on market dynamics that can enrich your trading strategy.
---
*This is an original script designed to add value to the TradingView community. Please test and validate its outputs thoroughly before using it in live trading.*
Midnight Range Standard DeviationsCredit to Lex Fx for the basic framework of this script
This indicator is designed to assist traders in identifying potential trading opportunities based on the Intraday Concurrency Technique (ICT) concepts, specifically the midnight range deviations and their relationship to Fibonacci levels. It builds upon the work of Lex-FX, whom we gratefully acknowledge for the original concept and inspiration for this indicator.
Core Concept: ICT Midnight Range
The core of this indicator revolves around the concept of the midnight range. According to ICT, the high and low formed in a specific time window (typically the first 30 minutes after midnight, New York Time) can serve as a key reference point for intraday price action. The indicator identifies this range and projects potential support and resistance levels based on deviations from this range, combined with Fibonacci ratios.
How ICT Uses Midnight Range Deviations
ICT methodology often involves looking for price to move away from the initial midnight range, then return to it, or deviate beyond it, as key areas for potential entries.
Range Identification: The indicator automatically identifies the high and low of the midnight range (00:00 - 00:30 NY Time).
Deviation Levels: The indicator calculates and displays deviation levels based on multiples of the initial midnight range. These levels are often used to identify potential areas of support and resistance, as well as potential targets for price movement. These levels can be set in the additional fib levels section, which can be configured in increments of .5 deviations all the way up to 12 deviations.
Fibonacci Confluence: ICT often emphasizes the confluence of multiple factors. This indicator adds Fibonacci levels to the midnight range deviations. This allows traders to identify areas where Fibonacci retracements or extensions align with the deviation levels, potentially creating stronger areas of support or resistance.
Looking for Sweeps: ICT often uses these levels to look for times that the high and low are swept as potential areas of liquidity, indicating the start of potential continuations.
Time-Based Analysis: The time at which price interacts with these levels can also be significant in ICT. The indicator provides options to extend the range lines to specific times (e.g., 3 hours, 6 hours, 10 hours, 12 hours, or a custom defined time) after midnight, allowing traders to focus on specific periods of the trading day.
Indicator Settings Explained:
Time Zone (TZ): Defines the time zone used for calculating the midnight range. The default is "America/New_York".
Range High Color, Range Low Color, Range Mid Color: Customize the colors of the high, low, and mid-range lines.
Range Fill Color: Sets the fill color for the area between the range high and low.
Line Style: Choose the style of the range lines (solid, dashed, dotted).
Range Line Thickness: Adjust the thickness of the range lines for better visibility.
Show Fibonacci Levels: Enable or disable the display of Fibonacci deviation levels.
Fib Up Color, Fib Down Color: Customize the colors of the Fibonacci levels above (up) and below (down) the midnight range.
Show Trendline: Enables a trendline that plots the close price, colored according to whether the price is above the high, below the low, or within the midnight range.
Show Range Lines, Show Range Labels: Toggles the visibility of the range lines and their associated labels.
Label Size: Adjust the size of the labels for better readability.
Hide Prices: Option to display only the deviation values on labels, hiding price values.
Place Fibonacci Labels on Left Side: Option to switch label position from right side to left side.
Extend Range To (Hours from Midnight): This section gives you a wide variety of options on how far you want to extend the range to, you can do 3,6,10,12, and 23 hours. Alternatively, you can select the "Use Custom Length" and set a specific time in hours.
Additional Fib Levels: This section allows the trader to set additional deviation points in increments of .5 deviations from .5 all the way up to 12 deviations
TradingView Community Guidelines Compliance:
This indicator description adheres to the TradingView community guidelines by:
Being educational: It explains the ICT methodology and how the indicator can be used in trading.
Being transparent: It clearly describes all the indicator's settings and their purpose.
Providing credit: It acknowledges Lex-FX as the original author of the concept.
Avoiding misleading claims: It does not guarantee profits or imply that the indicator is a "holy grail."
Disclaimer: Usage of this indicator and the information provided is at your own risk. The author is not responsible for any losses incurred as a result of using this indicator.
Important Considerations:
This indicator is intended for educational purposes and to assist in applying the ICT methodology.
It should not be used as a standalone trading system.
Always combine this indicator with other forms of technical analysis and risk management techniques.
Backtest thoroughly on your chosen market and timeframe before using in live trading.
Trading involves risk. Only trade with capital you can afford to lose.
Half Candle RetraceThis custom indicator draws a horizontal line at the 50% retracement level of each candlestick on the chart. It calculates the midpoint between the high and low of each candle, which is often used by traders to identify potential entry, exit and take-profit levels. Once price action returns to an untouched level, the line will be removed, leaving only the levels where price action is still missing.
Key Features:
Timeframe: Works on all timeframes.
Line Color: Customize the line color to suit your charting preferences.
Line Width: Adjust the thickness of the retracement line for better visibility.
Line Style: Choose between solid, dotted, or dashed lines.
Up/Down Candle Selection: Option to only display retracement lines for up (bullish) candles, down (bearish) candles, or both.
Full Customization: Control the transparency (opacity) of the line for enhanced visual clarity.
Simple Setup: No complicated settings – simply choose your preferred color, line style, and visibility options.
This indicator is perfect for traders who prefer to use price action and retracement levels to identify potential trade opportunities.
How It Works:
The indicator automatically calculates the 50% level (midpoint) for each candlestick, drawing a line at this level. It will only draw lines for candles that match your chosen criteria (up or down candles), ensuring the chart remains clean and relevant to your trading strategy. Lines are automatically removed as soon as price crosses them.
Multi-Indicator Signals with Selectable Options by DiGetMulti-Indicator Signals with Selectable Options
Script Overview
This Pine Script is a multi-indicator trading strategy designed to generate buy/sell signals based on combinations of popular technical indicators: RSI (Relative Strength Index) , CCI (Commodity Channel Index) , and Stochastic Oscillator . The script allows you to select which combination of signals to display, making it highly customizable and adaptable to different trading styles.
The primary goal of this script is to provide clear and actionable entry/exit points by visualizing buy/sell signals with arrows , labels , and vertical lines directly on the chart. It also includes input validation, dynamic signal plotting, and clutter-free line management to ensure a clean and professional user experience.
Key Features
1. Customizable Signal Types
You can choose from five signal types:
RSI & CCI : Combines RSI and CCI signals for confirmation.
RSI & Stochastic : Combines RSI and Stochastic signals.
CCI & Stochastic : Combines CCI and Stochastic signals.
RSI & CCI & Stochastic : Requires all three indicators to align for a signal.
All Signals : Displays individual signals from each indicator separately.
This flexibility allows you to test and use the combination that works best for your trading strategy.
2. Clear Buy/Sell Indicators
Arrows : Buy signals are marked with upward arrows (green/lime/yellow) below the candles, while sell signals are marked with downward arrows (red/fuchsia/gray) above the candles.
Labels : Each signal is accompanied by a label ("BUY" or "SELL") near the arrow for clarity.
Vertical Lines : A vertical line is drawn at the exact bar where the signal occurs, extending from the low to the high of the candle. This ensures you can pinpoint the exact entry point without ambiguity.
3. Dynamic Overbought/Oversold Levels
You can customize the overbought and oversold levels for each indicator:
RSI: Default values are 70 (overbought) and 30 (oversold).
CCI: Default values are +100 (overbought) and -100 (oversold).
Stochastic: Default values are 80 (overbought) and 20 (oversold).
These levels can be adjusted to suit your trading preferences or market conditions.
4. Input Validation
The script includes built-in validation to ensure that oversold levels are always lower than overbought levels for each indicator. If the inputs are invalid, an error message will appear, preventing incorrect configurations.
5. Clean Chart Design
To avoid clutter, the script dynamically manages vertical lines:
Only the most recent 50 buy/sell lines are displayed. Older lines are automatically deleted to keep the chart clean.
Labels and arrows are placed strategically to avoid overlapping with candles.
6. ATR-Based Offset
The vertical lines and labels are offset using the Average True Range (ATR) to ensure they don’t overlap with the price action. This makes the signals easier to see, especially during volatile market conditions.
7. Scalable and Professional
The script uses arrays to manage multiple vertical lines, ensuring scalability and performance even when many signals are generated.
It adheres to Pine Script v6 standards, ensuring compatibility and reliability.
How It Works
Indicator Calculations :
The script calculates the values of RSI, CCI, and Stochastic Oscillator based on user-defined lengths and smoothing parameters.
It then checks for crossover/crossunder conditions relative to the overbought/oversold levels to generate individual signals.
Combined Signals :
Depending on the selected signal type, the script combines the individual signals logically:
For example, a "RSI & CCI" buy signal requires both RSI and CCI to cross into their respective oversold zones simultaneously.
Signal Plotting :
When a signal is generated, the script:
Plots an arrow (upward for buy, downward for sell) at the corresponding bar.
Adds a label ("BUY" or "SELL") near the arrow for clarity.
Draws a vertical line extending from the low to the high of the candle to mark the exact entry point.
Line Management :
To prevent clutter, the script stores up to 50 vertical lines in arrays (buy_lines and sell_lines). Older lines are automatically deleted when the limit is exceeded.
Why Use This Script?
Versatility : Whether you're a scalper, swing trader, or long-term investor, this script can be tailored to your needs by selecting the appropriate signal type and adjusting the indicator parameters.
Clarity : The combination of arrows, labels, and vertical lines ensures that signals are easy to spot and interpret, even in fast-moving markets.
Customization : With adjustable overbought/oversold levels and multiple signal options, you can fine-tune the script to match your trading strategy.
Professional Design : The script avoids clutter by limiting the number of lines displayed and using ATR-based offsets for better visibility.
How to Use This Script
Add the Script to Your Chart :
Copy and paste the script into the Pine Editor in TradingView.
Save and add it to your chart.
Select Signal Type :
Use the "Signal Type" dropdown menu to choose the combination of indicators you want to use.
Adjust Parameters :
Customize the lengths of RSI, CCI, and Stochastic, as well as their overbought/oversold levels, to match your trading preferences.
Interpret Signals :
Look for green arrows and "BUY" labels for buy signals, and red arrows and "SELL" labels for sell signals.
Vertical lines will help you identify the exact bar where the signal occurred.
Tips for Traders
Backtest Thoroughly : Before using this script in live trading, backtest it on historical data to ensure it aligns with your strategy.
Combine with Other Tools : While this script provides reliable signals, consider combining it with other tools like support/resistance levels or volume analysis for additional confirmation.
Avoid Overloading the Chart : If you notice too many signals, try tightening the overbought/oversold levels or switching to a combined signal type (e.g., "RSI & CCI & Stochastic") for fewer but higher-confidence signals.
Advanced Liquidity Trap & Squeeze Detector [MazzaropiYoussef]DESCRIPTION:
The "Advanced Liquidity Trap & Squeeze Detector" is designed to identify potential liquidity traps, short and long squeezes, and market manipulation based on open interest, funding rates, and aggressive order flow.
KEY FEATURES:
- **Relative Open Interest Normalization**: Avoids scale discrepancies across different timeframes.
- **Liquidity Trap Detection**: Identifies potential bull and bear traps based on open interest and funding imbalances.
- **Squeeze Identification**: Highlights conditions where aggressive buyers or sellers are trapped before a reversal.
- **Volume Surge Confirmation**: Alerts when abnormal volume activity supports liquidity events.
- **Customizable Parameters**: Adjust thresholds to fine-tune detection sensitivity.
HOW IT WORKS:
- **Long Squeeze**: Triggered when relative open interest is high, funding is negative, and aggressive selling occurs.
- **Short Squeeze**: Triggered when relative open interest is high, funding is positive, and aggressive buying occurs.
- **Bull Trap**: Triggered when relative open interest is high, funding is positive, and price crosses above the trend line but fails.
- **Bear Trap**: Triggered when relative open interest is high, funding is negative, and price crosses below the trend line but fails.
USAGE:
- This indicator is useful for traders looking to anticipate reversals and avoid being caught in market manipulation events.
- Works best in combination with order book analysis and volume profile tools.
- Can be applied to crypto, forex, and other leveraged markets.
**/
Static price-range projection by symbolThis indicator shows you a predefined range to the right of the last candle of your chart. This range is custom and can be changed for a handful of symbols that you can choose. This scale will help you determining if the market is providing a reasonable range before you enter a trade or if the market isn't actually moving as much as you might think. This is particularly useful if you are into scalping and have to consider commission or spread in your trades.
Since all symbols have different price ranges in which they move this indicator doesn't make sense to just have "a one size fits all" approach. That's why you can choose up to 6 symbols and set the range that you want to have shown for each when you pull it up on the chart. Using my default values that means for when the NQ (Nasdaq future) is on the chart you will see a range of 20 handles projected. When you change the the ES (S&P500 future) you will instead see 5 handles. While the number is different that is somewhat of an equal move in both symbols.
There also is an option to set a default price range for all other symbols that are not selected if it is needed. However the display of the scale on anything else than the 6 selected symbols can also be turned off.
There are options provided on how exactly you want to indicator to determine if the chart symbol matches one of the selected symbols.
You can enable it to make sure the exchange/broker is the exact same as selected.
It can check for only the symbol root to match the selection. Specifically for futures this means that while ES1! might be selected, anything ES (ES1!, ES2!, ESH2025, ESM2025, ESM2022, ...) will be a match to the selection)
On the painted scale it is possible to not just show this range extended into each direction once. Per default you will have 3 segments of it in each direction. This can be reduced to just 1 or increased.
If you chose a high number of segments or a large range make sure to use the "Scale price chart only" option on your chart scale to not have the symbols price candles squished together by the charts auto scaling.
And last but not least the indicator options provide some possibilities to change the appearance of the printed price range scale in case you disagree with my design.
C&P MA/KT Compare & Predict Moving average / Current market price.
This is simple table indicator. Located at right-top of chart. Shows which way will MA's head go.
I made this indicator for automate candle countings & compare price. With this friend, you will be know trend more faster then waiting traditional MA golden / dead crossing.
In factory settings, current market price will be compared with closing price of the candle, corresponding to previous number 7, 25, 60, 99, 130, 240. If Current market price is lower then past, the box for the corresponding MA is highlighted in red and appears as Down. In opposite case, it will be highlighted in green and indicates Up.
MA와 시장가 차이로 MA의 머리 방향을 예측해주는 간단한 지표입니다.
수동으로 캔들 되돌려서 종가와 시장가 비교하는게 너무 번거로워서 자동화를 위해 제작되었습니다. 해당 지표를 이용하시면 MA의 골든/데드 크로스를 기다리는 것보다 더 빠른 예측이 가능합니다.
차트 우측 상단에 예측 값이 표시되며, 기본 설정에선 7, 25, 60, 99, 130, 240개 전 캔들의 종가와 시장가가 비교됩니다. 시장가가 비교 값보다 높을 때는 초록 배경에 Up 텍스트가 출력됩니다. 반대의 경우엔 빨간색 배경에 Down 표기가 나타납니다.
DCA Price LevelsThe indicator is used to set price targets in the chart on the basis of waste.
Whenever the price falls from the current DCA price to minus 30 percent, a new price target is set.
There are a total of 10 price targets, so a drop of up to minus 71 percent is covered by the default setting.
The number of price targets can be set individually, up to a maximum of 10, and the percentages can also be changed.
Market Phase MAMarket Phase MA is an advanced trend-following indicator designed to provide traders with a dynamically colored moving average that adapts to market conditions. It uses a powerful combination of Average True Range (ATR) and Average Directional Index (ADX) to classify market trends in real-time. The indicator integrates a fully customizable moving average (SMA or EMA) to highlight trend phases clearly and effectively.
Key Features & Advantages:
✔ Adaptive Trend Classification: Detects uptrends, downtrends, and sideways markets using a refined mix of ATR and ADX for more precise trend identification.
✔ Color-Coded Moving Average: The moving average dynamically changes color based on trend classification, providing a clean visual representation of market sentiment.
✔ Advanced ATR & ADX Filtering:
- ATR measures market volatility and identifies ranging periods.
- ADX confirms trend strength, reducing false signals.
- A weighted approach balances ATR and ADX, ensuring reliability.
✔ Fully Customizable Moving Average: Traders can select between SMA and EMA while adjusting the moving average length directly from the settings panel.
✔ Smooth & Responsive Adjustments: The smoothing factor can be fine-tuned to control signal sensitivity and noise reduction, making it suitable for scalping, swing trading, and long-term trend monitoring.
What Makes It Unique:
- Unlike traditional trend indicators, Market Phase MA provides **direct visual feedback** on a moving average rather than using a separate oscillator.
- It **adapts dynamically** to market conditions instead of relying on fixed thresholds.
- The combination of **volatility and trend strength analysis** enhances precision in identifying valid trends.
- Users can optimize **reaction speed vs. reliability** with adjustable parameters for better decision-making.
How to Use It:
- Identify Market Phases: The moving average color shifts based on trend type—**teal** for uptrends, **red** for downtrends, and **gray** for sideways markets.
- Confirm Trend Strength: Persistent color shifts indicate strong trends, while frequent changes may suggest market indecision.
- Use as a Trade Confirmation Tool: Complement it with **support & resistance zones, price action analysis, and volume indicators** for stronger confirmation signals.
Market Phase MA is designed for traders seeking a clear, efficient, and highly adaptable moving average trend detection system. Whether you are a day trader, swing trader, or long-term investor, this indicator will help you identify and follow trends with confidence.
Multi-Asset Ratio (20 vs 5) - LuchapThis indicator calculates and displays the ratio between the sum of the prices of several base assets and the sum of the prices of several quote assets. You can select up to 20 base assets and 5 quote assets, and enable or disable each asset individually to refine your analysis. This ratio allows you to quickly evaluate the relative performance of different groups of assets.
Reversal Probability Zone & Levels [LuxAlgo]The Reversal Probability Zone & Levels tool allows traders to identify a zone starting from the last detected reversal to highlight the probability of where the next reversal would be from a price and time perspective.
Price and time levels within the zone are displayed for up to 4 percentiles defined by the user.
🔶 USAGE
By default, the tool displays a zone with the 25th, 50th, 75th and 90th percentiles on both the price and time axis, indicating where, when and how many of the past reversals have occurred.
Traders can select the length for swing detection and the maximum number of reversals for probability calculations. The tool considers both bullish and bearish reversals separately, which means that if the last reversal was a swing high, the zone would show the probabilities for the last defined Maximum reversals
The Maximum reversals value has a direct impact on the probabilities, the more data traders use the more significant the result, probabilities over 10 occurrences are far weak compared to probabilities over 1000 occurrences.
🔹 Percentiles
Traders can fine-tune the percentile parameters in the settings panel.
A given percentile means that the number of occurrences in the data set is less than or equal to the percentile.
In English, this means
Percentile 20th: 20% of the occurrences are less than or equal to this value, so 80% of the occurrences are greater than this value.
Percentile 50th: 50% of the occurrences are below and 50% are above this value.
Percentile 80th: 80% of occurrences are lower than or equal to this value, so 20% of occurrences are greater than this value.
🔹 Normalize data
The Normalize Data feature allows traders to make an apples to apples comparison when we have a lot of historical data on high timeframe charts, using returns between swings instead of raw price.
🔹 Display Style
By default, the tool has the No overlapping feature enabled to display a clean chart, traders can turn it off, but this can fill the chart with too much information and barely see the price.
Traders can enable/disable settings to show only the last zone and the swing markers on the chart.
🔶 SETTINGS
Swing Length: The maximum length in bars used to identify a swing
Maximum Reversals: Maximum number of reversals included in calculations
Normalize Data: Use returns between swings instead of raw price
Percentiles: Enable/disable each of the four percentiles and select the percentile number, line style, colors, and size
🔹 Style
No Overlapping Zones: Enable or disable the No overlap between zones feature
Show Only Last Zone: Enable/disable display of last zone only
Show Marks: Enable/disable reversal markers
Kalman Filter Trend BreakersThe Kalman filter is a recursive algorithm developed in 1960 by Rudolf E. Kálmán, a Hungarian-American engineer and mathematician, that provides optimal estimates of a system's state by combining noisy measurements with a predictive model. It is widely used in control systems, signal processing, and finance for tracking and forecasting.
In trading, KF might be a good replacement for a moving average, as it reacts to price changes in a different way. Not only it follows price direction, but can also track the velocity of price change. This specific behaviour of KF is used in this indicator to track changes in trends.
Trend is characterized by price moving directionally, however, any trend comes to pause or complete stop and reversal, as the price changes more slowly (a trend fades into a sideways movement for a while) or the price movement changes direction, thus making a reversal.
This indicator detects the points where such changes occur (trend breaker points), and produces signals, which serve as points of current trend pausing or reversing. By applying different settings for KF calculation, you can produce less or more signals that indicate change in trend character, and either detect only significant trends changes, or less and shorter trends changes as well.
The signals do not differentiate the exact type of a trend change (it can be a brief trend pause followed by a continuation, as well as a complete reversal). However, once you are in a trend, the significant velocity change indicates a change in trend structure. In this sense, trend breaker signals should not be followed blindly, and can be used only as trend (and subsequently, position) exit confirmations, but not the entry contrarian confirmations.
For better visual representation, you can use chart signals attached to bars, and additionally paint a vertical gradient at each signal which shows significant trend deceleration.
Kalman filter calculations used in this indicator are partially based on an open-source code from @loxx which was published in 2022 as Kalman filter overlay .