Trendline Breakouts With Targets NewExplanation:
Trendline Calculation:
The script calculates the highest high and the lowest low over a specific number of bars (line_length), which is used to draw the trendlines.
The trendline is drawn using the highest high and lowest low within the lookback period.
Breakout Targets:
The breakout target for an upward move is calculated as the highest high plus the price range multiplied by a target multiplier (target_multiplier).
The breakout target for a downward move is calculated as the lowest low minus the same price range multiplied by the target multiplier.
Plotting:
The trendlines (horizontal lines) for the highest high and the lowest low are drawn using line.new().
The breakout target levels are plotted as green (upward) and red (downward) lines.
Background Coloring:
The background turns green when the price exceeds the upward breakout target.
The background turns red when the price falls below the downward breakout target.
Signals and Alerts:
Breakout Up Signal: A green label appears below the bar when the price breaks above the upward breakout target.
Breakout Down Signal: A red label appears above the bar when the price breaks below the downward breakout target.
Alerts are triggered when price breaks above or below the breakout targets.
How to Use:
Copy the script into TradingView's Pine Editor.
Save and add it to your chart.
You will see horizontal trendlines drawn based on the highest high and lowest low over the lookback period.
The script will also show breakout target levels and trigger buy/sell signals once the breakout targets are reached.
Set up alerts for breakout events to notify you when the price crosses the breakout levels.
Customization:
line_length: Adjust the number of bars used for calculating the trendline.
target_multiplier: Adjust the target multiplier for the breakout targets. This defines how far from the trendline the target is calculated.
Let me know if you need any further modifications or have any questions!
Indicateurs d'étendue
Support, Resistance, and Price Action SetupHow to Use This:
Support and Resistance: The green and red lines represent Support and Resistance levels based on past price action.
Breakout Signals: When the price breaks above resistance or below support, the background color changes (green for breakout above resistance, red for breakout below support), and labels are created at the breakout points.
Rejection Signals: If the price rejects the support or resistance level (i.e., price moves away from it), a visual marker is added on the chart.
Conclusion:
This corrected script should now work without the NA type assignment issue. The breakout logic is properly handled and should now plot the Support, Resistance, and Price Action signals correctly. You can set alerts based on the breakout or rejection events to make this even more useful in live trading.
Donchian Cloud-V1The Donchian Cloud-V1 is a technical analysis indicator inspired by the Ichimoku Cloud, but with a twist. It utilizes two Donchian Channel midline calculations to create a cloud-like price zone. This indicator aims to help traders identify potential areas of support and resistance, and also suggests that trades should be avoided when prices are within the cloud.
How it Works?
The Donchian Cloud-V1 calculates two Donchian Channel midlines:
Fast Donchian Channel: This midline is based on a shorter period, making it more responsive to price changes.
Slow Donchian Channel: This midline is based on a longer period, providing a smoother and more stable cloud formation.
The upper and lower bands of the traditional Donchian Channels are discarded, and the midlines become the cloud's upper and lower boundaries.
Interpretation
Price Above the Cloud: A price move above the cloud can be interpreted as a bullish signal, suggesting potential upward momentum.
Price Below the Cloud: A price move below the cloud can be interpreted as a bearish signal, suggesting potential downward momentum.
Price Within the Cloud: The indicator advises against taking any trades when the price is within the cloud itself, as the market may be unclear or ranging.
Benefits of Using the Donchian Cloud-V1
Visually Appealing: The cloud can provide a clear and concise view of potential support and resistance zones.
Customizable: The lengths of the fast and slow Donchian Channels can be adjusted to suit your trading style and preferred timeframe.
Complements Other Indicators: The Donchian Cloud-V1 can be used in conjunction with other technical indicators to strengthen trade signals.
Limitations to Consider
Lagging Indicator: Like many technical indicators, the Donchian Cloud-V1 is based on past price data and may not always perfectly predict future price movements.
False Signals: The cloud can generate false signals, especially in volatile markets.
Not a Standalone Strategy: The Donchian Cloud-V1 should ideally be used alongside other trading strategies and risk management techniques.
The Donchian Cloud-V1 is a valuable tool for traders who want to identify potential support and resistance zones and avoid making trades during periods of market uncertainty. Remember, it's important to backtest and paper trade any indicator before using it with real capital.
Trend Analysis with Volatility and MomentumVolatility and Momentum Trend Analyzer
The Volatility and Momentum Trend Analyzer is a multi-faceted TradingView indicator designed to provide a comprehensive analysis of market trends, volatility, and momentum. It incorporates key features to identify trend direction (uptrend, downtrend, or sideways), visualize weekly support and resistance levels, and offer a detailed assessment of market strength and activity. Below is a breakdown of its functionality:
1. Input Parameters
The indicator provides customizable settings for precision and adaptability:
Volatility Lookback Period: Configurable period (default: 14) for calculating Average True Range (ATR), which measures market volatility.
Momentum Lookback Period: Configurable period (default: 14) for calculating the Rate of Change (ROC), which measures the speed and strength of price movements.
Support/Resistance Lookback Period: Configurable period (default: 7 weeks) to determine critical support and resistance levels based on weekly high and low prices.
2. Volatility Analysis (ATR)
The Average True Range (ATR) is calculated to quantify the market's volatility:
What It Does: ATR measures the average range of price movement over the specified lookback period.
Visualization: Plotted as a purple line in a separate panel below the price chart, with values amplified (multiplied by 10) for better visibility.
3. Momentum Analysis (ROC)
The Rate of Change (ROC) evaluates the momentum of price movements:
What It Does: ROC calculates the percentage change in closing prices over the specified lookback period, indicating the strength and direction of market moves.
Visualization: Plotted as a yellow line in a separate panel below the price chart, with values amplified (multiplied by 10) for better visibility.
4. Trend Detection
The indicator identifies the current market trend based on momentum and the position of the price relative to its moving average:
Uptrend: Occurs when momentum is positive, and the closing price is above the simple moving average (SMA) of the specified lookback period.
Downtrend: Occurs when momentum is negative, and the closing price is below the SMA.
Sideways Trend: Occurs when neither of the above conditions is met.
Visualization: The background of the price chart changes color to reflect the detected trend:
Green: Uptrend.
Red: Downtrend.
Gray: Sideways trend.
5. Weekly Support and Resistance
Critical levels are calculated based on weekly high and low prices:
Support: The lowest price observed over the last specified number of weeks.
Resistance: The highest price observed over the last specified number of weeks.
Visualization:
Blue Line: Indicates the support level.
Orange Line: Indicates the resistance level.
Both lines are displayed on the main price chart, dynamically updating as new data becomes available.
6. Alerts
The indicator provides configurable alerts for trend changes, helping traders stay informed without constant monitoring:
Uptrend Alert: Notifies when the market enters an uptrend.
Downtrend Alert: Notifies when the market enters a downtrend.
Sideways Alert: Notifies when the market moves sideways.
7. Key Use Cases
Trend Following: Identify and follow the dominant trend to capitalize on sustained price movements.
Volatility Assessment: Measure market activity to determine potential breakouts or quiet consolidation phases.
Support and Resistance: Highlight key levels where price is likely to react, assisting in decision-making for entries, exits, or stop-loss placement.
Momentum Tracking: Gauge the strength and speed of price moves to validate trends or anticipate reversals.
8. Visualization Summary
Main Chart:
Background color-coded for trend direction (green, red, gray).
Blue and orange lines for weekly support and resistance.
Lower Panels:
Purple line for volatility (ATR).
Yellow line for momentum (ROC).
Trend Analysis with Volatility and MomentumVolatility and Momentum Trend Analyzer
The Volatility and Momentum Trend Analyzer is a multi-faceted TradingView indicator designed to provide a comprehensive analysis of market trends, volatility, and momentum. It incorporates key features to identify trend direction (uptrend, downtrend, or sideways), visualize weekly support and resistance levels, and offer a detailed assessment of market strength and activity. Below is a breakdown of its functionality:
1. Input Parameters
The indicator provides customizable settings for precision and adaptability:
Volatility Lookback Period: Configurable period (default: 14) for calculating Average True Range (ATR), which measures market volatility.
Momentum Lookback Period: Configurable period (default: 14) for calculating the Rate of Change (ROC), which measures the speed and strength of price movements.
Support/Resistance Lookback Period: Configurable period (default: 7 weeks) to determine critical support and resistance levels based on weekly high and low prices.
2. Volatility Analysis (ATR)
The Average True Range (ATR) is calculated to quantify the market's volatility:
What It Does: ATR measures the average range of price movement over the specified lookback period.
Visualization: Plotted as a purple line in a separate panel below the price chart, with values amplified (multiplied by 10) for better visibility.
3. Momentum Analysis (ROC)
The Rate of Change (ROC) evaluates the momentum of price movements:
What It Does: ROC calculates the percentage change in closing prices over the specified lookback period, indicating the strength and direction of market moves.
Visualization: Plotted as a yellow line in a separate panel below the price chart, with values amplified (multiplied by 10) for better visibility.
4. Trend Detection
The indicator identifies the current market trend based on momentum and the position of the price relative to its moving average:
Uptrend: Occurs when momentum is positive, and the closing price is above the simple moving average (SMA) of the specified lookback period.
Downtrend: Occurs when momentum is negative, and the closing price is below the SMA.
Sideways Trend: Occurs when neither of the above conditions is met.
Visualization: The background of the price chart changes color to reflect the detected trend:
Green: Uptrend.
Red: Downtrend.
Gray: Sideways trend.
5. Weekly Support and Resistance
Critical levels are calculated based on weekly high and low prices:
Support: The lowest price observed over the last specified number of weeks.
Resistance: The highest price observed over the last specified number of weeks.
Visualization:
Blue Line: Indicates the support level.
Orange Line: Indicates the resistance level.
Both lines are displayed on the main price chart, dynamically updating as new data becomes available.
6. Alerts
The indicator provides configurable alerts for trend changes, helping traders stay informed without constant monitoring:
Uptrend Alert: Notifies when the market enters an uptrend.
Downtrend Alert: Notifies when the market enters a downtrend.
Sideways Alert: Notifies when the market moves sideways.
7. Key Use Cases
Trend Following: Identify and follow the dominant trend to capitalize on sustained price movements.
Volatility Assessment: Measure market activity to determine potential breakouts or quiet consolidation phases.
Support and Resistance: Highlight key levels where price is likely to react, assisting in decision-making for entries, exits, or stop-loss placement.
Momentum Tracking: Gauge the strength and speed of price moves to validate trends or anticipate reversals.
8. Visualization Summary
Main Chart:
Background color-coded for trend direction (green, red, gray).
Blue and orange lines for weekly support and resistance.
Lower Panels:
Purple line for volatility (ATR).
Yellow line for momentum (ROC).
Bullish/Bearish Indicator [ilkaykaratepe]Bullish/Bearish Reversal Bars Indicator with Support/Resistance
HesoyamHesoyam is a multi-timeframe indicator that combines Bollinger Band analysis across up to six selectable timeframes with a short MACD-based “scalper” filter. The core idea is to detect potential oversold or overbought conditions (using Bollinger logic) while confirming momentum shifts via a fast MACD signal.
CALMONEY JIN SIMONSExplicação Detalhada:
Parâmetros de Entrada:
periodoCurta: Define o número de períodos para a média móvel curta (SMA de 9 períodos).
periodoLonga: Define o número de períodos para a média móvel longa (SMA de 21 períodos).
periodoRSI: Define o período para o cálculo do Índice de Força Relativa (RSI de 14 períodos).
periodoBollinger: Define o período para o cálculo das Bandas de Bollinger (geralmente 20 períodos).
desvioBollinger: Define o número de desvios padrão para as Bandas de Bollinger (geralmente 2.0).
Cálculo dos Indicadores:
mediaCurta: Média móvel simples (SMA) de 9 períodos.
mediaLonga: Média móvel simples (SMA) de 21 períodos.
rsiValor: Valor do Índice de Força Relativa (RSI) para 14 períodos.
basis: Média simples de 20 períodos para as Bandas de Bollinger.
dev: Desvio padrão multiplicado pelo valor de desvio para calcular a amplitude das Bandas de Bollinger.
bollingerSuperior: Banda superior das Bandas de Bollinger (média + desvio).
bollingerInferior: Banda inferior das Bandas de Bollinger (média - desvio).
Condições para Compra e Venda:
Compra: Quando a média curta está acima da média longa, o RSI está abaixo de 30 (indicando sobrevenda) e o preço está abaixo da banda inferior das Bandas de Bollinger.
Venda: Quando a média curta está abaixo da média longa, o RSI está acima de 70 (indicando sobrecompra) e o preço está acima da banda superior das Bandas de Bollinger.
Plotagem das Setas:
Seta Verde: Aparece abaixo da barra quando a condição de compra é atendida.
Seta Vermelha: Aparece acima da barra quando a condição de venda é atendida.
Como Utilizar:
Abrir TradingView:
Vá até o gráfico desejado no TradingView.
Adicionar o Código:
No Pine Editor, cole o código fornecido.
Clique em Salvar e em seguida em Adicionar ao gráfico.
Analisar Sinais:
O gráfico começará a mostrar as setas de compra (verde) e venda (vermelha) quando as condições forem atendidas.
Resumo:
Este indicador de sinais de compra e venda é baseado em médias móveis, RSI e Bandas de Bollinger para identificar momentos favoráveis de compra e venda. Ele fornece sinais visuais claros no gráfico, facilitando a tomada de decisões.
candle formation predictor( kay pynoBullish Engulfing
bullishEngulfing = close > open and open < close and open < close
plotshape(bullishEngulfing, style=shape.labelup, location=location.belowbar, color=color.green, size=size.small, title="1. Bullish Engulfing
// 2. Bearish Engulfing
bearishEngulfing = close < open and open > close and open > close
plotshape(bearishEngulfing, style=shape.labeldown, location=location.abovebar, color=color.red, size=size.small, title="2. Bearish Engulfing
// 3. Bullish Hammer
bullishHammer = (high - low) > 3 * (open - close) and (close - low) / (0.001 + high - low) > 0.6 and (open - low) / (0.001 + high - low) > 0.6
plotshape(bullishHammer, style=shape.labelup, location=location.belowbar, color=color.lime, size=size.small, title="3. Bullish Hammer
// 4. Bearish Hammer
bearishHammer = (high - low) > 3 * (open - close) and (high - close) / (0.001 + high - low) > 0.6 and (high - open) / (0.001 + high - low) > 0.6
plotshape(bearishHammer, style=shape.labeldown, location=location.abovebar, color=color.orange, size=size.small, title="4. Bearish Hammer
// 5. Doji
doji = abs(close - open) <= (high - low) * 0.1
plotshape(doji, style=shape.labelup, location=location.belowbar, color=color.blue, size=size.small, title="5. Doji
// 6. Morning Star
morningStar = close < open and close < open and close > open and close < close
plotshape(morningStar, style=shape.labelup, location=location.belowbar, color=color.purple, size=size.small, title="6. Morning Star
// 7. Evening Star
eveningStar = close > open and close > open and close < open and close > close
plotshape(eveningStar, style=shape.labeldown, location=location.abovebar, color=color.yellow, size=size.small, title="7. Evening Star
// 8. Bullish Harami
bullishHarami = close < open and close > open and close < open and open > close
plotshape(bullishHarami, style=shape.labelup, location=location.belowbar, color=color.fuchsia, size=size.small, title="8. Bullish Harami
// 9. Bearish Harami
bearishHarami = close > open and close < open and close > open and open < close
plotshape(bearishHarami, style=shape.labeldown, location=location.abovebar, color=color.teal, size=size.small, title="9. Bearish Harami
// 10. Shooting Star
shootingStar = (high - low) > 3 * (open - close) and (high - close) / (0.001 + high - low) > 0.6 and (high - open) / (0.001 + high - low) > 0.6
plotshape(shootingStar, style=shape.labeldown, location=location.abovebar, color=color.maroon, size=size.small, title="10. Shooting Star")
``
6 EMAs CDAV.IOCDAV.IO 6 EMAs provides 6 customizable EMAs (12, 20, 26, 50, 100, 200) to analyze trends, support, and resistance levels effectively.
Jakes Main IndicatorKey Updates:
Support and Resistance Calculation:
We're using request.security() to fetch the previous day's low and previous day's high from the daily timeframe and plotting them as static support and resistance levels. These levels won't update on lower timeframes.
daily_support is the previous day's low, and daily_resistance is the previous day's high.
Plotting Static Lines:
We plot these static support and resistance levels using plot(), which will appear as green (support) and red (resistance) lines on the chart.
How It Works:
Support and resistance will be static, calculated only once on the daily timeframe, and then stay constant even as you zoom into lower timeframes.
The EMA cloud and buy/sell signals are based on your existing logic and work as intended, but now you have static support and resistance lines that won’t change over time.
The buy and sell signals will still depend on the EMA crossovers and volatility, but now you have a reliable frame of reference for support and resistance on your chart.
You can now adjust the support/resistance calculation method as needed, or tweak the visualization settings.
CDAV.IO EMAs and BB with Session ACDAV.IO EMAs & BB with Session A combines EMA 20/50/100/200, Bollinger Bands, and highlights Session A (NYSE 09:00–16:00 NYC Time) for precise trend and session-based analysis.
NYSE CDAV.IONYSE CDAV.IO highlights the NYSE trading session (09:00–16:00 NYC Time) with customizable background colors and optional session start/end lines. Ideal for intraday traders to focus on NYSE market activity.
Jakes main indicator Key Updates:
Support and Resistance Calculation:
We're using request.security() to fetch the previous day's low and previous day's high from the daily timeframe and plotting them as static support and resistance levels. These levels won't update on lower timeframes.
daily_support is the previous day's low, and daily_resistance is the previous day's high.
Plotting Static Lines:
We plot these static support and resistance levels using plot(), which will appear as green (support) and red (resistance) lines on the chart.
How It Works:
Support and resistance will be static, calculated only once on the daily timeframe, and then stay constant even as you zoom into lower timeframes.
The EMA cloud and buy/sell signals are based on your existing logic and work as intended, but now you have static support and resistance lines that won’t change over time.
The buy and sell signals will still depend on the EMA crossovers and volatility, but now you have a reliable frame of reference for support and resistance on your chart.
You can now adjust the support/resistance calculation method as needed, or tweak the visualization settings.
Auto Fibonacci Retracement by YilmazerBelirtilen bar sayısı ve fibonacci değerlerine göre fibonacci düzeltme seviyelerini grafik üzerinde çizer. Eğer grafikte belirtilenden daha az bar var ise bu durumda grafikte yer alan max bar sayısını dikkate alarak çizim yapar.
Draws Fibonacci retracement levels on the chart based on the specified number of bars and Fibonacci values. If the chart has fewer bars than specified, it uses the maximum number of bars available on the chart for drawing.
Jakes main INDICATOR really great tool still a work in progress. I'm fine tunning this still mostly around false signals and volitility
EMA + RSI + Supertrend Indicator By Abhay Pushkar the best This script integrates three widely used technical indicators: Exponential Moving Averages (EMA), Relative Strength Index (RSI), and the Supertrend indicator. It helps traders identify potential buy and sell signals based on trend direction and market momentum.
Key Components:
Inputs:
Users can customize the lengths of the EMAs and the RSI, as well as the ATR length and multiplier for the Supertrend calculation. This flexibility allows the indicator to adapt to different trading styles and market conditions.
Parameters:
Short EMA Length: Default is 9.
Long EMA Length: Default is 21.
RSI Length: Default is 14.
RSI Overbought Level: Default is 70.
RSI Oversold Level: Default is 30.
ATR Length: Default is 10.
ATR Multiplier: Default is 3.0.
EMA Calculation:
The script calculates two EMAs:
A short EMA (based on the last 9 periods) for quick signals.
A long EMA (based on the last 21 periods) for broader trend analysis.
RSI Calculation:
The RSI is calculated over a specified period (14 by default) to gauge the market's momentum.
Levels for overbought (70) and oversold (30) conditions are set to assist in identifying potential reversal points.
Supertrend Calculation:
The Supertrend indicator is based on the average true range (ATR) to measure volatility and define the trend direction.
It utilizes the average price (HL2) and adjusts the bands based on a specified ATR multiplier to generate upper and lower bands.
The script dynamically sets the Supertrend value based on the relationship between the closing price and the previous Supertrend value.
Plotting:
The short and long EMAs are plotted on the chart in green and red, respectively.
The Supertrend is plotted with color changes based on the trend direction: green for an uptrend and red for a downtrend.
Buy and Sell Signals:
Buy Signal: Triggered when the short EMA crosses above the long EMA while the RSI is below the oversold level (30), indicating a potential reversal.
Sell Signal: Triggered when the short EMA crosses below the long EMA while the RSI is above the overbought level (70), suggesting a potential market downturn.
Visual Signals:
The script visually represents buy/sell signals on the chart:
Buy Signal: A label appears below the bar with "BUY".
Sell Signal: A label appears above the bar with "SELL".
Use Cases:
This indicator is suitable for traders looking to identify entry and exit points in trending markets while managing risk using momentum analysis. It can be used on various timeframes for both short-term and long-term trading strategies.
SMART GOLD killzone Sessions ver 22SMART GOLD killzone Sessions ver 22 , SMART GOLD KILLER signalidan so'ng NARX DISCOUNT yoki PRemium ZONAGA BORISHINI KUTAMIZ
Monthly DividerThis Trading View indicator visually marks the beginning of each month starting from January 2024. It draws vertical lines on the chart at the start of each month and labels them with the corresponding month abbreviation (e.g., "Jan", "Feb"). Users can customize the color and thickness of the lines through the indicator settings, allowing for personalized chart aesthetics. This tool is ideal for traders and analysts who want to easily identify month transitions and enhance their technical analysis.
Quarterly Divider The "Quarterly Divider" script draws vertical lines at the start of each quarter (January, April, July, October) on the Trading View chart. It also labels each line with the corresponding quarter (Q1, Q2, Q3, Q4) at the bottom of the line, making it easy to visualize the start of each trading quarter. The color and thickness of the lines are customizable
NB. works effectively is used on the weekly timeframe
3 Candle Strategy with HighlightIt has a very good accuracy of 70% across any stock or Indices it is very useful to understand the trend reversal easily and tackle the sudden shift of the market very easily
Strategy by Nachi Chennai//@version=5
indicator("EMA Scalping Strategy", overlay=true)
// Input for EMA settings
ema_short = input.int(9, title="Short EMA", minval=1)
ema_medium = input.int(21, title="Medium EMA", minval=1)
ema_long = input.int(50, title="Long EMA", minval=1)
// EMA calculations
shortEMA = ta.ema(close, ema_short)
mediumEMA = ta.ema(close, ema_medium)
longEMA = ta.ema(close, ema_long)
// Input for RSI settings
rsi_length = input.int(14, title="RSI Length", minval=1)
rsi_overbought = input.int(70, title="RSI Overbought Level", minval=50)
rsi_oversold = input.int(30, title="RSI Oversold Level", minval=1)
// RSI calculation
rsi = ta.rsi(close, rsi_length)
// MACD settings
= ta.macd(close, 12, 26, 9)
// Conditions for Buy and Sell
buyCondition = ta.crossover(shortEMA, mediumEMA) and close > longEMA and rsi > 50 and macdLine > signalLine
sellCondition = ta.crossunder(shortEMA, mediumEMA) and close < longEMA and rsi < 50 and macdLine < signalLine
// Plotting EMAs
plot(shortEMA, color=color.new(color.blue, 0), title="Short EMA (9)")
plot(mediumEMA, color=color.new(color.orange, 0), title="Medium EMA (21)")
plot(longEMA, color=color.new(color.red, 0), title="Long EMA (50)")
// Plot Buy and Sell signals
plotshape(series=buyCondition, title="Buy Signal", location=location.belowbar, color=color.new(color.green, 0), style=shape.labelup, text="BUY")
plotshape(series=sellCondition, title="Sell Signal", location=location.abovebar, color=color.new(color.red, 0), style=shape.labeldown, text="SELL")
// Background Highlighting
bgcolor(buyCondition ? color.new(color.green, 90) : na, title="Buy Highlight")
bgcolor(sellCondition ? color.new(color.red, 90) : na, title="Sell Highlight")