Higher Timeframe TrendMap [BigBeluga]🔵HTF TrendMap
A powerful visual overlay that brings higher timeframe market structure directly onto your intraday chart.
This tool maps directional bias, trend strength, and dynamic range boundaries from a user-selected HTF (like Daily or 4H), offering a real-time confluence layer for scalpers, day traders, and swing traders.
By plotting the evolving average (HL2), it acts as a volatility-weighted trend anchor, allowing you to align lower timeframe entries with higher timeframe intent.
Technical Overview:
At the close of each higher timeframe (HTF) candle, the indicator stores the high, low, and calculates the HL2 midpoint. These values are then referenced on the lower timeframe chart to plot trend direction and price boundaries.
🔵 KEY FEATURES
Maps the selected higher timeframe (HTF) (e.g., Daily) onto your current chart.
At the close of each HTF candle , it starts to calculate and store the highest, lowest, and average (HL2) price levels .
The average (HL2) value is treated as the HTF trend baseline —plotted in orange for uptrend , blue for downtrend .
Visual curve thickens and fades to show progress through the HTF period (stronger color = fresher data).
Horizontal dashed lines show HTF high and low levels that persist until the next period closes.
On every HTF close, two price labels are printed for the high and low levels.
Vertical separators visually mark the start of each HTF candle for easy structural recognition.
A real-time dashboard shows selected HTF, current trend direction (🢁/🢃), and updates dynamically.
🔵 HOW TO USE
Use the HTF average line as a bias filter —only long when the trend is up (orange), short when down (blue).
HTF high/low labels help identify key breakout or rejection zones .
Combine with intraday systems or reversal tools for multi-timeframe confluence setups .
Ideal for scalpers and swing traders who rely on HTF momentum shifts .
🔵 CONCLUSION
HTF TrendMap provides a clean, data-rich layer of higher timeframe context to any chart. With adaptive trend coloring, volatility mapping, and real-time data labeling, it enables traders to stay in sync with macro structure while executing on the micro.
Bands and Channels
Daily ATR Bonanza: Expected Moves - Tr33man Daily ATR Bonanza: Expected Moves
Overview 🤷♂️
The Daily ATR Bonanza script is a powerful trading tool designed to help traders visualize and understand potential price movements using the Average True Range (ATR). It provides daily and weekly ATR levels, historical statistics, and conditional probability analysis to give traders actionable insights. The script also plots the daily Keltner channel. This script is ideal for traders who want to gauge volatility, identify key levels, and make data-driven decisions.
b]Key Features:
📈 1. Daily and Weekly ATR Levels
🔵ATR Levels: The script calculates and displays ATR-based levels for the day and week. These levels are derived from the previous day's or week's close price and are adjusted using customizable multipliers (0.5x, 1x, and 1.5x by default).
🔵You can choose the number of ATR levels (1, 2, or 3) and adjust the multipliers to suit your trading strategy.
🌐 2. ATR Bands (Keltner Channels)
🔵The script includes an option to display ATR Bands, which are volatility-based envelopes around a moving average. These bands help identify overbought and oversold conditions.
🔵You can adjust the ATR multiplier and the length of the moving average used for the bands.
🧮 3. Historical Statistics and Conditional Probability
🔵 Historical Analysis: The script analyzes historical price movements to calculate the likelihood of closing at certain ATR levels.
🔵 Conditional Probability: This feature shows the probability of the price reaching specific ATR levels given the current market conditions. The conditional matches historical data by an open in the same opening ATR bucket, as well as the current price bucket having been visited in the historical case. Conditional probabilities are just statistics, and do not predict anything.
Data Table: 📚
🔵 Historical Close Probability: The percentage of days the price closed within each ATR level.
🔵 Conditional Close Probability: The likelihood of the price closing within each ATR level today.
❓ What is Conditional Probability? ❓
Conditional probability is a statistical measure that calculates the likelihood of an event occurring given that another event has already occurred. In this script, it is used to determine the probability of the price reaching specific ATR levels based on the current opening range as well as current ATR distance from the previous close.
For example:
If the market opens near the lower end of the first ATR level, the script calculates the likelihood of the price reaching the upper end of the first, second, or third ATR level.
This analysis is based on historical data, making it a powerful tool for understanding potential price movements.
🌟 Understanding the Levels
🔵Daily Levels: These are based on the previous day's close price and ATR. They are updated at the start of each new day.
🔵Weekly Levels: These are based on the previous week's close price and ATR. They are updated at the start of each new week.
🔵ATR Bands: These are dynamic levels that adjust with market volatility.
🔬 Analyze the Statistics (Daily only for now, no weekly yet)
🔵Use the interactive table to understand historical probabilities and conditional probabilities.
🔵Focus on the current opening range and the likelihood of reaching specific levels.
🧠 Make Trading Decisions
🔵Use the ATR levels and bands to identify key support and resistance levels.
🔵Use the conditional probability table to gauge the likelihood of reaching specific targets.
🔵Adjust your strategy based on the historical performance of the market.
Example Use Cases
1. Day Trading
Use the daily ATR levels to set intraday targets and stop-loss levels.
Monitor the conditional probability table to adjust your expectations based on the opening range.
2. Swing Trading
Use the weekly ATR levels to identify longer-term support and resistance levels.
3. Scalping
Use the ATR bands to identify overbought and oversold conditions.
Use the conditional probability table to quickly assess the likelihood of price movements.
Support/Resistance Breakout DetectorThis indicator automatically detects and plots dynamic support and resistance levels using pivot highs and lows.
✅ It draws red resistance lines and blue support lines,
✅ The lines extend forward but automatically stop when the price touches them,
✅ It monitors for breakouts with strong volume,
✅ When a breakout happens, it shows labels like “B” or “Bull Wick” / “Bear Wick” on the chart,
✅ It also triggers alerts when support or resistance breaks with high volume.
Main settings:
Pivot lookback period
Show/hide breakout labels
Minimum volume for breakout
Maximum extension length for lines
This tool helps traders easily spot key price levels and watch for meaningful breakouts.
DECODE Multi SMA EMANo need to keep reconfiguring your moving averages. Set up to 10 moving averages, 5 x SMA and 5 x EMA, and optionally apply coloured shading between pairs. Once it's set up, just turn them on or off as needed!
ES/MES Hybrid VWAP + Confluence Strategy📋 Confluence Conditions (8 total):
Price above/below VWAP
EMA 21 > EMA 55 (or inverse)
MACD histogram momentum
Stoch RSI bounce/drop
Price near VWAP bounce (from your original logic)
Opening Range rejection
Candle strength (body % > 60%)
Volume spike
➡️ A signal triggers if 5 or more are true on the same bar.
AL-SAT Sinyali (Dip AL + Heikin Ashi)Buy: Combines RSI, MACD, volume, and trend signals
Sell: RSI>70 + MACD cross down
Target: Auto 10% line, profit shown
Dip Buy: RSI<30 + dip zone + HA bullish
Note: Use with context; HA may delay signals.
Global M2 by Colin Talks Crypto // Days Offset =// This Pine Script® code is subject to the terms of the Mozilla Public License
//@version=6
indicator(title = "Global M2 10-Week Lead (for bitcoin)", shorttitle = 'Global M2', overlay=true, scale=scale.left)
// Slide weeks input (in weeks)
slide_weeks = input.int(defval=10, title="Slide Weeks Forward", minval=0, maxval=52, tooltip="Number of weeks to slide the indicator forward")
// Enable settings for each country's M2
usa_active = input(true, title = "USM2 (USA Money Supply)")
europe_active = input(true, title = "EUM2 (Eurozone Money Supply)")
china_active = input(true, title = "CNM2 (China Money Supply)")
japan_active = input(true, title = "JPM2 (Japan Money Supply)")
uk_active = input(true, title = "UKM2 (United Kingdom Money Supply)")
canada_active = input(true, title = "CAM2 (Canada Money Supply)")
australia_active = input(true, title = "AUM3 (Australia Money Supply)")
india_active = input(true, title = "INM2 (India Money Supply)")
korea_active = input(true, title = "KRM2 (South Korea Money Supply)")
brazil_active = input(true, title = "BRM2 (Brazil Money Supply)")
russia_active = input(true, title = "RUM2 (Russia Money Supply)")
switzerland_active = input(true, title = "CHM2 (Switzerland Money Supply)")
mexico_active = input(true, title = "MXM2 (Mexico Money Supply)")
indonesia_active = input(true, title = "IDM2 (Indonesia Money Supply)")
turkey_active = input(true, title = "TRM2 (Turkey Money Supply)")
saudi_active = input(true, title = "SAM2 (Saudi Arabia Money Supply)")
argentina_active = input(true, title = "ARM2 (Argentina Money Supply)")
southafrica_active = input(true, title = "ZAM2 (South Africa Money Supply)")
// Daily timeframe for economic data
tf = "D"
// Get M2 data for each country and convert to USD
us_m2 = usa_active ? request.security("ECONOMICS:USM2", tf, close) : 0
eu_m2 = europe_active ? request.security("ECONOMICS:EUM2", tf, close) * request.security("FX_IDC:EURUSD", tf, close) : 0
china_m2 = china_active ? request.security("ECONOMICS:CNM2", tf, close) * request.security("FX_IDC:CNYUSD", tf, close) : 0
japan_m2 = japan_active ? request.security("ECONOMICS:JPM2", tf, close) * request.security("FX_IDC:JPYUSD", tf, close) : 0
uk_m2 = uk_active ? request.security("ECONOMICS:GBM2", tf, close) * request.security("FX_IDC:GBPUSD", tf, close) : 0
canada_m2 = canada_active ? request.security("ECONOMICS:CAM2", tf, close) * request.security("FX_IDC:CADUSD", tf, close) : 0
australia_m2 = australia_active ? request.security("ECONOMICS:AUM3", tf, close) * request.security("FX_IDC:AUDUSD", tf, close) : 0
india_m2 = india_active ? request.security("ECONOMICS:INM2", tf, close) * request.security("FX_IDC:INRUSD", tf, close) : 0
korea_m2 = korea_active ? request.security("ECONOMICS:KRM2", tf, close) * request.security("FX_IDC:KRWUSD", tf, close) : 0
brazil_m2 = brazil_active ? request.security("ECONOMICS:BRM2", tf, close) * request.security("FX_IDC:BRLUSD", tf, close) : 0
russia_m2 = russia_active ? request.security("ECONOMICS:RUM2", tf, close) * request.security("FX_IDC:RUBUSD", tf, close) : 0
switzerland_m2 = switzerland_active ? request.security("ECONOMICS:CHM2", tf, close) * request.security("FX_IDC:CHFUSD", tf, close) : 0
mexico_m2 = mexico_active ? request.security("ECONOMICS:MXM2", tf, close) * request.security("FX_IDC:MXNUSD", tf, close) : 0
indonesia_m2 = indonesia_active ? request.security("ECONOMICS:IDM2", tf, close) * request.security("FX_IDC:IDRUSD", tf, close) : 0
turkey_m2 = turkey_active ? request.security("ECONOMICS:TRM2", tf, close) * request.security("FX_IDC:TRYUSD", tf, close) : 0
saudi_m2 = saudi_active ? request.security("ECONOMICS:SAM2", tf, close) * request.security("FX_IDC:SARUSD", tf, close) : 0
argentina_m2 = argentina_active ? request.security("ECONOMICS:ARM2", tf, close) * request.security("FX_IDC:ARSUSD", tf, close) : 0
southafrica_m2 = southafrica_active ? request.security("ECONOMICS:ZAM2", tf, close) * request.security("FX_IDC:ZARUSD", tf, close) : 0
// Calculate total liquidity (In Trillions USD)
total = (us_m2 + eu_m2 + china_m2 + japan_m2 + uk_m2 + canada_m2 + australia_m2 + india_m2 + korea_m2 + brazil_m2 + russia_m2 + switzerland_m2 + mexico_m2 + indonesia_m2 +
turkey_m2 + saudi_m2 + argentina_m2 + southafrica_m2) / 1000000000000
// Calculate minutes per bar based on timeframe
var float minutes_per_bar = 0
if timeframe.isminutes
minutes_per_bar := timeframe.multiplier * 1
else if timeframe.isdaily
minutes_per_bar := timeframe.multiplier * 1440 // 1440 minutes = 1 day
else if timeframe.isweekly
minutes_per_bar := timeframe.multiplier * 10080 // 10080 minutes = 1 week
else if timeframe.ismonthly
minutes_per_bar := timeframe.multiplier * 43200 // 43200 minutes ≈ 1 month (30 days)
// Convert weeks to bars: (weeks * days/week * minutes/day) / minutes_per_bar
bars_offset = math.round(slide_weeks * 7 * 1440 / minutes_per_bar)
// Plot total liquidity with dynamic offset
plot(total, offset=bars_offset, color=color.blue, linewidth=2)
Elliott Waves Auto (Waves 1–3)//@version=5
indicator("Elliott Waves Auto (Waves 1–3)", overlay=true)
pivotLen = input.int(5, "Pivot Lookback", minval=1)
// === كشف القمم والقيعان ===
ph = ta.pivothigh(high, pivotLen, pivotLen)
pl = ta.pivotlow(low, pivotLen, pivotLen)
var float wave1Low = na
var float wave1High = na
var float wave2Low = na
var float wave3High = na
var int wave1LowBar = na
var int wave1HighBar = na
var int wave2LowBar = na
var int wave3HighBar = na
// === اكتشاف موجة 1 ===
if pl and na(wave1Low)
wave1Low := low
wave1LowBar := bar_index - pivotLen
if ph and not na(wave1Low) and na(wave1High)
wave1High := high
wave1HighBar := bar_index - pivotLen
// === اكتشاف موجة 2 ===
if pl and not na(wave1High) and na(wave2Low)
wave2Low := low
wave2LowBar := bar_index - pivotLen
// === اكتشاف موجة 3 ===
if ph and not na(wave2Low) and na(wave3High)
possibleWave3 = high
if possibleWave3 > wave1High
wave3High := possibleWave3
wave3HighBar := bar_index - pivotLen
// === رسم الموجات ===
if not na(wave1Low) and not na(wave1High)
line.new(wave1LowBar, wave1Low, wave1HighBar, wave1High, color=color.blue, width=2)
label.new(wave1LowBar, wave1Low, text="Wave 1", style=label.style_label_up, color=color.blue, textcolor=color.white)
if not na(wave1High) and not na(wave2Low)
line.new(wave1HighBar, wave1High, wave2LowBar, wave2Low, color=color.orange, width=2)
label.new(wave2LowBar, wave2Low, text="Wave 2", style=label.style_label_down, color=color.orange, textcolor=color.white)
if not na(wave2Low) and not na(wave3High)
line.new(wave2LowBar, wave2Low, wave3HighBar, wave3High, color=color.green, width=2)
label.new(wave3HighBar, wave3High, text="Wave 3", style=label.style_label_up, color=color.green, textcolor=color.white)
External Signals Strategy Tester v5External Signals Strategy Tester v5 – User Guide (English)
1. Purpose
This Pine Script strategy is a universal back‑tester that lets you plug in any external buy/sell series (for example, another indicator, webhook feed, or higher‑time‑frame condition) and evaluate a rich set of money‑management rules around it – with a single click on/off workflow for every module.
2. Core Workflow
Feed signals
Buy Signal / Sell Signal inputs accept any series (price, boolean, output of request.security(), etc.).
A crossover above 0 is treated as “signal fired”.
Date filter
Start Date / End Date restricts the test window so you can exclude unwanted history.
Trade engine
Optional Long / Short enable toggles.
Choose whether opposite signals simply close the trade or reverse it (flip direction in one transaction).
Risk modules – all opt‑in via check‑boxes
Classic % block – fixed % Take‑Profit / Stop‑Loss / Break‑Even.
Fibonacci Bollinger Bands (FBB) module
Draws dynamic VWMA/HMA/SMA/EMA/DEMA/TEMA mid‑line with ATR‑scaled Fibonacci envelopes.
Every line can be used for stops, trailing, or multi‑target exits.
Separate LONG and SHORT sub‑modules
Each has its own SL plus three Take‑Profits (TP1‑TP3).
Per TP you set line, position‑percentage to close, and an optional trailing flag.
Executed TP/SLs deactivate themselves so they cannot refire.
Trailing behaviour
If Trail is checked, the selected line is re‑evaluated once per bar; the order is amended via strategy.exit().
3. Inputs Overview
Group Parameter Notes
Trade Settings Enable Long / Enable Short Master switches
Close on Opposite / Reverse Position How to react to a counter‑signal
Risk % Use TP / SL / BE + their % Traditional fixed‑distance management
Fibo Bands FIBO LEVELS ENABLE + visual style/length Turn indicator overlay on/off
FBB LONG SL / TP1‑TP3 Enable, Line, %, Trail Rules applied only while a long is open
FBB SHORT SL / TP1‑TP3 Enable, Line, %, Trail Rules applied only while a short is open
Line choices: Basis, 0.236, 0.382, 0.5, 0.618, 0.764, 1.0 – long rules use lower bands, short rules use upper bands automatically.
4. Algorithm Details
Position open
On the very first bar after entry, the script checks the direction and activates the corresponding LONG or SHORT module, deactivating the other.
Order management loop (every bar)
FBB Stop‑Loss: placed/updated at chosen band; if trailing, follows the new value.
TP1‑TP3: each active target updates its limit price to the selected band (or holds static if trailing is off).
The classic % block runs in parallel; its exits have priority because they call strategy.close_all().
Exit handling
When any strategy.exit() fires, the script reads exit_id and flips the *_Active flag so that order will not be recreated.
A Stop‑Loss (SL) also disables all remaining TPs for that leg.
5. Typical Use Cases
Scenario Suggested Setup
Scalping longs into VWAP‐reversion Enable LONG TP1 @ 0.382 (30 %), TP2 @ 0.618 (40 %), SL @ 0.236 + trailing
Fade shorts during news spikes Enable SHORT SL @ 1.0 (no trail) and SHORT TP1,2,3 on consecutive lowers with small size‑outs
Classic trend‑follow Use only classic % TP/SL block and disable FBB modules
6. Hints & Tips
Signal quality matters – this script manages exits, it does not generate entries.
Keep TV time zone in mind when picking start/end dates.
For portfolio‑style testing allocate smaller default_qty_value than 100 % or use strategy.percent_of_equity sizing.
You can combine FBB exits with fixed‑% ones for layered management.
7. Limitations / Safety
No pyramiding; the script holds max one position at a time.
All calculations are bar‑close; intra‑bar touches may differ from real‑time execution.
The indicator overlay is optional, so you can run visual‑clean tests by unchecking FIBO LEVELS ENABLE.
Ultimate Crossover Indicator (Tablolu & Bar Hizalı)Komut dosyası tüm geçerli indikatörleri orta ve kısa vade için toplu olarak grafik üzerinde gösteriyor. tablo üzerinde çizgi açıklamaları var. İnceleyip kullanabilirsiniz. :)
Ultimate Crossover Indicator (EMA, MACD, RSI, QQE, ATR)
📌 This indicator analyzes trend direction and momentum crossovers to generate the most reliable buy and sell signals.
✅ A live indicator panel is displayed at the top center of the chart showing real-time EMA, MACD, RSI, QQE, and ATR values.
✅ Indicators are aligned with price levels for better readability and accuracy.
✅ MACD and QQE crossovers confirm trend reversals with greater precision.
✅ RSI identifies overbought and oversold conditions to filter out false signals.
✅ ATR measures volatility, helping set safer stop-loss levels.
💡 Optimized for minute and hourly charts! This is a perfect tool for traders looking to enhance their market analysis on TradingView.
🚀 Use this indicator on TradingView to identify buy and sell opportunities more clearly! 📊
✅ This description is ready for publishing! Let me know if you need any refinements. 🚀😃
Algoguy Toolkit [CuriousB]modified QuantVue GMMA Toolkit to change the moving average bands for Algoguy specs for Scott's Zone Traders Algoguy
bands are:
short term: 7-14 ema in 1 step increments
long term: 30-60 ema in 2 step increments
the oscillator shows:
trend strength in the distance away from the 0 line
compression or short term, long term and both indicating market consolidation possibly affecting reversal or continuation
band cross over
buy and sell signals
UltraAlgoguy Toolkit [CuriousB]modified QuantVue GMMA Toolkit to change the moving average bands for UltraGuppy specs for Scott's Zone Traders Algoguy++ (courtesy Anthony Algoguy's updated specs)
bands are:
short term: 10-120 ema in 2 step increments
long term: 150-300 ema in 2 step increments
the oscillator shows:
trend strength in the distance away from the 0 line
compression or short term, long term and both indicating market consolidation possibly affecting reversal or continuation
band cross over
buy and sell signals
XAUUSD Strategy with Visual DivergenceThis strategy is designed to capture high-probability trend-continuation trades on XAUUSD (Gold/US Dollar) by combining trend-following logic with momentum-based divergence detection. It uses the 200-period Exponential Moving Average (EMA) to filter for the prevailing trend and the Relative Strength Index (RSI) to identify bullish and bearish divergences as early entry signals. The strategy incorporates a risk-reward profile of 2:1, making it suitable for both swing and intra-day traders.
BBands Channels with EMAs# **BBands Channels with EMAs Indicator Explanation**
---
## **📌 Feature Overview**
### **1. Bollinger Bands**
- **Basis Line**: 160-period SMA (adjustable)
- **Inner Bands**:
- **Upper**: Basis + 2× Standard Deviation
- **Lower**: Basis - 2× Standard Deviation
- **Outer Bands**:
- **Upper Top**: Basis + 3× Standard Deviation
- **Lower Low**: Basis - 3× Standard Deviation
- **Fill Effect**: Semi-transparent black fill between inner and outer bands
### **2. Exponential Moving Averages (EMAs)**
| Period | Purpose | Line Style |
|--------------|-----------------------------|------------------|
| **EMA 27** | Short-term trend | Thin line |
| **EMA 120** | Short-to-medium-term trend | Medium line |
| **EMA 200** | Medium-term trend | Medium line |
| **EMA 1120** | Ultra-long-term trend | Thick line |
---
## **⚙️ Parameter Settings**
### **Bollinger Bands**
| Parameter | Default | Description |
|---------------|---------|--------------------------------------|
| `length` | 160 | SMA calculation period |
| `mult` | 2.0 | Standard deviation multiplier (inner bands) |
| `multOuter` | 3.0 | Standard deviation multiplier (outer bands) |
| `offset` | 0 | Time offset for plots (±500 bars) |
### **Exponential Moving Averages (EMAs)**
| Parameter | Default | Description |
|-----------------|---------|---------------------------|
| `ema1Length` | 27 | EMA 1 period |
| `ema2Length` | 120 | EMA 2 period |
| `ema3Length` | 200 | EMA 3 period |
| `ema4Length` | 1120 | EMA 4 period |
---
## **📊 Use Cases**
### **1. Trend Confirmation**
- **Bullish Trend**: Price above EMA200 + Bollinger Band expansion
- **Bearish Trend**: Price below EMA200 + Bollinger Band expansion
### **2. Overbought/Oversold Signals**
- **Upper Band Touch**: Price reaches Upper Top → Potential overbought
- **Lower Band Touch**: Price reaches Lower Low → Potential oversold
### **3. Volatility Strategies**
- **Band Squeeze**: Narrowing gap between bands → Breakout warning
- **Band Expansion**: Price breaks outer band → Trend acceleration
---
**✅ Summary**
This indicator combines **Bollinger Bands + Multi-period EMAs** for:
- Trend tracking
- Volatility analysis
- Multi-timeframe strategies
---
# **BBands Channels with EMAs 指標說明**
---
## **📌 功能概述**
### **1. 布林通道 (Bollinger Bands)**
- **基礎線 (Basis Line)**: 160週期SMA(可調整)
- **內通道 (Inner Bands)**:
- 上軌 (Upper): 基礎線 + 2倍標準差
- 下軌 (Lower): 基礎線 - 2倍標準差
- **外通道 (Outer Bands)**:
- 上外軌 (Upper Top): 基礎線 + 3倍標準差
- 下外軌 (Lower Low): 基礎線 - 3倍標準差
- **填充效果**: 內外通道間半透明黑色填充
### **2. 指數移動平均線 (EMAs)**
| 週期 | 用途 | 線條樣式 |
|-------------|-------------------|-----------------|
| **EMA 27** | 短期趨勢 | 細線 |
| **EMA 120** | 中短期趨勢 | 中等線 |
| **EMA 200** | 中期趨勢 | 中等線 |
| **EMA 1120**| 超長期趨勢 | 粗線 |
---
## **⚙️ 參數設定**
### **布林通道 (Bollinger Bands)**
| 參數名 | 預設值 | 說明 |
|-------------|--------|---------------------------|
| `length` | 160 | SMA計算週期 |
| `mult` | 2.0 | 內通道標準差倍數 |
| `multOuter` | 3.0 | 外通道標準差倍數 |
| `offset` | 0 | 線圖時間偏移(±500根K棒) |
### **指數移動平均線 (EMAs)**
| 參數名 | 預設值 | 說明 |
|----------------|---------|-------------------|
| `ema1Length` | 27 | 第一條EMA週期 |
| `ema2Length` | 120 | 第二條EMA週期 |
| `ema3Length` | 200 | 第三條EMA週期 |
| `ema4Length` | 1120 | 第四條EMA週期 |
---
## **📊 應用場景**
### **1. 趨勢確認**
- **多頭趨勢**: 價格在EMA200上方 + 布林通道擴張
- **空頭趨勢**: 價格在EMA200下方 + 布林通道擴張
### **2. 超買超賣信號**
- **觸及外軌**: 價格觸碰Upper Top → 可能超買
- **觸及下軌**: 價格觸碰Lower Low → 可能超賣
### **3. 波動率策略**
- **通道收窄**: 內外通道間距縮小 → 突破預警
- **通道擴張**: 價格突破外軌 → 趨勢加速
---
**✅ 總結**
本指標透過**布林通道+多週期EMA**的組合,適用於:
- 趨勢跟蹤
- 波動率分析
- 多時間框架策略
ES/MES 70% Confluence Strategy (9-Factor)✅ Included Features:
Entry signal only when 7 out of 9 indicators confirm (70%+ confluence)
15-minute Opening Range box from 9:30–9:45am ET, drawn clearly
VWAP + EMA 8/21/55 plotted for context
Risk/Reward box (5-point risk, 1:1 reward)
Stepwise trailing stop that moves every 5 points of profit
Buy/Sell alerts and debug labels to help you fine-tune
🧠 9 Indicators Used in Signal Score:
✅ EMA trend stack: 8 > 21 > 55
✅ Price above/below VWAP
✅ MACD Histogram momentum
✅ Stochastic RSI reversal
✅ Candle body > 60% of total range
✅ Volume > 20-bar average
✅ ATR rising
✅ Rejection of OR high/low
✅ Pullback near EMA 21 or VWAP (within 1 point)
Bollinger Band Squeeze (5%)This identifies and highlights, within the Bollinger Bands, a squeeze of 5% or less.
Thank you Chat GPT
200 Trading Day High Volume//@version=5
indicator("200 Trading Day High Volume", overlay=true)
// Define lookback period (200 trading days)
lookback = 200
// Get highest volume in the last 200 bars (excluding current bar)
highest_vol = ta.highest(volume , lookback)
// Check if today's volume is higher than the previous 200 days
is_highest_today = volume > highest_vol
// Plot signal on chart below the bar when today's volume is the highest in 200 days
plotshape(is_highest_today, title="Highest Volume in 200 Days", location=location.belowbar, color=color.red, style=shape.labelup, text="200D High Vol")
// Optional: Display volume on chart as columns (uncomment if needed)
// plot(volume, title="Volume", color=color.gray, style=plot.style_columns)
Moving Average with Proximity ColorThis plots the 5 SMA and changes color based on the following:
Default: Orange
Price close to SMA by Percent: Green
SMA flattening based on threshold: Red
Zero Lag Trend Signals (MTF) + Sideways FilterThis script is a custom indicator for TradingView that combines two major components: the **Zero Lag Trend** (with MTF support) and a **Sideways Market Filter**. Let me break down the key features and functions of the script:
### Key Components:
1. **Zero Lag Trend Signals**:
- **Zero Lag Trend (ZLEMA)**: A smoothed moving average designed to minimize lag and give faster responses to price movements. This is used to determine the trend.
- **Trend Bands**: Upper and lower bands are derived from the ZLEMA value and adjusted by volatility (calculated using Average True Range or ATR).
- **Trend Direction**: The trend direction is determined by whether the price crosses over the upper or lower band of the ZLEMA, indicating bullish or bearish trends.
2. **Sideways Market Filter**:
- **RSI (Relative Strength Index)**: Measures the speed and change of price movements. It's used here to identify neutral or sideways market conditions when RSI is between 40 and 60.
- **ADX (Average Directional Index)**: Measures the strength of a trend. The script considers a sideways market when ADX is less than 25 and both DI+ and DI- are low.
- **Sideways Market Condition**: A sideways market is defined when the RSI is in the range of 40 to 60 and the ADX is below 25, indicating weak trends.
### Main Features:
1. **Sideways Market Indicators**:
- **Sideways Circles**: When the market is identified as "sideways" based on RSI and ADX conditions, a small circle is plotted either above or below the bars on the chart. The user can adjust the color of the circles via the indicator settings.
- **Sideways Market Filter**: This filter helps to determine when to stay out of trend-based signals, and its detection is visually marked by the circles.
2. **Zero Lag Trend (ZLEMA) Plot**:
- **ZLEMA**: The Zero Lag Exponential Moving Average is plotted as a baseline, and the direction of the trend is indicated by color changes. Green is used for bullish trends, and red is used for bearish trends.
- **Trend Bands**: The script calculates upper and lower bands around the ZLEMA using volatility, and these bands help identify areas of potential trend reversal.
3. **Trend Plotting**:
- **Trend Arrows**: When the trend crosses from bullish to bearish or vice versa, the script plots arrows ("▲" for bullish and "▼" for bearish) above or below the bars on the chart to indicate the signal.
- **Trend Entry Points**: Small arrows are plotted when an entry point is detected for a long (bullish) or short (bearish) position.
4. **Multi-Timeframe (MTF) Trend Signals**:
- The script includes multi-timeframe (MTF) analysis by checking the trend on different timeframes (5m, 15m, 60m, 240m, and 1D).
- A **data table** is displayed on the chart showing the trend status for each of these timeframes (Bullish or Bearish), helping the trader visualize the trend across multiple timeframes.
5. **Alerts**:
- **Alert Conditions**: Alerts are triggered when specific conditions are met, such as:
- Bullish or bearish trend crossover.
- Zero Lag Trend crossing the price.
- Trend change signals on any of the timeframes.
- Alerts for bullish and bearish entry signals based on the trend.
### Inputs for Customization:
- **Zero Lag Trend Parameters**: Length, multiplier for the band, and timeframes for MTF analysis (t1, t2, t3, t4, t5).
- **Color Customization**: Colors for bullish and bearish trends, as well as the fill colors for the bands and the sideways market circles.
- **Sideways Market Filter Parameters**: RSI length, ADX length, and options for showing sideways market circles.
- **Circle Customization**: You can adjust the size, color, and location (above or below bars) of the sideways market circles.
### Summary:
This indicator is a sophisticated tool that combines the **Zero Lag Trend** and **Sideways Market Filter** to help traders:
- Identify strong trends (bullish or bearish) using the ZLEMA and volatility bands.
- Stay out of choppy or sideways markets using the RSI and ADX filter.
- Make trading decisions based on trend confirmation across multiple timeframes (MTF).
- Customize the visual appearance, including color schemes, circle size, and alert conditions.
This script is perfect for traders who want to focus on trading trends while avoiding market conditions that are not conducive to strong directional moves.
Major Trading SessionsThis script displays the trading sessions of the 3 markets that are relevant in crypto. US, UK, and Tokyo.
VWAP table with color
## 📊 VWAP Table with Color – Clear VWAP Deviation at a Glance
This script displays a **VWAP (Volume-Weighted Average Price)** table in a non-intrusive, color-coded panel on your chart. It helps you **quickly assess where the current price stands relative to VWAP**, classified into sigma bands (standard deviations). The goal is to provide valuable VWAP insight **without cluttering the chart with multiple lines**.
---
### 🔍 Purpose & Concept
VWAP is a powerful tool used by institutional traders to measure the average price an asset has traded at throughout the day, based on both volume and price.
In this script:
- We **do not plot traditional VWAP lines** with multiple ±1σ, ±2σ, etc., on the chart.
- Instead, we **summarize VWAP and its relative position in a table**, color-coded by deviation.
- This provides the **same information**, but in a **cleaner, minimal, and visually digestible format**.
---
### 🧠 VWAP Deviation Classification
The script calculates how far the current price is from the VWAP, in units of **standard deviation (σ)**.
The formula is:
```plaintext
VWAP Delta σ = (Current Price - VWAP) / Standard Deviation
```
This gives you a normalized value for deviation from VWAP, and it is **clamped between -3 and +3** to avoid extreme outliers.
Each range is color-coded and classified as:
| VWAP Δσ | Zone | Interpretation | Color |
|---------|---------------|------------------------------------------|--------------|
| -3σ | Far Below | Strongly below VWAP – potentially oversold | 🔴 Red |
| -2σ | Below | Below VWAP – bearish territory | 🟠 Orange |
| -1σ | Slightly Below| Slightly under VWAP – weak signal | 🟡 Yellow |
| 0σ | At VWAP | Price is around VWAP – neutral zone | ⚪ Gray |
| +1σ | Slightly Above| Slightly above VWAP – weak bullish | 🟢 Lime Green |
| +2σ | Above | Above VWAP – bullish signal | 🟢 Green |
| +3σ | Far Above | Strongly above VWAP – potentially overbought | 🟦 Teal |
This **compact summary in the table** provides a clear situational view while keeping the chart clean.
---
### ⚙️ User Customization
Users can configure:
- **VWAP σ Multiplier** (default 0.1) to set the width of the optional VWAP band on the chart.
- **Table Position** (Top Center, Bottom Right, etc.).
- **Text Size** and **Text Color**.
- **Hide VWAP logic**: VWAP data can be hidden automatically on higher timeframes (e.g., daily or weekly).
- **Enable/disable the VWAP ±σ band lines** (optional visual aid).
---
### 📐 Technical Highlights
- VWAP is recalculated each day using `ta.vwap(hlc3, isNewPeriod, 1)`.
- The band width uses standard deviation and the selected multiplier: `VWAP ± σ * multiplier`.
- Table updates dynamically with the new VWAP values each day.
- To **avoid floating-point rounding issues**, `vwapDelta` is rounded before comparison, ensuring correct background color display.
---
### ✅ Why Use This?
- Keeps your chart **visually clean and readable**.
- Gives **immediate context** to current price action relative to VWAP.
- Helps **discretionary traders** or **scalpers** decide whether price is stretched too far from the mean.
- Easier than tracking multiple σ bands manually.
---
### Example Usage:
- On intraday timeframes, you can identify price exhaustion as it hits ±2σ or ±3σ.
- On a 5-minute chart, if price touches `+3σ`, you may consider taking profits on longs.
- On reversal setups, watch for price at `-3σ` with bullish divergence.
---
### 🧩 Future Enhancements (Optional Ideas)
- Add alerts for when `vwapDelta` crosses thresholds like ±2σ or ±3σ.
- Let user select the timeframe for VWAP source (e.g., 1H, 5M, etc.).
- Extend to display VWAP on session or weekly basis.
---
Let me know if you want a version of this script formatted and cleaned up for direct TradingView publication (with annotations, credits, and formatting). Would you like that?
Comercial Trader -Vol. Desvio PadrãoScript criado para fazer a distribuição de volatilidade do ativo pelo desvio padrão