Last xHL📈 Last xHL – Visualize Key Highs and Lows
This script highlights the most recent significant highs and lows over a user-defined period, helping traders quickly identify key support and resistance zones.
🔍 Features:
Highest High (HH) and Highest Close/Open (HC) lines
Lowest Low (LL) and Lowest Close/Open (LC) lines
Dynamic updates with each new bar
Gradient-filled zones between HH–HC and LL–LC for visual clarity
⚙️ Customization:
Adjustable lookback period (_length) to suit your trading style
Color-coded lines and fills for quick interpretation
🧠 Use Case:
This tool is ideal for traders who want to:
Spot potential breakout or reversal zones
Identify price compression or expansion areas
Enhance their technical analysis with visual cues
This script is for educational and informational purposes only. It does not constitute financial advice. Always do your own research before making trading decisions.
Indicatori di ampiezza
Мой скрипт//@version=5
indicator("Momentum Reversal Zones Strategy", overlay=true)
// === INPUTS ===
rsiLength = input.int(14, title="RSI Length")
stochK = input.int(14, title="Stochastic %K")
stochD = input.int(3, title="Stochastic %D")
rsiOverbought = input.int(70, title="RSI Overbought Level")
rsiOversold = input.int(30, title="RSI Oversold Level")
// === RSI ===
rsi = ta.rsi(close, rsiLength)
// === Stochastic Oscillator ===
k = ta.stoch(close, high, low, stochK)
d = ta.sma(k, stochD)
// === Buy Signal Conditions ===
rsiBuy = rsi < rsiOversold
stochBuy = ta.crossover(k, d) and k < 20
buySignal = rsiBuy and stochBuy
// === Sell Signal Conditions ===
rsiSell = rsi > rsiOverbought
stochSell = ta.crossunder(k, d) and k > 80
sellSignal = rsiSell and stochSell
// === Plot signals ===
plotshape(buySignal, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.arrowup, size=size.small, text="BUY")
plotshape(sellSignal, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.arrowdown, size=size.small, text="SELL")
// === Alerts ===
alertcondition(buySignal, title="Buy Alert", message="Buy Signal: RSI < 30 and Stochastic Bullish Crossover")
alertcondition(sellSignal, title="Sell Alert", message="Sell Signal: RSI > 70 and Stochastic Bearish Crossover")
// === Show RSI and Stochastic in separate panel ===
plot(rsi, title="RSI", color=color.blue, linewidth=1, display=display.none)
hline(rsiOverbought, "Overbought", color=color.red, linestyle=hline.style_dotted, display=display.none)
hline(rsiOversold, "Oversold", color=color.green, linestyle=hline.style_dotted, display=display.none)
EMAs 60/125/250 + Swing-Struktur + CCI-AlertsEMAs 60/125/250 + Swing-Points + CCI-Alerts / crossover 100 /-100
Vùng đỉnh đáy chính theo phá vỡ (dùng line)Indicator Name:
🔺 Key Swing Zones Based on Breakouts (Line-Based)
Short Description:
This indicator automatically detects and visualizes key swing highs and lows based on the principle of candle close breaking the wick of the previous candle, then classifies the current market trend as uptrend, downtrend, or neutral. It draws horizontal lines representing key zones and adds visual labels to help traders analyze market structure more clearly.
How It Works:
🔹 Reversal Signal Logic:
In an uptrend, if a candle closes below the previous candle's low, it marks a swing low.
In a downtrend, if a candle closes above the previous candle's high, it marks a swing high.
🔹 Structure Break Detection:
Price breaking above a key high → confirms an uptrend.
Price breaking below a key low → confirms a downtrend.
If price breaks a zone but doesn't form a new high/low → switches to neutral.
🔹 Visual Display:
Draws two horizontal lines: one at the key high, one at the key low.
Adds labels "Key High" or "Key Low" at the breakout points.
Zone color representation:
🟢 Green = Uptrend
🔴 Red = Downtrend
⚪ White = Neutral
YAS GROUP✅ يحدد لك مناطق الـ Order Blocks القوية (على فريمات 15 دقيقة، 1 ساعة، و4 ساعات).
✅ حاطين فيبو داخل الـ OB عشان تأكد نقاط الارتداد بدقة.
✅ يعطيك إشارات شراء وبيع أدق من الصقر، وتقدر تشغل أو تطفي فلاتر الـ RSI والـ EMA/SMA حسب راحتك.
✅ بعد، فيه خطوط دعم ومقاومة ديناميكية، شغّالة ع آخر Pivot Highs & Lows.
✅ ينفع حق السكالبينج، التداول اليومي، وحتى الصفقات الطويلة.
🎯 من الإعدادات، تقدر تتحكم في الفلاتر والفريمات اللي تباها.
⚠️ ترى هالمؤشر مش نصيحة مالية مباشرة، دايم خلك حذر، وطبّق إدارة رأس مالك عدل.
🔔 ولاتنسى تحط التنبيهات، عشان توصلك الإشارات وأنت مرتاح.
بالتوفيق ، ورزقك إن شاء الله فوووق!
Hey brother, this indicator is fully loaded and super accurate! 🙌🔥
✅ Detects strong Order Blocks (15m, 1H, 4H).
✅ Adds Fibonacci levels inside OBs to confirm precise reversal points.
✅ Gives you super sharp Buy & Sell signals, with optional RSI and EMA/SMA filters you can toggle on/off.
✅ Also has dynamic Support & Resistance lines, based on the latest pivot highs & lows.
✅ Suitable for scalping, day trading, and swing trading.
🎯 You can easily customize filters and select the timeframes you want from the settings.
⚠️ Note: This is not financial advice — always use proper risk management and stay cautious.
🔔 Don't forget to set alerts so you never miss an opportunity.
Good luck and smash those profits! 🚀🔥
مع تحيات قروب ابو سلطان
SMA Pullback Strategy with Swing SL20 and 200 SMA Pullback Strategy with Swing SL and buy sell signal
Moving Average Exponential//@version=5
indicator("ETH Scalping Strategy", overlay=true)
// Define the short-term and medium-term EMAs
ema9 = ta.ema(close, 9)
ema21 = ta.ema(close, 21)
// Define RSI
rsi = ta.rsi(close, 14)
// Define Buy and Sell conditions
buyCondition = ta.crossover(ema9, ema21) and rsi > 50
sellCondition = ta.crossunder(ema9, ema21) and rsi < 50
// Plot the EMAs on the chart
plot(ema9, color=color.green, title="EMA 9", linewidth=2)
plot(ema21, color=color.red, title="EMA 21", linewidth=2)
// Plot buy/sell signals as arrows on the chart
plotshape(series=buyCondition, location=location.belowbar, color=color.green, style=shape.labelup, title="Buy Signal", text="BUY")
plotshape(series=sellCondition, location=location.abovebar, color=color.red, style=shape.labeldown, title="Sell Signal", text="SELL")
// Generate alerts based on buy/sell conditions
alertcondition(buyCondition, title="Buy Signal", message="ETH Buy Signal: EMA9 crossed above EMA21 and RSI > 50")
alertcondition(sellCondition, title="Sell Signal", message="ETH Sell Signal: EMA9 crossed below EMA21 and RSI < 50")
Sanuja nuwanThe Zero Fear Indicator is a custom-built trading tool designed for confident and precise entries. Powered by real-time market structure, volume pressure, and volatility logic, it filters out noise and shows clear buy/sell signals with zero hesitation. Perfect for both beginners and experienced traders looking to trade without fear.
RSI EMA9 + WMA45The Relative Strength Index (RSI) is one of the most popular momentum oscillators used by traders. It's so widely adopted that every charting software package and professional trading system worldwide includes it as a core indicator. Not only is this indicator included in every charting package, but it's also highly likely to be part of the default settings in every system.
Zero Clutter Scalper (ZCS) 🔒//@version=5
indicator("Zero Clutter Scalper (ZCS) 🔒", overlay=true)
// ==== SETTINGS ====
length = input.int(14, title="Momentum Length")
threshold = input.float(5, title="Momentum Threshold")
showSignals = input.bool(true, title="Show Buy/Sell Signals")
enableAlerts = input.bool(true, title="Enable Alerts")
// ==== MOMENTUM CALC ====
mom = close - close
mom_smooth = ta.ema(mom, 5)
// ==== PRICE ACTION CONFIRMATION ====
bullCandle = close > open and close > high
bearCandle = close < open and close < low
// ==== CONDITIONS ====
buyCond = mom_smooth > threshold and bullCandle
sellCond = mom_smooth < -threshold and bearCandle
// ==== PLOTTING ====
plotshape(showSignals and buyCond ? low : na, title="Buy Signal", location=location.belowbar, color=color.lime, style=shape.labelup, text="BUY")
plotshape(showSignals and sellCond ? high : na, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")
// ==== ALERTS ====
alertcondition(buyCond and enableAlerts, title="ZCS Buy Alert", message="ZCS Buy Signal on {{ticker}} ({{interval}})")
alertcondition(sellCond and enableAlerts, title="ZCS Sell Alert", message="ZCS Sell Signal on {{ticker}} ({{interval}})")
🔐Ultimate Signal Engine by marshallthis strategy is just to tested on my binance account with 1$ each position if it work i will update the publish description
Short Only | EMA100 + MACD + Bearish Candle | Risk 3:1
This strategy is designed for short trades only on any market (crypto, forex, stocks).
It combines three simple but effective conditions:
Price below EMA100 – confirms downtrend.
MACD Line crosses below Signal Line and is bearish – momentum confirmation.
Bearish candle pattern – confirms entry timing.
Risk/Reward is set to 1:3, using ATR-based dynamic take profit and stop loss.
Works well on 30m to 1h timeframes.
Suitable for crypto pairs and volatile instruments.
MA & Divergence in RSI & MACDThis Pine Script is a multi-feature trading indicator for TradingView, titled:
🟢 "MA & Divergence in RSI & MACD"
It combines multiple moving averages, Golden/Death Cross signals, and RSI/MACD divergence detection from a lower timeframe (LTF), all on your main chart (overlay = true).
Main Features Breakdown:
The script dynamically adjusts the MA period lengths depending on your current chart timeframe:
Daily
4-Hour
1-Hour
Other Intraday
These affect:
ma1_default = 100 // Long MA
ma2_default = 200 // Very long MA
ma3_default = varies // Medium MA (50-72)
ma4_default = varies // Short MA (20-48)
ma5_default = varies // Fast MA (7-24)
You can also choose between EMA and SMA using the input:
📊 2. Moving Average Label Display
The script shows live MA values as labels on the most recent candle. Each label includes:
The MA period
The current value
The type (EMA or SMA)
📈 3. Golden Cross & Death Cross Detection
Two sets of crossover events:
⚙️ Standard:
goldenCross = crossover(ma3, ma1)
deathCross = crossunder(ma3, ma1)
Usually, these are MA 50 crossing MA 100 (medium vs long).
goldenCrossFast = crossover(ma4, ma2)
deathCrossFast = crossunder(ma4, ma2)
📉 4. RSI & MACD Divergence Detection (from LTF)
Compares price movement to RSI and MACD values from a lower timeframe (default: 15 min).
Flags bullish and bearish divergence using pivot lows/highs.
🛠 Internal LTF Requests:
Uses request.security to pull lower-timeframe data into current chart:
rsiLtf = request.security(..., ltf, ta.rsi(...))
macdLtf = request.security(..., ltf, macdLineOnly(...))
priceLowLtf = request.security(..., ltf, low)
priceHighLtf = request.security(..., ltf, high)
🔔 5. Alerts
Supports these alerts:
Golden Cross
Death Cross
Bullish Divergence
Bearish Divergence
✅ Use Case Example
If you’re on a 1H or 4H chart:
The script will auto-tune MA lengths
Pull divergence signals from 15-min RSI and MACD
Show if you’ve got a bullish divergence forming while a Golden Cross just occurred
Provide a visual + alert-based system to decide trade entries/exits
My script/@version=5
indicator("20 SMA Cross 200 SMA", overlay=true)
sma20 = ta.sma(close, 20)
sma200 = ta.sma(close, 200)
plot(sma20, color=color.blue)
plot(sma200, color=color.red)
longSignal = ta.crossover(sma20, sma200)
plotshape(longSignal, title="20/200 Cross", location=location.belowbar, color=color.green, style=shape.labelup)
Full SMA Pullback Strategy with DMIFull SMA Pullback Strategy with DMI with buy sell signal generating capabilities in combination with various SMAs(9/20/50/100/200)
3.RSI LIJO 45*55//@version=6
indicator(title="3.RSI LIJO 45*55", shorttitle="RSI-LIJO-45-55", format=format.price, precision=2, timeframe="", timeframe_gaps=true)
rsiLengthInput = input.int(9, minval=1, title="RSI Length", group="RSI Settings")
rsiSourceInput = input.source(close, "Source", group="RSI Settings")
calculateDivergence = input.bool(false, title="Calculate Divergence", group="RSI Settings", display=display.data_window, tooltip="Calculating divergences is needed in order for divergence alerts to fire.")
change = ta.change(rsiSourceInput)
up = ta.rma(math.max(change, 0), rsiLengthInput)
down = ta.rma(-math.min(change, 0), rsiLengthInput)
rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down))
// Change RSI line color based on bands
rsiColor = rsi > 50 ? color.green : rsi < 50 ? color.red : color.white
rsiPlot = plot(rsi, "RSI", color=rsiColor)
rsiUpperBand = hline(55, "RSI Upper Band", color=color.rgb(5, 247, 22))
midline = hline(50, "RSI Middle Band", color=color.new(#787B86, 50))
rsiLowerBand = hline(45, "RSI Lower Band", color=color.rgb(225, 18, 14))
fill(rsiUpperBand, rsiLowerBand, color=color.rgb(126, 87, 194, 90), title="RSI Background Fill")
midLinePlot = plot(50, color=na, editable=false, display=display.none)
fill(rsiPlot, midLinePlot, 100, 55, top_color=color.new(color.green, 0), bottom_color=color.new(color.green, 100), title="Overbought Gradient Fill")
fill(rsiPlot, midLinePlot, 45, 0, top_color=color.new(color.red, 100), bottom_color=color.new(color.red, 0), title="Oversold Gradient Fill")
// Smoothing MA inputs
GRP = "Smoothing"
TT_BB = "Only applies when 'SMA + Bollinger Bands' is selected. Determines the distance between the SMA and the bands."
maTypeInput = input.string("SMA", "Type", options= , group=GRP, display=display.data_window)
maLengthInput = input.int(31, "Length", group=GRP, display=display.data_window)
bbMultInput = input.float(2.0, "BB StdDev", minval=0.001, maxval=50, step=0.5, tooltip=TT_BB, group=GRP, display=display.data_window)
var enableMA = maTypeInput != "None"
var isBB = maTypeInput == "SMA + Bollinger Bands"
// Smoothing MA Calculation
ma(source, length, MAtype) =>
switch MAtype
"SMA" => ta.sma(source, length)
"SMA + Bollinger Bands" => ta.sma(source, length)
"EMA" => ta.ema(source, length)
"SMMA (RMA)" => ta.rma(source, length)
"WMA" => ta.wma(source, length)
"VWMA" => ta.vwma(source, length)
// Smoothing MA plots
smoothingMA = enableMA ? ma(rsi, maLengthInput, maTypeInput) : na
smoothingStDev = isBB ? ta.stdev(rsi, maLengthInput) * bbMultInput : na
plot(smoothingMA, "RSI-based MA", color=color.yellow, display=enableMA ? display.all : display.none, editable=enableMA)
bbUpperBand = plot(smoothingMA + smoothingStDev, title="Upper Bollinger Band", color=color.green, display=isBB ? display.all : display.none, editable=isBB)
bbLowerBand = plot(smoothingMA - smoothingStDev, title="Lower Bollinger Band", color=color.green, display=isBB ? display.all : display.none, editable=isBB)
fill(bbUpperBand, bbLowerBand, color=isBB ? color.new(color.green, 90) : na, title="Bollinger Bands Background Fill", display=isBB ? display.all : display.none, editable=isBB)
// Divergence
lookbackRight = 5
lookbackLeft = 5
rangeUpper = 60
rangeLower = 5
bearColor = color.red
bullColor = color.green
textColor = color.white
noneColor = color.new(color.white, 100)
_inRange(bool cond) =>
bars = ta.barssince(cond)
rangeLower <= bars and bars <= rangeUpper
plFound = false
phFound = false
bullCond = false
bearCond = false
rsiLBR = rsi
if calculateDivergence
//------------------------------------------------------------------------------
// Regular Bullish
// rsi: Higher Low
plFound := not na(ta.pivotlow(rsi, lookbackLeft, lookbackRight))
rsiHL = rsiLBR > ta.valuewhen(plFound, rsiLBR, 1) and _inRange(plFound )
// Price: Lower Low
lowLBR = low
priceLL = lowLBR < ta.valuewhen(plFound, lowLBR, 1)
bullCond := priceLL and rsiHL and plFound
//------------------------------------------------------------------------------
// Regular Bearish
// rsi: Lower High
phFound := not na(ta.pivothigh(rsi, lookbackLeft, lookbackRight))
rsiLH = rsiLBR < ta.valuewhen(phFound, rsiLBR, 1) and _inRange(phFound )
// Price: Higher High
highLBR = high
priceHH = highLBR > ta.valuewhen(phFound, highLBR, 1)
bearCond := priceHH and rsiLH and phFound
plot(
plFound ? rsiLBR : na,
offset = -lookbackRight,
title = "Regular Bullish",
linewidth = 2,
color = (bullCond ? bullColor : noneColor),
display = display.pane,
editable = calculateDivergence)
plotshape(
bullCond ? rsiLBR : na,
offset = -lookbackRight,
title = "Regular Bullish Label",
text = " Bull ",
style = shape.labelup,
location = location.absolute,
color = bullColor,
textcolor = textColor,
display = display.pane,
editable = calculateDivergence)
plot(
phFound ? rsiLBR : na,
offset = -lookbackRight,
title = "Regular Bearish",
linewidth = 2,
color = (bearCond ? bearColor : noneColor),
display = display.pane,
editable = calculateDivergence)
plotshape(
bearCond ? rsiLBR : na,
offset = -lookbackRight,
title = "Regular Bearish Label",
text = " Bear ",
style = shape.labeldown,
location = location.absolute,
color = bearColor,
textcolor = textColor,
display = display.pane,
editable = calculateDivergence)
alertcondition(bullCond, title='Regular Bullish Divergence', message="Found a new Regular Bullish Divergence, Pivot Lookback Right number of bars to the left of the current bar.")
alertcondition(bearCond, title='Regular Bearish Divergence', message='Found a new Regular Bearish Divergence, Pivot Lookback Right number of bars to the left of the current bar.')
我的策略
The specific implementation of the dominant_cycle function needs to be done using ta.ht_dominant_cycle_period or by calculating the rate of change of the phase, which requires detailed technical processing in actual coding.
How to use the "Market Mathieu Oscillator":
• Green background (stable zone): The market is likely to be in a consolidation or mean reversion state. Trend strategies are riskier, while range trading or option seller strategies may be more dominant.
• Yellow background (warning zone): The market has entered a "flammable" state where resonance may occur. Counter-trend trading should be reduced, and preparations for potential breakthroughs should be started, tightening stops.
• Red background (unstable/resonance zone): **Highest alert! ** This shows that the market is not only "flammable", but also has a "spark" (strong driving force). This is the stage where the trend is most likely to accelerate and sustain itself. Counter-trend operations should be strictly avoided, and trend-following strategies should be actively adopted.
• Q Oscillator:
• The rising q value means that emotions are moving to extremes and the "fuel" of the trend is increasing.
• The q-value is falling, indicating that sentiment is returning to neutrality and the "fuel" of the trend is decreasing, which may indicate the exhaustion of the trend or the beginning of consolidation.
• When the q-value exceeds the red threshold line, it indicates that the driving force is extremely strong, which is one of the necessary conditions for entering the red background.
The "Market Mathieu Oscillator" is an innovative attempt to transform a profound physical and financial theory into an intuitive decision-making aid available on TradingView through a proxy and simplified approach. It cannot make precise quantitative predictions like theoretical models, but it provides a whole new dimension to observe the market: it no longer focuses solely on the price itself, but on the relationship between the "force" that drives the price and the "rhythm" of the market itself. Through this lens, traders can better understand when the market may turn from stability to turbulence, and make more strategic decisions.
Candle Emotion Oscillator [CEO]Candle Emotion Oscillator (CEO) - Revolutionary User Guide
🧠 World's First Market Psychology Oscillator
The Candle Emotion Oscillator (CEO) is a groundbreaking indicator that measures market emotions through pure candle price action analysis. This is the first oscillator ever created that translates candle patterns into psychological states, giving you unprecedented insight into market sentiment.
🚀 Revolutionary Concept
What Makes CEO Unique
100% Pure Price Action: No volume, no external data - just candle analysis
Market Psychology: Measures actual emotions: Fear, Greed, Panic, Euphoria
Never Been Done Before: First oscillator to analyze market emotions
Exhaustion Prediction: Detects emotional fatigue before reversals
Fast Response: Perfect for your 2-5 minute scalping setup
The Four Core Emotions
🟢 GREED (Positive Values)
What it measures: Market conviction and decisiveness
Candle Pattern: Large bodies, small wicks
Psychology: Traders are confident and decisive
Oscillator: Positive values (0 to +100)
Trading Implication: Trend continuation likely
🔴 FEAR (Negative Values)
What it measures: Market uncertainty and indecision
Candle Pattern: Small bodies, large wicks
Psychology: Traders are uncertain and hesitant
Oscillator: Negative values (0 to -100)
Trading Implication: Consolidation or reversal likely
🚀 EUPHORIA (Extreme Positive)
What it measures: Excessive optimism and buying pressure
Candle Pattern: Large green bodies with upper wicks
Psychology: Extreme bullish sentiment
Oscillator: Values above +60
Trading Implication: Overbought, reversal warning
💥 PANIC (Extreme Negative)
What it measures: Capitulation and selling pressure
Candle Pattern: Large red bodies with lower wicks
Psychology: Extreme bearish sentiment
Oscillator: Values below -60
Trading Implication: Oversold, reversal opportunity
📊 Visual Elements Explained
Main Components
Thick Colored Line: Primary emotion oscillator
Green: Greed (positive emotions)
Red: Fear (negative emotions)
Bright Green: Euphoria (extreme positive)
Dark Red: Panic (extreme negative)
Thin Blue Line: Emotion trend (longer-term context)
Background Gradient: Emotional intensity
Darker = stronger emotions
Lighter = weaker emotions
Diamond Signals: 🔶 Emotional exhaustion detected
Rocket Signals: 🚀 Extreme euphoria warning
Explosion Signals: 💥 Extreme panic warning
Information Table (Top Right)
Hidden Divergence Buy/Sell SignalsHidden divergence Buy/sell signals
Hidden divergence Buy/sell signals
Hidden divergence Buy/sell signals
Hidden divergence Buy/sell signalsHidden divergence Buy/sell signalsHidden divergence Buy/sell signalsHidden divergence Buy/sell signalsHidden divergence Buy/sell signalsHidden divergence Buy/sell signalsHidden divergence Buy/sell signalsHidden divergence Buy/sell signalsHidden divergence Buy/sell signals
CipherMatrix Dashboard (MarketCipher B)does it work. A lightweight, multi-time-frame overlay that turns MarketCipher B data into an at-a-glance dashboard:
Time-frames shown: current chart TF first, then 5 m, 15 m, 30 m, 1 H, 4 H, Daily.
Bias icons:
🌙 = bullish (MCB > 0)
🩸 = bearish (MCB < 0)
Signal icons:
⬆️ = histogram crosses above 0 (potential long)
⬇️ = histogram crosses below 0 (potential short)
Table location: bottom-right of chart; updates on every confirmed bar.
CCI Trading SystemCCI Trading System with Signal Bar Coloring
Overview
This indicator combines the classic Commodity Channel Index (CCI) oscillator with visual signal detection and bar coloring to help traders identify potential momentum shifts and trading opportunities.
Features
CCI Oscillator Display: Shows CCI values in a separate pane with customizable period length
Adjustable Thresholds: User-defined buy and sell levels (default: -100 buy, +100 sell)
Visual Signal Detection: Triangle markers indicate crossover points
Bar Coloring: Highlights only the bars where actual buy/sell signals occur
Zone Highlighting: Background colors show overbought/oversold conditions
Real-time Information Table: Displays current CCI value, thresholds, and signal status
Built-in Alerts: Notification system for signal generation
How It Works
The indicator generates signals based on CCI threshold crossovers:
Buy Signal: Triggered when CCI crosses above the buy threshold (lime bar coloring)
Sell Signal: Triggered when CCI crosses below the sell threshold (red bar coloring)
Input Parameters
CCI Length: Period for CCI calculation (default: 20)
Buy Threshold: Level for buy signal generation (default: -100)
Sell Threshold: Level for sell signal generation (default: +100)
Enable Bar Coloring: Toggle for chart bar coloring
Show Signals: Toggle for signal markers
Usage Guidelines
Adjust thresholds based on your trading timeframe and volatility preferences
Use in conjunction with other technical analysis tools for confirmation
Consider market context and trend direction when interpreting signals
The -200/+200 levels serve as additional reference points for extreme conditions
Educational Purpose
This indicator is designed for educational and analysis purposes. It demonstrates how CCI can be used to identify potential momentum shifts in price action. The visual elements help traders understand the relationship between CCI values and price movements.
Risk Disclaimer
This indicator is a technical analysis tool and does not guarantee profitable trades. Past performance does not indicate future results. Always conduct your own analysis and consider risk management principles. Trading involves substantial risk of loss and is not suitable for all investors.
Technical Notes
Uses Pine Script v5
Plots CCI with standard deviation-based calculation
Includes crossover/crossunder functions for signal generation
Features conditional bar coloring for signal visualization
Incorporates alert conditions for automated notifications
This script is open source and available for modification and educational use.
Normalized 180-Day RP Change (Z-Score)180 day RP change with less alpha decay, good for picking tops on 1d tf