Supply and Demand ZonesDeskripsi Skrip:
Skrip ini berfungsi untuk mengidentifikasi dan menggambar zona supply (penawaran) dan demand (permintaan) pada grafik harga berdasarkan analisis harga tinggi dan rendah dalam periode tertentu.
Fitur Utama:
Identifikasi Zona Supply dan Demand:
Skrip ini mencari level supply di mana harga mengalami puncak tertinggi dalam periode lookback (jumlah periode yang dipilih pengguna).
Demand adalah titik terendah dalam periode lookback, di mana harga memiliki penurunan yang signifikan.
Input Pengguna:
Lookback Period: Jumlah periode (bar) yang digunakan untuk mencari harga tertinggi dan terendah, yang menentukan potensi zona supply atau demand.
Price Move Threshold: Persentase yang menentukan seberapa besar level harga harus bergerak (dalam hal demand atau supply) untuk membentuk zona tersebut.
Zone Width: Lebar zona yang digunakan untuk menggambar area supply/demand dalam jumlah periode setelah menemukan level supply/demand yang sesuai.
Penggambaran Zona Supply dan Demand:
Setelah menemukan level harga supply (harga tertinggi) atau demand (harga terendah), skrip ini menggambar sebuah box pada chart yang memperlihatkan rentang antara harga atas (top) dan bawah (bottom) zona tersebut.
Warna border box akan berwarna merah untuk zona supply dan hijau untuk zona demand, sementara area dalam kotak diwarnai dengan transparansi agar dapat dengan mudah terlihat di atas chart.
Penghapusan Kotak Lama:
Setiap kali ditemukan zona supply atau demand baru, kotak sebelumnya akan dihapus untuk menghindari tumpang tindih kotak, yang memastikan hanya ada satu kotak aktif di setiap waktu.
Proses yang Terjadi dalam Skrip:
Perhitungan Zona:
Fungsi f_find_supply_demand() digunakan untuk memeriksa apakah harga tertinggi atau terendah dalam periode lookback memenuhi kriteria untuk dianggap sebagai zona supply atau demand.
Pembuatan Box Supply dan Demand:
Setelah zona yang valid ditemukan (supply atau demand), fungsi utama membuat kotak menggunakan fungsi box.new(), yang menggambar zona pada chart dengan batas-batas yang disesuaikan.
Pembuangan Box Lama:
Jika ada zona supply atau demand sebelumnya, kotak tersebut dihapus dengan box.delete() untuk memastikan bahwa hanya ada satu kotak yang digambar di chart pada suatu waktu.
Parameter yang Dapat Disesuaikan Pengguna:
Lookback Period (Periode untuk Mencari Harga Tertinggi dan Terendah): Menentukan berapa lama periode pencarian untuk level tertinggi dan terendah harga dalam grafik.
Price Move Threshold (%): Persentase pergerakan harga yang digunakan untuk menggambar kotak supply dan demand.
Zone Width (Lebar Zona): Menentukan seberapa panjang kotak itu akan digambar di grafik berdasarkan perhitungan titik bar_index (indeks batang/kursi pada grafik).
Output:
Zona Supply (Zona Penawaran) digambar dengan kotak merah, menggambarkan area harga tinggi di mana mungkin ada penjual besar yang memasuki pasar.
Zona Demand (Zona Permintaan) digambar dengan kotak hijau, menggambarkan area harga rendah di mana mungkin ada pembeli besar yang memasuki pasar.
Dengan skrip ini, Anda bisa memvisualisasikan dengan mudah area supply dan demand di grafik dan mendapatkan wawasan yang lebih baik mengenai potensi pembalikan harga atau titik pembelian dan penjualan berdasarkan analisis teknikal.
Bande e canali
AdibXmos // © Adib2024
//@version=5
indicator('AdibXmos ', 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')
Adaptive Trend Flow [QuantAlgo]Adaptive Trend Flow 📈🌊
The Adaptive Trend Flow by QuantAlgo is a sophisticated technical indicator that harnesses the power of volatility-adjusted EMAs to navigate market trends with precision. By seamlessly integrating a dynamic dual-EMA system with adaptive volatility bands, this premium tool enables traders and investors to identify and capitalize on sustained market moves while effectively filtering out noise. The indicator's unique approach to trend detection combines classical technical analysis with modern adaptive techniques, providing traders and investors with clear, actionable signals across various market conditions and asset class.
💫 Indicator Architecture
The Adaptive Trend Flow provides a sophisticated framework for assessing market trends through a harmonious blend of EMA dynamics and volatility-based boundary calculations. Unlike traditional moving average systems that use fixed parameters, this indicator incorporates smart volatility measurements to automatically adjust its sensitivity to market conditions. The core algorithm employs a dual EMA system combined with standard deviation-based volatility bands, creating a self-adjusting mechanism that expands and contracts based on market volatility. This adaptive approach allows the indicator to maintain its effectiveness across different market phases - from ranging to trending conditions. The volatility-adjusted bands act as dynamic support and resistance levels, while the gradient visualization system provides instant visual feedback on trend strength and duration.
📊 Technical Composition and Calculation
The Adaptive Trend Flow is composed of several technical components that create a dynamic trending system:
Dual EMA System: Utilizes fast and slow EMAs for primary trend detection
Volatility Integration: Computes and smooths volatility for adaptive band calculation
Dynamic Band Generation: Creates volatility-adjusted boundaries for trend validation
Gradient Visualization: Provides progressive visual feedback on trend strength
📈 Key Indicators and Features
The Adaptive Trend Flow utilizes customizable length parameters for both EMAs and volatility calculations to adapt to different trading styles. The trend detection component evaluates price action relative to the dynamic bands to validate signals and identify potential reversals.
The indicator incorporates multi-layered visualization with:
Color-coded basis and trend lines (bullish/bearish)
Adaptive volatility-based bands
Progressive gradient background for trend duration
Clear trend reversal signals (𝑳/𝑺)
Smooth fills between key levels
Programmable alerts for trend changes
⚡️ Practical Applications and Examples
✅ Add the Indicator: Add the indicator to your TradingView chart by clicking on the star icon to add it to your favorites ⭐️
👀 Monitor Trends: Watch the basis line and trend band interactions to identify trend direction and strength. The gradient background intensity indicates trend duration and conviction.
🎯 Track Signals: Pay attention to the trend reversal markers that appear on the chart:
→ Long signals (𝑳) appear when price action confirms a bullish trend reversal
→ Short signals (𝑺) indicate validated bearish trend reversals
🔔 Set Alerts: Configure alerts for trend changes in both bullish and bearish directions, ensuring you never miss significant technical developments.
🌟 Summary and Tips
The Adaptive Trend Flow by QuantAlgo is a sophisticated technical tool designed to support trend-following strategies across different market environments and asset class. By combining dual EMA analysis with volatility-adjusted bands, it helps traders and investors identify significant trend changes while filtering out market noise, providing validated signals. The tool's adaptability through customizable EMA lengths, volatility smoothing, and sensitivity settings makes it suitable for various trading timeframes and styles, allowing users to capture trending opportunities while maintaining protection against false signals.
Key parameters to optimize for your trading and/or investing style:
Main Length: Adjust for more or less sensitivity to trend changes (default: 10)
Smoothing Length: Fine-tune volatility calculations for signal stability (default: 14)
Sensitivity: Balance band width for trend validation (default: 2.0)
Visual Settings: Customize appearance with color and display options
The Adaptive Trend Flow is particularly effective for:
Identifying sustained market trends
Detecting trend reversals with confirmation
Measuring trend strength and duration
Filtering out market noise and false signals
Remember to:
Allow the indicator to validate trend changes before taking action
Use the gradient background to gauge trend strength
Combine with volume analysis for additional confirmation
Consider multiple timeframes for a complete market view
Adjust sensitivity based on market volatility conditions
XSRMXSRM (XSRMulti) Indicator
Description:
The XSRM indicator is specifically designed for support and resistance analysis, enabling traders to identify swing points across multiple independent time intervals. It detects significant swing highs and lows within defined periods and plots them as key support and resistance levels on the chart.
Key Features:
Multi-Interval Swing Point Detection:
Identifies swing high and low points based on user-defined parameters (lookback period and offset).
Allows analysis across multiple independent ranges to locate critical support and resistance levels.
Customizable Parameters:
Configurable lookback periods, offsets, and depth for swing point detection.
Selectable price sources, including high/low, open, close, hl2, and hlc3.
Support and Resistance Visualization:
Plots swing high, swing low, and midpoints as lines on the chart.
Users can customize line colors, styles, and extensions for better readability.
Daily Percentage Change:
Displays daily price percentage change as a quick reference for market momentum.
How It Works:
The indicator analyzes price action over multiple user-defined timeframes to locate swing points.
Swing high and low levels are calculated using a depth parameter to ensure significant turning points are captured.
Midpoints are computed to highlight equilibrium zones between support and resistance levels.
Use Cases:
Identify strong support and resistance levels to refine entry and exit points.
Analyze swing points across different periods to understand market structure.
Combine with other indicators for confirmation and stronger trade setups.
Customization Options:
General Settings: Adjust lookback periods, offsets, and depth for swing analysis.
Optional Settings: Choose logarithmic or linear midpoint calculations, enable line extensions, and customize line colors.
Source Selection: Define the price source for swing point calculations (e.g., high/low, close).
Important Notes:
Ensure that the parameters are adjusted according to the asset and timeframe being analyzed.
The indicator is designed to work across various markets, including stocks, forex, and crypto.
This tool is ideal for traders focusing on support and resistance zones and those looking to enhance their technical analysis for more accurate trading decisions.
Estrategia Percentile y Estocástico//@version=6
indicator("Estrategia Percentile y Estocástico", overlay=true)
// Parámetros del estocástico
kLength = input.int(60, "Stoch %K Length")
kSmoothing = input.int(10, "Stoch %K Smoothing")
dSmoothing = input.int(1, "Stoch %D Smoothing")
overbought = input.int(80, "Nivel sobrecompra (80)")
// Parámetros del indicador Percentile
pLength = input.int(100, "Longitud del Percentile")
percentileValue = input.float(75, "Percentile objetivo (P75)")
// Cálculo del estocástico
k = ta.sma(ta.stoch(close, high, low, kLength), kSmoothing)
d = ta.sma(k, dSmoothing)
// Simulación del Percentile (aproximación básica)
var float percentileHigh = na // Declaramos la variable para almacenar el percentil
sortedHighs = array.new_float(0) // Array para almacenar los valores de `high`
if bar_index >= pLength
array.clear(sortedHighs) // Limpiamos el array en cada iteración
for i = 0 to pLength - 1
array.push(sortedHighs, high )
array.sort(sortedHighs, order=order.ascending)
rank = math.round(percentileValue / 100 * (pLength - 1))
percentileHigh := array.get(sortedHighs, rank)
// Condición de venta
cruceAbajo = not na(percentileHigh) and close < percentileHigh and close >= percentileHigh
stochEnSobrecompra = k > overbought
// Swing High para Stop Loss
swingHigh = ta.highest(high, 10) // Swing high de los últimos 10 períodos
// Señal de venta
venta = cruceAbajo and stochEnSobrecompra
// Plotear Percentile
plot(percentileHigh, color=color.orange, title="P75 (Percentile)")
// Colocar flechas para la señal de venta
plotshape(venta, style=shape.labeldown, location=location.abovebar, color=color.red, size=size.small, title="Venta")
// Mostrar Stop Loss en el gráfico
if venta
line.new(bar_index, swingHigh, bar_index + 1, swingHigh, color=color.red, width=1, extend=extend.none)
Renklendirilmiş Grafik ve Hareketli Ortalamalar + Parabolic SAR//@version=5
indicator("Renklendirilmiş Grafik ve Hareketli Ortalamalar + Parabolic SAR", overlay=true)
// Hareketli Ortalamalar
ma50 = ta.sma(close, 50)
ma200 = ta.sma(close, 200)
// Parabolic SAR
sar = ta.sar(0.02, 0.02, 0.2)
// Trend Şartları
upTrend = close > ma50 and ma50 > ma200
downTrend = close < ma50 and ma50 < ma200
// Arka Plan Renklendirme
bgcolor(upTrend ? color.new(color.green, 85) : na, title="Yükseliş Arka Plan")
bgcolor(downTrend ? color.new(color.red, 85) : na, title="Düşüş Arka Plan")
// Çubukları Renklendir
barcolor(upTrend ? color.green : na, title="Yükseliş Çubukları")
barcolor(downTrend ? color.red : na, title="Düşüş Çubukları")
// Parabolic SAR
plot(sar, style=plot.style_cross, color=color.purple, title="Parabolic SAR")
// İşlem Sinyalleri
longSignal = close > ma50 and close > ma200
shortSignal = close < ma50 and close < ma200
// Long ve Short Sinyalleri İçin Arka Plan
bgcolor(longSignal ? color.new(color.green, 90) : na, title="Long Signal Background")
bgcolor(shortSignal ? color.new(color.red, 90) : na, title="Short Signal Background")
Percentual Variation This script is an indicator for plotting percentage-based lines using the previous day's closing price. It is useful for traders who want to visualize support and resistance levels derived from predefined percentages. Here's what the script does:
Calculates percentage levels:
It uses the previous day's closing price to calculate two positive levels (above the close) and two negative levels (below the close) based on fixed percentages:
+0.25% and +0.50% (above the close).
-0.25% and -0.50% (below the close).
Plots the lines on the chart:
Draws four horizontal lines representing the calculated levels:
Green lines indicate levels above the closing price.
Red lines indicate levels below the closing price.
Displays labels on the chart:
Adds labels near the lines showing the corresponding percentage, such as "+0.25%", "+0.50%", "-0.25%", and "-0.50%".
This script provides a clear visual representation of key percentage-based levels, which can be used as potential entry, exit, or target points in trading strategies.
DIY Strategy Indicator Essentials KitOverview:
The DIY Strategy Indicator Essentials Kit is a comprehensive suite of foundational indicators designed to help traders build and refine their own strategies. This tool integrates key components such as Multi-Timeframe VWAP lines, Support/Resistance VWAP Bands, Customizable Moving Averages, and an Entry/Exit Color Coded MACD, offering flexibility and customization for a wide range of trading styles. By combining these essential elements into one cohesive package, this script provides a strong foundation for technical analysis while remaining adaptable to your individual needs.
Future updates will expand functionality, adding more tools and features to enhance your trading workflow.
Key Features:
VWAP Bands: Multi-standard deviation VWAP bands with customizable themes to help identify overbought and oversold levels in the market. Includes options to toggle single or double bands for deeper insights.
Daily, Weekly, and Monthly VWAP Lines: Displays VWAP levels that reset daily, weekly, or monthly, offering traders clear benchmarks for tracking market trends.
Daily 5 Moving Average: A smooth, daily timeframe 5-period moving average plotted on all timeframes. Includes advanced smoothing methods like McGinley and customizable labels for added clarity.
Multi-Timeframe MACD: A fully customizable MACD that works across multiple timeframes, with optional histogram color changes to signal trend exhaustion and cross detection.
Customizable Moving Averages: Incorporates up to four moving averages with selectable types (SMA, EMA, VWMA, or RMA) and lengths.
How It Works:
VWAP components (Daily, Weekly, Monthly, and Bands) help traders identify key support and resistance levels.
The Daily 5 Moving Average leverages higher-timeframe data to avoid "stairstepping" on lower timeframes, providing a smoother representation of trends.
The MACD section enables traders to detect momentum shifts, with color-coded signals and optional dot markers for line crosses.
Moving Averages can be customized to reflect user preferences, catering to various trading strategies such as trend-following or mean-reversion.
How to Use:
Enable or disable components through the settings menu to tailor the indicator to your trading style.
Adjust VWAP bands and MA types to reflect market conditions or personal preferences.
Monitor MACD histogram color changes for potential trend exhaustion and crossovers.
Use VWAP levels to confirm key market areas or improve entry/exit timing.
Purpose and Originality:
This script is designed to consolidate essential tools into one cohesive indicator, making it ideal for traders looking to optimize limited indicator slots. While inspired by widely-used concepts, this script is original in its integration of advanced smoothing methods, customizable VWAP bands, and multi-timeframe MACD enhancements. The focus is on adaptability and practicality, empowering traders to customize their workspace while maintaining clarity and efficiency.
Acknowledgements:
Parts of this script’s functionality have been adapted and modified from open-source scripts within the TradingView library. It is a community-driven effort to enhance trading capabilities while respecting the original work of contributors.
Cripto Indicator SwingTradeInclui em um único indicador vários métodos visando ajudar aqueles que usam a conta free do tradingview e somente podem ter dois indicadores simultaneamente nos graficos.
EMA
AMA
Pivot
Super Trend
Nuvem de Ishimoku
SCALPING NHANHNhanh vl Nhanh vl Nhanh vl Nhanh vl Nhanh vl Nhanh vl Nhanh vl Nhanh vl Nhanh vl Nhanh vl Nhanh vl Nhanh vl Nhanh vl Nhanh vl Nhanh vl Nhanh vl Nhanh vl Nhanh vl Nhanh vl Nhanh vl Nhanh vl Nhanh vl Nhanh vl
Bollinger Bubble BreakoutOverview:
This script leverages the principles of Bollinger Bands (BB), a popular tool for measuring volatility and identifying extreme price levels of overbought or oversold conditions. When the price closes outside the upper or lower bands, there is a strong probability that it will revert back inside the bands, typically in two steps:
First, towards the EMA 7 (fast exponential moving average).
Then, towards the SMA 20 (the middle line of the BB).
How It Works:
Outer BB Closes: When a candle closes beyond the upper or lower Bollinger Bands, it typically signals an extreme price extension (high volatility or impulsive movement).
Mean Reversion: Generally, the price tends to revert quickly inside the bands, with the first target being the EMA 7 and the second being the SMA 20. This behavior is based on the mean-reverting nature of Bollinger Bands, which act as dynamic price boundaries.
Alert Signal: The script highlights these closes and visually marks areas where potential reversals or technical corrections might occur.
Usage:
Ideal for traders aiming to exploit extreme moves for counter-trend trades or profit-taking opportunities.
Works best in volatile markets, but caution is advised during strong trends where prices can stay extended outside the bands.
Combine this tool with other indicators (such as RSI or MACD) to confirm signals.
Precautions:
The signals generated do not guarantee an immediate reversion. In strong trending markets, the price can "ride" the outer bands for several candles.
Strict risk management is advised: always use appropriate stop-loss levels based on your risk tolerance.
Practical Example:
When the price closes above the upper band:
Expect a correction towards the EMA 7 and then the SMA 20.
When the price closes below the lower band:
Look for a potential bounce towards the same targets.
Conclusion:
This script is designed to help traders identify opportunities in overbought or oversold conditions. However, it is not financial advice but rather an analytical tool to incorporate into your trading strategy.
BK BB Horizontal LinesIndicator Description:
I am incredibly proud and excited to share my second indicator with the TradingView community! This tool has been instrumental in helping me optimize my positioning and maximize my trades.
Bollinger Bands are a critical component of my trading strategy. I designed this indicator to work seamlessly alongside my previously introduced tool, "BK MA Horizontal Lines." This indicator focuses specifically on the Daily Bollinger Bands, applying horizontal lines to the bands for clarity and ease of use. The settings are fully adjustable to suit your preferences and trading style.
If you find success with this indicator, I kindly ask that you give back in some way through acts of philanthropy, helping others in the best way you see fit.
Good luck to everyone, and always remember: God gives us everything. May all the glory go to the Almighty!
signal buy javad/time/15mThis indicator is designed to give a buy signal on a 15-minute time frame by specifying a profit limit and a loss limit.
AI Moving Average Crossover BotA bot that gives signals using MA(Moving average)
s a strategy rather than just an indicator. A strategy allows for backtesting and automating trades.
made with pinescript v6
Vertical Lines ExampleVertical Lines Example
timestamp: Used to create specific times for today (9:15 AM, 11:00 AM, and 1:00 PM).
isTodayAfterStart: Ensures that lines are drawn only after 9:15 AM.
line.new: Creates vertical lines at the specified times (11:00 AM and 1:00 PM).
style_dotted: Makes the lines dotted.
xloc.bar_time: Places the lines based on time on the chart.
Levels Strength Index [BigBeluga]Levels Strength Index provides a unique perspective on market strength by comparing price positions relative to predefined levels, delivering a dynamic probability-based outlook for potential up and down moves.
🔵 Idea:
The Levels Strength Index analyzes the price position against a series of calculated levels, assigning probabilities for upward and downward movements. These probabilities are displayed in percentage form, providing actionable insights into market momentum and strength. The color-coded display visually reinforces whether the price is predominantly above or below key levels, simplifying trend analysis.
🔵 Key Features:
Dynamic Probability Calculation: The indicator compares the current price position relative to 10 predefined levels, assigning an "Up" and "Down" percentage. For example, if the price is above 8 levels, it will display 80% upward and 20% downward probabilities.
Color-Coded Trend Visualization: When the price is above the majority of levels, the display turns green, signaling strength. Conversely, when below, it shifts to orange, reflecting bearish momentum.
Clear Up/Down Probability Labels: Probabilities are displayed with directional arrows next to the price, instantly showing the likelihood of upward or downward moves.
Probability-Based Price Line: The price line is color-coded based on the probability percentages, allowing a quick glance at the prevailing trend and market strength. This can be toggled in the settings.
Customizable Transparency: Adjust the transparency of the levels to seamlessly integrate the indicator with your preferred chart setup.
Fully Configurable: Control key parameters such as the length of levels and price color mode (trend, neutral, or none) through intuitive settings.
🔵 When to Use:
The Levels Strength Index is ideal for traders looking to:
Identify strong upward or downward market momentum using quantified probabilities.
Visualize price strength relative to key levels with intuitive color coding.
Supplement existing level-based strategies by combining probabilities and market positioning.
Gain instant clarity on potential market moves with percentage-based insights.
Whether you're trading trends or ranges, this tool enhances decision-making by combining level-based analysis with a dynamic probability system, offering a clear, actionable perspective on market behavior.
ORB Indicator and Moving Average (Anjaneya)Name: ORB Indicator with Adjustable Buffer, Moving Averages, and Center Line
Overview:
This indicator is designed for intraday traders using the Opening Range Breakout (ORB) strategy. It calculates the high and low levels during a specific session (e.g., the first 5 minutes of the trading day) and applies adjustable buffers to these levels. Additionally, it includes a center line between the buffered high and low levels, as well as multiple moving averages for further trend analysis.
Features:
Opening Range Breakout (ORB) Levels:
High and Low: Identified during the configured session time (default: 9:15 AM to 9:20 AM).
Buffered Levels:
Calculated dynamically using the range between ORB high and ORB low.
A new percentage buffer is computed as half of the percentage change from the low to the high.
Buffered levels: Upside Buffer and Downside Buffer.
Center Line:
A visual midpoint between the Upside Buffer and Downside Buffer.
Displayed in light blue with 50% opacity and a thin line style.
Helps traders visualize the equilibrium point.
Crossover and Crossunder Signals:
Buy Signal (B): When the price crosses above the Upside Buffer.
Sell Signal (S): When the price crosses below the Downside Buffer.
Configurable for either close price or touch-based detection.
Moving Averages:
Includes Exponential Moving Averages (EMA) and Simple Moving Averages (SMA).
Configurable lengths for short-term, medium-term, and long-term trends.
Can be hidden or displayed as per user preference.
Customization Options:
ORB Session Time: Configurable to define the range for ORB calculation (default: 9:15 AM to 9:20 AM).
Signal Detection: Option to use Close or Touch for signal generation.
Moving Average Lengths: Adjustable for EMA (7, 14, 26) and SMA (50, 100, 200, 1000).
Buffer Calculation: Automatically calculates the buffer levels based on the ORB range.
Visual Elements:
Buffered Levels:
Green: Upside Buffer.
Red: Downside Buffer.
Center Line:
Light blue, 50% opacity.
Signals:
Buy: Green label below the bar.
Sell: Red label above the bar.
Moving Averages:
Color-coded and customizable for trend visualization.
Use Case:
This indicator is ideal for:
Breakout Trading: Identifying potential breakouts using buffered ORB levels.
Reversal Trading: Spotting price rejections near the ORB levels.
Trend Analysis: Leveraging moving averages to confirm or invalidate breakout signals.
Timezone Highlight v1.0Features Explained:
Customizable Time Settings:
Easily adjust the opening and closing times for each session to fit your local time zone or trading preferences.
Color-Coded Sessions:
New York : Blue
London : Yellow
Tokyo : Red
Sydney : Green
You can modify the colors or transparency in the script.
Dynamic Highlighting:
Automatically highlights the active trading session based on the current time.
This Pine Script is user-friendly and designed to provide immediate visual insights into global market activity. Let me know if you need further enhancements!
Its my first script so please don't be too strict!
Normalized Bollinger Band DistanceThis TradingView script calculates and visualizes the Normalized Bollinger Band Distance to analyze the relative spread of Bollinger Bands as a percentage of the moving average. It also determines thresholds based on global statistics to highlight unusual market conditions. Here's a detailed description:
Indicator Overview
Purpose: The indicator measures the normalized distance between the upper and lower Bollinger Bands relative to the Simple Moving Average (SMA). It helps identify periods of high or low volatility.
Visualization: Displays the normalized distance along with dynamic thresholds based on global statistical calculations (mean and standard deviation).
Inputs
Length (length): Defines the period for the SMA and Bollinger Bands calculation. Default is 200.
Standard Deviations (stdDev): Number of standard deviations for the Bollinger Bands. Default is 2.
Calculation
Bollinger Bands:
Upper Band:
SMA
+
(
Standard Deviation
×
stdDev
)
SMA+(Standard Deviation×stdDev)
Lower Band:
SMA
−
(
Standard Deviation
×
stdDev
)
SMA−(Standard Deviation×stdDev)
Normalized Distance:
Normalized Distance
=
Upper Band
−
Lower Band
SMA
Normalized Distance=
SMA
Upper Band−Lower Band
Global Statistics:
Global Mean (
𝜇
μ): Average of all normalized distances up to the current bar.
Global Standard Deviation (
𝜎
σ): Standard deviation of all normalized distances up to the current bar.
High Threshold:
𝜇
+
1.5
×
𝜎
μ+1.5×σ
Low Threshold:
𝜇
−
1.5
×
𝜎
μ−1.5×σ
Visualization
Normalized Distance Plot:
The normalized distance is plotted in blue as a percentage for easy interpretation.
Threshold Lines:
High Threshold: Red line to signal unusually high volatility.
Low Threshold: Green line to signal unusually low volatility.
Mean Line: White line indicating the average normalized distance.
Zero Line: Horizontal white line for reference.
Use Case
High Threshold Breach: Indicates an unusual increase in Bollinger Band width relative to the SMA, signaling potential high market volatility.
Low Threshold Breach: Indicates an unusual narrowing of Bollinger Band width, suggesting low volatility and potential consolidation.
Trend Analysis: Observe how the normalized distance evolves over time to anticipate market conditions.
Pi Cycle Top & Bottom OscillatorThis TradingView script implements the Pi Cycle Top & Bottom Oscillator, a technical indicator designed to identify potential market tops and bottoms using moving average relationships. Here's a detailed breakdown:
Indicator Overview
Purpose: The indicator calculates an oscillator based on the ratio of a 111-day simple moving average (SMA) to double the 350-day SMA. It identifies potential overbought (market tops) and oversold (market bottoms) conditions.
Visualization: The oscillator is displayed in a standalone pane with dynamic color coding to represent different market conditions.
Inputs
111-Day Moving Average Length (length_111): Adjustable parameter for the short-term moving average. Default is 111 days.
350-Day Moving Average Length (length_350): Adjustable parameter for the long-term moving average. Default is 350 days.
Overheat Threshold (upper_threshold): Percentage level above which the market is considered overheated. Default is 100%.
Cooling Down Threshold (lower_threshold): Percentage level below which the market is cooling down. Default is 75%.
Calculation
Moving Averages:
111-day SMA of the closing price.
350-day SMA of the closing price.
Double the 350-day SMA (
𝑚
𝑎
_
2
_
350
=
𝑚
𝑎
_
350
×
2
ma_2_350=ma_350×2).
Oscillator:
Ratio of the 111-day SMA to double the 350-day SMA, expressed as a percentage:
oscillator
=
𝑚
𝑎
_
111
𝑚
𝑎
_
2
_
350
×
100
oscillator=
ma_2_350
ma_111
×100
Market Conditions
Overheated Market (Potential Top): Oscillator >= Overheat Threshold (100% by default). Highlighted in red.
Cooling Down Market (Potential Bottom): Oscillator <= Cooling Down Threshold (75% by default). Highlighted in green.
Normal Market Condition: Oscillator is between these thresholds. Highlighted in blue.
Visual Features
Dynamic Oscillator Plot:
Color-coded to indicate market conditions:
Red: Overheated.
Green: Cooling down.
Blue: Normal condition.
Threshold Lines:
Red Dashed Line: Overheat Threshold.
Green Dashed Line: Cooling Down Threshold.
White Dashed Line: Additional high-value marker at 30 for reference.
Alerts
Overheat Alert: Triggers when the oscillator crosses the overheat threshold, signaling a potential market top.
Cooling Down Alert: Triggers when the oscillator crosses the cooling down threshold, signaling a potential market bottom.
Use Case
This script is particularly useful for traders seeking early signals of market reversals. The thresholds and dynamic color coding provide visual cues and alerts to aid decision-making in identifying overbought or oversold conditions.
HPDR Bands IndicatorThe HPDR Bands indicator is a customizable tool designed to help traders visualize dynamic price action zones. By combining historical price ranges with adaptive bands, this script provides clear insights into potential support, resistance, and midline levels. The indicator is well-suited for all trading styles, including trend-following and range-bound strategies.
Features:
Dynamic Price Bands: Calculates price zones based on historical highs and lows, blending long-term and short-term price data for responsive adaptation to current market conditions.
Probability Enhancements: Includes a probability plot derived from the relative position of the closing price within the range, adjusted for volatility to highlight potential price movement scenarios.
Fibonacci-Like Levels: Highlights key levels (100%, 95%, 88%, 78%, 61%, 50%, and 38%) for intuitive visualization of price zones, aiding in identifying high-probability trading opportunities.
Midline Visualization: Displays a midline that serves as a reference for price mean reversion or breakout analysis.
How to Use:
Trending Markets: Use the adaptive upper and lower bands to gauge potential breakout or retracement zones.
Range-Bound Markets: Identify support and resistance levels within the defined price range.
Volatility Analysis: Observe the probability plot and its sensitivity to volatility for informed decision-making.
Important Notes:
This script is not intended as investment advice. It is a tool to assist with market analysis and should be used alongside proper risk management and other trading tools.
The script is provided as-is and without warranty. Users are encouraged to backtest and validate its suitability for their specific trading needs.
Happy Trading!
If you find this script helpful, consider sharing your feedback or suggestions for improvement. Collaboration strengthens the TradingView community, and your input is always appreciated!