EMA Cloud + AlertsThe only EMA indicator you'll ever need.
- Flexible EMAs: Customize EMA lengths (e.g., 9, 21) to match your trading style.
- Dynamic Cloud: Auto-shades bullish (green) or bearish (red) clouds between EMAs for clear trend signals.
- Trend Change Alerts: Auto-alerts that signal when a trend change (EMA crossover) happens on the timeframe you're currently viewing.
- Timeframe Lock: Lock EMAs to a specific timeframe (e.g., 5m on a 1m chart) for consistent analysis.
- Personalized Design: Adjust EMA colors, thickness, and cloud transparency for optimal visibility.
A friendly reminder that no tool or indicator guarantees success. Integrate this into a robust trading plan.
Göstergeler ve stratejiler
Buy vs Sell Liquidity + Difference (Bottom Right)Script Summary (Short Notes)
⚙️ Purpose
Tracks and displays Buy Volume vs Sell Volume difference during the day, based on candle direction.
Useful for spotting liquidity imbalance between buyers and sellers.
📊 How It Works
Volume Classification
If close > open → counts volume as Buy Volume
If close < open → counts volume as Sell Volume
Aggregation Timeframe
You can select a timeframe (1, 2, 3, 5, 15, 30 mins)
Script recalculates data from that aggregation level.
Daily Reset
At the start of a new trading day, totals reset to zero.
Cumulative Calculation
Adds all buy/sell volumes as the day progresses.
Calculates:
Total Volume
Difference (BUY − SELL)
Percentages (%)
Trend Candles Full ColorThe coloring over the candle sticks isn't showing up on the picture for some reason but when you click on the indicator the color coding will appear on the chart.
Trend Candles Full Color Indicator Explanation The "Trend Candles Full Color" indicator, designed for TradingView, visually enhances candlestick charts by coloring candles based on their position relative to a simple moving average (SMA). Here's how it works and how it can benefit traders: How It Works Input : Adjust the SMA period (default is 20) to define the trend length.
Logic : The indicator compares the closing price of each candle to the SMA: Green Candle : Close is above the SMA (indicating an uptrend).
Red Candle : Close is below the SMA (indicating a downtrend).
Gray Candle : Close equals the SMA (neutral/no clear trend).
Output : Candles (body, wick, and border) are colored green, red, or gray based on the trend, overlaid directly on your price chart.
Benefits and Use Cases Trend-Following Strategies Benefit: Clearly identifies bullish (green) or bearish (red) trends, helping traders ride momentum.
Example: A swing trader using a 20-period SMA can enter long positions when candles turn green (price above SMA) and exit or short when candles turn red, confirming trend reversals.
Reversal Trading Benefit: Gray candles signal indecision near the SMA, often a precursor to reversals.
Example: A day trader might watch for gray candles after a prolonged uptrend (green candles) to anticipate a potential bearish reversal, combining with other indicators like RSI for confirmation.
Scalping Benefit: Quick visual cues for short-term trend changes on lower timeframes.
Example: A scalper on a 5-minute chart can use green candles to confirm quick bullish moves and red candles to avoid counter-trend trades, enhancing decision speed.
Position Sizing or Risk Management Benefit: Color changes highlight trend strength, aiding in adjusting trade size or stops.
Example: A trader might increase position size during strong green candle sequences (sustained uptrend) and tighten stops when gray candles appear, signaling potential trend weakness.
Tips for Use Adjust the MA Length to suit your trading style (e.g., shorter for scalping, longer for swing trading).
Combine with other indicators (e.g., support/resistance, MACD) for better accuracy.
Test on different timeframes to match your strategy.
Recommended MA Length for 1-Minute Charts Short-Term/Scalping (1-5 minute trades):10-period SMA : Very sensitive, ideal for capturing quick price movements in fast markets. May produce more noise (false signals).
20-period SMA : A balanced choice for 1-minute charts, smoothing minor fluctuations while reacting to short-term trends. A great starting point for scalpers.
Intraday Trend Trading (10-30 minute holds):50-period SMA : Captures broader intraday trends, reducing noise but lagging slightly. Suitable for larger moves within a session.
This indicator simplifies trend identification, making it a versatile tool for traders of all styles, from beginners to advanced users!
Recommended MA Length for Swing Trading / Higher Timeframes Swing Trading (holding trades for days to weeks):50-period SMA : A popular choice for swing traders on higher timeframes (e.g., 1-hour or 4-hour charts). It smooths out short-term fluctuations while identifying medium-term trends. Ideal for capturing multi-day swings.
100-period SMA : Slightly longer, this MA is great for confirming stronger, more sustained trends. It’s useful on 4-hour or daily charts for swing traders aiming to ride larger price moves.
Longer-Term Trend Trading (holding for weeks to months):200-period SMA : A classic choice for higher timeframes like daily or weekly charts. It highlights major market trends and is widely used by swing and position traders to filter out noise and focus on long-term direction.
150-period SMA : A middle ground between the 100 and 200 SMA, suitable for daily charts when you want a balance between responsiveness and trend reliability.
MEGA_Long/Short📊 MTF Entry Signal (with L/S Labels)
A clean and compact multi-timeframe entry point indicator for TradingView. Shows clear entry signals for LONG and SHORT trades directly on the chart, with markers and letters for quick decision-making.
🎯 Key Features:
Dual timeframe analysis: Choose main and fast timeframes (default: 30m and 4h).
Entry signals:
🟢 Green triangle + "L" — LONG entry (Buy signal)
🔴 Red triangle + "S" — SHORT entry (Sell signal)
Signal only at true trend reversals – No excessive markers or noise.
Markers move dynamically with price – Always match the candlestick and chart movement.
⚙️ Signal Criteria:
LONG: EMA9 > EMA21 and MACD > 0, confirmed on both selected timeframes.
SHORT: EMA9 < EMA21 and MACD < 0, confirmed on both selected timeframes.
Entry marker appears only when signal direction changes.
🔧 Settings:
Manually select fast/main timeframes in the indicator menu (recommended: 30m + 4h).
Marker size set to minimal (size=tiny) for maximum clarity.
📈 Usage:
Designed for clean, non-overloaded charts.
Works perfectly for trend trading, reversals, and entry confirmation.
Suitable for scalping, swing trading, and crypto/futures analysis.
ICT London & NY Kill ZonesICT london and NYC kiill zones marked on the chart automatically - use with NY time zone
DAMMU AUTOMATICAL AI ENRTY AND TARGET AND EXITMain Components
Supertrend System –
Detects market trend direction (Buy/Sell zones).
→ Green = Uptrend (Buy)
→ Red = Downtrend (Sell)
SMA Filter –
Uses 50 & 200 moving averages to confirm overall trend.
→ Price above both → Bullish
→ Price below both → Bearish
Buy/Sell Signals –
Generated when Supertrend flips direction and SMA confirms.
→ Triangle up = Buy
→ Triangle down = Sell
Take Profit / Stop Loss Levels –
Automatically calculated after Buy/Sell entry.
→ TP1, TP2, SL shown on chart
ADX (Sideways Zone Filter) –
If ADX < 25 → Market sideways → Avoid trades
Shows “No Trade Zone” area
Smart Money Concepts (SMC) Tools –
🔹 Market structure (HH, HL, LH, LL)
🔹 Order blocks (OB)
🔹 Equal highs/lows
🔹 Fair Value Gaps (FVG)
🔹 Premium & Discount zones
Helps find institutional entry points
Visual Display –
Color-coded background (trend zones)
Labels for buy/sell/structure
Optional FVG and order block boxes
Risk Management –
Input-based position sizing, SL & TP management
(to calculate profit levels and minimize loss)
SPX / Silver (XAGUSD) RatioThis script visualizes the S&P 500 Index to Silver ratio (SPX/Silver) — a powerful tool for monitoring the relative strength of equities vs. precious metals over time.
📊 Use Case:
Helps traders assess macro sentiment shifts between risk-on (equities) and risk-off (commodities).
A rising ratio indicates equity outperformance vs Silver, often in growth-driven bull markets.
A falling ratio suggests Silver is outperforming — potentially due to inflation, geopolitical risk, or weakening equities.
⚙️ Data & Calculation:
SPX: SP:SPX (S&P 500 Index)
Silver: TVC:SILVER
Formula:
SPX / Silver
(Both are spot/index prices, updated on daily timeframe)
📈 Interpretation:
📈 Ratio Rising → SPX outperforming Silver → Risk-on sentiment
📉 Ratio Falling → Silver outperforming SPX → Possible flight to safety or inflation hedge
🧠 Ideal For:
Macro trend analysis
Intermarket strategy development
Asset rotation decision-making
Spotting Silver bottoms during SPX/Silver peak zones
Dual Table Dashboard - Correct V3add RSI Data## 📈 Trading Applications
### 1. Trend Following Strategy
```
1. Check TABLE 1 for trend direction (AnEMA29 + PDMDR)
2. If both green → Look for longs
3. If both red → Look for shorts
4. Use TABLE 2 for entry levels
```
### 2. Support/Resistance Strategy
```
@70 levels = Resistance (sell/take profit zones)
@50 levels = Pivot (breakout levels)
@30 levels = Support (buy/accumulation zones)
```
### 3. Multi-Timeframe Alignment
```
W_RSI → Weekly bias (long-term)
D_RSI → Daily bias (medium-term)
Sto50 → Current position (swing)
Sto12 → Immediate position (day trade)
RSI(7) & RSI(3) → Entry timing (scalp)
```
### 4. Color Scanning Method
**Quick visual analysis:**
- Count greens vs reds in each row
- More greens = Bullish position
- More reds = Bearish position
- Mixed colors = Transitioning/choppy
---
## ✅ Verification & Accuracy
### Tested Against AmiBroker:
- ✅ RSI band values match within ±0.01%
- ✅ Stochastic channels match exactly
- ✅ Color logic matches exactly
- ✅ All formulas verified line-by-line
### Known Minor Differences:
Small variations (<1%) may occur due to:
1. **Platform calculation precision** - Different floating-point engines
2. **Historical data feeds** - Slight variations in past prices
3. **Weekly bar boundaries** - TradingView vs AmiBroker week definitions
4. **Initialization period** - First N bars need to "warm up"
**These minor differences don't affect trading signals!**
---
## ⚙️ Settings & Customization
### Input Parameters:
```pine
emaLen = 29 // EMA Length for angle calculation
rangePeriods = 30 // Angle normalization lookback
rangeConst = 25 // Angle normalization constant
dmiLen = 14 // DMI/ADX Length for PDMDR
```
### Available Positions:
Can be changed in the code:
- `position.top_left`
- `position.top_center`
- `position.top_right`
- `position.middle_left` (Table 2 default)
- `position.middle_center`
- `position.middle_right`
- `position.bottom_left` (Table 1 default)
- `position.bottom_center`
- `position.bottom_right`
### Text Sizes:
- `size.tiny`
- `size.small` (current default)
- `size.normal`
- `size.large`
- `size.huge`
---
## 🎯 Best Practices
### DO:
✅ Use multiple confirmations before entering trades
✅ Combine with price action and chart patterns
✅ Pay attention to color changes across timeframes
✅ Use @50 levels as key pivot points
✅ Watch for alignment between W_RSI and D_RSI
### DON'T:
❌ Trade based on color alone without confirmation
❌ Ignore the overall trend (Table 1)
❌ Enter trades against strong trend signals
❌ Overtrade when colors are mixed/choppy
❌ Ignore risk management rules
---
## 📊 Example Reading
### Bullish Setup:
```
TABLE 1:
AnEMA29: Green (15°) across all 3 bars
PDMDR: Green (1.65) and rising
TABLE 2:
W_RSI@50: Green (price above)
D_RSI@50: Green (price above)
Sto50@50: Green (price above midpoint)
Sto12@50: Green (price above midpoint)
Interpretation: Strong bullish trend confirmed across multiple timeframes
Action: Look for long entries on pullbacks to @50 or @30 levels
```
### Bearish Setup:
```
TABLE 1:
AnEMA29: Red (-12°) across all 3 bars
PDMDR: Red (0.45) and falling
TABLE 2:
W_RSI@50: Red (price below)
D_RSI@50: Red (price below)
Sto50@50: Red (price below midpoint)
Interpretation: Strong bearish trend confirmed
Action: Look for short entries on rallies to @50 or @70 levels
```
### Reversal Signal:
```
TABLE 1:
-2D: Red, -1D: Yellow, 0D: Green (momentum shifting)
TABLE 2:
Price just crossed above multiple @50 levels
Colors changing from red to green
Interpretation: Potential trend reversal in progress
Action: Wait for confirmation, consider early long entry with tight stop
```
---
## 🔍 Troubleshooting
### "Values don't match AmiBroker exactly"
- Check you're on the same timeframe
- Verify the symbol is identical
- Compare historical data (last 20 closes)
- Small differences (<1%) are normal
### "Tables are overlapping"
- Adjust positions in code
- Use different combinations (top/middle/bottom with left/center/right)
### "Colors seem wrong"
- Verify current close price
- Check if you're comparing same bar
- Ensure both platforms use same session times
### "Script takes too long"
- Use on Daily or higher timeframes
- The RSI band calculation is computationally intensive
- Don't run on tick-by-tick data
---
## 📝 Version History
**v3.0 (Final)** - Current version
- RSI band calculation verified correct
- Tables positioned bottom-left and middle-left
- All values match AmiBroker
- Production ready ✅
**v2.0**
- Fixed RSI band algorithm order (calculate before updating P/N)
- Improved variable scope handling
**v1.0**
- Initial implementation
- Had incorrect RSI band calculation
---
## 📄 Files in Package
WAD : Whale Activity Detector🐋 WAD: Whale Activity Detector
WAD (Whale Activity Detector) automatically detects periods of abnormally high trading volume compared to the average, identifying potential whale (institutional) buy or sell activity and visualizing it directly on the chart.
🔍 How It Works
1. Buy/Sell Volume Separation
Each candle’s trading volume is categorized based on its direction:
Bullish candle → Buy volume
Bearish candle → Sell volume
This separation helps distinguish the actual strength of buying vs. selling pressure, rather than looking at total volume alone.
2. Average Volume Calculation
Over a user-defined lookback period (default: 34 bars), the indicator calculates the moving average of both buy and sell volumes, establishing a baseline for what constitutes “normal” activity.
3. Whale Activity Detection
When the current volume exceeds n times the average volume (default: 4×), the indicator flags it as a Whale Zone — a potential sign of large player involvement.
Volume surge on a bullish candle → Whale Buy
Volume surge on a bearish candle → Whale Sell
4. Visual Display
🟢 Green bars: Whale buy activity
🔴 Red bars: Whale sell activity
BUY/SELL labels: Appear above the chart when an anomaly is detected
Average line toggle: Users can turn the average volume lines on or off for clarity
5. Alerts
Whenever whale buy/sell signals are detected, real-time alerts are triggered.
Example: 🐋 Whale Buy – NVDA! 🟢
⚙️ Indicator Meaning
Rather than showing raw volume, WAD tracks “abnormal volume relative to the average.”
It filters out noise and highlights the moments where large entities begin to move.
Essentially, it visualizes intentional and impactful trades hidden within standard volume activity.
🚀 Example Use Cases
Whale accumulation tracking – Repeated strong buy signals may indicate sustained institutional accumulation.
Short-term breakout confirmation – Price often rallies shortly after whale buy signals appear.
Support/resistance analysis – Whale sell zones frequently align with short-term resistance areas.
In short:
WAD identifies when trading volume exceeds its historical norm to highlight where big money enters or exits the market.
===============================================================================
🐋 WAD : 세력 매매거래 추적기
WAD(Whale Activity Detector) 는 특정 종목의 거래량 패턴 속에서
‘평균 대비 비정상적으로 큰 거래량이 발생한 구간’을 자동으로 감지해
세력(Whale)의 매수·매도 활동을 시각화하는 지표입니다.
🔍 작동 원리
매수·매도 거래량 분리
각 캔들이 양봉인지, 음봉인지에 따라 거래량을 분리합니다.
양봉 시 발생한 거래량 → 매수 거래량(buy volume)
음봉 시 발생한 거래량 → 매도 거래량(sell volume)
이렇게 분리함으로써 단순 거래량이 아닌,
실제 매수세/매도세의 힘을 구분할 수 있습니다.
평균 거래량 계산
사용자가 지정한 기간(기본 34봉)을 기준으로
매수·매도 거래량의 이동평균선을 각각 계산합니다.
이는 ‘정상적인 거래량 수준’을 판단하는 기준선으로 활용됩니다.
이상치 탐지 (Whale Activity Detection)
현재 거래량이 평균 거래량의 n배(기본 4배)를 초과할 경우,
그 구간을 세력 개입 구간(Whale Zone) 으로 판단합니다.
양봉에서 급증 → 세력 매수 (Whale Buy)
음봉에서 급증 → 세력 매도 (Whale Sell)
시각적 표시
초록색 기둥 : 세력 매수 거래량
빨간색 기둥 : 세력 매도 거래량
라벨 표시 (BUY / SELL) : 이상치 발생 시 차트 상단에 표시
평균선 표시 옵션 : 사용자가 원할 때 평균선을 켜거나 끌 수 있음
알림(Alerts)
세력의 매수·매도 신호가 감지되면,
알림 메시지를 통해 실시간으로 통보받을 수 있습니다.
(예: 🐋 Whale Buy - NVDA! 🟢)
⚙️ 지표의 의미
단순 거래량이 아니라, ‘평균 대비 비정상적 거래량’ 을 추적합니다.
즉, “세력이 본격적으로 움직이기 시작한 구간” 만 걸러내는 지표입니다.
노이즈가 많은 거래량 차트 속에서 의도 있는 거래의 흔적을 포착할 수 있습니다.
🚀 활용 예시
세력 매집 구간 포착 : 큰 매수 시그널이 반복적으로 발생하는 구간은 세력의 누적 매집 가능성을 의미함
단기 급등 신호 확인 : 매수 이상치가 발생한 직후 가격이 급등하는 경우가 많음
지지/저항 분석과 병행 활용 : 세력 매도 구간은 단기 저항으로 작용하는 경향이 있음
copyright @invest_hedgeway
FX Sessions by m_cptForex Intraday Sessions Indicator, config time in UTC-4. Support 4 main sessions, smooth end-to-start candles mode, without gaps if your sessions has config like:
1) 19:00 - 03:00
2) 02:00 - 03:00
3) 03:00 -11:00
No excluded last candles issue on all TFs.
Working on LTF up to 1h TF since its intraday sessions indicator.
Combined Momentum Oscillator (RSI + MFI + StochRSI)Combined Momentum Oscillator (RSI + MFI + StochRSI)
Bitcoin Cycles Halvins/Tops/Bottoms By CrBeThis Script shows you the actual Bitcoin tops and bottoms dates.
Multi-Timeframe Trend TableMulti-Timeframe trending table measures 1H, 4H, 1D, 1W and 1Y price trending in one single view
DayFlow VWAP Relay Forex Majors StrategySummary in one paragraph
DayFlow VWAP Relay is a day-trading strategy for major FX pairs on intraday timeframes, demonstrated on EURUSD 15 minutes. It waits for alignment between a daily anchored VWAP regime check, residual percentiles, and lower-timeframe micro flow before suggesting trades. The originality is the fusion of daily VWAP residual percentiles with a live micro-flow score from 1 minute data to switch between fade and breakout behavior inside the same session. Add it to a clean chart and use the markers and alerts.
Scope and intent
• Markets: Major FX pairs such as EURUSD, GBPUSD, USDJPY, AUDUSD, USDCHF, USDCAD
• Timeframes: One minute to one hour
• Default demo in this publication: EURUSD on 15 minutes
• Purpose: Reduce false starts by acting only when context, location and micro flow agree
• Limits: This is a strategy. Orders are simulated on standard candles only
Originality and usefulness
• Core novelty: Residual percentiles to daily anchored VWAP decide “balanced versus expanding day”. A separate 1 minute micro-flow score confirms direction, so the same model fades extremes in balance and rides range breaks in expansion
• Failure modes addressed: Chop fakeouts and unconfirmed breakouts are filtered by the expansion gate and micro-flow threshold
• Testability: Every input is exposed. Bands, background regime color, and markers show why a suggestion appears
• Portable yardstick: Stops and targets are ATR multiples converted to ticks, which transfer across symbols
• Open source status: No reused third-party code that requires attribution
Method overview in plain language
The day is anchored with a VWAP that updates from the daily session start. Price minus VWAP is the residual. Percentiles of that residual measured over a rolling window define location extremes for the current day. A regime score compares residual volatility to price volatility. When expansion is low, the day is treated as balanced and the model fades residual extremes if 1 minute micro flow points back to VWAP. When expansion is high, the model trades breakouts outside the VWAP bands if slope and micro flow agree with the move.
Base measures
• Range basis: True Range smoothed by ATR for stops and targets, length 14
• Return basis: Not required for signals; residuals are absolute price distance to VWAP
Components
• Daily Anchor VWAP Bands. VWAP with standard-deviation bands. Slope sign is used for trend confirmation on breakouts
• Residual Percentiles. Rolling percentiles of close minus VWAP over Signal length. Identify location extremes inside the day
• Expansion Ratio. Standard deviation of residuals divided by standard deviation of price over Signal length. Classifies balanced versus expanding day
• Micro Flow. Net up minus down closes from 1 minute data across a short span, normalized to −1..+1. Confirms direction and avoids fades against pressure
• Session Window optional. Restricts trading to your configured hours to avoid thin periods
• Cooldown optional. Bars to wait after a position closes to prevent immediate re-entry
Fusion rule
Gating rather than weighting. First choose regime by Expansion Ratio versus the Expansion gate. Inside each regime all listed conditions must be true: location test plus micro-flow threshold plus session window plus cooldown. Breakouts also require VWAP slope alignment.
Signal rule
• Long suggestion on balanced day: residual at or below the lower percentile and micro flow positive above the gate while inside session and cooldown is satisfied
• Short suggestion on balanced day: residual at or above the upper percentile and micro flow negative below the gate while inside session and cooldown is satisfied
• Long suggestion on expanding day: close above the upper VWAP band, VWAP slope positive, micro flow positive, session and cooldown satisfied
• Short suggestion on expanding day: close below the lower VWAP band, VWAP slope negative, micro flow negative, session and cooldown satisfied
• Positions flip on opposite suggestions or exit by brackets
What you will see on the chart
• Markers on suggestion bars: L for long, S for short
• Exit occurs on reverse signal or when a bracket order is filled
• Reference lines: daily anchored VWAP with upper and lower bands
• Optional background: teal for balanced day, orange for expanding day
Inputs with guidance
Setup
• Signal length. Residual and regime window. Typical 40 to 100. Higher smooths, lower reacts faster
Micro Flow
• Micro TF. Lower timeframe used for micro flow, default 1 minute
• Micro span bars. Count of lower-TF bars. Typical 5 to 20
• Micro flow gate 0..1. Minimum absolute flow. Raising it demands stronger confirmation and reduces trade count
VWAP Bands
• VWAP stdev multiplier. Band width. Typical 0.8 to 1.6. Wider bands reduce breakout frequency and increase fade distance
• Expansion gate 0..3. Threshold to switch from fades to breakouts. Raising it favors fades, lowering it favors breakouts
Sessions
• Use session filter. Enable to trade only inside your window
• Trade window UTC. Default 07:00 to 17:00
Risk
• ATR length. Stop and target basis. Typical 10 to 21
• Stop ATR x. Initial stop distance in ATR multiples
• Target ATR x. Profit target distance in ATR multiples
• Cooldown bars after close. Wait bars before a new entry
• Side. Both, long only, or short only
View
• Show VWAP and bands
• Color bars by residual regime
Properties visible in this publication
• Initial capital 10000
• Base currency Default
• request.security uses lookahead off everywhere
• Strategy: Percent of equity with value 3. Pyramiding 0. Commission cash per order 0.0001 USD. Slippage 3 ticks. Process orders on close ON. Bar magnifier ON. Recalculate after order is filled OFF. Calc on every tick OFF. Using standard OHLC fills ON.
Realism and responsible publication
No performance claims. Past results never guarantee future outcomes. Fills and slippage vary by venue. Shapes can move while a bar forms and settle on close. Strategies must run on standard candles for signals and orders.
Honest limitations and failure modes
High impact news, session opens, and thin liquidity can invalidate assumptions. Very quiet days can reduce contrast between residuals and price volatility. Session windows use the chart exchange time. If both stop and target are touched within a single bar, TradingView’s standard OHLC price-movement model decides the outcome.
Expect different behavior on illiquid pairs or during holidays. The model is sensitive to session definitions and feed time. Past results never guarantee future outcomes.
Legal
Education and research only. Not investment advice. You are responsible for your decisions. Test on historical data and in simulation before any live use. Use realistic costs.
Glork-SMA20D
50D
200D
200W
50W
Works on all time frames. Prints to the current candle
Colors are adjustable
Enhanced SMA RibbonThe "Enhanced SMA Ribbon" indicator, implemented in TradingView's Pine Script, is a technical analysis tool that overlays multiple Simple Moving Averages (SMAs) on a price chart to help traders identify trends, potential reversals, and the overall market direction. Here's a detailed explanation of what it does:
What It Does
Calculates Multiple SMAs:
The indicator calculates 13 SMAs with different periods: 5, 6, 8, 10, 15, 20, 30, 50, 75, 100, 150, 200, and 300 bars.
Each SMA is based on the closing price (close) of the chart's data, smoothing out price fluctuations over the specified number of periods to reveal underlying trends.
Creates a Ribbon Effect:
These SMAs are plotted as lines on the chart, forming a "ribbon" where the lines spread out or converge based on the price action.
Shorter-period SMAs (e.g., 5, 6, 8) react quickly to price changes, while longer-period SMAs (e.g., 200, 300) move more slowly, creating a visual gradient of trend strength.
Visualizes Trend Direction:
When the ribbon fans out and all SMAs slope upward (e.g., shorter SMAs above longer ones), it indicates a strong uptrend.
When the ribbon compresses and slopes downward (e.g., shorter SMAs below longer ones), it suggests a downtrend.
A flat or converging ribbon can signal a consolidation phase or potential reversal.
Uses Distinct Colors:
Each SMA is assigned a unique color using RGB values, transitioning from red (short-term, e.g., SMA 5) to gray (long-term, e.g., SMA 300). The colors are:
SMA 5: Red (#FF0000)
SMA 6: OrangeRed (#FF4500)
SMA 8: Orange (#FFA500)
SMA 10: Yellow (#FFFF00)
SMA 15: GreenYellow (#ADFF2F)
SMA 20: Green (#00FF00)
SMA 30: Cyan (#00FFFF)
SMA 50: DodgerBlue (#1E90FF)
SMA 75: Blue (#0000FF)
SMA 100: Purple (#800080)
SMA 150: Magenta (#FF00FF)
SMA 200: DarkTurquoise (#00CED1)
SMA 300: Gray (#808080)
This color gradient helps traders quickly distinguish between short-, medium-, and long-term trends.
Overlays on Price Chart:
The indicator is set to overlay=true, meaning it plots directly on the price chart (e.g., candlesticks or bars) rather than in a separate pane, allowing for direct comparison with price movements.
How Traders Use It
Trend Confirmation: A widening ribbon with upward-sloping SMAs confirms a bullish trend, while a narrowing ribbon with downward-sloping SMAs confirms a bearish trend.
Crossover Signals: Crossovers between shorter and longer SMAs (e.g., SMA 5 crossing SMA 50) can indicate potential buy or sell signals, though this requires additional logic (not included here).
Support and Resistance: Longer SMAs (e.g., 200, 300) often act as dynamic support or resistance levels.
Market Context: The ribbon provides a multi-timeframe view, combining short-term reactions with long-term trends, useful for swing traders or those analyzing market cycles.
Example Behavior
In an uptrend, the price might stay above the ribbon, with shorter SMAs (e.g., 5, 10) leading the upward movement, followed by longer SMAs (e.g., 200, 300) catching up.
In a downtrend, the price might fall below the ribbon, with shorter SMAs dropping first, creating a red-dominated lower section.
During consolidation, the SMAs might bunch together, forming a tight ribbon with minimal slope.
Limitations
The indicator can become cluttered on lower timeframes (e.g., 1-minute charts) due to the number of lines.
It’s a lagging indicator since SMAs are based on past data, so it’s best used with other tools (e.g., RSI, MACD) for confirmation.
ATR %ATR % Oscillator
A simple and effective Average True Range (ATR) indicator displayed as a percentage of the current price in a separate panel.
FEATURES:
• ATR displayed as percentage of current price for easy cross-asset comparison
• EMA smoothing line using the same period as ATR
• Configurable ATR period (default: 20)
• Clean visualization with zero reference line
HOW IT WORKS:
The indicator calculates ATR and converts it to a percentage: (ATR / Close) × 100
This normalization allows you to:
- Compare volatility across different instruments regardless of price
- Identify high and low volatility periods
- Use the EMA line to spot volatility trends
PARAMETERS:
ATR Period - The lookback period for ATR calculation (default: 20)
Timeframe - Choose any timeframe for ATR calculation independently from the chart timeframe (default: chart timeframe)
















