RSI + Auto Support + SMC + MA 20/50 vipHow it works:
Pivot Detection: It detects a pivot high and pivot low using the highest() and lowest() functions within a defined range.
Plot Shapes: The script marks these key levels on the chart with red labels for resistance and green labels for support.
Dynamic Lines: It draws dynamic lines that extend to the right whenever a new support or resistance level is detected.
How to use:
Add this script to your TradingView chart.
The support (green) and resistance (red) zones will appear as labels and lines.
You can adjust the length parameter to modify the sensitivity of the pivot detection.
Would you like to explore more advanced features for this SMC indicator, like order blocks or break of structure?
Полосы и каналы
Petru Indicator14 Day range. Percentage move. Analyzes first 14 days and percentage move after given window.
Channels by SmanovIndicator Description
“Channels by Smanov” is a multi-channel indicator that plots dynamic support and resistance zones around a moving average line. It is composed of two main parts:
FL 1 (Flexible Channels):
A Simple Moving Average (SMA) serves as the Basis.
Upper and lower bands are calculated by adding and subtracting an ATR-based buffer from the Basis.
User-defined inputs (such as Half Length, ATR Period, and ATR Multiplier) allow for flexibility in adapting the channel width to different market conditions.
FL 2 (Fixed Channels):
Eight additional bands expand on the same SMA + ATR logic but use fixed ATR multipliers (ranging from 2.2 up to 5.0).
These extra lines can help you gauge more distant levels of potential support or resistance.
By combining an SMA (to smooth price data) with ATR (to gauge volatility), this indicator highlights areas where price may be “stretched” relative to recent volatility. Traders often use channel-based indicators to identify potential “overbought” or “oversold” conditions, as well as to spot trend continuations or reversals.
How to Use / Trading Strategy
Trend Identification (Basis Line):
The middle line (the SMA) can be used as a trend filter:
If price consistently stays above the basis, it suggests an uptrend.
If price consistently stays below the basis, it suggests a downtrend.
Reversal Opportunities (Outer Bands):
When price moves into or beyond the upper bands, it may signal overbought conditions, creating potential short (or profit-taking) opportunities.
Conversely, when price dips into or beyond the lower bands, it may signal oversold conditions, which some traders use for initiating or adding to long positions.
Breakout or Continuation Signals:
In a strong trend, price may “ride” along the outer channels.
A clear break above/below a channel that previously acted as resistance/support could hint at trend continuation.
Failure to break these levels could suggest a potential reversal or consolidation phase.
Stop-Loss Placement:
Traders often place stops just outside a relevant band. For example, if you go long on a dip near a lower band, you might place your stop slightly below that band, relying on the ATR-based buffer to reflect normal volatility.
Multiple Timeframe Analysis:
Consider confirming signals on a higher timeframe (e.g., 4-hour or daily) while taking entries on a lower timeframe.
Channels on higher timeframes can act as stronger support or resistance, offering additional confluence.
Disclaimer
This indicator is provided for educational purposes and does not guarantee specific results. Trading involves risk, and individual traders are responsible for managing their own risk and capital. Always conduct thorough analysis and use appropriate risk management (e.g., stop-losses) when entering any market positions.
Enjoy using Channels by Smanov! Your feedback and personal insights can further refine the indicator’s settings for your preferred trading style. Good luck and trade responsibly!
This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0.
© Smanov_I
Litecoin LTC Logarithmic Fibonacci Growth CurvesHOW THIS SCRIPT IS ORIGINAL: there is no similar script dedicated to LTC, although there are similar ones dedicated to BTC. (This was created by modifying an old public and open source similar script dedicated to BTC.)
WHAT THIS SCRIPT DOES: draws a channel containing the price of LTC within which the Fibonacci extensions are highlighted. The reference chart to use is LTC/USD on Bitfinex (because it has the oldest data, given that Tradingview has not yet created an LTC index), suggested with weekly or monthly timeframe.
HOW IT DOES IT: starting from two basic curves that average the upper and lower peaks of the price, the relative Fibonacci extensions are then built on the basis of these: 0.9098, 0.8541, 0.7639, 0.618, 0.5, 0.382, 0.2361, 0.1459, 0.0902.
HOW TO USE IT: after activating the script you will notice the presence of two areas of particular interest, the upper area, delimited in red, which follows the upper peaks of the price, and the lower area, delimited in green, which follows the lower peaks of the price. Furthermore, the main curves, namely the two extremes and the median, are also projected into the future to predict an indicative trend. This script is therefore useful for understanding where the price will go in the future and can be useful for understanding when to buy (near the green lines) or when to sell (near the red lines). It is also possible to configure the script by choosing the colors and types of lines, as well as the main parameters to define the upper and lower curve, from which the script deduces all the other lines that are in the middle.
Very easy to read and interpret. I hope this description is sufficient, but it is certainly easier to use it than to describe it.
BTC/USD Gaussian Channel 1 Day Chart - Foneysmiles v1.0 Cryptocurrency trading strategy specifically designed for BTC/USD on a daily timeframe.
Strategy Framework:
Initial capital: $10,000
Position size: 60% of equity per trade
Commission: 0.1%
Slippage: 4 points
Time range: From January 2018 to end of 2069 (effectively no end date)
Gaussian Channel: The primary technical indicator that creates an adaptive channel around price
Uses a complex Gaussian filter with customizable poles (default 4)
Sampling period of 144 days
True Range multiplier of 1.414
Options for reduced lag and fast response modes
Price source defaults to HLC3 (High + Low + Close / 3)
Stochastic RSI with:
RSI length: 21 periods
Stochastic length: 200 periods
K smoothing: 1 period
D smoothing: 4 periods
Entry Conditions:
A long position is entered when ALL of these conditions are met:
The Gaussian filter is trending up (finalFilter > finalFilter )
Price is above the upper Gaussian channel band (close > hband)
Stochastic RSI is in extreme territory (k > 80 or k < 20)
Within the specified date range
Exit Conditions:
Positions are closed when price crosses below the upper band of the Gaussian channel
The visualization includes:
A color-coded Gaussian filter line (green when rising, red when falling)
Upper and lower bands forming a channel
The channel is filled with a semi-transparent version of the same color
This is a trend-following strategy that aims to catch strong upward moves in Bitcoin while using the Stochastic RSI as an additional filter. The strategy only takes long positions and doesn't include any short trades.
foneysmiles@gmail.com if you have any questions or have other use cases
Gaussian Channel Strategy v3.0 - CAFGaussian channel strategy using stochastic RSI to mark buy and sell
Nadaraya-Watson Envelope [MirsaRemix] + 2 EMAsNombre del indicador: Nadaraya-Watson Envelope + 2 EMAs
Descripción:
Este script combina el cálculo avanzado del indicador Nadaraya-Watson Envelope (NWE) con la inclusión de dos medias móviles exponenciales (EMAs) configurables, proporcionando a los traders una herramienta poderosa para el análisis técnico.
Características principales:
Nadaraya-Watson Envelope (NWE):
Utiliza un modelo de suavizado basado en la ventana gaussiana, permitiendo detectar puntos clave de soporte y resistencia dinámica.
Incluye un modo opcional de "repainting" para obtener un suavizado en tiempo real.
Indicaciones visuales de posibles puntos de cruce (flechas hacia arriba y abajo) cuando el precio cruza los límites del envelope.
Medias Móviles Exponenciales (EMAs):
Dos EMAs configurables para ayudar a identificar tendencias y zonas de entrada/salida.
Colores y longitudes personalizables:
EMA 1: Azul (por defecto con una longitud de 20).
EMA 2: Naranja (por defecto con una longitud de 50).
Interfaz intuitiva:
Opciones para ajustar parámetros como el ancho de banda, el factor de multiplicación, y las longitudes de las EMAs.
Indicador compatible con gráficos de TradingView y diseñado para ser utilizado en cualquier marco temporal.
Usos del indicador:
Identificar tendencias generales del mercado con las EMAs.
Detectar posibles niveles de soporte y resistencia dinámicos con la envolvente Nadaraya-Watson.
Encontrar oportunidades de trading con las señales visuales de cruces de límites.
Este indicador es ideal para traders que buscan combinar estrategias basadas en medias móviles con análisis dinámico de precios. Su versatilidad lo hace útil tanto para estrategias de scalping como de swing trading.
RSI + Auto Support + SMC + MA 20/50+volumCombining Smart Money Concepts (SMC), volume analysis, moving averages, automatic support/resistance detection, and RSI high signals can create a powerful TradingView script for technical analysis and decision-making. Here's an outline of how you can integrate these elements into a Pine Script strategy or indicator:
Smart Money Concepts (SMC):
Identify market structure: Higher highs (HH), higher lows (HL), lower highs (LH), and lower lows (LL).
Highlight key order blocks and liquidity zones.
Volume Analysis:
Use volume as a confirmation tool for breakouts or reversals.
Display relative volume levels to spot unusual activity.
Moving Averages:
Include popular moving averages (e.g., SMA, EMA) for trend detection.
Use crossovers for entry/exit signals.
Auto Support/Resistance:
Automatically plot support and resistance zones based on pivot highs/lows.
Highlight areas of confluence with SMC or volume zones.
RSI High Signals:
Identify overbought/oversold levels on the RSI.
Mark divergence areas for potential reversals.
Here’s a simplified Pine Script to start with:
This script integrates SMC (HH/LL), volume, moving averages, RSI, and auto support/resistance into a single indicator. You can modify it to suit your trading style by adjusting lengths or adding alerts for specific conditions. Let me know if you’d like to refine or expand any part!
8888325335/@version=5
indicator("Bit Bite ht",shorttitle = "Bit Bite hindi technical", overlay = true)
src = input(hl2, title="Source",group = "Trend Continuation Signals with TP & SL")
Multiplier = input.float(2,title="Sensitivity (0.5 - 5)", step=0.1, defval=2, minval=0.5, maxval=5,group = "Trend Continuation Signals with TP & SL")
atrPeriods = input.int(14,title="ATR Length", defval=10,group = "Trend Continuation Signals with TP & SL")
atrCalcMethod= input.string("Method 1",title = "ATR Calculation Methods",options = ,group = "Trend Continuation Signals with TP & SL")
cloud_val = input.int(10,title = "Cloud Moving Average Length", defval = 10, minval = 5, maxval = 500,group = "Trend Continuation Signals with TP & SL")
stopLossVal = input.float(2.0, title="Stop Loss Percent (0 for Disabling)", minval=0,group = "Trend Continuation Signals with TP & SL")
showBuySellSignals = input.bool(true,title="Show Buy/Sell Signals", defval=true,group = "Trend Continuation Signals with TP & SL")
showMovingAverageCloud = input.bool(true, title="Show Cloud MA",group = "Trend Continuation Signals with TP & SL")
percent(nom, div) =>
100 * nom / div
src1 = ta.hma(open, 5)
src2 = ta.hma(close, 12)
momm1 = ta.change(src1)
momm2 = ta.change(src2)
f1(m, n) => m >= n ? m : 0.0
f2(m, n) => m >= n ? 0.0 : -m
m1 = f1(momm1, momm2)
m2 = f2(momm1, momm2)
sm1 = math.sum(m1, 1)
sm2 = math.sum(m2, 1)
cmoCalc = percent(sm1-sm2, sm1+sm2)
hh = ta.highest(2)
h1 = ta.dev(hh, 2) ? na : hh
hpivot = fixnan(h1)
ll = ta.lowest(2)
l1 = ta.dev(ll, 2) ? na : ll
lpivot = fixnan(l1)
rsiCalc = ta.rsi(close,9)
lowPivot = lpivot
highPivot = hpivot
sup = rsiCalc < 25 and cmoCalc > 50 and lowPivot
res = rsiCalc > 75 and cmoCalc < -50 and highPivot
atr2 = ta.sma(ta.tr, atrPeriods)
atr= atrCalcMethod == "Method 1" ? ta.atr(atrPeriods) : atr2
up=src-(Multiplier*atr)
up1 = nz(up ,up)
up := close > up1 ? math.max(up,up1) : up
dn=src+(Multiplier*atr)
dn1 = nz(dn , dn)
dn := close < dn1 ? math.min(dn, dn1) : dn
trend = 1
trend := nz(trend , trend)
trend := trend == -1 and close > dn1 ? 1 : trend == 1 and close < up1 ? -1 : trend
buySignal = trend == 1 and trend == -1
sellSignal = trend == -1 and trend == 1
pos = 0.0
pos:= buySignal? 1 : sellSignal ? -1 : pos
longCond = buySignal and pos != 1
shortCond = sellSignal and pos !=-1
entryOfLongPosition = ta.valuewhen(longCond , close, 0)
entryOfShortPosition = ta.valuewhen(shortCond, close, 0)
sl = stopLossVal > 0 ? stopLossVal / 262 : 99999
stopLossForLong = entryOfLongPosition * (1 - sl)
stopLossForShort = entryOfShortPosition * (1 + sl)
takeProfitForLong1R = entryOfLongPosition * (1 + sl)
takeProfitForShort1R = entryOfShortPosition * (1 - sl)
takeProfitForLong2R = entryOfLongPosition * (1 + sl*2)
takeProfitForShort2R = entryOfShortPosition * (1 - sl*2)
takeProfitForLong3R = entryOfLongPosition * (1 + sl*3)
takeProfitForShort3R = entryOfShortPosition * (1 - sl*3)
long_sl = low < stopLossForLong and pos ==1
short_sl = high> stopLossForShort and pos ==-1
takeProfitForLongFinal = high>takeProfitForLong3R and pos ==1
takeProfitForShortFinal = low 0?entryOfLongPosition :entryOfShortPosition , pos>0?lindex:sindex, pos>0?entryOfLongPosition :entryOfShortPosition , color=entryColor )
line.delete(lineEntry )
stopLine = line.new(bar_index, pos>0?stopLossForLong :stopLossForShort , pos>0?lindex:sindex, pos>0?stopLossForLong :stopLossForShort , color=color.red )
tpLine1 = line.new(bar_index, pos>0?takeProfitForLong1R:takeProfitForShort1R, pos>0?lindex:sindex, pos>0?takeProfitForLong1R:takeProfitForShort1R, color=color.green)
tpLine2 = line.new(bar_index, pos>0?takeProfitForLong2R:takeProfitForShort2R, pos>0?lindex:sindex, pos>0?takeProfitForLong2R:takeProfitForShort2R, color=color.green)
tpLine3 = line.new(bar_index, pos>0?takeProfitForLong3R:takeProfitForShort3R, pos>0?lindex:sindex, pos>0?takeProfitForLong3R:takeProfitForShort3R, color=color.green)
line.delete(stopLine )
line.delete(tpLine1 )
line.delete(tpLine2 )
line.delete(tpLine3 )
labelEntry = label.new(bar_index, pos>0?entryOfLongPosition :entryOfShortPosition , color=entryColor , textcolor=#000000, style=label.style_label_left, text="Entry Price: " + str.tostring(pos>0?entryOfLongPosition :entryOfShortPosition ))
label.delete(labelEntry )
labelStop = label.new(bar_index, pos>0?stopLossForLong :stopLossForShort , color=color.red , textcolor=#000000, style=label.style_label_left, text="Stop Loss Price: " + str.tostring(math.round((pos>0?stopLossForLong :stopLossForShort) *100)/100))
labelTp1 = label.new(bar_index, pos>0?takeProfitForLong1R:takeProfitForShort1R, color=color.green, textcolor=#000000, style=label.style_label_left, text="(1-1) Take Profit: " +str.tostring(math.round((pos>0?takeProfitForLong1R:takeProfitForShort1R) * 100)/100))
labelTp2 = label.new(bar_index, pos>0?takeProfitForLong2R:takeProfitForShort2R, color=color.green, textcolor=#000000, style=label.style_label_left, text="(2-1) Take Profit: " + str.tostring(math.round((pos>0?takeProfitForLong2R:takeProfitForShort2R) * 100)/100))
labelTp3 = label.new(bar_index, pos>0?takeProfitForLong3R:takeProfitForShort3R, color=color.green, textcolor=#000000, style=label.style_label_left, text="(3-1) Take Profit: " + str.tostring(math.round((pos>0?takeProfitForLong3R:takeProfitForShort3R) * 100)/100))
label.delete(labelStop )
label.delete(labelTp1 )
label.delete(labelTp2 )
label.delete(labelTp3 )
changeCond = trend != trend
smaSrcHigh = ta.ema(high,cloud_val)
smaSrcLow = ta.ema(low, cloud_val)
= ta.macd(close, 12, 26, 9)
plot_high = plot(showMovingAverageCloud? smaSrcHigh : na, color = na, transp = 1, editable = false)
plot_low = plot(showMovingAverageCloud? smaSrcLow : na, color = na, transp = 1, editable = false)
plotshape(longCond ? up : na, title="UpTrend Begins", location=location.belowbar, style=shape.circle, size=size.tiny, color=color.new(color.teal,transp = 50) )
plotshape(longCond and showBuySellSignals ? up : na, title="Buy kar lo", text="Buy kar lo", location=location.belowbar, style=shape.labelup, size=size.tiny, color=color.new(color.teal,transp = 50), textcolor=color.white )
plotshape(shortCond ? dn : na, title="DownTrend Begins", location=location.abovebar, style=shape.circle, size=size.tiny, color=color.new(color.red,transp = 50) )
plotshape(shortCond and showBuySellSignals ? dn : na, title="Sell kar do", text="Sell kar do", location=location.abovebar, style=shape.labeldown, size=size.tiny, color=color.new(color.red,transp = 50), textcolor=color.white)
fill(plot_high, plot_low, color = (macdLine > 0) and (macdLine > macdLine ) ? color.new(color.aqua,transp = 85) : na, title = "Positive Cloud Uptrend")
fill(plot_high, plot_low, color = macdLine > 0 and macdLine < macdLine ? color.new(color.aqua,transp = 85) : na, title = "Positive Cloud Downtrend")
fill(plot_high, plot_low, color = macdLine < 0 and macdLine < macdLine ? color.new(color.red,transp = 85) : na, title = "Negative Cloud Uptrend")
fill(plot_high, plot_low, color = macdLine < 0 and macdLine > macdLine ? color.new(color.red,transp = 85) : na, title = "Negative Cloud Downtrend")
mPlot = plot(ohlc4, title="", style=plot.style_circles, linewidth=0)
alertcondition(changeCond, title="Trend Direction Change ", message="Trend direction has changed ! ")
alertLongText = str.tostring(syminfo.ticker) + " BUY ALERT! " +
"Entry Price: " + str.tostring(entryOfLongPosition) +
", Take Profit 1: " + str.tostring(takeProfitForLong1R) +
", Take Profit 2: " + str.tostring(takeProfitForLong2R) +
", Take Profit 3: " + str.tostring(takeProfitForLong3R) +
", Stop Loss Price: " + str.tostring(stopLossForLong)
alertShortText = str.tostring(syminfo.ticker) + " SELL ALERT!" +
", Entry Price: " + str.tostring(entryOfShortPosition) +
", Take Profit 1: " + str.tostring(takeProfitForShort1R) +
", Take Profit 2: " + str.tostring(takeProfitForShort2R) +
", Take Profit 3: " + str.tostring(takeProfitForShort3R) +
", Stop Loss Price: " + str.tostring(stopLossForShort)
longJson = '{"content": "' + alertLongText + '"}'
shortJson = '{"content": "' + alertShortText + '"}'
if longCond
alert(longJson, alert.freq_once_per_bar_close)
if shortCond
alert(shortJson, alert.freq_once_per_bar_close)
Pocket Pivots by Kacher and Morales "Pocket Pivots," identifies potential bullish trading opportunities and technical conditions based on concepts from traders Kacher and Morales. It combines moving averages (SMAs), Bollinger Bands, Keltner Channels, volume analysis, and price action rules to detect:
Pocket Pivots:
Bullish signals triggered when:
Volume exceeds prior downdays (configurable lengths Standard is 10 days).
Price closes above key SMAs (10/50-day).
As Kacher and Morales do not buy wedging charts I added a squeeze check to avoid buy signals
The market is in a volatility "squeeze" (Bollinger Bands within Keltner Channels).
Up/down ratio of the volume must be greater than 1
Volume Pocket Pivots:
Secondary bullish signals based purely on volume spikes and upward price momentum.
This shows normal pocket pivots in yellow. But does not check if all other rules are fullfilled.
SMA Violations:
Marks bearish breakdowns below 10-day or 50-day SMAs
A 10 SMA Violation is normally yellow. But if there was no 10 day violation for Seven Weeks, the first 10 SMA violation shows a red sell signal. Kacher and Morales call it "Seven Week Rule"
Buyable Gap-Ups:
Highlights high-volume gaps up with strong price follow-through.
Visual Elements:
Plots SMAs (10, 50, 200), Bollinger Bands, and Keltner Channels.
Marks signals with colored triangles/diamonds (green = bullish, red = bearish and yellow / blue = informational).
YCLK Al-Sat İndikatörüRSI Period (RSI Periyodu): Adjustable RSI period (default is 14).
Overbought Level (RSI Aşırı Alım): Sets the RSI threshold for overbought conditions (default is 70).
Oversold Level (RSI Aşırı Satım): Sets the RSI threshold for oversold conditions (default is 30).
Take Profit Ratio (Kâr Alma Oranı): Percentage ratio for take-profit levels (default is 1.05 or 5% profit).
Stop Loss Ratio (Zarar Durdurma Oranı): Percentage ratio for stop-loss levels (default is 0.95 or 5% loss).
RSI Calculation: The script calculates the Relative Strength Index (RSI) using the defined period.
Buy Signal: Generated when RSI crosses above the oversold level.
Sell Signal: Generated when RSI crosses below the overbought level.
Buy/Sell Signal Visualization:
Buy Signal: Green upward arrow labeled as "BUY".
Sell Signal: Red downward arrow labeled as "SELL".
Dynamic Take Profit and Stop Loss Levels:
Entry Price: Tracks the price at which a Buy signal occurs.
Take Profit (TP): Automatically calculated as Entry Price * Take Profit Ratio.
Stop Loss (SL): Automatically calculated as Entry Price * Stop Loss Ratio.
These levels are plotted on the chart with:
Blue circles for TP levels.
Red circles for SL levels.
Fibonacci Targets: The script also calculates Fibonacci levels based on the entry price:
Fibonacci 1.236 Level: Shown in purple.
Fibonacci 1.618 Level: Shown in orange.
Additional Visual Details:
Displays the current RSI value at each bar as a yellow label above the chart.
How to Use:
Apply the indicator to your TradingView chart.
Adjust the input parameters (RSI period, overbought/oversold levels, profit/loss ratios) based on your strategy.
Use the Buy and Sell signals to identify potential trade entries.
Use the TP and SL levels to manage risk and lock in profits.
Refer to the Fibonacci levels for extended profit targets.
MI-Advanced Long/Short StrategyAdvanced Multi-Indicator Trading Strategy
Combining Trend Following, Momentum Confirmation & Risk Management
This sophisticated trading strategy is designed to identify high-probability long/short opportunities using a confluence of technical indicators while maintaining strict risk control. It combines trend analysis, momentum confirmation, and volume-based validation to generate clear buy/sell signals across various markets and timeframes.
Core Components
Trend Identification Engine
Dual EMA System (12/26 periods):
Bullish bias when 12-EMA > 26-EMA
Bearish bias when 12-EMA < 26-EMA
Supertrend Indicator:
Dynamic trend filter using price volatility
Green line = Bullish trend (longs enabled)
Red line = Bearish trend (shorts enabled)
Momentum Confirmation
MACD Histogram:
Bullish crossover (signal line cross) for entries
Bearish crossover for exits/reversals
RSI Threshold:
50-level as momentum baseline
Longs only when RSI > 50
Shorts only when RSI < 50
Volume Validation
20-period volume moving average
Entry requires 150%+ volume spike
Filters low-confidence moves
Risk Management Framework
ATR-Based Stops:
2x ATR (14-period) stop loss
3x ATR take profit (1:1.5 RR ratio)
Position Sizing:
Percentage-based equity management
Built-in commission calculation
Signal Generation Logic
Long Entry Conditions (All Must Be True):
12-EMA crosses above 26-EMA
MACD line crosses above signal line
RSI sustains above 50 level
Price above Supertrend line (green)
Volume spike confirmation
Short Entry Conditions (All Must Be True):
12-EMA crosses below 26-EMA
MACD line crosses below signal line
RSI holds below 50 level
Price below Supertrend line (red)
Volume spike confirmation
Exit Conditions:
Trailing stop via Supertrend reversal
EMA crossover in opposite direction
RSI crossing 50 threshold
Automatic profit targets/stops
Key Features
Multi-Timeframe Compatibility: Works on 1M-1D charts
Visual Clarity:
Colored EMA ribbons for trend direction
Label-based buy/sell markers
Supertrend overlay for real-time guidance
Alert System:
Built-in buy/sell alert conditions
Compatible with email/SMS notifications
Adaptive Risk:
Dynamic stop-loss adjustment
Position sizing relative to account equity
False Signal Filter:
Volume spike requirement
Triple confirmation (trend+momentum+volume)
Strategic Advantages
Trend-Riding Capability:
Captures sustained moves via Supertrend/EMA combo
Avoids choppy markets through volume filters
Confirmation Hierarchy:
Primary Trend: EMA crossover
Secondary Confirmation: MACD/RSI
Tertiary Validation: Volume/Supertrend
Risk-Controlled Execution:
Automatic stop-loss placement
Fixed risk/reward ratio enforcement
Commission-aware backtesting
Visual Trading Psychology:
Clear color-coded indicators reduce emotional trading
Objective entry/exit rules eliminate guesswork
Ideal Market Conditions
Best Performing: Trending markets (up/down)
Avoid During:
Low-volume periods
Consolidation/ranging markets
Major news events
Practical Usage Tips
Combine with higher timeframe analysis
Adjust ATR multiplier for volatile assets
Modify volume threshold for liquid markets
Use trailing stops for extended trends
Pair with fundamental catalysts for swing trades
This strategy provides a systematic approach to trading by combining technical analysis with disciplined risk management. Its multi-layered confirmation process aims to filter out market noise while capturing high-quality setups, making it suitable for both discretionary traders and automated trading systems.
TRP İndikatörü - Ömer Faruk ŞenBu kod, TRP indikatörüne göre düşüş ve yükseliş sinyalleri üretir.
- Düşüş sinyali: 8. ve 9. mumlar kırmızı ve 7. mumun altında kapanır.
- Yükseliş sinyali: M9 mumu yeşil ve 13 mum sonra yükseliş beklenir.
Sinyaller, grafik üzerinde işaretlenir.
SPX Positioning with Bollinger Bands (Std Dev Scale) YXKSPX Positioning with Bollinger Bands (Std Dev Scale) YXK
Combined Open, Last Candle Close, Midpointgives previos and cuurent trading session open close levels clearly
Donchian Breakout StrategyOverview
The Donchian Breakout Strategy is a trend-following system that identifies potential long trade opportunities based on price breakouts from a specified range (Donchian Channel). This script enhances the traditional Donchian breakout strategy by adding an optional volume filter and integrating the Supertrend indicator for additional confirmation.
This indicator is particularly effective on daily or weekly charts of indices like Nifty and BankNifty, but it can also be used on other instruments with strong trending characteristics.
Key Features
Donchian Channel:
Calculates the highest high and lowest low over a user-defined period.
Provides visual cues for price breakouts (upper band) and breakdowns (lower band).
Optional Volume Filter:
Filters buy signals by requiring volume to exceed its 20-period moving average (enabled/disabled via a toggle).
Supertrend Indicator:
Confirms the trend direction.
Plots a green line for bullish trends and a red line for bearish trends.
Configurable Exit Options:
Multiple exit strategies, including lower Donchian band, mid-band (basis line), or Supertrend.
Trailing stop-loss option to lock in profits.
Backtest Date Range:
Specify the start and end dates for backtesting the strategy.
Inputs and Settings
1. Donchian Channel
Length: The number of bars used to calculate the highest high and lowest low (default: 21).
2. Volume Filter
Enable Volume Filter: Toggles the volume filter on or off. When enabled, long entries require the volume to exceed its 20-period moving average.
3. Supertrend
Multiplier: Adjusts the sensitivity of the Supertrend indicator (default: 1).
Length: Defines the period for the Supertrend calculation (default: 10).
4. Exit Options
Exit Option:
Option 1: Exit when the price crosses below the lower Donchian band.
Option 2: Exit when the price crosses below the mid-band (basis line).
Option 3: Exit when the price crosses below the Supertrend line.
Option 4: Use a trailing stop-loss (default percentage: 3%).
5. Backtesting Range
Start/End Date: Define the period for backtesting trades. Entries and exits will only occur within this range.
How to Use
Step 1: Add the Indicator
Apply this script to your TradingView chart.
Use it on instruments with strong trending characteristics, such as indices or trending stocks.
Step 2: Configure Inputs
Adjust the Donchian length based on your preferred timeframe and market conditions (e.g., 21 for daily, 52 for weekly charts).
Toggle the volume filter to filter false signals during low-volume periods.
Customize the Supertrend multiplier and length to align with your risk tolerance.
Step 3: Interpret Signals
Long Entry:
Triggered when the price closes above the upper Donchian band.
(Optional) Volume must exceed its 20-period moving average if the filter is enabled.
Exit:
Select an exit strategy that matches your trading style:
Trend-following: Use the Supertrend line.
Range-bound: Use the lower Donchian band or mid-band.
Example Usage Scenarios
Trending Markets:
Apply on indices like Nifty or BankNifty with daily/weekly timeframes.
Enable the volume filter to confirm strong breakouts.
Use the Supertrend for trend direction and trailing stops.
Swing Trading:
Use shorter Donchian lengths (e.g., 10) to capture smaller price movements.
Disable the volume filter for highly liquid instruments.
Best Practices
Combine with higher timeframes (e.g., weekly chart) for trend confirmation.
Use the Supertrend indicator to stay in trades during trending markets.
Backtest with various settings to identify optimal parameters for your preferred instruments.
Warnings
This strategy works best in trending markets; performance may degrade in choppy or range-bound conditions.
The volume filter might reduce the number of signals, which could limit opportunities in low-volume instruments.
Always combine this indicator with proper risk management practices.
Visualization
Donchian Channel:
Upper band: Represents breakout levels.
Lower band: Represents breakdown levels.
Mid-band (orange): Average of the upper and lower bands.
Supertrend:
Green line: Bullish trend.
Red line: Bearish trend.
Volume Filter:
Ensure volume exceeds the 20-period moving average for valid long entries (when enabled).
Camarilla Pivots + EMA'sMy Script with Camarilla Pivot Points Plus the ability to add 5 EMA's to the chart all built into one
Nadaraya-Watson Envelope [LuxAlgo]tr// This work is licensed under a Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) creativecommons.org
// © LuxAlgo
//@version=5
indicator("Nadaraya-Watson Envelope ", "LuxAlgo - Nadaraya-Watson Envelope", overlay = true, max_lines_count = 500, max_labels_count = 500, max_bars_back=500)
//------------------------------------------------------------------------------
//Settings
//-----------------------------------------------------------------------------{
h = input.float(8.,'Bandwidth', minval = 0)
mult = input.float(3., minval = 0)
src = input(close, 'Source')
repaint = input(true, 'Repainting Smoothing', tooltip = 'Repainting is an effect where the indicators historical output is subject to change over time. Disabling repainting will cause the indicator to output the endpoints of the calculations')
//Style
upCss = input.color(color.teal, 'Colors', inline = 'inline1', group = 'Style')
dnCss = input.color(color.red, '', inline = 'inline1', group = 'Style')
//-----------------------------------------------------------------------------}
//Functions
//-----------------------------------------------------------------------------{
//Gaussian window
gauss(x, h) => math.exp(-(math.pow(x, 2)/(h * h * 2)))
//-----------------------------------------------------------------------------}
//Append lines
//-----------------------------------------------------------------------------{
n = bar_index
var ln = array.new_line(0)
if barstate.isfirst and repaint
for i = 0 to 499
array.push(ln,line.new(na,na,na,na))
//-----------------------------------------------------------------------------}
//End point method
//-----------------------------------------------------------------------------{
var coefs = array.new_float(0)
var den = 0.
if barstate.isfirst and not repaint
for i = 0 to 499
w = gauss(i, h)
coefs.push(w)
den := coefs.sum()
out = 0.
if not repaint
for i = 0 to 499
out += src * coefs.get(i)
out /= den
mae = ta.sma(math.abs(src - out), 499) * mult
upper = out + mae
lower = out - mae
//-----------------------------------------------------------------------------}
//Compute and display NWE
//-----------------------------------------------------------------------------{
float y2 = na
float y1 = na
nwe = array.new(0)
if barstate.islast and repaint
sae = 0.
//Compute and set NWE point
for i = 0 to math.min(499,n - 1)
sum = 0.
sumw = 0.
//Compute weighted mean
for j = 0 to math.min(499,n - 1)
w = gauss(i - j, h)
sum += src * w
sumw += w
y2 := sum / sumw
sae += math.abs(src - y2)
nwe.push(y2)
sae := sae / math.min(499,n - 1) * mult
for i = 0 to math.min(499,n - 1)
if i%2
line.new(n-i+1, y1 + sae, n-i, nwe.get(i) + sae, color = upCss)
line.new(n-i+1, y1 - sae, n-i, nwe.get(i) - sae, color = dnCss)
if src > nwe.get(i) + sae and src < nwe.get(i) + sae
label.new(n-i, src , '▼', color = color(na), style = label.style_label_down, textcolor = dnCss, textalign = text.align_center)
if src < nwe.get(i) - sae and src > nwe.get(i) - sae
label.new(n-i, src , '▲', color = color(na), style = label.style_label_up, textcolor = upCss, textalign = text.align_center)
y1 := nwe.get(i)
//-----------------------------------------------------------------------------}
//Dashboard
//-----------------------------------------------------------------------------{
var tb = table.new(position.top_right, 1, 1
, bgcolor = #1e222d
, border_color = #373a46
, border_width = 1
, frame_color = #373a46
, frame_width = 1)
if repaint
tb.cell(0, 0, 'Repainting Mode Enabled', text_color = color.white, text_size = size.small)
//-----------------------------------------------------------------------------}
//Plot
//-----------------------------------------------------------------------------}
plot(repaint ? na : out + mae, 'Upper', upCss)
plot(repaint ? na : out - mae, 'Lower', dnCss)
//Crossing Arrows
plotshape(ta.crossunder(close, out - mae) ? low : na, "Crossunder", shape.labelup, location.absolute, color(na), 0 , text = '▲', textcolor = upCss, size = size.tiny)
plotshape(ta.crossover(close, out + mae) ? high : na, "Crossover", shape.labeldown, location.absolute, color(na), 0 , text = '▼', textcolor = dnCss, size = size.tiny)
//-----------------------------------------------------------------------------}
MA Price BandsSeveral bands based on a moving average, a simple way of marking risk levels of an asset. Comes with many options.