MACD X Cross with PlotThe default MACD indicator with the crossover added at the top of the MACD plot pane. Arrow up for MACD crossover signal line. Arrow down for MACD crossunder signal line.
อินดิเคเตอร์และกลยุทธ์
BB Expansion Oscillator (BEXO)BB Expansion Oscillator (BEXO) is a custom indicator designed to measure and visualize the expansion and contraction phases of Bollinger Bands in a normalized way.
🔹 Core Features:
Normalized BB Width: Transforms Bollinger Band Width into a 0–100 scale for easier comparison across different timeframes and assets.
Signal Line: EMA-based smoothing line to detect trend direction shifts.
Histogram: Highlights expansion vs contraction momentum.
OB/OS Zones: Detects Over-Expansion and Over-Contraction states to spot potential volatility breakouts or squeezes.
Dynamic Coloring & Ribbon: Visual cues for trend bias and crossovers.
Info Table: Displays real-time values and status (Expansion, Contraction, Over-Expansion, Over-Contraction).
Background Highlighting: Optional visual aid for trend phases.
🔹 How to Use:
When BEXO rises above the Signal Line, the market is in an Expansion phase → potential trend continuation.
When BEXO falls below the Signal Line, the market is in a Contraction phase → potential consolidation or trend weakness.
Overbought/Over-Expansion zone (above OB level): Signals high volatility; watch for possible reversal or breakout exhaustion.
Oversold/Over-Contraction zone (below OS level): Indicates a squeeze or low volatility; often precedes strong breakout moves.
🔹 Best Application:
Identify volatility cycles (squeeze & expansion).
Filter trades by volatility conditions.
Combine with price action, volume, or momentum indicators for confirmation.
⚠️ Disclaimer:
This indicator is for educational and research purposes only. It should not be considered financial advice. Always combine with proper risk management and your own trading strategy.
Quad Stochastic Div (Latching Quad)This script combines 4 stochastic lines, plotting only the %D lines.
(9,3)(14,3)(40,4)(60,10)
When all 4 are oversold or overbought, a buy or sell background is painted. When the slowest moving stochastic finally rotates back towards the center, the background will unlatch. This script also marks most divergences made between the chart and the 2 faster moving stochastic lines. White markers for the 9,3 and orange markers for the 14,4. Tradable signals are both orange and white divergence occurring on the same pivot, or either divergence leading out of a rotation. Generally more useful for scalping 1-5m charts.
I also built out some strength ratings to attempt to classify the divergences against one another, but this didn't seem to have much value in practice so by default the tags are turned off.
This indicator is helpful for anyone interested in daytradingrockstar on youtube's quad stochastic strategy.
Cumulative VWAPThis indicator plots the cumulative VWAP from the first bar loaded on the chart. Unlike the traditional daily VWAP that resets at the start of each trading session, this version continuously aggregates price and volume over the full visible chart history.
ZLEMA Trend Index 2.0ZTI — ZLEMA Trend Index 2.0 (0–1000)
Overview
Price Mapped ZTI v2.0 - Enhanced Zero-Lag Trend Index.
This indicator is a significant upgrade to the original ZTI v1.0, featuring enhanced resolution from 0-100 to 0-1000 levels for dramatically improved price action accuracy. The Price Mapped ZTI uses direct price-to-level mapping to eliminate statistical noise and provide true proportional representation of market movements.
Key Innovation: Instead of statistical normalization, this version maps current price position within a user-defined lookback period directly to the ZTI scale, ensuring perfect correlation with actual price movements. I believe this is the best way to capture trends instead of directly on the charts using a plethora of indicators which introduces bad signals resulting in drawdowns. The RSI-like ZTI overbought and oversold lines filter valid trends by slicing through the current trading zone. Unlike RSI that can introduce false signals, the ZTI levels 1 to 1000 is faithfully mapped to the lowest to highest price in the current trading zone (lookback period in days) which can be changed in the settings. The ZTI line will never go off the beyond the ZTI levels in case of extreme trend continuation as the trading zone is constantly updated to reflect only the most recent bars based on lookback days.
Core Features
✅ 10x Higher Resolution - 0-1000 scale provides granular movement detection
✅ Adjustable Trading Zone - Customizable lookback period from 1-50 days
✅ Price-Proportional Mapping - Direct correlation between price position and ZTI level
✅ Zero Statistical Lag - No rolling averages or standard deviation calculations
✅ Multi-Strategy Adaptability - Single parameter adjustment for different trading styles
Trading Zone Optimization
📊 Lookback Period Strategies
Short-term (1-3 days):
Ultra-responsive to recent price action
Perfect for scalping and day trading
Tight range produces more sensitive signals
Medium-term (7-14 days):
Balanced view of recent trading range
Ideal for swing trading
Captures meaningful support/resistance levels
Long-term (21-30 days):
Broader market context
Excellent for position trading
Smooths out short-term market noise
⚡ Market Condition Adaptation
Volatile Markets: Use shorter lookback (3-5 days) for tighter ranges
Trending Markets: Use longer lookback (14-21 days) for broader context
Ranging Markets: Use medium lookback (7-10 days) for clear boundaries
🎯 Timeframe Optimization
1-minute charts: 1-2 day lookback
5-minute charts: 2-5 day lookback
Hourly charts: 7-14 day lookback
Daily charts: 21-50 day lookback
Trading Applications
Scalping Setup (2-day lookback):
Super tight range for quick reversals
ZTI 800+ = immediate short opportunity
ZTI 200- = immediate long opportunity
Swing Trading Setup (10-day lookback):
Meaningful swing levels captured
ZTI extremes = high-probability reversal zones
More stable signals, reduced whipsaws
Advanced Usage
🔧 Real-Time Adaptability
Trending days: Increase to 14+ days for broader perspective
Range-bound days: Decrease to 3 days for tighter signals
High volatility: Shorter lookback for responsiveness
Low volatility: Longer lookback to avoid false signals
💡 Multi-Timeframe Approach
Entry signals: Use 7-day ZTI on main timeframe
Trend confirmation: Use 21-day ZTI on higher timeframe
Exit timing: Use 3-day ZTI for precise exits
🌐 Session Optimization
Asian session: Shorter lookback (3-5 days) for range-bound conditions
London/NY session: Longer lookback (7-14 days) for trending conditions
How It Works
The indicator maps the current price position within the specified lookback period directly to a 0-1000 scale and plots it using ZLEMA (Zero Lag Exponential Moving Average) which has the least lag of the available popular moving averages:
Price at recent high = ZTI at 1000
Price at recent low = ZTI at 1
Price at mid-range = ZTI at 500
This creates perfect proportional representation where every price movement translates directly to corresponding ZTI movement, eliminating the false signals common in traditional oscillators.
This single, versatile indicator adapts to any market condition, timeframe, or trading style through one simple parameter adjustment, making it an essential tool for traders at every level.
Credits
ZLEMA techniques widely attributed to John Ehlers.
Disclaimer
This tool is for educational purposes only and is not financial advice. Backtest and forward‑test before live use, and always manage risk.
Please note that I set this as closed source to prevent source code cloning by others, repackaging and republishing which results in multiple confusing choices of the same indicator.
ATR Dashboard - already\leftCalcularing ATR and showing how much of ATR the candle has traveled already and how much left
Stock Health - 5mWarns if you are about to trade before 45 min passed since market open.
Good reminder if you are impatient / have ADHD...
Meant to be used on a 5m chart.
More infos: www.reddit.com
Competition Signals — GBPUSD M15 (Manual)Here’s a brief and clear rundown on how to privately share your TradingView indicator:
Quick Guide: Share a Private TradingView Indicator
1. You Need a Premium Account
Only users with a Premium TradingView subscription can publish invite-only scripts, which allow private sharing. You can identify invite-only scripts by a lock icon next to the script’s name. 
2. Publish Your Script as Invite-Only
• Open your indicator in the Pine Editor.
• Click “Publish Script”, choose “Private” visibility, then select Invite-Only as the access type. 
• After publishing, a “Manage Access” button will appear on your script page, letting you control which TradingView users can use it. 
3. Grant Access to Others
• Use the “Manage Access” section to add specific TradingView usernames.
• Those added will be able to see the script under their “Invite-Only Scripts” tab in their Indicators panel. 
4. Privacy & Control Maintained
• Invite-Only scripts are closed-source: Users can’t view or copy your code. 
• You retain full control—only those you authorize can use it.
Summary Table
Step Action
1. Premium Required Needed to publish invite-only scripts
2. Publish Invite-Only Via Pine Editor → “Publish Script” → Invite-Only
3. Manage Access Use “Manage Access” to add users
4. Users Access They access via the “Invite-Only Scripts” tab
5. Code Privacy Script is hidden; users can’t see or copy it
Let me know if you’d like help walking through these steps or setting up permissions for multiple users!
K線虛擬幣// This source code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
// © dear.simpson
//@version=5
indicator("月季線視覺操盤", "", true)
// Getting inputs
length = input(5, "操盤線週期")
// Calculating
ma = ta.sma(close, length)
spread = close-ma
// Plotcandle
plotcandle(open, high, low, close, title='操盤K線', editable = false , display =display.pane+display.price_scale , color = (spread>=0 ? #ef5350 : #26a69a) , bordercolor= (spread>=0 ? #ef5350 : #26a69a) , wickcolor = #5d606b)
// Getting inputs
maPeriods1 = input( 5 , "MA 1" , group="移動平均線")
maPeriods2 = input(20 , "MA 2" , group="移動平均線")
maPeriods3 = input(60 , "MA 3" , group="移動平均線")
line0 = ta.sma(close, 2)
line1 = ta.sma(close, maPeriods1)
line2 = ta.sma(close, maPeriods2)
line3 = ta.sma(close, maPeriods3)
// Plot Moving Average Line
p0PlotID = plot(line0 ,"MA 0" , color.new(color.black ,100), display = display.none , editable = false)
p1PlotID = plot(line1 ,"MA 1" , color.new(#787b86, 50), display = display.pane+display.price_scale )
p2PlotID = plot(line2 ,"MA 2" , color.new(#787b86, 0), display = display.pane+display.price_scale )
p3PlotID = plot(line3 ,"MA 3" , color.new(color.blue , 30), display = display.pane+display.price_scale )
// Plot Zone Color
fill(p0PlotID, p2PlotID, close > line2 ? color.new(#ef5350, 70) : color.new(#26a69a, 90), '高/低於月線區域顏色')
fill(p0PlotID, p3PlotID, close > line3 ? color.new(#ef5350, 70) : color.new(#26a69a, 90), '高/低於季線區域顏色' , display = display.none )
B@dshah Indicator🚀 Advanced Multi-Indicator Trading System
A comprehensive trading indicator that combines multiple technical analysis tools for high-probability signal generation:
📊 CORE FEATURES:
- EMA Trend Analysis (Fast/Slow crossovers)
- RSI Momentum Detection
- MACD Signal Confirmation
- Bollinger Bands (Squeeze & Mean Reversion)
- Fibonacci Retracement Levels
- Volume & ATR Filtering
- Multi-Confluence Scoring System (0-10 scale)
🎯 SIGNAL QUALITY:
- Non-repainting signals (confirmed at bar close)
- Minimum 60% strength threshold for trades
- Dynamic TP/SL based on market structure
- Real-time win rate tracking
- Signal strength percentage display
⚙️ UNIQUE FEATURES:
- BB Squeeze detection for volatility breakouts
- Fibonacci level confluence analysis
- Smart position sizing recommendations
- Visual TP/SL lines with outcome tracking
- Comprehensive statistics table
🔔 ALERTS INCLUDED:
- Buy/Sell signals with strength ratings
- TP/SL hit notifications
- BB squeeze/expansion alerts
- Fibonacci level touches
Best used on 1H+ timeframes for optimal results.
Perfect for swing trading and position entries.
[GrandAlgo] Moving Averages Cross LevelsMoving Averages Cross Levels
Many traders watch for moving average crossovers – such as the golden cross (50 MA crossing above 200 MA) or death cross – as signals of changing trends. However, once a crossover happens, the exact price level where it occurred often fades from view, even though that level can be an important reference point. Moving Averages Cross Levels is an indicator that keeps those crossover price levels visible on your chart, helping you track where momentum shifts occurred and how price behaves relative to those key levels.
This tool plots horizontal line segments at the price where each pair of selected moving averages crossed within a recent window of bars. Each level is labeled with the moving average lengths (for example, “21×50” for a 21/50 MA cross) and is color-coded – green for bullish crossovers (short-term MA crossing above long-term MA) and red for bearish crossunders (short-term crossing below). By visualizing these crossover levels, you can quickly identify past trend change points and use them as potential support/resistance or decision levels in your trading. Importantly, this indicator is non-repainting – once a crossover level is plotted, it remains fixed at the historical price where the cross occurred, allowing you to continually monitor that level going forward. (As with any moving average-based analysis, crossover signals are lagging, so use these levels in conjunction with other tools for confirmation.)
Key Features:
✅ Multiple Moving Averages: Track up to 7 different MAs (e.g. 5, 8, 21, 50, 64, 83, 200 by default) simultaneously. You can enable/disable each MA and set its length, allowing flexible combinations of short-term and long-term averages.
✅ Selectable MA Type: Each average can be calculated as a Simple (SMA), Exponential (EMA), Volume-Weighted (VWMA), or Smoothed (RMA) moving average, giving you flexibility to match your preferred method.
✅ Auto Crossover Detection: The script automatically detects all crosses between any enabled MA pairs, so you don’t have to specify pairs manually. Whether it’s a fast cross (5×8) or a long-term cross (50×200), every crossover within the lookback period will be identified and marked.
✅ Horizontal Level Markers: For each detected crossover, a horizontal line segment is drawn at the exact price where the crossover occurred. This makes it easy to glance at your chart and see precisely where two moving averages intersected in the recent past.
✅ Labeled and Color-Coded: Each crossover line is labeled with the two MA lengths that crossed (e.g. “50×200”) for clear identification. Colors indicate crossover direction – by default green for bullish (positive) crossovers and red for bearish (negative) crossovers – so you can tell at a glance which way the trend shifted. (You can customize these colors in the settings.)
✅ Adjustable Lookback: A “Crosses with X candles” input lets you control how far back the script looks for crossovers to plot. This prevents your chart from getting cluttered with too many old levels – for example, set X = 100 to show crossovers from roughly the last 100 bars. Older crossover lines beyond this lookback window will automatically clear off the chart.
✅ Optional MA Plots: You can toggle the display of each moving average line on the chart. This means you can either view just the crossover levels alone for a clean look, or also overlay the MA curves themselves for additional context (to see how price and MAs were moving around the crossover).
✅ No Repainting or Hindsight Bias: Once a crossover level is plotted, it stays at that fixed price. The indicator doesn’t move levels around after the fact – each line is a true historical event marker. This allows you to backtest visually: see how price acted after the crossover by observing if it retested or respected that level later.
How It Works:
1️⃣ Add to Chart & Configure – Simply add the indicator to your chart. In the settings, choose which moving averages you want to include and set their lengths. For example, you might enable 21, 50, 200 to focus on medium and long-term crosses (including the golden cross), or turn on shorter MAs like 5 and 8 for quick momentum shifts. Adjust the lookback (number of bars to scan for crosses) if needed.
2️⃣ Visualization – The script continuously checks the latest X bars for any points where one MA crossed above or below another. Whenever a crossover is found, it calculates the exact price level at which the two moving averages intersected. On the last bar of your chart, it will draw a horizontal line segment extending from the crossover bar to the current bar at that price level, and place a label to the right of the line with the MA lengths. Green lines/labels signify bullish crossovers (where the first MA crossed above the second), and red lines indicate bearish crossunders.
3️⃣ On Your Chart – You will see these labeled levels aligned with the price scale. For example, if a 50 MA crossed above a 200 MA (bullish) 50 bars ago at price $100, there will be a green “50×200” line at $100 extending to the present, showing you exactly where that golden cross happened. You might notice price pulling back near that level and bouncing, or if price falls back through it, it could signal a failed crossover. The indicator updates in real-time: if a new crossover happens on the latest bar, a new line and label will instantly appear, and if any old cross moves out of the lookback range, its line is removed to keep the chart focused.
4️⃣ Customization – You can fine-tune the appearance: toggle any MA’s visibility, change line colors or label styles, and modify the lookback length to suit different timeframes. For instance, on a 1-hour chart you might use a lookback of 500 bars to see a few weeks of cross history, whereas on a daily chart 100 bars (about 4–5 months) may be sufficient. Adjust these settings based on how many crossover levels you find useful to display.
Ideal for Traders Who:
Use MA Crossovers in Strategy: If your strategy involves moving average crossovers (for trend confirmation or entry/exit signals), this indicator provides an extra layer of insight by keeping the price of those crossover events in sight. For example, trend-followers can watch if price stays above a bullish crossover level as a sign of trend strength, or falls below it as a sign of weakness.
Identify Support/Resistance from MA Events: Crossover levels often coincide with pivot points in market sentiment. A crossover can act like a regime change – the level where it happened may turn into support or resistance. This tool helps you mark those potential S/R levels automatically. Rather than manually noting where a golden cross occurred, you’ll have it highlighted, which can be useful for setting stop-losses (e.g. below the crossover price in a bullish scenario) or profit targets.
Track Multiple Averages at Once: Instead of focusing on just one pair of moving averages, you might be interested in the interaction of several (short, medium, and long-term trends). This indicator caters to that by plotting all relevant crossovers among your chosen MAs. It’s great for multi-timeframe thinkers as well – e.g. you could apply it on a higher timeframe chart to mark major cross levels, then drill down to lower timeframes knowing those key prices.
Value Clean Visualization: There are no flashing signals or arrows – just simple lines and labels that enhance your chart’s storytelling. It’s ideal if you prefer to make trading decisions based on understanding price interaction with technical levels rather than following automatic trade calls. Moving Averages Cross Levels gives you information to act on, without imposing any bias or strategy – you interpret the crossover levels in the context of your own trading system.
5m Exit AlertsThese can help a lot with Daytrading if you don't have a price target in mind when there's no clear resistance / support nearby, and you don't trust the market enough to hold it as a swing trade.
Keep in mind that its main purpose is to give you a "warning" that it might be good to look at your screen, instead of guaranteeing you "now is the best time to exit". You won't reach high winning stats by blindly following this alert.
"A Exit LONG":
(I'm using letters instead of numbers for all Exit alerts to make sure I don't accidentally confuse Enter and Exit alerts).
There are 4 conditions that might trigger it. The reasons show up in the exit alert message (unfortunately only as a number, since alert messages can't have "dynamic text" in TradingView), and can also be displayed as symbols in the chart (see image above - make sure to enable "Show Signals" in the indicator settings first though).
Here are the conditions sorted from best to worst:
Technical reversal: Bearish Hammer candle with Volume > 2 * avg volume (of last 30 candles), when 5m candle closed. Reversal very likely. This is usually the best time to take your gains for the rest of the day.
EMA 3/8 cross: standard 5m EMA 3/8 cross, indicating a trend reversal, or at least a pullback. Can also be helpful to detect double tops / double bottoms.
Trailing Stop Loss: Crossed below 30m EMA 8, 5m candle closed. This is a "fallback" alert in case EMA 3 was already below EMA 8 before you set up the alert. It's not unlikely that the stock might go further down to VWAP, so depending on the chart and market this might be a good opportunity to save the gains you have left.
"Final" Stop Loss: Crossed below VWAP. Usually not a good sign. If you entered around VWAP your losses shouldn't be big yet, but if you plan on holding the stock the Daily chart and market outlook should better be quite convincing, and you wouldn't have needed to use this alert in the first place.
Keep in mind these work of course best if you picked a "good" stock: clear movement, tidy price action, high volume. Otherwise alerts are more likely to be triggered redundantly.
Always consider how the market and stock looks like, then decide whether to exit or not! Usually it makes sense to wait a bit to see f. e. whether the stock bounces off the 30m EMA 8, and it's just a pullback.
"B Enter SHORT":
Similar, but for shorts...
"C 1m Scalp LONG" + "D 1m Scalp SHORT":
Simple Scalping alert for EMA 3/8 cross on a 1m chart - but without needing to use a 1m chart to set it up!
Unfortunately it's not as accurate as manually setting this alert up on a 1m chart. It might be an advantage though that it sometimes is triggered 1-2 min later, since this means there are less redundant triggerings.
It can be useful esp. on high momentum trades, but I honestly haven't used it in a looong while.
"X Candle Close":
same as in 5m Entry indicator: triggered when 5m candle is confirmed
"Z Trend Change: UP" + "Z Trend Change: DOWN":
This one is meant to be used only on SPY: It alerts you when SPY is changing its trending direction, which might mean entering or closing existing trades.
I have therefore set it up to never end (by setting it to "Once Per Bar Close" in the alert settings).
It's based on DMI positive or negative being > 25. I had it based on VWAP at the beginning, but there were days where it was triggered every 5 minutes...
More infos: www.reddit.com
Distance from 50 SMA in ADR TermsIndicator produces a multiple of ADR% from the 50-day simple moving average to determine is a stock or etf is extended.
P/B Ratio (Per Share) vs Median + Bollinger Band- 📝 This indicator highlights potential buying opportunities by analyzing the Price-to-Book (P/B) ratio in relation to Bollinger Bands and its historical median.
- 🎯 The goal is to provide a visually intuitive signal for value-oriented entries, especially when valuation compression aligns with historical context.
- 💡 Vertical green shading is applied when the P/B ratio drops below the lower Bollinger Band, which is calculated directly from the P/B ratio itself — not price. This condition often signals the ticker may be oversold.
- 🟢 Lighter green appears when the ratio is below the lower band but above the median, suggesting a possible shorter-term entry with slightly more risk.
- 🟢 Darker green appears when the ratio is both below the lower band and below the median, pointing to a potentially stronger, longer-term value entry.
- ⚠️ This logic was tested using 1 and 2-day time frames. It may not be as helpful in longer time frames, as the financial data TradingView pulls in begins in Q4 2017.
- ⚠️ Note: This script relies on financial data availability through TradingView. It may not function properly with certain tickers — especially ETFs, IPOs, or thinly tracked assets — where P/S ratio data is missing or incomplete.
- ⚠️ This indicator will not guarantee successful results. Use in conjunction with other indicators and do your due diligence.
- 🤖 This script was iteratively refined with the help of AI to ensure clean logic, minimalist design, and actionable signal clarity.
- 📢 Idea is based on the script "Historical PE ratio vs median" by haribotagada
- 💬 Questions, feedback, or suggestions? Drop a comment — I’d love to hear how you’re using it or what you'd like to see changed.
ATR SL/TPStop Loss Finder ATR
A Stop Loss Finder ATR indicator is a dynamic risk management tool leveraging the Average True Range (ATR) to identify and track optimal stop-loss levels based on current market volatility.
A stop hunt indicator is a technical tool designed to identify potential instances where large market participants, often referred to as "smart money," deliberately move the price to trigger a large number of stop-loss orders, creating a temporary price distortion before reversing the trend. These indicators aim to help traders detect these events to either avoid being stopped out or to enter trades in the direction of the anticipated reversal.
For example, a long wick below support with high volume may signal a bullish stop-hunt , indicating that the price has been driven down to trigger sell-stop orders before reversing upward. Conversely, a long wick above resistance with high volume may signal a bearish stop-hunt , suggesting the price was pushed up to trigger buy-stop orders before reversing downward. The presence of such wicks is often associated with candlestick patterns like hammers or shooting stars.
Unlike fixed stop-losses, this indicator adapts its distance from the current price using a customizable ATR multiplier, ensuring that stop-loss levels are neither too tight (prone to being triggered by normal market noise) nor too wide (exposing capital to excessive risk) . The core function calculates the true range—considering the current high-low range, gaps up, and gaps down—over a user-defined period (typically 14 bars), then applies a multiplier to generate a volatility-adjusted stop-loss distance . This approach allows the indicator to dynamically widen stops during high-volatility periods and tighten them during calm markets, providing a more responsive and context-aware exit strategy.
Commodity Channel Index DualThe CCI Dual is a custom TradingView indicator built in Pine Script v5, designed to help traders identify potential buy and sell signals using two Commodity Channel Index (CCI) oscillators. It combines a shorter-period CCI (default: 14) for quick momentum detection with a longer-period CCI (default: 50) for confirmation, focusing on mean-reversion opportunities in overbought or oversold conditions.
This setup is particularly suited for volatile markets like cryptocurrencies on higher timeframes (e.g., 3-day charts), where it highlights reversals by requiring both CCIs to cross out of extreme zones within a short window (default: 3 bars).
The indicator plots the CCIs, customizable bands (inner: 100, OB/OS: 175, outer: 200), dynamic fills for visual emphasis, background highlights for signals, and alert conditions for notifications.
How It Works
The indicator calculates two CCIs based on user-defined lengths and source (default: close price):
CCI Calculation: CCI measures price deviation from its average, using the formula: CCI = (Typical Price - Simple Moving Average) / (0.015 * Mean Deviation). The short CCI reacts faster to price changes, while the long CCI provides smoother, trend-aware confirmation.
Overbought/Oversold Levels: Customizable thresholds define extremes (Overbought at +175, Oversold at -175 by default). Bands are plotted at inner (±100), mid (±175 dashed), and outer (±200) levels, with gray fills for the outer zones.
Dynamic Fills: The longer CCI is used to shade areas beyond OB/OS levels in red (overbought) or green (oversold) for quick visual cues.
Signals:
Buy Signal: Triggers when both CCIs cross above the Oversold level (-175) within the signal window (3 bars). This suggests a potential upward reversal from an oversold state.
Sell Signal: Triggers when both cross below the Overbought level (+175) within the window, indicating a possible downward reversal.
Visuals and Alerts: Buy signals highlight the background green, sells red. Separate alertconditions allow setting TradingView alerts for buys or sells independently.
Customization: Adjust lengths, levels, and window via inputs to fit your timeframe or asset—e.g., higher OB/OS for crypto volatility.
This logic reduces noise by requiring dual confirmation, but like all oscillators, it can produce false signals in strong trends where prices stay extended.
To mitigate false signals (e.g., in trending markets), layer the CCI Dual with MACD (default: 12,26,9) and RSI (default: 14) for multi-indicator confirmation:
With MACD: Only take CCI buys if the MACD line is above the signal line (or histogram positive), confirming bullish momentum. For sells, require MACD bearish crossover. This filters counter-trend signals by aligning with trend strength—e.g., ignore CCI sells if MACD shows upward momentum.
With RSI: Confirm CCI oversold buys only if RSI is below 30 and rising (or shows bullish divergence). For overbought sells, RSI above 70 and falling. This adds overextension validation, reducing whipsaws in crypto trends.
I made this customizable for you to find what works best for your asset you are trading. I trade the 6 hour and 3 day timeframe mainly on major cryptocurrency pairs. I hope you enjoy this script and it serves you well.
MA Trends — mura visionMA Trends — mura vision is a multi-timeframe trend map that blends two local trend “ribbons” on the current timeframe with higher-timeframe context lines. It helps you read market bias at a glance and align entries with the dominant trend.
What the indicator plots
On the current timeframe
SMA 5/34 — short-term trend ribbon (filled area between SMA5 and SMA34).
EMA 55/89 — swing trend ribbon (filled area between EMA55 and EMA89).
Higher-timeframe context
EMA 233 (4H & 1D) — plotted as lines. Color reflects whether price on the same HTF is above (support) or below (resistance).
KAMA 233 (4H & 1D) — plotted as lines using a custom Kaufman implementation (Efficiency Ratio with fast=2, slow=30; squared smoothing). Color logic is the same as EMA 233.
Optional (disabled by default)
EMA 233 & KAMA 233 on the current TF — toggle on if you want the same 233 anchors on the chart’s timeframe.
Note: All higher-TF series are requested via request.security() with lookahead_off .
How to read it
1 Bias : Use the 4H/1D EMA/KAMA 233 as dynamic anchors.
• Green = price is above the anchor on that HTF (supportive context).
• Red = price is below the anchor on that HTF (resistive context).
2 Alignment : When both ribbons are green (SMA5>34 and EMA55>89) while HTF anchors are green, momentum and context agree (higher-quality trend). The opposite coloring suggests bearish alignment.
3 Pullbacks : Retracements toward the ribbon edges often act as retest zones within the prevailing regime.
Inputs & customization
Visibility toggles for each block:
SMA 5/34 (current TF), EMA 55/89 (current TF), EMA/KAMA 233 for 4H, 1D, and current TF (the latter are off by default).
Colors :
Lines for SMA5/SMA34 and EMA55/EMA89 (plotted with high transparency), fill colors for up/down trend ribbons, and separate support/resistance colors for EMA/KAMA 233.
Line width for all 233 anchors.
MTF behavior & repainting notes
HTF lines (4H/1D) are computed with lookahead_off and update intrabar until the higher-TF candle closes. This is expected on TradingView and not “future-looking”, but values can stabilize only at the close of the 4H/1D bar.
If you require strictly confirmed HTF values, use a “previous bar” approach (e.g., plotting series ) — not included here to keep the display responsive.
Good practices
Determine direction with 4H/1D EMA/KAMA 233, then refine timing with the current-TF ribbons.
For conservative use, favor trades with the color of the dominant HTF anchor.
Combine with your own risk management and confirmation rules.
What this script is / isn’t
✅ Visual analysis tool for multi-timeframe trend context.
❌ Not a strategy: it does not generate orders or calculate P&L.
Credits & license
© trading_mura — Published for educational purposes under the Mozilla Public License 2.0.
KAMA is implemented via a custom Kaufman method (ER with fast=2, slow=30, squared smoothing), not ta.kama() .
Disclaimer
Trading involves risk. This indicator is provided “as is” for informational/educational use only and is not financial advice. Always test on historical data and use proper risk management.
Interest Rates CBs % Cutting📌 Description
This indicator tracks how many central banks around the world are currently cutting their policy rates. It aggregates policy rate changes from more than 30 central banks (including the Federal Reserve, ECB, BoE, BoJ, PBoC, Banco Central do Brasil, and many others) and normalizes the count to show the global percentage of banks easing monetary policy at any given time.
The calculation is simple:
A rate cut is counted as +1
A rate hike is counted as -1
No change = 0
The results are normalized by the number of banks with available data
The output is a smoothed line showing the share of central banks currently cutting rates. This helps highlight shifts in the global monetary cycle, which can be useful for macro-oriented analysis, risk-on/off regimes, or as a background filter for other strategies.
⚖️ Attribution
This script is inspired by and based on the “Global Central Banks Cutting Rates” indicator developed by Julien Bittel (MIT / RealVision). This version expands the coverage to a broader set of central banks and provides additional flexibility for signal smoothing.
🛑 Disclaimer
This indicator is for educational and analytical purposes only. It does not constitute financial advice or a trading signal. Please do your own research before making any investment decisions.
Student wyckoff rs symbol/moexRelative Strength Indicator
Student wyckoff rs symbol/market v.2
Description
The Relative Strength (RS) Indicator compares the price performance of the current financial instrument (e.g., a stock) against another instrument (e.g., an index or another stock). It is calculated by dividing the closing price of the first instrument by the closing price of the second, then multiplying by 100. This provides a percentage ratio that shows how one instrument outperforms or underperforms another. The indicator helps traders identify strong or weak assets, spot market leaders, or evaluate an asset’s performance relative to a benchmark.
Key Features
Relative Strength Calculation: Divides the closing price of the current instrument by the closing price of the second instrument and multiplies by 100 to express the ratio as a percentage.
Simple Moving Average (SMA): Applies a customizable Simple Moving Average (default period: 14) to smooth the data and highlight trends.
Visualization: Displays the Relative Strength as a blue line, the SMA as an orange line, and colors bars (blue for rising, red for falling) to indicate changes in relative strength.
Flexibility: Allows users to select the second instrument via an input field and adjust the SMA period.
Applications
Market Comparison: Assess whether a stock is outperforming an index (e.g., S&P 500 or MOEX) to identify strong assets for investment.
Sector Analysis: Compare stocks within a sector or against a sector ETF to pinpoint leaders.
Trend Analysis: Use the rise or fall of the RS line and its SMA to gauge the strength of an asset’s trend relative to another instrument.
Trade Timing: Bar coloring helps quickly identify changes in relative strength, aiding short-term trading decisions.
Interpretation
Rising RS: Indicates the first instrument is outperforming the second (e.g., a stock growing faster than an index).
Falling RS: Suggests the first instrument is underperforming.
SMA as a Trend Filter: If the RS line is above the SMA, it may signal strengthening performance; if below, weakening performance.
Settings
Instrument 2: Ticker of the second instrument (default: QQQ).
SMA Period: Period for the Simple Moving Average (default: 14).
Notes
The indicator works on any timeframe but requires accurate ticker input for the second instrument.
Ensure data for both instruments is available on the selected timeframe for precise analysis.
Anchorman - EMA Channel + EMA + MTF Status Table PRICE BREAKOUTUses a high/low EMA Channel to tell you when strong price breakouts are happening plus comes with a EMA to help follow the trend if you like. I designed it so it can alert you when a single TF touch happens or a breakout alignment on MTF happens (I recommend this) its up to you also its single alert so no need to do bullish or bearish signals just one signal will alert you when a breakout happens in EITHER direction.
1D Enter AlertsThis is only a remaining of an experiment. I had real swing enter alerts, but it just made more sense to use classic TradingView alerts for horizontal / trendline / SMA breaks.
(Btw you can set up a horizontal alert in TradingView just by hovering the mouse on the chart so it's at the price point you aim for, and pressing "Alt + A").
Once this horizontal alert triggered I would usually wait for confirmation of the move on the 5m. If it's f. e. a break of an SMA and I'm not convinced yet, I might wait until end of the day. For exactly that purpose the following alert comes in handy:
"X Candle Close":
Is triggered 15m before market close - good reminder to check a stock again to see whether a resistance / support break was valid - and the stock should be entered as a swing, or maybe whether it should be closed as a loss.
"Z Trend Change: UP" + "Z Trend Change: DOWN":
Same as on 5m Exit Alert: meant to be only applied on SPY, and to have it set up to never end!
Criteria:
SPY broke through daily EMA 8 or daily SMA today, indicating an important short-term change on the daily chart.
Is triggered 15m before market close
More infos: www.reddit.com