Anchored Bollinger Band Range [SS]This is the anchored Bollinger band indicator.
What it does?
The anchored BB indicator:
Takes a user defined range and calculates the Standard Deviation of the entire selected range for the high and low values.
Computes a moving average of the high and low during the selected period (which later becomes the breakout range average)
Anchors to the last high and last low of the period range to add up to 4 standard deviations to the upside and downside, giving you 4 high and low targets.
How can you use it?
The anchored BB indicator has many applicable uses, including
Identifying daily ranges based on premarket trading activity ( see below ):
Finding breakout ranges for intraday pattern setups ( see below ):
Identified pattern of interest:
Applying Anchored BB:
Identifying daily or pattern biases based on the position to the opening breakout range average (blue line). See the examples with explanations:
ex#1:
ex#2:
The Opening Breakout Average
As you saw in the examples above, the blue line represents the opening breakout range average.
This is the average high of the period of interest and the average low of the period of interest.
Price action above this line would be considered Bullish, and Bearish if below.
This also acts as a retracement zone in non-trending markets. For example:
Best Use Cases
Identify breakout ranges for patterns on larger timeframes. For example
This pattern on SPY, if we overlay the Anchored BB:
You want to see it actually breakout from this range and hold to confirm a breakout. Failure to exceed the BB range, means that it is just ranging with no real breakout momentum.
Identify conservative ranges for a specific period in time, for example QQQ:
Worst Use Cases
Using it as a hard and fast support and resistance indicator. This is not what it is for and ranges can be exceeded with momentum. The key is looking for whether ranges are exceeded (i.e. high momentum, thus breakout play) or they are not (thus low volume, rangy).
Using it for longer term outlooks. This is not ideal for long term ranges, as with any Bollinger/standard deviation based approach, it is only responsive to CURRENT PA and cannot forecast FUTURE PA.
User Inputs
The indicator is really straight forward. There are 2 optional inputs and 1 required input.
Period Selection: Required. Selects the period for the indicator to perform the analysis on. You just select it with your mouse on the chart.
Visible MA: Optional. You can choose to have the breakout range moving average visible or not.
Fills: Optional. You can choose to have the fills plotted or not.
And that is the indicator! Very easy to use and hope you enjoy and find it helpful!
As always, safe trades everyone! 🚀
Bands and Channels
Ultimate SuperTrend ProThe ultimate script works correctly while maintaining all the original features:
Customizable Inputs:
Separate input groups for SuperTrend, visualization, profit booking, and risk management
Adjustable ATR length and multiplier
Cloud opacity control
ATR-Based Cloud Visualization:
Bullish trend shows green cloud between upper band and upper band - 0.5 ATR
Bearish trend shows red cloud between lower band and lower band + 0.5 ATR
Adjustable opacity for better chart visibility
Profit Booking System:
Calculates profit booking levels based on ATR multiplier
Visual markers (circles) show where to take profits
Arrows appear when price hits profit booking level
Fully customizable color and ratio
Enhanced Risk Management:
ATR-based stop loss system
Visual indication of stop levels in the info table
Option to disable stop loss if desired
Improved Visual Feedback:
Cleaner signal markers
Comprehensive info table showing current status
Distance to profit booking level displayed
Strategy Integration:
Automatically exits positions at profit booking levels
Stop loss protection
Clear alert conditions
High ATRHigh-ATR is an indicator that visualizes volatility using the Average True Range (ATR). It highlights periods of elevated volatility by comparing the ATR to its moving average.
When the ATR exceeds its moving average, it is considered "Overthreshold" and is displayed in red. This helps identify candles with significant volatility.
Note: ATR does not indicate market direction, only the magnitude (width) of the trading range.
Default Settings:
Long length: 50 (used for the ATR moving average)
Short length: 1 (used for the current ATR)
Multiplier: 2
These values can be adjusted depending on your trading style, but this is the default configuration.
Horizontal Lines from ArrayMy Love
//@version=5
indicator("Horizontal Lines from Array", overlay=true)
// Mảng chứa các mức giá cần vẽ đường ngang
// Nhập chuỗi giá cách nhau bằng dấu phẩy
input_str = input.string("3380,3370", "Mức giá (phẩy giữa các giá)")
// Hàm tách chuỗi thành mảng (tối đa 10 phần tử)
split_str_to_float_array(str) =>
str_array = str.split(str, ",")
result = array.new_float()
for i = 0 to array.size(str_array) - 1
s = array.get(str_array, i)
f = str.tonumber(s)
if not na(f)
array.push(result, f)
result
levels = split_str_to_float_array(input_str)
// Lặp và vẽ các đường ngang
for i = 0 to array.size(levels) - 1
y = array.get(levels, i)
line.new( x1 = bar_index,y1 = y, x2 = bar_index + 1,y2 = y,color = color.blue,style = line.style_dashed,width = 1,extend=extend.both)
Gaussian Channel StrategyGaussian Channel Strategy — User Guide
1. Concept
This strategy builds trades around the Gaussian Channel. Based on Pine Script v4 indicator originally published by Donovan Wall. With rework to v6 Pine Script and adding entry and exit functions.
The channel consists of three dynamic lines:
Line Formula Purpose
Filter (middle) N-pole Gaussian filter applied to price Market "equilibrium"
High Band Filter + (Filtered TR × mult) Dynamic upper envelope
Low Band Filter − (Filtered TR × mult) Dynamic lower envelope
A position is opened when price crosses a user-selected line in a user-selected direction.
When the smoothed True Range (Filtered TR) becomes negative, the raw bands can flip (High drops below Low).
The strategy automatically reorders them so the upper band is always above the lower band.
Visual colors still flip, but signals stay correct.
2. Entry Logic
Choose a signal line for longs and/or shorts: Filter, Upper band, or Lower band.
Choose a cross direction (Cross Up or Cross Down).
A signal remains valid for Lookback bars after the actual cross, as long as price is still on the required side of the line.
When the opposite signal appears, the current position is closed or reversed depending on Reverse on opposite.
3. Parameters
Group Setting Meaning
Source & Filter Source Price series used (close, hlc3, etc.)
Poles (N) Number of Gaussian filter poles (1-9). More poles ⇒ smoother but laggier
Sampling Period Main period length of the channel
Filtered TR Multiplier Width of the bands in fractions of smoothed True Range
Reduced Lag Mode Adds a lag-compensation term (faster but noisier)
Fast Response Mode Blends 1-pole & N-pole outputs for quicker turns
Signals Long → signal line / Short → signal line Which line generates signals
Long when price / Short when price Direction of the cross
Lookback bars for late entry Bars after the cross that still allow an entry
Trading Enable LONG/SHORT-side trades Turn each side on/off
On opposite signal: reverse True: reverse -- False: flat
Misc Start trading date Ignores signals before this timestamp (back-test focus)
4. Quick Start
Add the strategy to a chart. Default: hlc3, N = 4, Period = 144.
Select your signal lines & directions.
Example: trend trading – Long: Filter + Cross Up, Short: Filter + Cross Down.
Disable either side if you want long-only or short-only.
Tune Lookback (e.g. 3) to catch gaps and strong impulses.
Run Strategy Tester, optimise period / multiplier / stops (add strategy.exit blocks if needed).
When satisfied, connect alerts via TradingView webhooks or use the builtin broker panel.
5. Notes
Commission & slippage are not preset – adjust them in Properties → Commission & Slippage.
Works on any market and timeframe, but you should retune Sampling Period and Multiplier for each symbol.
No stop-loss / take-profit is included by default – feel free to add with strategy.exit.
Start trading date lets you back-test only recent history (e.g. last two years).
6. Disclaimer
This script is for educational purposes only and does not constitute investment advice.
Use entirely at your own risk. Back-test thoroughly and apply sound risk management before trading real capital.
Smart Trend Lines 𝒯𝒽𝑒_𝓁𝓊𝓇𝓀𝑒𝓇Smart Trend Lines is a tool for drawing dynamic, highly accurate, and error-free trend lines (major, intermediate, and short-term) with the detection of breaks in these lines using advanced filters such as ADX (Average Directional Index), RSI (Relative Strength Index), and trading volume. It aims to assist traders in accurately identifying trends and breakout points, thereby enhancing decision-making in trading.
1. Features of the Indicator
// Dynamic Trend Line Drawing with Three Lengths:
- Main Line: Based on a long time period (default is 50 candles) to identify long-term trends.
- Mid Line: Based on a medium time period (default is 21 candles) to identify medium-term trends.
- Short Line: Based on a short time period (default is 9 candles) to identify short-term trends.
//Breakout Detection:
- Monitors breakouts when the price crosses a trend line, either upward (for downward lines) or downward (for upward lines).
- Uses filters (ADX, RSI, volume) to confirm the validity of the breakout and reduce false signals.
//Filters for Signal Confirmation:
- ADX: Confirms the strength of the trend (default minimum is 20).
- RSI: Checks for overbought conditions (above 65) or oversold conditions (below 35) to avoid false breakouts.
- Trading Volume: Compares the current trading volume with the moving average of volume to ensure momentum.
//Flexible Settings:
- Customization of line colors (upward and downward) and styles (solid, dashed, dotted).
- Option to show or hide mid and short lines.
- Selection of price type for breakout detection (close, high, low).
//Optional Display of Previous Lines:
- Allows users to optionally view previously drawn trend lines.
//Alerts and Labels:
- Provides instant alerts when a breakout occurs, along with details of the achieved conditions (e.g., V for volume, A for ADX, R for RSI).
- Adds visual labels on the chart at the point of breakout, with customizable label sizes.
//Automatic Line Extensions:
- Dynamically extends trend lines as long as they remain unbroken, ensuring that prices do not breach the line in the opposite direction.
2. Methods of Drawing Lines
// Identification of Pivot Points:
- Pivot High and Pivot Low points are detected using specific time periods for each type of line (Main: 50, Mid: 21, Short: 9).
- High points (Pivot High) are used to draw downward trend lines, while low points (Pivot Low) are used to draw upward trend lines.
Clarification:
- The `ta.pivothigh` function is used to identify high points (Pivot High), and the `ta.pivotlow` function is used to identify low points (Pivot Low) based on the specified periods for each line:
- Main Line:** Uses `trendLineLength` (default 50 candles).
- Mid Line:** Uses `trendLineLengthMid` (default 21 candles).
- Short Line:** Uses `trendLineLengthShort` (default 9 candles).
- High points (Pivot High) are utilized to draw downward trend lines, while low points (Pivot Low) are utilized to draw upward trend lines.
This ensures that the trend lines are dynamically drawn based on significant price pivots, providing a precise representation of the market's directional movements.
//Calculating the Slope:
- The slope between two points (start and end) is calculated using the difference in price divided by the difference in the number of candles:
Slope = ( Price Difference/Number of Candles Difference)
- Downward trend lines require a negative slope, indicating that the price is decreasing over time.
- Upward trend lines require a positive slope, indicating that the price is increasing over time.
This calculation ensures that the trend lines accurately reflect the direction and rate of price movement, providing traders with a clear visual representation of the market's momentum.
Additional Notes:
- The slope of the line reflects not only the direction (upward or downward) but also the intensity of the trend. The steeper the slope, the stronger and faster the price movement.
- The use of this dynamic method for calculating the slope ensures that trend lines adapt to changing market conditions, providing real-time updates for traders.
- The mathematical precision of this method enhances the reliability of trend lines and reduces errors, making it a valuable tool for technical market analysis.
//Drawing the Lines:
- Base Line (Start Line): Connects the two Pivot points (start and end).
- Extended Line (Trend Line): Starts from the endpoint of the base line and extends to the current candle with the same slope.
- The line's color and style are determined based on user settings (e.g., red for downward lines, green for upward lines).
Clarification:
- The function `line.new` is used to draw the base line (`bearishStartLine`) from the starting point (`bearStartIndex, bearStartVal`) to the endpoint (`bearEndIndex, bearEndVal`).
- The extended line (`bearishTrendLine`) starts from the endpoint and extends to the current candle (`bar_index`) using the slope (`bearSlope`) to maintain the trend direction.
// Extending the Lines:
- The lines are dynamically extended to the current candle if no breakout occurs.
- The extension stops when a breakout occurs or if the price crosses the line in the opposite direction.
Clarification:
- The function `extendTrendline` updates the extended line by modifying the endpoint coordinates (`x2, y2`) to the current candle (`bar_index`) using the slope (`slope).
- If a crossover in the opposite direction is detected via `checkExtendedStrictMode`, the extension stops at the previous candle.
3. Conditions for Drawing Lines
Presence of at Least Two Pivot Points:
- Drawing a line requires the presence of two Pivot points:
- Two high points (Pivot High) for a downward line.
- Two low points (Pivot Low) for an upward line.
- These points must fall within a specified time period, not exceeding five times the length of the line.
Slope Validation:
- A downward line requires a negative slope, meaning the endpoint is lower than the starting point.
- An upward line requires a positive slope, meaning the endpoint is higher than the starting point.
Validation of Strict Mode:
- All candles between the two Pivot points are examined to ensure that the price does not breach the trend line:
- For a downward line: The price (close, high, or low, depending on the settings) must not exceed the projected value of the line.
- For an upward line: The price must not fall below the projected value of the line.
This ensures that the trend line remains valid and accurately reflects the price movement without interruptions caused by temporary breaches.
Validation of Post-Pivot Break:
- Candles after the endpoint are examined to ensure that the price has not breached the line in the opposite direction, ensuring the line's validity.
Validation of Strict Extension:
- When extending the line, it is confirmed that the price does not breach the extended line in the opposite direction.
These checks ensure the trend line remains accurate and reliable, both during its initial drawing and as it dynamically extends over time.
4. Conditions for Breakout Detection
Price Crossing the Line:
- For a downward line: The price (close, high, or low, depending on the settings) exceeds the level of the line.
- For an upward line: The price falls below the level of the line.
Candle Confirmation:
- The candle must be closed (confirmed) to register the breakout.
Filter Conditions:
- Trading Volume:
- The trading volume must be higher than the moving average.
- For an upward breakout: A green candle (close > open) with a volume higher than the last green candle is preferred.
- For a downward breakout: A red candle (close < open) with a volume higher than the last red candle is preferred.
- ADX (Average Directional Index):
- The ADX value must exceed the minimum threshold (default is 20) to confirm the strength of the trend.
- RSI (Relative Strength Index) (if enabled):
- For an upward breakout: The RSI should be less than or equal to the upper limit (65) to avoid overbought conditions.
- For a downward breakout: The RSI should be greater than or equal to the lower limit (35) to avoid oversold conditions.
Non-Repetition of Breakouts:
- Each breakout is recorded only once per line until a new line is drawn.
These conditions ensure that breakouts are accurately detected and validated, minimizing false signals and enhancing the reliability of the trading decisions.
5. Additional Notes
Display Settings:
- Users can choose to show or hide previous lines and customize the size of labels (e.g., Very Small, Small, Normal, Large, Huge).
Visual Styles:
- Line styles vary to facilitate differentiation:
- Solid for the main line.
- Dashed for the intermediate line.
- Dotted for the short-term line.
Alerts:
- A single alert is sent for each breakout, with text specifying the type of breakout (main, intermediate, short) and the filters that have been met.
These features enhance user experience by providing flexibility in visualization, ease of interpretation, and timely notifications for informed trading decisions.
Disclaimer
The information and posts are not intended to be, or constitute, any financial, investment, trading or other types of preparation or execution of tasks or endorsed by TradingView.
Smart Trend Lines هو مؤشر تحليل فني يرسم خطوط اتجاه ديناميكية (رئيسية، متوسطة، قصيرة) على الرسم البياني، ويكتشف كسورها باستخدام فلاتر ADX، RSI، وحجم التداول لتأكيد الإشارات.
1. المميزات
1. خطوط اتجاه بثلاثة أطوال:
- رئيسي (50 شمعة): للاتجاهات طويلة الأمد.
- متوسط (21 شمعة): للاتجاهات متوسطة الأمد.
- قصير (9 شموع): للاتجاهات قصيرة الأمد.
2. اكتشاف الكسور: يرصد اختراق السعر للخطوط مع فلاتر لتقليل الإشارات الكاذبة.
3. فلاتر التأكيد:
- ADX (>20): يؤكد قوة الاتجاه.
- RSI (65/35): يتجن“B” للرئيسي، “M” للمتوسط، “S” للقصير).
4. إعدادات مرنة: تخصيص الألوان، الأنماط (متصل، متقطع، منقط)، ونوع السعر (إغلاق، أعلى، أدنى).
5. تمديد الخطوط: يمدد الخطوط تلقائيًا حتى الكسر.
2. طرق رسم الخطوط
1. نقاط Pivot: تحديد النقاط العليا (للخطوط الهابطة) والدنيا (للصاعدة) باستخدام فترات زمنية (50، 21، 9).
2. حساب الميل: قسمة فرق السعر على فرق الشموع (ميل سالب لهابط، موجب لصاعد).
3. رسم الخطوط: خط أساسي يربط نقطتي Pivot، وخط ممتد إلى الشمعة الحالية.
4. التمديد: يستمر التمديد إذا لم يُكسر الخط.
3. شروط الرسم
1. وجود نقطتين Pivot ضمن فترة (≤5 أضعاف طول الخط).
2. ميل مناسب (سالب لهابط، موجب لصاعد).
3. الوضع الصارم: السعر لا يخترق الخط بين النقطتين.
4. فحص ما بعد النقطة: عدم اختراق الخط بعد النهاية.
5. تمديد صارم: السعر لا يخترق الخط الممتد.
4. شروط الكسر
1. اختراق السعر للخط (فوق الهابط، تحت الصاعد).
2. تأكيد الشمعة (مغلقة).
3. فلاتر:
- حجم أعلى من المتوسط، مع شمعة خضراء (للصاعد) أو حمراء (للهابط).
- ADX > 20.
- RSI: ≤65 (صاعد)، ≥35 (هابط).
4. كسر واحد لكل خط.
5. ملاحظات
- العرض: خيارات لإخفاء الخطوط السابقة وتخصيص التسميات.
- التنبيهات: تنبيهات فورية مع تفاصيل الفلاتر.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView.
Custom Multi-Indicator [bandar]//1-SuperTrend 2-MACD 3-RSI 4-Stochastic 5-EMA (50 & 200) 6-Bollinger Bands 7-ADX 8-Ichimoku Cloud 9-Volume Weighted Average Price (VWAP) 10-Parabolic SAR
//@version=5
indicator("Custom Multi-Indicator ", overlay=true)
// SuperTrend (تم التصحيح النهائي هنا)
atrPeriod = 10
factor = 3.0
= request.security(syminfo.tickerid, timeframe.period, ta.supertrend(factor, atrPeriod))
supertrendBuy = close > supertrend
supertrendSell = close < supertrend
// MACD
= ta.macd(close, 12, 26, 9)
macdBuy = ta.crossover(macdLine, signalLine)
macdSell = ta.crossunder(macdLine, signalLine)
// RSI
rsi = ta.rsi(close, 14)
rsiBuy = rsi < 30
rsiSell = rsi > 70
// Stochastic (تصحيح كامل)
k = ta.stoch(close, high, low, 14)
d = ta.sma(k, 3)
stochBuy = ta.crossover(k, d) and k < 20
stochSell = ta.crossunder(k, d) and k > 80
// EMA Cross
ema50 = ta.ema(close, 50)
ema200 = ta.ema(close, 200)
emaBuy = ta.crossover(ema50, ema200)
emaSell = ta.crossunder(ema50, ema200)
// Bollinger Bands
= ta.bb(close, 20, 2)
bbBuy = ta.crossover(close, lower)
bbSell = ta.crossunder(close, upper)
// ADX
= ta.dmi(14, 14)
adxBuy = adx > 25 and diPlus > diMinus
adxSell = adx > 25 and diPlus < diMinus
// Ichimoku Cloud (تصحيح يدوي كامل)
conversionLine = (ta.highest(high, 9) + ta.lowest(low, 9)) / 2
baseLine = (ta.highest(high, 26) + ta.lowest(low, 26)) / 2
leadingSpanA = (conversionLine + baseLine) / 2
leadingSpanB = (ta.highest(high, 52) + ta.lowest(low, 52)) / 2
laggingSpan = close
// إشارات الشراء والبيع بناءً على الكلاود
ichiBuy = close > leadingSpanA and close > leadingSpanB
ichiSell = close < leadingSpanA and close < leadingSpanB
// VWAP
vwap = ta.vwap
vwapBuy = close > vwap
vwapSell = close < vwap
// Parabolic SAR (تصحيح كامل)
sar = ta.sar(0.02, 0.02, 0.2)
sarBuy = close > sar
sarSell = close < sar
// حساب مجموع الإشارات
buySignals = (supertrendBuy ? 1 : 0) + (macdBuy ? 1 : 0) + (rsiBuy ? 1 : 0) + (stochBuy ? 1 : 0) +
(emaBuy ? 1 : 0) + (bbBuy ? 1 : 0) + (adxBuy ? 1 : 0) + (ichiBuy ? 1 : 0) +
(vwapBuy ? 1 : 0) + (sarBuy ? 1 : 0)
sellSignals = (supertrendSell ? 1 : 0) + (macdSell ? 1 : 0) + (rsiSell ? 1 : 0) + (stochSell ? 1 : 0) +
(emaSell ? 1 : 0) + (bbSell ? 1 : 0) + (adxSell ? 1 : 0) + (ichiSell ? 1 : 0) +
(vwapSell ? 1 : 0) + (sarSell ? 1 : 0)
// شروط القرار النهائي
finalBuy = buySignals >= 7
finalSell = sellSignals >= 7
// الرسم على الشارت
plotshape(finalBuy, title="BUY Signal", location=location.belowbar, style=shape.labelup, color=color.green, size=size.tiny, text="BUY")
plotshape(finalSell, title="SELL Signal", location=location.abovebar, style=shape.labeldown, color=color.red, size=size.tiny, text="SELL")
// تلوين الخلفية
bgcolor(finalBuy ? color.new(color.green,90) : finalSell ? color.new(color.red,90) : na)
// إظهار عدد الإشارات
var label lbl = na
if barstate.islast
label.delete(lbl)
lbl := label.new(bar_index, high, str.tostring(buySignals) + " Buy | " + str.tostring(sellSignals) + " Sell", color=color.white, style=label.style_label_down)
Weekday Colors with Time Highlighting by NabojeetThis script is a Pine Script (version 6) indicator called "Weekday Colors with Time Highlighting" designed for TradingView charts. It has several key functions:
1. **Weekday Color Coding**:
- Assigns different background colors to each trading day (Monday through Friday)
- Allows users to customize the color for each day
- Includes toggles to enable/disable colors for specific days
2. **Time Range Highlighting**:
- Highlights a specific time period (e.g., 18:15-18:30) on every trading day
- Uses a custom color that can be adjusted by the user
- The time range is specified in HHMM-HHMM format
3. **High/Low Line Drawing**:
- Automatically identifies the highest high and lowest low points within the specified time range
- Draws horizontal lines at these levels when the time period ends
- Lines extend forward in time to serve as support/resistance references
- Users can customize the line color, width, and style (solid, dotted, or dashed)
The script is organized into logical sections with input parameters grouped by function (Weekday Colors, Weekday Display, Time Highlighting, and Horizontal Lines). Each section's inputs are customizable through the indicator settings panel.
This indicator would be particularly useful for traders who:
- Want visual distinction between different trading days
- Focus on specific time periods each day (like market opens, closes, or specific sessions)
- Use intraday support/resistance levels from key time periods
- Want to quickly identify session highs and lows
The implementation resets tracking variables at the beginning of each new time range and draws the lines once the time period ends, ensuring accurate high/low marking for each day's specified time window.
Author - Nabojeet
网格风控信号//@version=5
indicator("网格风控信号", overlay=true)
emaFast = ta.ema(close, 9)
emaSlow = ta.ema(close, 21)
macd = ta.ema(close, 12) - ta.ema(close, 26)
signal = ta.ema(macd, 9)
trendUp = emaFast > emaSlow and macd > signal
trendDown = emaFast < emaSlow and macd < signal
alertcondition(trendUp, title="暂停卖出", message='{"action":"disable"}')
alertcondition(trendDown, title="暂停买入", message='{"action":"disable_buy"}')
Daily Premarket High & LowThis script finds the premarket highs and lows and draws those levels on the intraday chart.
DSEMA 三价趋势(中轨虚线)SMA trend indicator, using two colors to distinguish between long and short trends, indicators, simple, new as the market and average indicator enthusiasts can focus on reference;
Indicators using DSEMA averages, take the value of “high, close, low” three prices to form a trading indicator; anti-single appear false signals, wrong decision-making
BB SqueezeBB Squeeze
This indicator detects volatility contraction ("squeeze") by checking when Bollinger Bands are entirely inside the Keltner Channels — a condition that often precedes significant price movement.
🟦 Visual Highlight
Unlike traditional squeeze indicators, this version highlights the squeeze only between the upper and lower Bollinger Bands, creating a clean and focused visual cue.
How it works:
When the Bollinger Bands fall inside the Keltner Channels:
A semi-transparent aqua background fills the BB area
No full-screen background is used — minimal and precise
Useful for identifying potential breakout setups and volatility cycles
Parameters include:
BB and Keltner lengths & multipliers
Toggle between “Both bands inside” vs “At least one inside” logic
📈 Ideal for breakout traders, volatility scalpers, and swing strategy setups.
Iconic Traders SessionsIconicTraders Sessions. D.D. indicatior, markiert die highs and lows (Asia & London Session)
Scalping Strategy with Fixed CooldownThis is a sample scalping strategy is designed for short-term trading on lower timeframes.
Entry Signals: Utilizes Hull Moving Average (HullMA) crossovers to generate buy and sell signals.
Filters:
-Bollinger Bands and RSI to avoid overbought or oversold conditions.
-VWAP to confirm trend direction, ensuring trades align with momentum.
Cooldown Mechanism: Implements a bar-based cooldown period to prevent immediate re-entries after trade closures, reducing the risk of overtrading.
Moving Average Crossover by mashrur 🔵 How This Indicator Works:
Short MA (9-period Simple Moving Average)
Long MA (21-period Simple Moving Average)
Signals:
Buy when Short MA crosses above Long MA.
Sell when Short MA crosses below Long MA.
On the chart:
Green up labels = Buy signals 🚀
Red down labels = Sell signals 🔻
✍️ How to Take an Entry:
Wait for a Signal
Look for a green up label = Buy signal.
Look for a red down label = Sell signal.
Enter the Trade
If Buy signal appears → Open a Buy (Long) trade.
If Sell signal appears → Open a Sell (Short) trade.
Set Stop Loss (SL) and Take Profit (TP) (important!)
Stop Loss:
For Buy, place SL below the recent swing low.
For Sell, place SL above the recent swing high.
Take Profit:
You can use a Risk:Reward like 1:2 (risking 10 pips to make 20 pips).
Or exit when the opposite signal comes (if another crossover happens).
Optional: Add Confirmation
You could add extra filters like:
Only take Buys if the market is in an overall uptrend (higher highs, higher lows).
Only take Sells in downtrends.
🧠 Important Tips:
Don't enter late! → Try to enter right when the signal appears.
Be careful during sideways (choppy) markets! → MA crossovers can give false signals when the market is flat.
Use alerts → Your code already has alerts ready! Set them up on TradingView so you don't miss entries.
📈 Example (Visual):
Imagine the chart shows:
Price is going up.
The blue (Short MA) crosses above the red (Long MA).
A green label appears under the candle.
👉 You would enter a Buy right at that candle close.
👉 Stop Loss: just under the recent low.
👉 Take Profit: 2x your risk or at next resistance.
Multi-Day VWAP, current session only)Variation on multi day vwap, where you can choose to display 1, 2 and 3 day vwap, but only plot the current session. So each session has all 3 plots. This is especially useful for backtesting purposes. St. deviation bands included as usual.
Scalper Signal PRO (EMA + RSI + Stoch)//@version=5
indicator("Scalper Signal PRO (EMA + RSI + Stoch)", overlay=true)
// === INPUTS ===
emaFastLen = input.int(5, "EMA Fast")
emaSlowLen = input.int(13, "EMA Slow")
rsiLen = input.int(14, "RSI Length")
rsiBuy = input.int(30, "RSI Buy Level")
rsiSell = input.int(70, "RSI Sell Level")
kPeriod = input.int(5, "Stoch K")
dPeriod = input.int(3, "Stoch D")
slowing = input.int(3, "Stoch Smoothing")
// === SESSION TIME ===
sessionStart = timestamp ("GMT+8", year, month, dayofmonth, 8, 0)
sessionEnd = timestamp("GMT+8" ,year, month, dayofmonth, 18, 0)
withinSession = time >= sessionStart and time <= sessionEnd
// === LOGIC ===
emaFast = ta.ema(close, emaFastLen)
emaSlow = ta.ema(close, emaSlowLen)
emaBullish = emaFast > emaSlow and ta.crossover(emaFast, emaSlow)
emaBearish = emaFast < emaSlow and ta.crossunder(emaFast, emaSlow)
rsi = ta.rsi(close, rsiLen)
k = ta.sma(ta.stoch(close, high, low, kPeriod), slowing)
d = ta.sma(k, dPeriod)
buyCond = emaBullish and rsi < rsiBuy and k > d and withinSession
sellCond = emaBearish and rsi > rsiSell and k < d and withinSession
// === PLOTS ===
showSignals = input.bool(true, "Show Buy/Sell Signals?")
plotshape(showSignals and buyCond, location=location.belowbar, style=shape.labelup, color=color.green, text="BUY", title="Buy Signal")
plotshape(showSignals and sellCond, location=location.abovebar, style=shape.labeldown, color=color.red, text="SELL", title="Sell Signal")
plot(emaFast, "EMA Fast", color=color.orange)
plot(emaSlow, "EMA Slow", color=color.blue)
// === ALERTS ===
alertcondition(buyCond, title="Buy Alert", message="Scalper PRO Buy Signal")
alertcondition(sellCond, title="Sell Alert", message="Scalper PRO Sell Signal")
// === DASHBOARD ===
var table dash = table.new(position.top_right, 2, 5, frame_color=color.gray, frame_width=1)
bg = color.new(color.black, 85)
table.cell(dash, 0, 0, "Scalper PRO", bgcolor=bg, text_color=color.white, text_size=size.normal)
table.cell(dash, 0, 1, "Trend", bgcolor=bg)
table.cell(dash, 1, 1, emaFast > emaSlow ? "Bullish" : "Bearish", bgcolor=emaFast > emaSlow ? color.green : color.red, text_color=color.white)
table.cell(dash, 0, 2, "RSI", bgcolor=bg)
table.cell(dash, 1, 2, str.tostring(rsi, "#.0"), bgcolor=color.gray, text_color=color.white)
table.cell(dash, 0, 3, "Stoch K/D", bgcolor=bg)
table.cell(dash, 1, 3, str.tostring(k, "#.0") + "/" + str.tostring(d, "#.0"), bgcolor=color.navy, text_color=color.white)
table.cell(dash, 0, 4, "Session", bgcolor=bg)
table.cell(dash, 1, 4, withinSession ? "LIVE" : "OFF", bgcolor=withinSession ? color.green : color.red, text_color=color.white)
GM trendIndicator is designed to track and visualize medium-term trends using the EMA 35 line, along with the EMA 25 and EMA 45. This script creates a clear visual representation of price dynamics by shading the area between the EMA 25 and EMA 45, while highlighting EMA 35 as the central trend-following reference. The shading helps identify areas of support, resistance, and trend strength.
SPY 0DTE Scalper - Auto AlertsTimeframes:
Main chart: 1-minute (for precision entries)
Confirmations: 3-minute or 5-minute (to avoid fakeouts)
Indicators I Use:
VWAP – Orange line → Institutional fair value
EMA 9 – Green line → Short-term momentum
EMA 21 – Red line → Trend filter
Custom Pullback Signal Script – Marks buy/sell/pullback signals with labels (triangles)
Above VWAP = Bullish Bias
Below VWAP = Bearish Bias
Institutions treat this as the "fair price" — so I do too.
EMA 9 (Green):
If price hugs or bounces off EMA 9 = 🔥 strong continuation move.
I use this as my guide for momentum.
EMA 21 (Red):
Great for trend confirmation.
Above EMA 21 = Trend building to the upside.
Below EMA 21 = Weakness or possible reversal.
💸 Step 3: How I Read the Signals
✅ BUY Signal:
Price breaks above VWAP with volume 1.5x+ average
Candle must close strong (not a wickfest)
EMA 9 becomes my trailing stop for the move
🚨 SELL Signal:
Price breaks below VWAP with strong volume
Clean body close below → momentum shift to the downside
EMA 9 again = trailing resistance guide
🔵 Pullback Long (Blue Triangle Under Candle):
Bullish continuation entry
Price pulls back to EMA 9 or 21, but stays above VWAP
Low-risk re-entry after a breakout
🟣 Pullback Short (Purple Triangle Above Candle):
Bearish continuation entry
Price retraces into EMA 9, but stays below VWAP & EMA 21
Ideal for catching second legs after breakdowns