Time-Frame Box GroupingPretty cool indicator, basically it let you custom group candles together base on user setting, for example if you are in a 30 second chart and you choose to group candle together base on 5 minute setting, then it will group 10 candles together,
you can do just boxes or dynamic box which his base on the up and down just like a real candle.
this helps you to keep track of higher time frame performance base on a visual without the need to constaly switch time frames.
Candlestick analysis
Real-Time Liquidity Charting
Real-Time Liquidity Charting.
This advanced trading system is designed to help traders visualize market structure, momentum shifts, and institutional activity in real time. By integrating Accumulation/Distribution, Swing High/Low levels, and Order Blocks into a three-color candle setup, it provides clearer insights into price action beyond traditional indicators.
Three-Color Candle System
Instead of relying only on standard red/green candles, this system highlights hidden market behavior:
Blue (Traditional Green Bullish Candles Swing High / Accumulation & Bullish Order Flow) → Indicates strong buying interest and potential bullish order blocks.
Yellow (Swing Low / Distribution & Bearish Order Flow) → Highlights selling pressure and distribution zones.
Red (Traditional Bearish Candles) → Standard bearish price movement.
Key Features
Advanced Charting System
✔ Swing High/Low Candles – Identifies key support and resistance levels.
✔ Accumulation/Distribution Labels (ADL) – Tracks volume flow and market sentiment.
✔ Order Blocks (Bullish/Bearish) – Marks institutional buying/selling zones.
✔ Three-Color Candle System – Reveals hidden activity for better entry/exit decisions.
Bearish & Bullish Trend Analysis
✔ EMA-Based Trend Signals – Uses EMA 50/100 crossovers to detect trend shifts.
✔ Momentum Confirmation – Works with volume-based indicators to confirm trade setups.
Dynamic Label Updates (Live Metrics)
✔ Rolling Delta Volume (15-minute adjustable window) – Measures short-term order flow.
✔ Cumulative Delta Volume (1-hour adjustable window) – Tracks long-term volume imbalances.
✔ MFI (Money Flow Index) –Volume Weighted
✔MFV value tracking – Measure direct inflow/outflow
✔ADL (Liquidity & Smart Money Activity) –Tracks the cumulative volume.
• Customizable Toggles – Traders can enable/disable features like ADL, Order Blocks, SH/SL as needed.
How It Works
The script combines multiple indicators into one system:
✅ When EMA 50 crosses above EMA 100 → Bullish Bias signal
✅ When EMA 50 crosses below EMA 100 → Bearish Bias signal
✅ Live volume & delta metrics adjust in real-time to reflect market sentiment.
With a real-time market intelligence dashboard, this system empowers traders with live data—cutting through noise, eliminating reliance on static indicators, and enabling faster, more informed decisions
Disclaimer
Important Notice:
This indicator is designed for informational and educational purposes only. The display, visualization, and formatting are uniquely developed for enhanced market analysis.
Ownership & Rights:
• The underlying trading logic, calculations, and methodologies may be derived from publicly available or proprietary sources and remain the intellectual property of their respective owners.
• The graphical representation, live label update system, and four-color candle structure are custom design elements intended to improve user experience.
• This script does not provide financial advice. Use at your own risk.
By using this indicator, you acknowledge that trading involves risk and that no system can guarantee profits. Always conduct your own research before making any financial decisions.
Real-Time Liquidity Charting
Real-Time Liquidity Charting
This advanced trading system is designed to help traders visualize market structure, momentum shifts, and institutional activity in real time. By integrating Accumulation/Distribution, Swing High/Low levels, and Order Blocks into a three-color candle setup, it provides clearer insights into price action beyond traditional indicators.
Three-Color Candle System
Instead of relying only on standard red/green candles, this system highlights hidden market behavior:
Blue (Traditional Green Bullish Candles Swing High / Accumulation & Bullish Order Flow) → Indicates strong buying interest and potential bullish order blocks.
Yellow (Swing Low / Distribution & Bearish Order Flow) → Highlights selling pressure and distribution zones.
Red (Traditional Bearish Candles) → Standard bearish price movement.
Key Features
Advanced Charting System
✔ Swing High/Low Candles – Identifies key support and resistance levels.
✔ Accumulation/Distribution Labels (ADL) – Tracks volume flow and market sentiment.
✔ Order Blocks (Bullish/Bearish) – Marks institutional buying/selling zones.
✔ Three-Color Candle System – Reveals hidden activity for better entry/exit decisions.
Bearish & Bullish Trend Analysis
✔ EMA-Based Trend Signals – Uses EMA 50/100 crossovers to detect trend shifts.
✔ Momentum Confirmation – Works with volume-based indicators to confirm trade setups.
Dynamic Label Updates (Live Metrics)
✔ Rolling Delta Volume (15-minute adjustable window) – Measures short-term order flow.
✔ Cumulative Delta Volume (1-hour adjustable window) – Tracks long-term volume imbalances.
✔ MFI (Money Flow Index) –Volume Weighted
✔MFV value tracking – Measure direct inflow/outflow
✔ADL (Liquidity & Smart Money Activity) –Tracks the cumulative volume.
• Customizable Toggles – Traders can enable/disable features like ADL, Order Blocks, SH/SL as needed.
How It Works
The script combines multiple indicators into one system:
✅ When EMA 50 crosses above EMA 100 → Bullish Bias signal
✅ When EMA 50 crosses below EMA 100 → Bearish Bias signal
✅ Live volume & delta metrics adjust in real-time to reflect market sentiment.
With a real-time market intelligence dashboard, this system empowers traders with live data—cutting through noise, eliminating reliance on static indicators, and enabling faster, more informed decisions
Disclaimer
Important Notice:
This indicator is designed for informational and educational purposes only. The display, visualization, and formatting are uniquely developed for enhanced market analysis.
Ownership & Rights:
• The underlying trading logic, calculations, and methodologies may be derived from publicly available or proprietary sources and remain the intellectual property of their respective owners.
• The graphical representation, live label update system, and four-color candle structure are custom design elements intended to improve user experience.
• This script does not provide financial advice. Use at your own risk.
By using this indicator, you acknowledge that trading involves risk and that no system can guarantee profits. Always conduct your own research before making any financial decisions.
Two Exponential Moving Average Cross++ IndicatorTo Join with our trendy strategy DM to us. It's a Trend side signal generation concept. Very safe and secure. To Join with our trendy strategy DM to us. It's a Trend side signal generation concept. Very safe and secure.
My scriptpractice script only
practice script only
practice script onlypractice script onlypractice script onlypractice script onlypractice script onlypractice script onlypractice script onlypractice script onlypractice script onlypractice script onlypractice script onlypractice script onlypractice script onlypractice script onlypractice script onlypractice script onlypractice script onlypractice script onlypractice script onlypractice script onlypractice script onlypractice script onlypractice script onlypractice script onlypractice script onlypractice script onlypractice script onlypractice script onlypractice script onlypractice script onlypractice script onlypractice script onlypractice script only
MA & SUPPORT RESISTANT INDICATOR
Moving Average and Support & Resistance Level Indicator
This indicator is a robust tool designed to enhance trend analysis and pinpoint critical price levels for traders. It automatically plots three exponential moving averages (EMAs)—21, 50, and 200—covering short-, medium-, and long-term perspectives. The 21 EMA (blue) tracks rapid price movements, the 50 EMA (red) identifies intermediate trends, and the 200 EMA (white) serves as a long-term trend anchor, as seen in the recent BTC/USD 4-hour chart. These moving averages provide a clear visual framework to determine whether the market is in an uptrend, downtrend, or range-bound state.
Complementing the EMAs, the indicator dynamically plots support and resistance bands (green for support, red for resistance) based on recent price highs and lows. These bands adapt to market conditions, marking key zones where price is likely to find support during pullbacks or face resistance during rallies—such as the recent support test around $86,000 and resistance near $90,000 on the chart. This combination allows traders to identify potential entry points, stop-loss levels, or profit targets with precision.
Practical Use and Confirmation with Other Indicators
Traders can use this indicator to time trades effectively. For instance, a bullish signal emerges when the 21 EMA crosses above the 50 EMA while both remain above the 200 EMA, suggesting upward momentum—ideal for entries near a green support band. Conversely, a bearish signal occurs when the 21 EMA crosses below the 50 EMA, with red resistance bands acting as potential shorting zones or exit points, as observed during the recent downtrend in the chart.
For added confirmation, pair this indicator with the Relative Strength Index (RSI) , visible in the lower panel of the chart. When price tests a green support band and the RSI dips below 30 (indicating oversold conditions), it strengthens the case for a reversal or bounce. Similarly, near a red resistance band, an RSI above 70 (overbought) can confirm a rejection or trend continuation. This dual approach enhances reliability by aligning trend direction, key levels, and momentum, making it suitable for swing trading or scalping on volatile assets like BTC/USD.
Give this indicator a shot and let me know what you think—I’d love your feedback so we can improve it together!
PPR & Pin Bar finderPPR & Pin Bar Indicator is a powerful tool designed for traders who want to identify key reversal patterns with trend confirmation. This indicator detects PPR (Pivot Point Reversal) and Pin Bar candlestick patterns while also displaying a colored moving average (MA) trend line to help traders make informed decisions.
XAUUSD 1/9 VS 4/6 UPDATEDСкрипт отображает горизонтальные линии на паре XAU/USD и показывает ценовые диапазоны где последняя четвёртая цифра с левой стороны оканчивается на 1,4,6,9.
ОБНОВЛЁННАЯ ВЕРСИЯ
Dominancia TOP KryptoDominancia KrypT0, permite observar como van variando la capitalizacion de mercado de las criptos y su dominancia en el mercado general.
Indicador Fechamento - Capkrypto Arbitragem.Comparação de Moedas e Indicadores – Pine Script v5
Este script permite comparar dois ativos ou um ativo no TradingView . Ele analisa quantas vezes o preço do primeiro ativo ficou acima ou abaixo do segundo ativo (ou indicador) dentro de um determinado período.
Principais funcionalidades:
✅ Modo Automático: Captura automaticamente o ativo principal no gráfico.
✅ Comparação Flexível: Permite comparar um ativo com outro ativo ou um indicador.
✅ Contagem de Inversões: Mostra quantas vezes o primeiro ativo ficou acima/abaixo do segundo.
✅ Personalizável: O usuário pode escolher manualmente o ativo ou indicador secundário.
---
🔹 Como usar:
1️⃣ Adicione este script ao TradingView como um indicador.
2️⃣ Escolha o ativo ou indicador secundário no campo "Comparar com".
3️⃣ O gráfico exibirá quantas vezes o primeiro ativo esteve acima ou abaixo do segundo.
🔹Casos de uso:
📊 Análise de arbitragem: Compare preços do mercado Spot vs Futuros, ou Futures x Futures.
📈 Correlação de ativos: Verifique se um ativo segue a tendência de outro.
📉 Monitoramento de indicadores: Compare um ativo com a linha de fechamento de um indicador específico.
💡 Ideal para traders que desejam analisar dinâmicas entre dois ativos ou verificar discrepâncias de preços entre mercados. 🚀
Qualquer opinião ou contato consulte:
@suportecapkrypto no telegram!
EUR - Intrinsic value🔹 Introduction
The EUR - Intrinsic Value indicator is a unique tool that reconstructs the intrinsic value of the euro by aggregating the main Forex pairs associated with the EUR. This indicator provides a clearer view of the overall trend of the euro , independently of any specific currency pair.
It allows traders to better anticipate movements in EURUSD , especially when combined with the U.S. Dollar Index (DXY) . By analyzing both, traders can identify moments of strong momentum and optimize their trade entries.
🔹 How to Use the Indicator?
1️⃣ Add the Indicator to a Chart: The indicator plots candles representing the intrinsic value of the EUR (see Technical information below).
2️⃣ Analyze the DXY Trend:
🔵 If DXY is rising → Bearish momentum likely for EURUSD and other USD pairs.
🔴 If DXY is falling → Bullish momentum likely for EURUSD and other USD pairs.
⚫ If DXY is ranging → Consolidation likely, be cautious of false breakouts .
3️⃣ Confirm with EUR:
🔥 DXY falling + EUR rising → EURUSD likely to surge with strong momentum 📈
❄️ DXY rising + EUR falling → EURUSD likely to drop with strong momentum 📉
4️⃣ Adjust Strategy Based on Context: Wait for confirmations at key support/resistance levels and use other tools to validate trade entries.
🔹 What Value Does This Indicator Provide ?
The EUR - Intrinsic Value indicator offers multiple advantages for trading EURUSD and other EUR-related pairs:
✅ Trend Identification: Determine if the euro is in an uptrend, downtrend, or consolidation phase , regardless of individual currency fluctuations.
✅ Better Trade Timing: Combining this indicator with the Dollar Index (DXY) helps detect setups where EURUSD is likely to experience strong momentum .
✅ A Complementary Tool for Price Action : Use this indicator alongside other technical tools to confirm optimal trade entry/exit points.
🔹 Visual Examples
Shift in market structure in DXY and in EUR in the same time , giving a trend and strong momentum on EURUSD :
This indicator works on any timeframe (even sub 1m)
Note : I use Watermark° script from toodegrees , to show the currency and the timeframe on the top right of charts.
🔹 How Does the Indicator Work?
The indicator is based on a weighted average of the euro’s movements against seven major currencies:
📌 Currencies Included in the Calculation:
EURUSD (Euro vs U.S. Dollar)
EURCAD (Euro vs Canadian Dollar)
EURGBP (Euro vs British Pound)
EURCHF (Euro vs Swiss Franc)
EURAUD (Euro vs Australian Dollar)
EURNZD (Euro vs New Zealand Dollar)
EURJPY (Euro vs Japanese Yen)
The indicator extracts opening, closing, high, and low prices from each pair and create an independent value of the EUR , displayed as a custom candle chart.
🔹 Why Is This Indicator Unique?
Unlike traditional indicators that rely on a single pair, this tool artificially recreates an index for the euro by combining multiple currency pairs. This gives a broader perspective and helps traders to better time entry/exit points .
Rather than relying on a simple average , it accounts for the dynamic changes in EUR across multiple markets simultaneously .
🔹 Technical Information
📊 Display: Custom candles representing the intrinsic value of the EUR.
⏳ Supported Timeframes: Compatible with all timeframes.
⚠️ Limitations:
This indicator does not provide direct buy/sell signals but serves as a contextual tool to improve EUR trading decisions.
This is an indicator, it means you can't use other indicators on it .
You can draw on it, but your draws will not be able to stay magnet to the EUR indicator
Follow this three simple steps below to use this indicator on TradingView :
Select any forex pair on your chart (important to get a correct chart)
Hide it by clicking the 3 dots and then "Hide"
Add the "EUR - Intrisic value" indicator to your chart and set it as Full screen
🔹 Conclusion
The EUR - Intrinsic Value indicator is a powerful tool for traders looking to anticipate euro movements in the Forex market. By combining it with DXY and other technical analysis tools, it provides a clearer understanding of trading opportunities , reducing false signals and improving decision-making.
🚀 Use this indicator to refine your trade entries and capitalize on the best market opportunities! 🔥
⚠️ Terms and Conditions ⚠️
This financial tool is for educational purposes only and not financial advice. Users assume responsability for decisions made based on the tool's information.
Past performance doesn't guarantee future results.
By using this tool, users agree to these terms.
CC Trend Analysis #1Script Description
CC Trend Analysis #1 is a Pine Script v6 indicator designed to identify market trends, detect breakout structures, and visualize critical price levels on financial charts. Here’s a concise overview of its core functionality:
Key Features
Dual Zig-Zag Trend Analysis
Uses two independent zig-zag algorithms (configurable periods) to filter noise and identify primary trends.
Draws dynamic trend lines to highlight support/resistance levels and trend continuations.
Breakout Detection
Automatically detects trend reversals and breakout points using structural analysis.
Draws horizontal lines to mark breakout levels for potential entry/exit signals.
Visualization Tools
Customizable colors, line styles, and widths for trend lines and breakout levels.
Labels to annotate key price points (e.g., HH, HL, LL, LH).
Conditional background coloring based on the current trend direction.
Multi-Timeframe Filtering
Configurable start/end dates to focus analysis on specific market periods.
Access token protection for restricted use.
How to Use
Trend Identification: Follow the zig-zag lines to gauge trend direction and strength.
Breakout Signals: Look for horizontal lines crossing price action as potential breakout triggers.
Customization: Adjust parameters via the input panel to match your trading style (e.g., period, colors, labels).
Ideal For
Swing traders and investors seeking clear trend definitions.
Breakout strategies focusing on structural price patterns.
Visual analysis of support/resistance levels.
Let me know if you need further simplification!
Calculate Futures Contracts via Draggable Price Line as SLCreated this so I can calculate for top step X instantly:
Pairs it can calculate for: ES, MES, NQ, MNQ, GC, MGC, YM, MYM
Inputs:
Set risk: set your risk per trade (in points) aka $ risk
Choose pair (see above)
Set starting horizontal line price (this will be your sl line). After setting initial value to somewhere on the chart, you can drag it accordingly.
It will calculate contract size based on the difference between current price and draggable horizontal line on the chart.
See top right table for contract size needed.
Formula to calculate contracts:
$ of risk / $ per point of asset / stop loss in points
Let me know if anything is wrong! :)
Zone Marker ProZone Marker Pro – Advanced Market Zone Identification Tool
This indicator applies a dynamic price zone detection model built on custom logic, inspired by trend-following methodologies. It helps traders visualize market structure through zone detection and price retest markers.
🔹 Key Features:
✅ Identifies key price zones – Automatically detects significant areas where price reactions may occur.
✅ Dynamic Zone Adaptation – Adjusts to price changes, improving visibility of market conditions.
✅ Clear visualization of market zones – Highlights price areas for enhanced analysis.
✅ Custom alerts for market zone tracking – Set notifications when price reaches relevant levels.
✅ Supports market zone analysis across different timeframes.
📌 How to Use Zone Marker Pro?
1️⃣ Add the indicator to your chart – It will automatically highlight important price zones.
2️⃣ Observe visual markers – Blue and purple labels indicate key market reaction areas.
3️⃣ Utilize built-in alerts – Receive updates when price enters important zones.
4️⃣ Monitor multi-timeframe data – The table in the top right provides an overview of detected market zones.
🚀 Why Use Zone Marker Pro?
🔹 Helps identify important price levels without manual zone drawing.
🔹 Adjusts dynamically to price structure and volatility.
🔹 Useful for traders who want to track market zone formations.
🔹 Designed to enhance market zone identification and should be used alongside other analysis methods.
💡 This indicator does not generate trading signals but serves as a market analysis tool for identifying dynamic price zones.
✅ Additional Notes:
This indicator uses a custom methodology to identify key price zones.
Designed for traders who seek a clearer market overview and faster reaction to price movements.
🛠 Recommended for: Forex, cryptocurrencies, stocks, indices.
📢 Enable alerts and optimize your market analysis with Zone Marker Pro! 🚀
Moving Average Indicator v2"The "Test MA v2" indicator is designed for traders working on cryptocurrencies such as BTCUSDT and uses two exponential moving averages (EMA) with default settings: fast MA in the 10th phase and slow MA in the 50th phase. Trading on low timeframes (1M, 5M, 15M), but can be adapted for longer periods. intervals."
Candle Smoother v2Candle Smoother v2 is a Pine Script indicator for TradingView that smoothes candlestick data with a complex calculation and calculates also an Exponential Moving Average (EMA) on this basis. The indicator helps to better visualize market fluctuations and to identify potential trends more clearly.
Functions
Smoothing of the candle data: Reduces market noise by adaptively calculating the open and close values.
Visualization with color coding: The candles are displayed in green (lime) for bullish and red (red) for bearish movements.
EMA calculation based on the smoothed data: An Exponential Moving Average (EMA) line is calculated and displayed.
Display of the candles
The smoothed open, high, low and close values are plotted as new candles. The color of the candles indicates the market direction:
Green (lime): Bullish market
Red (red): Bearish market
How to use
Adding the indicator: Load the script in Pine Script on TradingView and add it to your chart.
Adjusting the parameters: If desired, customize ATR Length and EMA Period to fit your trading strategy.
Interpretation
Note the color change of the candles to identify trend changes early.
Use the EMA line as potential support / resistance or trend confirmation.
PSPThis indicator assists in identifying the PSP candle, providing valuable insights for analysis and decision-making. The indicator's functionality is designed to highlight specific patterns that are crucial for accurate interpretation of market trends. By utilizing this tool, users can enhance their ability to detect significant candlestick formations, ultimately improving their overall trading strategy.
SK Premium ICT 6hr Candles 🚀 SK Premium ICT 6hr Candles – Advanced Market Structure Tool 🚀
The SK Premium ICT 6hr Candles indicator overlays 6-hour candlestick data onto lower timeframes, offering traders a powerful tool to analyze market structure with precision. Designed for traders who follow ICT (Inner Circle Trader) concepts, this tool helps identify key levels such as liquidity zones, order blocks, and premium/discount areas, enabling more informed trading decisions.
Key Features 🌟
✅ 6-Hour Candlestick Overlay ⏳ – Seamlessly view higher timeframe (HTF) candlestick data on lower timeframes (1M, 5M, 15M, etc.) for enhanced market context.
✅ Smart Money Concepts Integration 🏦 – Identify critical market elements such as liquidity pools, fair value gaps (FVGs), order blocks, and market structure shifts.
✅ Customizable Display 🎨 – Adjust candle colors, opacity, and styles to suit your charting preferences and improve visual clarity.
✅ Market Structure Insights 📊 – Use HTF confirmation to refine intraday entries and exits, aligning with higher timeframe trends.
✅ Multi-Market Compatibility 🌍 – Compatible with Forex, indices, cryptocurrencies, commodities, and more.
Why This Tool? 🤔
This indicator is designed to bridge the gap between higher and lower timeframes, providing traders with a clearer understanding of market structure. By overlaying 6-hour candles on lower timeframes, it helps you:
🔍 Identify key levels of interest (liquidity, order blocks, etc.).
⚖️ Align intraday trades with higher timeframe trends.
🎯 Enhance decision-making with a broader market perspective.
How to Use 🛠️
1. Apply the indicator to your chart and customize the display settings for optimal clarity.
2. Use the 6-hour candle overlay to identify key levels and market structure shifts.
3. Combine with your existing ICT-based strategies for refined entries and exits.
Important Notes ⚠️
1. This tool is designed to complement your trading strategy, not replace it.
2. Past performance is not indicative of future results. Always trade responsibly.
For access or inquiries, please contact me directly or follow the instructions in the "Author's Instructions" section below.
Sood Indicator [Essential]// © Sood Indicator
//@version=5
indicator('Sood Indicator ', overlay=true, max_labels_count=500)
show_tp_sl = input.bool(true, 'Display TP & SL', group='Techical', tooltip='Display the exact TP & SL price levels for BUY & SELL signals.')
rrr = input.string('1:2', 'Risk to Reward Ratio', group='Techical', options= , tooltip='Set a risk to reward ratio (RRR).')
tp_sl_multi = input.float(1, 'TP & SL Multiplier', 1, group='Techical', tooltip='Multiplies both TP and SL by a chosen index. Higher - higher risk.')
tp_sl_prec = input.int(2, 'TP & SL Precision', 0, group='Techical')
candle_stability_index_param = 0.5
rsi_index_param = 70
candle_delta_length_param = 4
disable_repeating_signals_param = input.bool(true, 'Disable Repeating Signals', group='Techical', tooltip='Removes repeating signals. Useful for removing clusters of signals and general clarity.')
GREEN = color.rgb(29, 255, 40)
RED = color.rgb(255, 0, 0)
TRANSPARENT = color.rgb(0, 0, 0, 100)
label_size = input.string('huge', 'Label Size', options= , group='Cosmetic')
label_style = input.string('text bubble', 'Label Style', , group='Cosmetic')
buy_label_color = input(GREEN, 'BUY Label Color', inline='Highlight', group='Cosmetic')
sell_label_color = input(RED, 'SELL Label Color', inline='Highlight', group='Cosmetic')
label_text_color = input(color.white, 'Label Text Color', inline='Highlight', group='Cosmetic')
stable_candle = math.abs(close - open) / ta.tr > candle_stability_index_param
rsi = ta.rsi(close, 14)
atr = ta.atr(14)
bullish_engulfing = close < open and close > open and close > open
rsi_below = rsi < rsi_index_param
decrease_over = close < close
var last_signal = ''
var tp = 0.
var sl = 0.
bull_state = bullish_engulfing and stable_candle and rsi_below and decrease_over and barstate.isconfirmed
bull = bull_state and (disable_repeating_signals_param ? (last_signal != 'buy' ? true : na) : true)
bearish_engulfing = close > open and close < open and close < open
rsi_above = rsi > 100 - rsi_index_param
increase_over = close > close
bear_state = bearish_engulfing and stable_candle and rsi_above and increase_over and barstate.isconfirmed
bear = bear_state and (disable_repeating_signals_param ? (last_signal != 'sell' ? true : na) : true)
round_up(number, decimals) =>
factor = math.pow(10, decimals)
math.ceil(number * factor) / factor
if bull
last_signal := 'buy'
dist = atr * tp_sl_multi
tp_dist = rrr == '2:3' ? dist / 2 * 3 : rrr == '1:2' ? dist * 2 : rrr == '1:4' ? dist * 4 : dist
tp := round_up(close + tp_dist, tp_sl_prec)
sl := round_up(close - dist, tp_sl_prec)
if label_style == 'text bubble'
label.new(bar_index, low, 'BUY', color=buy_label_color, style=label.style_label_up, textcolor=label_text_color, size=label_size)
else if label_style == 'triangle'
label.new(bar_index, low, 'BUY', yloc=yloc.belowbar, color=buy_label_color, style=label.style_triangleup, textcolor=TRANSPARENT, size=label_size)
else if label_style == 'arrow'
label.new(bar_index, low, 'BUY', yloc=yloc.belowbar, color=buy_label_color, style=label.style_arrowup, textcolor=TRANSPARENT, size=label_size)
label.new(show_tp_sl ? bar_index : na, low, 'TP: ' + str.tostring(tp) + ' SL: ' + str.tostring(sl), yloc=yloc.price, color=color.gray, style=label.style_label_down, textcolor=label_text_color)
if bear
last_signal := 'sell'
dist = atr * tp_sl_multi
tp_dist = rrr == '2:3' ? dist / 2 * 3 : rrr == '1:2' ? dist * 2 : rrr == '1:4' ? dist * 4 : dist
tp := round_up(close - tp_dist, tp_sl_prec)
sl := round_up(close + dist, tp_sl_prec)
if label_style == 'text bubble'
label.new(bear ? bar_index : na, high, 'SELL', color=sell_label_color, style=label.style_label_down, textcolor=label_text_color, size=label_size)
else if label_style == 'triangle'
label.new(bear ? bar_index : na, high, 'SELL', yloc=yloc.abovebar, color=sell_label_color, style=label.style_triangledown, textcolor=TRANSPARENT, size=label_size)
else if label_style == 'arrow'
label.new(bear ? bar_index : na, high, 'SELL', yloc=yloc.abovebar, color=sell_label_color, style=label.style_arrowdown, textcolor=TRANSPARENT, size=label_size)
label.new(show_tp_sl ? bar_index : na, low, 'TP: ' + str.tostring(tp) + ' SL: ' + str.tostring(sl), yloc=yloc.price, color=color.gray, style=label.style_label_up, textcolor=label_text_color)
alertcondition(bull or bear, 'BUY & SELL Signals', 'New signal!')
alertcondition(bull, 'BUY Signals (Only)', 'New signal: BUY')
alertcondition(bear, 'SELL Signals (Only)', 'New signal: SELL')
Last N Candle Support & Resistance by AbhishekThis indicator marks the highest high as Resistance and the lowest low as Support over the last N candles (default: 15). The length can be adjusted in settings. Works dynamically across all timeframes.
For indicator inquiries, contact: abhishekgogna36@gmail.com
🔥 New Features:
✅ Customizable "Candle Lookback" → Change the number of candles directly in settings
✅ Default is 15 candles, but you can adjust it to any value
✅ Works dynamically on any timeframe (1m, 5m, etc.)
🚀 How to Use It
1️⃣ Open TradingView → Go to Pine Script Editor
2️⃣ Create a new indicator and delete any old code
3️⃣ Paste the script above
4️⃣ Click "Add to Chart"
5️⃣ Open settings (⚙️) and change the Candle Lookback to your preference