Support & Resistance + Range Filter + Volume Profile//@version=5
indicator("Support & Resistance + Range Filter + Volume Profile ", overlay=true, max_boxes_count=500, max_lines_count=500, max_bars_back=5000)
// ---------------------------------------------------------------------------------------------------------------------}
// 𝙐𝙎𝙀𝙍 𝙄𝙉𝙋𝙐𝙉𝙏𝙎
// ---------------------------------------------------------------------------------------------------------------------{
// Support and Resistance Inputs
int lookbackPeriod = input.int(20, "Lookback Period", minval=1, group="Support & Resistance")
int vol_len = input.int(2, "Delta Volume Filter Length", tooltip="Higher input, will filter low volume boxes", group="Support & Resistance")
float box_width = input.float(1, "Adjust Box Width", maxval=1000, minval=0, step=0.1, group="Support & Resistance")
// Range Filter Inputs
src = input(close, title="Source", group="Range Filter")
per = input.int(100, minval=1, title="Sampling Period", group="Range Filter")
mult = input.float(3.0, minval=0.1, title="Range Multiplier", group="Range Filter")
// Range Filter Colors
upColor = input.color(color.white, "Up Color", group="Range Filter")
midColor = input.color(#90bff9, "Mid Color", group="Range Filter")
downColor = input.color(color.blue, "Down Color", group="Range Filter")
// Volume Profile Inputs
vpGR = 'Volume & Sentiment Profile'
vpSH = input.bool(true, 'Volume Profile', group=vpGR)
vpUC = input.color(color.new(#5d606b, 50), ' Up Volume ', inline='VP', group=vpGR)
vpDC = input.color(color.new(#d1d4dc, 50), 'Down Volume ', inline='VP', group=vpGR)
vaUC = input.color(color.new(#2962ff, 30), ' Value Area Up', inline='VA', group=vpGR)
vaDC = input.color(color.new(#fbc02d, 30), 'Value Area Down', inline='VA', group=vpGR)
spSH = input.bool(true, 'Sentiment Profile', group=vpGR)
spUC = input.color(color.new(#26a69a, 30), ' Bullish', inline='BB', group=vpGR)
spDC = input.color(color.new(#ef5350, 30), 'Bearish', inline='BB', group=vpGR)
sdSH = input.bool(true, 'Supply & Demand Zones', group=vpGR)
sdTH = input.int(15, ' Supply & Demand Threshold %', minval=0, maxval=41, group=vpGR) / 100
sdSC = input.color(color.new(#ec1313, 80), ' Supply Zones', inline='SD', group=vpGR)
sdDC = input.color(color.new(#0094FF, 80), 'Demand Zones', inline='SD', group=vpGR)
pcSH = input.string('Developing POC', 'Point of Control', options= , inline='POC', group=vpGR)
pocC = input.color(#f44336, '', inline='POC', group=vpGR)
pocW = input.int(2, '', minval=1, inline='POC', group=vpGR)
vpVA = input.float(68, 'Value Area (%)', minval=0, maxval=100, group=vpGR) / 100
vahS = input.bool(true, 'Value Area High (VAH)', inline='VAH', group=vpGR)
vahC = input.color(#2962ff, '', inline='VAH', group=vpGR)
vahW = input.int(1, '', minval=1, inline='VAH', group=vpGR)
vlSH = input.bool(true, 'Value Area Low (VAL)', inline='VAL', group=vpGR)
valC = input.color(#2962ff, '', inline='VAL', group=vpGR)
valW = input.int(1, '', minval=1, inline='VAL', group=vpGR)
vpPT = input.string('Bar Polarity', 'Profile Polarity Method', options= , group=vpGR)
vpLR = input.string('Fixed Range', 'Profile Lookback Range', options= , group=vpGR)
vpLN = input.int(360, 'Lookback Length / Fixed Range', minval=10, maxval=5000, step=10, group=vpGR)
vpST = input.bool(true, 'Profile Stats', inline='STT', group=vpGR)
ppLS = input.string('Small', "", options= , inline='STT', group=vpGR)
lcDB = input.string('Top Right', '', options= , inline='STT', group=vpGR)
vpLV = input.bool(true, 'Profile Price Levels', inline='BBe', group=vpGR)
rpLS = input.string('Small', "", options= , inline='BBe', group=vpGR)
vpPL = input.string('Right', 'Profile Placement', options= , group=vpGR)
vpNR = input.int(100, 'Profile Number of Rows', minval=10, maxval=150, step=10, group=vpGR)
vpWD = input.float(31, 'Profile Width', minval=0, maxval=250, group=vpGR) / 100
vpHO = input.int(13, 'Profile Horizontal Offset', maxval=50, group=vpGR)
vaBG = input.bool(false, 'Value Area Background ', inline='vBG', group=vpGR)
vBGC = input.color(color.new(#2962ff, 89), '', inline='vBG', group=vpGR)
vpBG = input.bool(false, 'Profile Range Background ', inline='pBG', group=vpGR)
bgC = input.color(color.new(#2962ff, 95), '', inline='pBG', group=vpGR)
vhGR = 'Volume Histogram'
vhSH = input.bool(true, 'Volume Histogram', group=vhGR)
vmaS = input.bool(true, 'Volume MA, Length', inline='vol2', group=vhGR)
vmaL = input.int(21, '', minval=1, inline='vol2', group=vhGR)
vhUC = input.color(color.new(#26a69a, 30), ' Growing', inline='vol1', group=vhGR)
vhDC = input.color(color.new(#ef5350, 30), 'Falling', inline='vol1', group=vhGR)
vmaC = input.color(color.new(#2962ff, 0), 'Volume MA', inline='vol1', group=vhGR)
vhPL = input.string('Top', ' Placement', options= , group=vhGR)
vhHT = 11 - input.int(8, ' Hight', minval=1, maxval=10, group=vhGR)
vhVO = input.int(1, ' Vertical Offset', minval=0, maxval=20, group=vhGR) / 20
cbGR = 'Volume Weighted Colored Bars'
vwcb = input.bool(false, 'Volume Weighted Colored Bars', group=cbGR)
upTH = input.float(1.618, ' Upper Threshold', minval=1., step=.1, group=cbGR)
dnTH = input.float(0.618, ' Lower Threshold', minval=.1, step=.1, group=cbGR)
// ---------------------------------------------------------------------------------------------------------------------}
// 𝙎𝙐𝙋𝙋𝙊𝙍𝙏 𝘼𝙉𝘿 𝙍𝙀𝙎𝙄𝙎𝙏𝘼𝙉𝘾𝙀 𝘾𝘼𝙇𝘾𝙐𝙇𝘼𝙏𝙄𝙊𝙉𝙎
// ---------------------------------------------------------------------------------------------------------------------{
// Delta Volume Function
upAndDownVolume() =>
posVol = 0.0
negVol = 0.0
var isBuyVolume = true
switch
close > open => isBuyVolume := true
close < open => isBuyVolume := false
if isBuyVolume
posVol += volume
else
negVol -= volume
posVol + negVol
// Function to identify support and resistance boxes
calcSupportResistance(src, lookbackPeriod) =>
Vol = upAndDownVolume()
vol_hi = ta.highest(Vol/2.5, vol_len)
vol_lo = ta.lowest(Vol/2.5, vol_len)
var float supportLevel = na
var float resistanceLevel = na
var box sup = na
var box res = na
var color res_color = na
var color sup_color = na
// Find pivot points
pivotHigh = ta.pivothigh(src, lookbackPeriod, lookbackPeriod)
pivotLow = ta.pivotlow (src, lookbackPeriod, lookbackPeriod)
atr = ta.atr(200)
withd = atr * box_width
// Find support levels with Positive Volume
if (not na(pivotLow)) and Vol > vol_hi
supportLevel := pivotLow
topLeft = chart.point.from_index(bar_index-lookbackPeriod, supportLevel)
bottomRight = chart.point.from_index(bar_index, supportLevel-withd)
sup_color := color.from_gradient(Vol, 0, ta.highest(Vol, 25), color(na), color.new(color.green, 30))
sup := box.new(topLeft, bottomRight, border_color=color.green, border_width=1, bgcolor=sup_color, text="Vol: "+str.tostring(math.round(Vol,2)), text_color=chart.fg_color, text_size=size.small)
// Find resistance levels with Negative Volume
if (not na(pivotHigh)) and Vol < vol_lo
resistanceLevel := pivotHigh
topLeft = chart.point.from_index(bar_index-lookbackPeriod, resistanceLevel)
bottomRight = chart.point.from_index(bar_index, resistanceLevel+withd)
res_color := color.from_gradient(Vol, ta.lowest(Vol, 25), 0, color.new(color.red, 30), color(na))
res := box.new(topLeft, bottomRight, border_color=color.red, border_width=1, bgcolor=res_color, text="Vol: "+str.tostring(math.round(Vol,2)), text_color=chart.fg_color, text_size=size.small)
= calcSupportResistance(close, lookbackPeriod)
// ---------------------------------------------------------------------------------------------------------------------}
// 𝙍𝘼𝙉𝙂𝙀 𝙁𝙄𝙇𝙏𝙀𝙍 𝘾𝘼𝙇𝘾𝙐𝙇𝘼𝙏𝙄𝙊𝙉𝙎
// ---------------------------------------------------------------------------------------------------------------------{
// Smooth Average Range
smoothrng(x, t, m) =>
wper = t * 2 - 1
avrng = ta.ema(math.abs(x - x ), t)
smoothrng = ta.ema(avrng, wper) * m
smoothrng
smrng = smoothrng(src, per, mult)
// Range Filter
rngfilt(x, r) =>
rngfilt = x
rngfilt := x > nz(rngfilt ) ? x - r < nz(rngfilt ) ? nz(rngfilt ) : x - r :
x + r > nz(rngfilt ) ? nz(rngfilt ) : x + r
rngfilt
filt = rngfilt(src, smrng)
// Filter Direction
upward = 0.0
upward := filt > filt ? nz(upward ) + 1 : filt < filt ? 0 : nz(upward )
downward = 0.0
downward := filt < filt ? nz(downward ) + 1 : filt > filt ? 0 : nz(downward )
// Target Bands
hband = filt + smrng
lband = filt - smrng
// Colors
filtcolor = upward > 0 ? upColor : downward > 0 ? downColor : midColor
barcolor = src > filt and src > src and upward > 0 ? upColor :
src > filt and src < src and upward > 0 ? upColor :
src < filt and src < src and downward > 0 ? downColor :
src < filt and src > src and downward > 0 ? downColor : midColor
filtplot = plot(filt, color=filtcolor, linewidth=2, title="Range Filter")
hbandplot = plot(hband, color=color.new(upColor, 70), title="High Target")
lbandplot = plot(lband, color=color.new(downColor, 70), title="Low Target")
// Fills
fill(hbandplot, filtplot, color=color.new(upColor, 90), title="High Target Range")
fill(lbandplot, filtplot, color=color.new(downColor, 90), title="Low Target Range")
// Break Outs
longCond = bool(na)
shortCond = bool(na)
longCond := src > filt and src > src and upward > 0 or
src > filt and src < src and upward > 0
shortCond := src < filt and src < src and downward > 0 or
src < filt and src > src and downward > 0
CondIni = 0
CondIni := longCond ? 1 : shortCond ? -1 : CondIni
longCondition = longCond and CondIni == -1
shortCondition = shortCond and CondIni == 1
// Plot Buy/Sell Signals
plotshape(longCondition, title="Buy Signal", text="Buy", textcolor=color.white, style=shape.labelup, size=size.small, location=location.belowbar, color=color.new(#aaaaaa, 20))
plotshape(shortCondition, title="Sell Signal", text="Sell", textcolor=color.white, style=shape.labeldown, size=size.small, location=location.abovebar, color=color.new(downColor, 20))
// ---------------------------------------------------------------------------------------------------------------------}
// 𝙑𝙊𝙇𝙐𝙈𝙀 𝙋𝙍𝙊𝙁𝙄𝙇𝙀 𝘾𝘼𝙇𝘾𝙐𝙇𝘼𝙏𝙄𝙊𝙉𝙎
// ---------------------------------------------------------------------------------------------------------------------{
// (Include the Volume Profile calculations and visualizations from the original script here)
// ...
// ---------------------------------------------------------------------------------------------------------------------}
// 𝙑𝙄𝙎𝙐𝘼𝙇𝙄𝙕𝘼𝙏𝙄𝙊𝙉
// ---------------------------------------------------------------------------------------------------------------------{
// (Include the visualization logic from the Volume Profile script here)
// ...
// ---------------------------------------------------------------------------------------------------------------------}
// 𝘼𝙇𝙀𝙍𝙏𝙎
// ---------------------------------------------------------------------------------------------------------------------{
// (Include the alert conditions from the Volume Profile script here)
// ...
// ---------------------------------------------------------------------------------------------------------------------}
Полосы и каналы
Erick Multi Stochastic (Fixed)HOW TO USED?
First Step:
Turn off the SIGNAL line...
2nd Step.
Wait all the line to go beyond overbought or oversold line.
3rd step.
Watch for DIVIRGENT in the Charts.
Multi Stochastic Indicator Description
The Multi Stochastic Indicator is a custom technical analysis tool designed to provide insights into market momentum by plotting multiple Stochastic Oscillators on the same chart. This script is ideal for traders who want to compare different time-frame Stochastics in a single view to make informed trading decisions.
How It Works:
Stochastic Oscillator: The Stochastic Oscillator measures the level of the closing price relative to the high-low range over a set period. It consists of:
%K Line (Main Line): A fast-moving line representing raw Stochastic values.
%D Line (Signal Line): A smoothed version of %K.
Multi-Timeframe Analysis: This script calculates four Stochastic Oscillators with different parameter sets, allowing users to observe market conditions across short, medium, and long-term perspectives.
Inputs:
K Period, D Period, and Slowing: Parameters for each of the four Stochastics, customizable to suit your trading strategy.
Example Input Settings:
Stoch 1: Short-term (e.g., 9, 3, 3)
Stoch 2: Medium-term (e.g., 14, 3, 3)
Stoch 3: Long-term (e.g., 40, 4, 3)
Stoch 4: Very long-term (e.g., 60, 10, 1)
Features:
Color-Coded Lines:
Each Stochastic Oscillator is represented with distinct colors for easy identification:
Blue/Light Blue: Stoch 1
Red/Orange: Stoch 2
Green/Lime: Stoch 3
Purple/Magenta: Stoch 4
Overbought and Oversold Levels:
Horizontal lines are drawn at 80 (Overbought), 50 (Neutral), and 20 (Oversold).
Customisable Appearance:
Line widths and colors can be adjusted directly in the code or TradingView settings.
How to Use:
Add to Your Chart:
Copy and paste the script into TradingView's Pine Script editor.
Click "Add to Chart" to display the indicator in a separate window.
Interpret the Indicator:
Look for overbought conditions when %K and %D are near 80.
Look for oversold conditions when %K and %D are near 20.
Crossovers of %K above %D indicate potential buy signals, while crossovers below %D indicate potential sell signals.
Combine with Other Tools:
Use this indicator with other technical tools (e.g., trendlines, volume indicators) to validate signals.
Analyze how Stochastics across different timeframes align for stronger confirmation.
Practical Example:
If Stoch 1 and Stoch 2 show overbought signals (above 80) while Stoch 3 and Stoch 4 are in neutral or oversold zones, this could indicate short-term retracement opportunities in an otherwise bullish trend.
Use the Multi Stochastic Indicator to enhance your analysis by observing momentum shifts across multiple perspectives.
ROE BandROE Band shows the return on net profit from shareholders' equity and the formula for decomposition
ROE = ROA x CSL x CEL
ROE Band consists of 5 parts:
1. ROE (TTM) is the 12-month ROE calculation in "green"
2. Return on Equity (ROE) is the current quarterly net profit / the average of the beginning and ending periods of shareholders' equity in "yellow"
3. Return on Assets (ROA) is the current quarterly NOPAT (net profit before tax) / the average of the beginning and ending periods of total assets in "blue"
4. Capital structure leverage (CSL) is a financial measure that compares a company's debt to its total capital. It is calculated by taking the average of the beginning and ending periods of total assets / the average of the beginning and ending periods of shareholders' equity. The higher the CSL, the more deb, in. "red"
5. Common earnings leverage (CEL) is the proportion of net profit and NOPAT (net profit before tax), where a lower CEL means more tax, in "orange"
The "😱" emoji represents the value if it increases by more than or decreases by less than 20%, e.g.
- ROE(TTM), ROE, ROA, CEL is decreasing
- CSL is increasing
The "🔥" emoji represents the value if it increases by more than or decreases, e.g.
- ROE(TTM), ROE, ROA, CEL is increasing
- CSL is decreasing
Custom Table Indicator//@version=5
indicator("Custom Table Indicator", overlay=false)
// Create a table
var table myTable = table.new(position.top_left, 6, 5, bgcolor=color.new(color.white, 100))
// Column headers
if (bar_index == 0)
table.cell(myTable, 0, 0, "Timeframe", text_color=color.black, bgcolor=color.gray)
table.cell(myTable, 0, 1, "Trend", text_color=color.black, bgcolor=color.gray)
table.cell(myTable, 0, 2, "Momentum", text_color=color.black, bgcolor=color.gray)
table.cell(myTable, 0, 3, "Trend Strength", text_color=color.black, bgcolor=color.gray)
table.cell(myTable, 0, 4, "Volatility", text_color=color.black, bgcolor=color.gray)
// Define timeframes and values
timeframes = array.new_string(6)
array.set(timeframes, 0, "1 Min")
array.set(timeframes, 1, "5 Min")
array.set(timeframes, 2, "15 Min")
array.set(timeframes, 3, "1 Hour")
array.set(timeframes, 4, "4 Hour")
array.set(timeframes, 5, "Daily")
trends = array.new_string(6)
array.set(trends, 0, "Bearish")
array.set(trends, 1, "Bearish")
array.set(trends, 2, "Bearish")
array.set(trends, 3, "Bullish")
array.set(trends, 4, "Bullish")
array.set(trends, 5, "Bullish")
momentum = array.new_float(6)
array.set(momentum, 0, 33.3)
array.set(momentum, 1, 46.9)
array.set(momentum, 2, 50.8)
array.set(momentum, 3, 46.1)
array.set(momentum, 4, 54.5)
array.set(momentum, 5, 67.3)
trend_strength = array.new_float(6)
array.set(trend_strength, 0, 12.6)
array.set(trend_strength, 1, 21.5)
array.set(trend_strength, 2, 14.3)
array.set(trend_strength, 3, 27.1)
array.set(trend_strength, 4, 41.6)
array.set(trend_strength, 5, 54.3)
volatility = array.new_float(6)
array.set(volatility, 0, 0.6)
array.set(volatility, 1, 1.4)
array.set(volatility, 2, 3.1)
array.set(volatility, 3, 8.7)
array.set(volatility, 4, 15.5)
array.set(volatility, 5, 21.9)
// Populate the table
for i = 0 to array.size(timeframes) - 1
table.cell(myTable, i + 1, 0, array.get(timeframes, i), text_color=color.black)
table.cell(myTable, i + 1, 1, array.get(trends, i), text_color=color.white, bgcolor=array.get(trends, i) == "Bullish" ? color.green : color.red)
table.cell(myTable, i + 1, 2, str.tostring(array.get(momentum, i)), text_color=color.black)
table.cell(myTable, i + 1, 3, str.tostring(array.get(trend_strength, i)), text_color=color.black)
table.cell(myTable, i + 1, 4, str.tostring(array.get(volatility, i)), text_color=color.black)
Bollinger Bands Strategy by NJBollinger Bands Strategy," leverages Bollinger Bands to make trading decisions. Bollinger Bands consist of three key components: a basis line (moving average), an upper band, and a lower band, which are calculated using the standard deviation of price movements.
Logic:
Entry Condition (Long): A long position is entered when the close price rises above the upper Bollinger Band, signaling a potential breakout or strong upward momentum.
Exit Condition: The long position is closed when the close price falls below the lower Bollinger Band, indicating potential downward pressure.
Features:
Users can adjust the moving average type, lookback length, and standard deviation multiplier to fit their trading style.
Trades are executed within a specified date range, which can be customized via inputs.
The strategy uses 100% of capital for each trade and incorporates commission and slippage into the performance calculation.
This strategy is suitable for trend-following traders looking to capture significant price movements using Bollinger Bands as the primary indicator.
Bull Market Support Band buy - NJThis strategy buys when the weekly 21-period EMA (Exponential Moving Average) crosses above the weekly 20-period SMA (Simple Moving Average), signaling potential bullish momentum. It closes the position (sells) when the EMA crosses below the SMA, indicating a potential trend reversal.
Estrategia Avanzada para Opciones - MejoradaEste indicador avanzado está diseñado para traders que buscan optimizar su análisis en opciones sobre acciones. Combina medias móviles exponenciales (EMA), análisis de volatilidad, señales basadas en Bandas de Bollinger, y confirmaciones mediante el Índice de Fuerza Relativa (RSI).
Las señales de compra y venta están cuidadosamente filtradas para eliminar el ruido y solo operar en condiciones de mercado óptimas, lo que lo convierte en una herramienta ideal para traders que buscan precisión y efectividad.
Características principales:
Filtrado de Señales con EMA: Detecta tendencias claras eliminando fluctuaciones menores.
Análisis de Volatilidad: Evita operar en mercados laterales o con movimientos erráticos.
Bandas de Bollinger: Identifica zonas clave para rupturas y retrocesos.
Confirmación con RSI: Evita operar en zonas de sobrecompra o sobreventa extremas.
Alertas Personalizadas: Recibe notificaciones automáticas para señales de compra y venta.
Estadísticas en el Gráfico: Monitorea en tiempo real el desempeño de tu estrategia.
Ideal para traders de opciones, swing traders, y scalpers que buscan decisiones más informadas en el mercado.
S & R - Trend Lines & Channels (Prince of Arabs)Support and Resistance with Trend Channels
This indicator identifies key support and resistance levels based on swing highs and lows over a user-defined lookback period. It also visualizes dynamic trend channels to help traders understand price ranges and market structure.
Key features include:
Support Level: Marked with a green line and labeled "Support," indicating potential buying areas.
Resistance Level: Marked with a red line and labeled "Resistance," indicating potential selling areas.
Trend Channels: Dashed blue (upper) and purple (lower) lines show the price range above resistance and below support, helping to identify overbought and oversold conditions.
Clear Entry Signals: A "Buy" label is displayed near the price when it approaches the support level within a user-defined backtesting range.
Stop Loss and Take Profit Levels: Automatically calculated based on customizable percentages and visualized on the chart for each trade.
Risk-to-Reward Visualization: The indicator simplifies risk management by showing trade levels dynamically.
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 which is displayed in all timeframes. The Daily bands in my opinion hold a strong significance when it comes to support and resistance, knowing your current positioning and maximizing your trades. 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!
Range Channel by Atilla YurtsevenThis script creates a dynamic channel around a user-selected moving average (MA). It calculates the relative difference between price and the MA, then finds the average of the positive differences and the negative differences separately. Using these averages, it plots upper and lower bands around the MA as well as a histogram-like oscillator to show when price moves above or below the average thresholds.
How It Works
Moving Average Selection
The indicator allows you to choose among multiple MA types (SMA, EMA, WMA, Linear Regression, etc.). Depending on your preference, it calculates the chosen MA for the selected lookback period.
Relative Difference Calculation
It then computes the percentage difference between the source (typically the closing price) and the MA. (diff = (src / ma - 1) * 100)
Positive & Negative Averages
- Positive differences are averaged and represent how far the price typically moves above the MA.
- Negative differences are similarly averaged for when price moves below the MA.
Range Channel & Oscillator
- The channel is plotted around the MA using the average positive and negative differences (Upper Edge and Lower Edge).
- The “Untrended” histogram plots the difference (diff). Green bars occur when price is above the MA on average, and red bars when below. Two additional lines mark the upper and lower average thresholds on this histogram.
How to Use
Identify Overbought/Oversold Zones: The upper edge can serve as a dynamic overbought level, while the lower edge can suggest potential oversold conditions. When the histogram approaches or crosses these levels, it may signal price extremes relative to its average movement.
Trend Confirmation: Compare price action relative to the channel. If price and the histogram consistently remain above the MA and upper threshold, it could indicate a stronger bullish trend. If they remain below, it might signal a prolonged bearish trend.
Entry/Exit Timings:
- Entry: Traders can look for moments when price breaks back inside the channel from an extreme, anticipating a mean reversion.
- Exit: Watching how price interacts with these dynamic edges can help define stop-loss or take-profit points.
Because these thresholds adapt over time based on actual price behavior, they can be more responsive than fixed-percentage bands. However, like all indicators, it’s most effective when used in conjunction with other technical and fundamental tools.
Disclaimer
This script is provided for educational and informational purposes only. It does not guarantee any specific outcome or profit. Use it at your own discretion and risk.
Trade smart, stay safe.
Atilla Yurtseven
EMA, WMA, TEMA and MAвсе скользящие в одном EMA, WMA, TEMA and MA , удобно можно менять длины и цвет
EMA & RSI Buy/Sell Signalsbuy and sell signal for ema and rsi signals. has buy and sell signals for the perfect trade.
Bitcoin Logarithmic Regression BandsOverview
This indicator displays logarithmic regression bands for Bitcoin. Logarithmic regression is a statistical method used to model data where growth slows down over time. I initially created these bands in 2019 using a spreadsheet, and later coded them in TradingView in 2021. Over time, the bands proved effective at capturing Bitcoin's bull market peaks and bear market lows. In 2024, I decided to share this indicator because I believe these logarithmic regression bands offer the best fit for the Bitcoin chart.
How It Works
The logarithmic regression lines are fitted to the Bitcoin (BTCUSD) chart using two key factors: the 'a' factor (slope) and the 'b' factor (intercept). The two lines in the upper and lower bands share the same 'a' factor, but I adjust the 'b' factor by 0.2 to more accurately capture the bull market peaks and bear market lows. The formula for logaritmic regression is 10^((a * ln) - b).
How to Use the Logarithmic Regression Bands
1. Lower Band (Support Band):
The two lines in the lower band create a potential support area for Bitcoin’s price. Historically, Bitcoin’s price has always found its lows within this band during past market cycles. When the price is within the lower band, it suggests that Bitcoin is undervalued and could be set for a rebound.
2. Upper Band (Resistance Band):
The two lines in the upper band create a potential resistance area for Bitcoin’s price. Bitcoin has consistently reached its highs in this band during previous market cycles. If the price is within the upper band, it indicates that Bitcoin is overvalued, and a potential price correction may be imminent.
Use Cases
- Price Bottoming:
Bitcoin tends to bottom out at the lower band before entering a prolonged bull market or a period of sideways movement.
- Price Topping:
In reverse, Bitcoin tends to top out at the upper band before entering a bear market phase.
- Profitable Strategy:
Buying at the lower band and selling at the upper band can be a profitable trading strategy, as these bands often indicate key price levels for Bitcoin’s market cycles.
HOD/LOD/PMH/PML/PDH/PDL Strategy by @tradingbauhaus This script is a trading strategy @tradingbauhaus designed to trade based on key price levels, such as the High of Day (HOD), Low of Day (LOD), Premarket High (PMH), Premarket Low (PML), Previous Day High (PDH), and Previous Day Low (PDL). Below, I’ll explain in detail what the script does:
Core Functionality of the Script:
Calculates Key Price Levels:
HOD (High of Day): The highest price of the current day.
LOD (Low of Day): The lowest price of the current day.
PMH (Premarket High): The highest price during the premarket session (before the market opens).
PML (Premarket Low): The lowest price during the premarket session.
PDH (Previous Day High): The highest price of the previous day.
PDL (Previous Day Low): The lowest price of the previous day.
Draws Horizontal Lines on the Chart:
Plots horizontal lines on the chart for each key level (HOD, LOD, PMH, PML, PDH, PDL) with specific colors for easy visual identification.
Defines Entry and Exit Rules:
Long Entry (Buy): If the price crosses above the PMH (Premarket High) or the PDH (Previous Day High).
Short Entry (Sell): If the price crosses below the PML (Premarket Low) or the PDL (Previous Day Low).
Long Exit: If the price reaches the HOD (High of Day) during a long position.
Short Exit: If the price reaches the LOD (Low of Day) during a short position.
How the Script Works Step by Step:
Calculates Key Levels:
Uses the request.security function to fetch the HOD and LOD of the current day, as well as the highs and lows of the previous day (PDH and PDL).
Calculates the PMH and PML during the premarket session (before 9:30 AM).
Plots Levels on the Chart:
Uses the plot function to draw horizontal lines on the chart representing the key levels (HOD, LOD, PMH, PML, PDH, PDL).
Each level has a specific color for easy identification:
HOD: White.
LOD: Purple.
PDH: Orange.
PDL: Blue.
PMH: Green.
PML: Red.
Defines Trading Rules:
Uses conditions with ta.crossover and ta.crossunder to detect when the price crosses key levels.
Long Entry: If the price crosses above the PMH or PDH, a long position (buy) is opened.
Short Entry: If the price crosses below the PML or PDL, a short position (sell) is opened.
Long Exit: If the price reaches the HOD during a long position, the position is closed.
Short Exit: If the price reaches the LOD during a short position, the position is closed.
Executes Orders Automatically:
Uses the strategy.entry and strategy.close functions to open and close positions automatically based on the defined rules.
Advantages of This Strategy:
Based on Key Levels: Uses important price levels that often act as support and resistance.
Easy to Visualize: Horizontal lines on the chart make it easy to identify levels.
Automated: Entries and exits are executed automatically based on the defined rules.
Limitations of This Strategy:
Dependent on Volatility: Works best in markets with significant price movements.
False Crosses: There may be false crosses that generate incorrect signals.
No Advanced Risk Management: Does not include dynamic stop-loss or take-profit mechanisms.
How to Improve the Strategy:
Add Stop-Loss and Take-Profit: To limit losses and lock in profits.
Filter Signals with Indicators: Use RSI, MACD, or other indicators to confirm signals.
Optimize Levels: Adjust key levels based on the asset’s behavior.
In summary, this script is a trading strategy that operates based on key price levels, such as HOD, LOD, PMH, PML, PDH, and PDL. It is useful for traders who want to trade based on significant support and resistance levels.
Turtle ZoneTurtle Zone indicator helps to visually determine support and resistance zones of the price movement.
Displays a channel with zones located symmetrically around the moving average of the price.
Width of the channel is determined by the current volatility computed as average true range which makes the channel width adaptable to the volatility.
Touching of the zones from inside of the channel can be interpreted as a signal of potential reversal.
Breaking outside of the outer boundary of the zones can be interpreted as a signal of a potential continuation of price movement.
Parameters
• Price Source - Component of the bar for computation. Default is ‘hlc3’. Other reasonable values, such as ‘ohlc4’, ‘open’ or’ close’ can be used by advanced users.
• Lookback period - Amount of bars used in moving average computation. Default is 200.
• Inner Amplitude - Relative width of the inner channel. Default is 5.6.
• Outer Amplitude - Relative width of the outer channel. Default is 9.6.
Available plots for notifications
There are five plots on the graph comprising the channel: four boundaries of the channel bands and one hidden mean line of the channel:
Upper Zone Upper Line
Upper Zone Lower Line
Mean
Lower Zone Upper Line
Lower Zone Lower Line
All of the plots can be used to set up notifications.
Notes
All computations are performed in logarithmic price scale which makes this indicator useful on large timeframes.
Credits
This script uses Ehlers_Super_Smoother library by KevanoTrades
IronBot v3Introduction
IronBot V3 is a TradingView indicator that analyzes market trends, identifies potential trading opportunities, and helps manage trades by visualizing entry points, stop-loss levels, and take-profit targets.
How It Works
The indicator evaluates price action within a specified analysis window to determine market trends. It uses Fibonacci retracement levels to identify key price levels for trend detection and trading signals. Based on user-defined inputs, it calculates and displays trade levels, including entry points, stop-loss, and multiple take-profit levels.
Trend Definition:
The highest high and lowest low are calculated over a specified number of candles.
The price range is determined as the difference between the highest high and lowest low.
Three Fibonacci levels are calculated within this range:
- Fib Level 0.236
- Trend Line (0.5 level)
- Fib Level 0.786
Determining Long and Short Conditions:
Long Conditions (Buy):
The closing price must be above both the trend line (0.5 level) and the Fib Level 0.236.
Additionally, the market must not currently be in a bearish trend.
Short Conditions (Sell):
The closing price must be below both the trend line and the Fib Level 0.786.
The market must not currently be in a bullish trend.
Trend State Updates:
When a condition is met, the indicator sets the trend to bullish or bearish and turns off bearish or bullish trend conditions.
If neither buy nor sell conditions are met, the trend remains unchanged, and no new trade signals are generated.
Inputs and Their Role in the Algorithm
General Settings
Analysis Window: Specifies the number of historical candles to analyze. This influences the calculation of key levels such as highs and lows, which are critical for determining Fibonacci retracement levels.
First Trade: Defines the start date for generating trading signals.
Trade Configuration
Display TP/SL: Enables or disables the visualization of take-profit and stop-loss levels on the chart.
Leverage: Defines the leverage applied to trades for risk and position size calculations.
Initial Capital: Specifies the starting capital, which is used for calculating position sizes and profits.
Exchange Fees (%): Sets the percentage of fees applied by the exchange, which is factored into profit calculations.
Country Tax (%): Allows users to define applicable taxes, which are subtracted from net profits.
Stop-Loss Configuration
Break Even: Toggles the break-even functionality. When enabled, the stop-loss level adjusts dynamically as take-profit levels are reached.
Stop Loss (%): Defines the percentage distance from the entry price to the stop-loss level.
Take-Profit Settings
The indicator supports up to four take-profit levels:
- TP1 through TP4 Ratios: Specify the price levels for each take-profit target as a percentage of the entry price.
- Profit Percentages: Allocate a percentage of the position size to each take-profit level.
Visualization Elements
Trend Indicators: Displays Fibonacci-based trend lines and markers for bullish or bearish conditions.
Trade Levels: Entry, stop-loss, and take-profit levels are visualized on the chart by dotted lines for clarity. Additionally, a semi-transparent background is applied when a portion of the trade is closed to enhance visualization. Positive profits from a closed trade are green; otherwise, they are red.
Trade Profit Indicator: On each trade, every time a part of the trade is closed (e.g., take profit is reached), the profit indicator will be updated.
Performance Panel: Summarizes key account statistics, including net balance, profit/loss, and trading performance metrics.
Usage Guidelines
Add the indicator to your TradingView chart.
Configure the input settings based on your trading strategy.
Use the displayed levels and trend signals to make informed trading decisions.
Contact
For further assistance, including automation inquiries, feel free to contact me through TradingView’s messaging system.
Purpose and Disclaimer
IronBot V3 is designed for educational purposes and to assist in analyzing market trends. It is not financial advice, and users should perform their own due diligence before making any trading decisions.
Trading involves significant risk, and past performance is not indicative of future results. Use this indicator responsibly.
GapAura: Dynamic Gap [AstroHub]GapAura is a powerful indicator designed to analyze and visualize price gaps on your charts. It focuses on the key levels created by gaps between the open of the current day and the close of the previous day. The indicator connects these gap levels with trend-like lines, allowing traders to easily identify significant price movements and potential turning points in the market.
GapCloud automatically differentiates between upward and downward gaps, helping traders visualize important support and resistance levels that emerge following these gaps. The lines representing these gaps behave like trend lines, providing clear and actionable insights for market analysis. Unlike traditional gap indicators, GapCloud offers a dynamic approach to gap visualization, making it easier for traders to assess the impact of price gaps on future market movement.
How to Use:
Gap Up: When the open of the current day is higher than the close of the previous day, GapCloud draws a line connecting these two levels. This visualizes the gap upward and helps identify the trend direction, as well as potential support zones.
Gap Down: When the open of the current day is lower than the close of the previous day, the indicator draws a line that connects these levels, showing a downward gap. This can highlight potential resistance levels.
The lines for each gap are connected to form continuous trend-like levels, giving traders a clear picture of market structure. These lines can also be used to identify areas of strong support or resistance, and potential turning points where the price may reverse or continue in the same direction.
What Makes This Indicator Unique:
GapCloud stands out by transforming gaps into trend-like lines, offering more than just a simple visualization of the gap itself. By connecting the open and close levels of the current and previous day, it allows traders to see how these price differences can act as significant support or resistance levels. These lines help traders spot market trends and potential reversals more clearly, giving them an edge in making more informed trading decisions.
The ability to visualize gaps as trend lines gives traders a unique advantage in understanding market behavior. Gaps are not just seen as isolated events; they are integrated into the overall market structure and can provide critical insights into the potential price direction.
In addition to this, GapCloud offers a high degree of customization. Users can adjust the thickness, style, and color of the gap lines to fit their trading preferences and style. This makes the indicator adaptable to various types of trading strategies, from short-term to long-term analysis.
Key Features:
Identifies and visualizes gaps between the open of the current day and the close of the previous day.
Converts gap levels into trend-like lines, providing clarity and actionable insights for traders.
Helps identify potential support and resistance levels based on gap locations.
Fully customizable settings, including line thickness, style, and color, to suit individual trading preferences.
Provides a dynamic approach to gap analysis, helping traders forecast market direction and potential reversals with greater accuracy.
GapCloud is an essential tool for any trader looking to enhance their market analysis. By visualizing price gaps as connected trend lines, it simplifies the process of identifying key levels and market structure, giving traders an edge in understanding price movements and making more informed decisions.
Fair Value Breakout Strategy by @tradingbauhausThe **Breakaway Fair Value Gaps (BFVG) Strategy** is a trading approach designed to identify and capitalize on significant price gaps that occur within the context of a strong trend. These gaps, known as Fair Value Gaps (FVGs), represent areas where the price moves sharply, leaving behind an imbalance between supply and demand. When these gaps occur during a breakout or a strong trend continuation, they are referred to as **Breakaway Fair Value Gaps (BFVGs)**. This strategy uses these gaps as key levels for entering trades and managing risk.
---
### **Key Concepts**
1. **Fair Value Gap (FVG)**:
- A FVG occurs when the price moves sharply, leaving a gap between the high/low of previous candles and the current candle.
- It represents an imbalance in the market where buyers or sellers are overwhelmingly dominant.
2. **Breakaway Fair Value Gap (BFVG)**:
- A BFVG is a FVG that occurs during a strong trend or breakout, signaling potential continuation of the trend.
- It acts as a key level for entering trades in the direction of the trend.
3. **Mitigation Levels**:
- These are price levels where the market might retrace to "fill the gap" before continuing in the direction of the trend.
- The strategy monitors these levels to determine if the gap is still valid or if it has been mitigated.
---
### **Strategy Rules**
#### **Entry Conditions**
1. **Bullish BFVG**:
- A bullish BFVG occurs when:
- The current low is higher than the high of two candles ago (`low > high `).
- The close of the previous candle is higher than the high of two candles ago (`close > high `).
- **Entry**: Go long (buy) when a bullish BFVG is detected and the price has not yet mitigated the gap.
2. **Bearish BFVG**:
- A bearish BFVG occurs when:
- The current high is lower than the low of two candles ago (`high < low `).
- The close of the previous candle is lower than the low of two candles ago (`close < low `).
- **Entry**: Go short (sell) when a bearish BFVG is detected and the price has not yet mitigated the gap.
#### **Exit Conditions**
1. **Stop Loss**:
- The stop loss is placed at a fixed percentage below the entry price for long trades (`stop = close * (1 - stopLossPerc / 100)`).
- For short trades, the stop loss is placed at a fixed percentage above the entry price (`stop = close * (1 + stopLossPerc / 100)`).
2. **Take Profit**:
- The take profit is placed at a fixed percentage above the entry price for long trades (`limit = close * (1 + takeProfitPerc / 100)`).
- For short trades, the take profit is placed at a fixed percentage below the entry price (`limit = close * (1 - takeProfitPerc / 100)`).
#### **Mitigation Levels**
- If the price retraces and closes within the gap (mitigates the FVG), the gap is considered invalid, and the strategy stops monitoring it.
---
### **Visualization**
- **BFVG Boxes**:
- Bullish BFVGs are highlighted with a green box.
- Bearish BFVGs are highlighted with a red box.
- **Mitigation Lines**:
- Horizontal lines are drawn at the high/low of the gap to indicate the mitigation levels.
---
### **Dashboard**
The strategy includes a dashboard that displays key statistics:
1. **Total BFVGs Detected**:
- The number of bullish and bearish BFVGs identified.
2. **Mitigation Percentage**:
- The percentage of BFVGs that have been mitigated.
3. **Average/Median Duration**:
- The average or median number of candles it takes for a BFVG to be mitigated.
---
### **How It Works**
1. **Trend Identification**:
- The strategy uses a moving window of `length` candles to determine the current trend (highs and lows).
2. **Gap Detection**:
- It scans for FVGs that meet the criteria for BFVGs (strong trend context).
3. **Trade Execution**:
- Enters trades in the direction of the BFVG and manages risk using stop loss and take profit levels.
4. **Mitigation Monitoring**:
- Tracks whether the price retraces to fill the gap, invalidating the BFVG.
---
### **Advantages**
1. **Trend-Following**:
- The strategy capitalizes on strong trends, which often lead to significant price movements.
2. **Clear Entry and Exit Levels**:
- BFVGs provide well-defined levels for entering trades and managing risk.
3. **Flexibility**:
- Parameters like `length`, `stopLossPerc`, and `takeProfitPerc` can be adjusted to suit different trading styles.
---
### **Example**
- **Bullish BFVG**:
- The price is in an uptrend. A bullish BFVG is detected, and a long trade is entered.
- The stop loss is placed 1% below the entry price, and the take profit is placed 2% above.
- **Bearish BFVG**:
- The price is in a downtrend. A bearish BFVG is detected, and a short trade is entered.
- The stop loss is placed 1% above the entry price, and the take profit is placed 2% below.
---
### **Conclusion**
The **Breakaway Fair Value Gaps Strategy** is a systematic approach to trading strong trends by identifying and exploiting price gaps. It combines clear entry signals with robust risk management, making it suitable for traders who prefer trend-following strategies. By monitoring mitigation levels and using a dashboard for performance tracking, the strategy provides a comprehensive framework for trading BFVGs.