Futubull VWAPTo apply Futubull’s VWAP (Volume Weighted Average Price) indicator to TradingView, the key is to understand Futubull’s VWAP calculation logic and features, then replicate them using TradingView’s Pine Script language. Below are detailed steps and methods, incorporating the provided context and prior discussions, to help you create a custom VWAP indicator in TradingView that mirrors Futubull’s functionality. The script will be tailored for day trading CIEN (Ciena Corporation) on September 4, 2025, during pre-market (Hong Kong time 11:25 PM, equivalent to US Eastern Time 11:25 AM), leveraging its earnings-driven breakout ($115.50, +21.81%).
Indicadores e estratégias
均线趋势过滤器 (MA_trend Signal/Noise Filter)双语简介
中文:
这款指标是一个基于“信噪比”思想的终极趋势过滤器。它通过比较快速和慢速EMA均线之间的差值(即信号)与ATR(平均真实波幅,代表噪音)来判断市场趋势。只有当信号的强度超过噪音的指定倍数时,才会确认趋势的有效性。该指标可帮助交易者过滤掉噪音,精确捕捉强势趋势,避免误操作。
English:
This indicator is the Ultimate Trend Filter based on the Signal-to-Noise ratio concept. It compares the difference between the fast and slow EMA (Signal) to the ATR (Noise) to determine market trends. A trend is confirmed only when the signal strength exceeds the noise by a specified multiplier. This indicator helps traders filter out noise and accurately capture strong trends, avoiding false signals.
Day And Week SeparatorA day separator plots a vertical line at the beginning of each new trading day. This is useful for identifying daily trading sessions and resetting your perspective on price movements. It can help you spot key reversal points or breakouts that often occur at the start of a new session.
VWAP + Bollinger Bands VWAP + Bollinger Bands (TanTechTrades™)
This indicator combines VWAP (Volume Weighted Average Price) with Bollinger Bands to provide a hybrid view of price action, volume, and volatility.
🔹 VWAP Features
Customizable anchor period (Session, Week, Month, Quarter, Year, etc.)
Option to hide VWAP automatically on daily or higher timeframes
Up to 3 configurable VWAP bands with multipliers
Bands can be calculated using Standard Deviation or Percentage
🔹 Bollinger Bands Features
Adjustable period length and source
Multiple moving average types (SMA, EMA, RMA, WMA, VWMA)
Customizable standard deviation multiplier
Configurable offset for advanced alignment
🔹 Visuals
Central VWAP line with optional surrounding bands
Bollinger Bands with customizable fills
Color-coded regions to highlight volatility expansions and contractions
This tool is designed for traders who want to see how VWAP reacts alongside volatility envelopes, making it easier to identify areas of liquidity, support/resistance, and potential breakouts or reversals.
⚠️ Disclaimer: This script is for educational purposes only. It is not financial advice.
Chaikin Money Flow w/ FillA regular CMF indicator, just with a green/red filling when above/below the zero line.
Minute speciale universale (3,11,17,29,41,47,53,59)//@version=5
indicator("Minute speciale universale (3,11,17,29,41,47,53,59)", overlay=true, max_labels_count=500)
// lista de minute speciale
var int specials = array.from(3, 11, 17, 29, 41, 47, 53, 59)
// minutul de start al barei (0..59)
mStart = minute(time)
// durata barei (secunde) -> minute
secInBar = timeframe.in_seconds(timeframe.period)
isIntraday = timeframe.isintraday
minutesInBar = (isIntraday and not na(secInBar)) ? math.max(1, int(math.ceil(secInBar / 60.0))) : 0
// caută dacă vreo valoare din `specials` cade în intervalul barei
bool hit = false
var int first = na
if minutesInBar > 0
for i = 0 to array.size(specials) - 1
s = array.get(specials, i)
delta = (s - mStart + 60) % 60
if delta < minutesInBar
hit := true
if na(first)
first := s
// etichetă (o singură linie ca să evităm parse issues)
if hit
label.new(bar_index, high, str.tostring(first), xloc=xloc.bar_index, yloc=yloc.abovebar, style=label.style_label_up, color=color.black, textcolor=color.white, size=size.tiny)
ST Fractals With Percentage DifferenceThis indicator identifies Williams Fractals on your price chart, helping traders spot potential reversal points and short-term highs and lows. This changes default value to 1 and adds percentage difference similar to ST Fractals option on MT5
How It Works:
Up Fractals (▲): Plotted above a candle that is higher than its surrounding candles — a potential short-term top.
Down Fractals (▼): Plotted below a candle that is lower than its surrounding candles — a potential short-term bottom.
Fractals are only drawn if the price difference from the next candle exceeds a minimum percentage, to avoid signals caused by small fluctuations.
The script ensures that both up and down fractals never appear on the same candle, keeping your chart clear.
Settings:
Periods (n): Determines how many candles before and after are considered to find a fractal. Default: 2.
Min % Difference: Filters out insignificant fractals by requiring a minimum difference from the next candle. Default: 0.01%.
Usage Tips:
Can be used to identify support and resistance levels.
Often combined with trend indicators or moving averages to confirm reversals.
Works best in markets with clear trends or volatility, rather than very flat markets.
Visuals:
Green triangle ▲ → Up Fractal (potential top)
Red triangle ▼ → Down Fractal (potential bottom)
VWAP MTF Scalping ModuleThe VWAP MTF indicator allows you to visualize anchored VWAP across multiple timeframes, while maintaining a clean and responsive display.
Designed for intraday traders, scalpers, and swing traders, this module offers a clear view of volume-weighted average price zones across key timeframes (1m, 5m, 15m, 1h... customizable).
NY Anchored VWAP and Auto SMANY Anchored VWAP and Auto SMA
This script is a versatile trading indicator for the TradingView platform that combines two powerful components: a New York-anchored Volume-Weighted Average Price (VWAP) and a dynamic Simple Moving Average (SMA). Designed for traders who utilize VWAP for intraday trend analysis, this tool provides a clear visual representation of average price and volatility-adjusted moving averages, generating automated alerts for key crossover signals.
Indicator Components
1. NY Anchored VWAP
The VWAP is a crucial tool that represents the average price of a security adjusted for volume. This version is "anchored" to the start of the New York trading session, resetting at the beginning of each new session. This provides a clean, session-specific anchor point to gauge market sentiment and trend. The VWAP line changes color to reflect its slope:
Green: When the VWAP is trending upwards, indicating a bullish bias.
Red: When the VWAP is trending downwards, indicating a bearish bias.
2. Auto SMA
The Auto SMA is a moving average with a unique twist: its lookback period is not fixed. Instead, it dynamically adjusts based on market volatility. The script measures volatility using the Average True Range (ATR) and a Z-Score calculation.
When volatility is expanding, the SMA's length shortens, making it more sensitive to recent price changes.
When volatility is contracting, the SMA's length lengthens, smoothing out the price action to filter out noise.
This adaptive approach allows the SMA to react appropriately to different market conditions.
Suggested Trading Strategy
This indicator is particularly effective when used on a one-minute chart for identifying high-probability trade entries. The core of the strategy is to trade the crossover between the VWAP and the Auto SMA, with confirmation from a candle close.
The strategy works best when the entry signal aligns with the overall bias of the higher timeframe market structure. For example, if the daily or 4-hour chart is in an uptrend, you would look for bullish signals on the one-minute chart.
Bullish Entry Signal: A potential entry is signaled when the VWAP crosses above the Auto SMA, and is confirmed when the one-minute candle closes above both the VWAP and the SMA. This indicates a potential continuation of the bullish momentum.
Bearish Entry Signal: A potential entry is signaled when the VWAP crosses below the Auto SMA, and is confirmed when the one-minute candle closes below both the VWAP and the SMA. This indicates a potential continuation of the bearish momentum.
The built-in alerts for these crossovers allow you to receive notifications without having to constantly monitor the charts, ensuring you don't miss a potential setup.
UniversalTrendLibraryLibrary "UniversalTrendLibrary"
get_signals(rsi_src, ma_src, rsi_len, ma_len, chop_len, chop_thresh, st_factor, st_sdlen, alma_len, alma_offset, alma_sigma)
Parameters:
rsi_src (float)
ma_src (float)
rsi_len (simple int)
ma_len (simple int)
chop_len (int)
chop_thresh (int)
st_factor (float)
st_sdlen (int)
alma_len (int)
alma_offset (simple float)
alma_sigma (simple float)
Berdins scannerENG BERDINS SCANNER
What it does
Trend: plots EMA 20 (red), EMA 50 (blue), EMA 238 (orange).
POC: choose Bar-POC or Profile-POC (most-traded price level) with an optional neutral band.
Control: background shading shows who’s in control (above POC = buyers, below = sellers).
Momentum: configurable — RSI & MACD (strict), RSI only, MACD only, or RSI OR MACD.
Quality filters: ADX trend strength, Supertrend direction, above-average volume, minimum ATR volatility,
and a minimum % distance from POC to avoid chop.
MTF trend: optional higher-timeframe confirmation.
Signals & alerts: buy/sell arrows and alertconditions; signals can be confirmed on bar close
for a repaint-safe workflow.
How to use
Add the indicator and keep Confirm on bar close enabled for reliable alerts.
Set POC mode to “Profile (price level)” for a true control line; set Price Step (or use market tick).
Intraday: enable MTF Trend (e.g., chart 5m/15m, HTF = 60m).
Create alerts from the Alerts panel (“Buy Alert” / “Sell Alert”).
Inputs (summary)
EMAs: Fast/Mid/Slow = 20/50/238
POC: Lookback, Price Step (or market tick), Neutral Band %
Momentum: mode + RSI/MACD parameters
Filters: ADX min, Supertrend (factor/ATR), Volume SMA, Min ATR %
Other: Distance to POC %, Require POC Control, Confirm on bar close
Recommended (stricter)
Momentum: “RSI and MACD”; RSI thresholds 55/45
ADX filter ON, minimum 25
Supertrend ON (factor 3.0, ATR 10–14)
Volume filter ON (SMA 20)
Require POC Control: ON
Min distance to POC: 0.5–1.0%
Confirm on bar close: ON
Note
This is not financial advice. Signals are for educational/informational purposes—use with your own risk and trade management.
NL - BERDINS SCANNER EMA-POC Momentum System ULTRA (Accurate Signals) — Pine v6
Wat het doet
• Trend: EMA 20 (rood), EMA 50 (blauw), EMA 238 (oranje).
• POC: keuze uit Bar-POC of Profile-POC (meest verhandeld prijsniveau) + neutrale band.
• Control: achtergrond toont wie “in control” is (boven POC = buyers, onder = sellers).
• Momentum: configureerbaar — RSI & MACD (strikt), RSI only, MACD only of RSI OR MACD.
• Kwaliteitsfilters: ADX-trendkracht, Supertrend-richting, boven-gem. volume, min. ATR-volatiliteit,
en minimaal % afstand tot POC om chop te vermijden.
• MTF-trend: optionele bevestiging van de trend op hogere timeframe.
• Signalen & alerts: Buy/Sell-pijlen en alertconditions; signalen (optioneel) bevestigd op bar-close
voor een repaint-veilige workflow.
Gebruik
1) Voeg de indicator toe en laat “Confirm on bar close” aan voor betrouwbare alerts.
2) Kies POC-modus: “Profile (price level)” voor een echte control-lijn; stel Price Step in of gebruik tick.
3) Intraday? Zet MTF Trend aan (bijv. chart 5m/15m, HTF = 60m).
4) Maak alerts via het Alerts-paneel (“Buy Alert” / “Sell Alert”).
Inputs (samenvatting)
• EMA Fast/Mid/Slow = 20/50/238
• POC: Lookback, Price Step (of market tick), Neutral Band %
• Momentum: modus + RSI/MACD parameters
• Filters: ADX min, Supertrend (factor/ATR), Volume SMA, min ATR-%
• Distance to POC %, Require POC Control, Confirm on bar close
Aanbevolen (strikter)
• Momentum: “RSI and MACD”; RSI drempels 55/45
• ADX filter aan, min 25
• Supertrend aan (factor 3.0, ATR 10–14)
• Volume filter aan (SMA 20)
• Require POC Control: aan
• Min distance to POC: 0.5–1.0%
• Confirm on bar close: aan
Let op
Dit is geen financieel advies. Signalen zijn informatief; combineer met eigen risk- en trade-management.
Мой скрипт//@version=5
indicator("Market Structure BOS/CHoCH", overlay=true, max_labels_count=500)
// === Settings ===
swingLen = input.int(3, "Swing Length", minval=1)
showBOS = input.bool(true, "Show BOS")
showCHoCH = input.bool(true, "Show CHoCH")
// === Identify swing highs and lows ===
var float lastHigh = na
var float lastLow = na
swingHigh = ta.pivothigh(high, swingLen, swingLen)
swingLow = ta.pivotlow(low, swingLen, swingLen)
if not na(swingHigh)
lastHigh := swingHigh
if not na(swingLow)
lastLow := swingLow
// === Determine HH, HL, LH, LL ===
hh = not na(swingHigh) and swingHigh > lastHigh
hl = not na(swingLow) and swingLow > lastLow
lh = not na(swingHigh) and swingHigh < lastHigh
ll = not na(swingLow) and swingLow < lastLow
// === Plot labels for structure points ===
if hh
label.new(bar_index, swingHigh, "HH", style=label.style_label_down, color=color.green, textcolor=color.white, yloc=yloc.abovebar)
if hl
label.new(bar_index, swingLow, "HL", style=label.style_label_up, color=color.green, textcolor=color.white, yloc=yloc.belowbar)
if lh
label.new(bar_index, swingHigh, "LH", style=label.style_label_down, color=color.red, textcolor=color.white, yloc=yloc.abovebar)
if ll
label.new(bar_index, swingLow, "LL", style=label.style_label_up, color=color.red, textcolor=color.white, yloc=yloc.belowbar)
// === BOS (Break of Structure) detection ===
bosUp = ta.crossover(close, lastHigh)
bosDown = ta.crossunder(close, lastLow)
if showBOS and bosUp
label.new(bar_index, high, "BOS ↑", style=label.style_label_down, color=color.blue, textcolor=color.white, yloc=yloc.abovebar)
if showBOS and bosDown
label.new(bar_index, low, "BOS ↓", style=label.style_label_up, color=color.blue, textcolor=color.white, yloc=yloc.belowbar)
// === CHoCH (Change of Character) detection ===
var int trend = 0 // 1 = uptrend, -1 = downtrend
if hh or hl
trend := 1
if lh or ll
trend := -1
chochUp = trend == -1 and bosUp
chochDown = trend == 1 and bosDown
if showCHoCH and chochUp
label.new(bar_index, high, "CHoCH ↑", style=label.style_label_down, color=color.lime, textcolor=color.white, yloc=yloc.abovebar)
if showCHoCH and chochDown
label.new(bar_index, low, "CHoCH ↓", style=label.style_label_up, color=color.lime, textcolor=color.white, yloc=yloc.belowbar)
// === Arrows for signals ===
plotshape(bosUp, title="BOS Buy Arrow", location=location.belowbar, color=color.blue, style=shape.labelup, size=size.small, text="↑ BOS")
plotshape(bosDown, title="BOS Sell Arrow", location=location.abovebar, color=color.blue, style=shape.labeldown, size=size.small, text="↓ BOS")
plotshape(chochUp, title="CHoCH Buy Arrow", location=location.belowbar, color=color.lime, style=shape.labelup, size=size.small, text="↑ CHoCH")
plotshape(chochDown, title="CHoCH Sell Arrow", location=location.abovebar, color=color.lime, style=shape.labeldown, size=size.small, text="↓ CHoCH")
Berdins Indicator - EMA-POC (RSI + MTF + Alerts)EMA-POC Momentum System (RSI + MTF + Alerts)
What it does
• Trend: plots EMA 20 (red), EMA 50 (blue), EMA 238 (orange)
• Key level: simplified POC line = close of the highest-volume bar within a lookback window
• Momentum: Buy/Sell signals when RSI crosses 50 in the direction of the EMA trend
• Filters: optional higher-timeframe trend alignment, EMA slope filter, and minimum distance from POC to avoid chop
• Alerts: separate Buy/Sell alerts or one combined alert (choose in settings)
How to use
1) Add to chart and keep “Confirm on bar close” enabled for non-repainting signals.
2) For intraday, consider enabling MTF Trend (e.g., chart = 5m/15m, HTF = 60m).
3) Optional: set Min distance from POC to ~0.5–1.0% to avoid entries right on the POC.
4) Create alerts via the Alerts panel: choose “Buy Alert”, “Sell Alert”, or “Combined”.
Inputs (quick reference)
• EMA Fast/Mid/Slow = 20/50/238
• POC Lookback (default 200)
• RSI Length (default 14)
• Use Higher Timeframe Trend? (default off) + HTF for Trend
• Require EMA20 & EMA50 slope (default on)
• Min distance from POC (% of price)
• Confirm signals on bar close (default on)
• Use ONE combined alert (default off)
Notes
• POC here is a lightweight approximation and not a full volume profile.
• Signals are informational/educational. Always manage risk and confirm with your own process.
jsonbuilderLibrary "jsonbuilder"
JsonBuilder for easiest way to generate json string
JSONBuilder(pairs)
Create JSONBuilder instance
Parameters:
pairs (array) : Pairs list, not required for users
method addField(this, key, value, kind)
Add Json Object
Namespace types: _JSONBuilder
Parameters:
this (_JSONBuilder)
key (string) : Field key
value (string) : Field value
kind (series Kind) : Kind value
method execute(this)
Create json string
Namespace types: _JSONBuilder
Parameters:
this (_JSONBuilder)
method addArray(this, key, value)
Add Json Array
Namespace types: _JSONBuilder
Parameters:
this (_JSONBuilder)
key (string) : Field key
value (array<_JSONBuilder>) : Object value array
method addObject(this, key, value)
Add Json Object
Namespace types: _JSONBuilder
Parameters:
this (_JSONBuilder)
key (string) : Field key
value (_JSONBuilder) : Object value
_JSONBuilder
JSONBuilder type
Fields:
pairs (array) : Pairs data
Ultra Volume DetectorNative Volume — Auto Levels + Ultra Label
What it does
This indicator classifies volume bars into four categories — Low, Medium, High, and Ultra — using rolling percentile thresholds. Instead of fixed cutoffs, it adapts dynamically to recent market activity, making it useful across different symbols and timeframes. Ultra-high volume bars are highlighted with labels showing compacted values (K/M/B/T) and the appropriate unit (shares, contracts, ticks, etc.).
Core Logic
Dynamic thresholds: Calculates percentile levels (e.g., 50th, 80th, 98th) over a user-defined window of bars.
Categorization: Bars are colored by category (Low/Med/High/Ultra).
Ultra labeling: Only Ultra bars are labeled, preventing chart clutter.
Optional MA: A moving average of raw volume can be plotted for context.
Alerts: Supports both alert condition for Ultra events and dynamic alert() messages that include the actual volume value at bar close.
How to use
Adjust window size: Larger windows (e.g., 200+) provide stable thresholds; smaller windows react more quickly.
Set percentiles: Typical defaults are 50 for Medium, 80 for High, and 98 for Ultra. Lower the Ultra percentile to see more frequent signals, or raise it to isolate only extreme events.
Read chart signals:
Bar colors show the category.
Labels appear only on Ultra bars.
Alerts can be set up for automatic notification when Ultra volume occurs.
Why it’s unique
Adaptive: Uses rolling statistics, not static thresholds.
Cross-asset ready: Adjusts units automatically depending on instrument type.
Efficient visualization: Focuses labels only on the most significant events, reducing noise.
⚠️ Disclaimer: This tool is for educational and analytical purposes only. It does not provide financial advice. Always test and manage risk before trading live
Machine Learning-Inspired Supply & Demand Zones [AlgoPoint]This indicator is a Smart Supply & Demand Zone tool, developed with principles inspired by Machine Learning (ML). It intelligently filters out market noise, allowing you to focus only on the most significant zones where institutional order flow is likely present.
💡 How It Works: Why Is This Indicator "Smart"?
Unlike traditional indicators that only measure simple price movements, this script uses an algorithm that asks the same critical questions an experienced market analyst would to qualify a zone:
- 1. Price Imbalance: How fast and aggressively did the price leave the zone? Our algorithm measures the body size of the "departure candle" relative to the current market volatility (ATR). A zone is only considered if it was formed by an explosive move that is statistically significant, indicating a major imbalance between buyers and sellers.
- 2. Volume Confirmation: Did the "smart money" participate in this move? The script checks if the volume on the departure candle was significantly higher than the recent average volume. A spike in volume confirms that the move was backed by institutional interest, adding strength and validity to the zone.
- 3. Valid Pivot Structure: Did the zone originate from a meaningful swing high or low? The algorithm first identifies a valid pivot structure, ensuring that zones are not drawn from insignificant or random price fluctuations.
Only when a potential zone passes these three critical tests—our "quality filter"—is it drawn on your chart.
🚀 Features & How to Use
Using the indicator is straightforward. You will see two primary types of boxes on your chart:
* 🟥 Red Box (Supply Zone): An area of potential resistance where selling pressure is likely to be strong. Look for potential shorting opportunities as the price approaches this zone.
* 🟩 Green Box (Demand Zone): An area of potential support where buying pressure is likely to be strong. Look for potential long opportunities as the price pulls back into this zone.
Dynamic Zone Management
This indicator is not static; it lives and breathes with the market:
- Fresh Zone: A newly formed zone appears in its full, vibrant color. These are the highest-probability zones as they have not yet been re-tested.
- Broken / Flipped Zone: You have full control over what happens when a zone is broken! In the settings, you can choose:
- Delete Zone: The zone will be removed completely when the price closes through it.
- Show as Broken (Flip): When broken, the zone will turn gray, stop extending, and remain on your chart. This is extremely useful for identifying Support/Resistance Flips, where a broken demand zone becomes new resistance, or a broken supply zone becomes new support.
⚙️ Settings & Customization
Fine-tune the indicator to match your personal trading style via the settings menu:
- Breakout Behavior: The most powerful feature. Choose between Delete Zone and Show as Broken (Flip) to customize your chart.
- Zone Finding Logic: Control the indicator's sensitivity.
- Selective: Requires both strong imbalance and high volume. Finds fewer, but higher-quality, zones.
- Moderate: Requires either strong imbalance or high volume. Finds more potential zones.
- Sensitivity Settings: Adjust the ATR Multiplier and Volume Multiplier to make the criteria for a "strong" zone stricter or looser.
BE-Fib Channel 2 Sided Trading█ Overview:
"BE-Fib Channel 2 Sided Trading" indicator is built with the thought of 2 profound setups named "Cup & Handle (C&H)" and "Fibonacci Channel Trading (FCT)" with the context of "day trading" or with a minimum holding period.
█ Similarities, Day Trading Context & Error Patterns:
While the known fact is that both C&H and FCT provide setups with lesser risk with bigger returns, they both share the similar "Base Pattern".
Note: Inverse of the above Image shall switch the setups between long vs short.
Since the indicator is designed for smaller time-frame candles, there may be instances where the "base pattern" does not visually resemble a Cup & Handle (C&H) pattern. However, patterns are validated using pivot points. The points labeled "A" and "C" can be equal or slightly slanted. Settings of the Indicator allows traders a flexibility to control the angle of these points to spot the strategies according to set conditions. Therefore, understanding the nuances of these patterns is crucial for effective decision-making.
█ 2 Sided Edge: FCT suggests to take trade closer to the yellow line to get better RR ratio. this leaves a small chance of doubt as to; what if price is intended to break the Yellow line thereby activating the C&H.
Wait for the confirmation is a Big FOMO with a compromised RR.
Hence, This indicator is designed to handle both the patterns based on the strength, FIFO and pattern occurring delay.
█ How to Use this Indicator:
Step 1: Enable the Show Sample Sensitivity option to understand the angle of yellow line shown in the sample image. By enabling this option, On the last bar you shall see 4 lines being plotted depicting the max angle which is acceptable for both long and short trades.
Note: Angle can be controlled via setting "Sensitivity".
Higher Sensitivity --> Higher Setup identification --> can lead to failed setups due to 2 sided trading.
Lower Sensitivity --> Lower Setup identification --> can increase the changes of being right.
Step 2: Adjust the look back & look forward periods which shall be used for identifying patterns.
Note: Smaller values can lead to more setups being identified but can hamper the performance of the indicator while increasing the chances of failures. larger values identifies more significant setup but leads to more waiting period thereby compromising on the RR.
Step 3: Adjust the Base Range.
Note: Smaller values can lead to more setups being identified but can hamper the performance of the indicator while increasing the chances of failures. larger values identifies more significant setup but leads to more Risk on play.
Step 4: set the Entry level for FCT & Set the SL for Both FCT & C&H and Target Reward ratio for C&H.
█ Features of Indicator & How it works:
1. Patterns are being identified using Pivot Points method.
2. Tracks & validates both the setups simultaneously on every candle and traded one at a time based on FIFO, New setups found in-between, Defined Entry Levels while on wait for the other pattern to get activated.
3. Alerts added for trade events.
4. FCT setups are generally traded with trailed SL level and increasing Target level on every completed bar. while C&H has the standard SL & TP level with no Trail SL option.
DISCLAIMER: No sharing, copying, reselling, modifying, or any other forms of use are authorized for our documents, script / strategy, and the information published with them. This informational planning script / strategy is strictly for individual use and educational purposes only. This is not financial or investment advice. Investments are always made at your own risk and are based on your personal judgement. I am not responsible for any losses you may incur. Please invest wisely.
Happy to receive suggestions and feedback in order to improve the performance of the indicator better.
线-美元指数灯1️⃣ 设计目的
帮助交易者快速判断当前市场风险状态,会自动匹配当前品种数据
将宏观美元走势与主币种短期趋势结合,给出 红/橙/绿三色风险提示
2️⃣ 数据来源与逻辑
宏观因素
参考美元指数(DXY)日线涨幅
作用:美元走强 → 全球风险资产承压 → 风险增加
主币种短期趋势
EMA斜率(1小时)判断趋势方向
RSI(1小时)判断超买/超卖状态
风险评分系统
每个条件满足则计1分
分数规则:
2分及以上 → 红灯(高风险,建议暂停策略)
1分 → 橙灯(中风险,小仓谨慎)
0分 → 绿灯(低风险,可正常操作)
1️⃣ Design Purpose
Helps traders quickly assess current market risk.
Combines macro dollar trends with short-term trends of the underlying currency to generate red, orange, and green risk alerts.
2️⃣ Data Source and Logic
Macro Factors
References to the daily gains of the US Dollar Index (DXY)
Impact: A stronger US dollar → pressure on global risk assets → increased risk
Short-term trends of underlying currencies
EMA slope (1-hour) determines trend direction
RSI (1-hour) determines overbought/oversold conditions
Risk Scoring System
Each condition met is assigned 1 point.
Scoring Rules:
2 points and above = Red (High risk, recommend pausing the strategy)
1 point = Orange (Medium risk, caution with small positions)
0 points = Green (Low risk, normal operation)
Moving Averages 450, 125 & 65Plots three SMA lines (450, 125, 65 periods) on price chart. Designed to identify long-term trends and potential support/resistance levels. The longest MA (450) shows primary trend direction, while shorter MAs (125, 65) help capture intermediate-term momentum shifts. Ideal for multi-timeframe trend analysis and crossover strategies.
Features:
SMA 450 (Blue) - Long-term trend
SMA 125 (Orange) - Medium-term momentum
SMA 65 (Cyan) - Short-term signals
Customizable lengths and colors
Clean visual overlay on price chart
ATR% | Volatility NormalizerThis indicator measures true volatility by expressing the Average True Range (ATR) as a percentage of price. Unlike basic ATR plots, which show raw values, this version normalizes volatility to make it directly comparable across instruments and timeframes.
How it works:
Uses True Range (High–Low plus gaps) to capture actual market movement.
Normalizes by dividing ATR by the chosen price base (default: Close).
Multiplies by 100 to output a clean ATR% line.
Smoothing is flexible: choose from RMA, SMA, EMA, or WMA.
Optional Feature:
For comparison, you can toggle an auxiliary line showing the average absolute close-to-close % move, highlighting the difference between simplified and true volatility.
Why use it:
Track regime shifts: identify when volatility expands or contracts in % terms.
Compare volatility across different markets (equities, crypto, forex, commodities).
Integrate into risk management: position sizing, stop placement, or volatility filters for entries.
Interpretation:
Rising ATR% → expanding volatility, potential breakouts or unstable ranges.
Falling ATR% → contracting volatility, possible consolidation or range-bound conditions.
Sudden spikes → market “shocks” worth paying attention to.
EMA/VWAP SuiteEMA/VWAP Suite
Overview
The EMA/VWAP Suite is a versatile and customizable Pine Script indicator designed for traders who want to combine Exponential Moving Averages (EMAs) and Volume Weighted Average Prices (VWAPs) in a single, powerful tool. It overlays up to eight EMAs and six VWAPs (three anchored, three rolling) on the chart, each with percentage difference labels to show how far the current price is from these key levels. This indicator is perfect for technical analysis, supporting strategies like trend following, mean reversion, and VWAP-based trading.
By default, the indicator displays eight EMAs and a session-anchored VWAP (AVWAP 1, in fuchsia) with their respective percentage difference labels, keeping the chart clean yet informative. Other VWAPs and their bands are disabled by default but can be enabled and customized as needed. The suite is designed to minimize clutter while providing maximum flexibility for traders.
Features
- Eight Customizable EMAs: Plot up to eight EMAs with user-defined lengths (default: 3, 9, 19, 38, 50, 65, 100, 200), each with a unique color for easy identification.
- EMA Percentage Difference Labels: Show the percentage difference between the current price and each EMA, displayed only for visible EMAs when enabled.
- Three Anchored VWAPs: Plot VWAPs anchored to the start of a session, week, or month, with customizable source, offset, and band multipliers. AVWAP 1 (session-anchored, fuchsia) is enabled by default.
- Three Rolling VWAPs: Plot VWAPs calculated over fixed periods (default: 20, 50, 100), with customizable source, offset, and band multipliers.
- VWAP Bands: Optional upper and lower bands for each VWAP, based on standard deviation with user-defined multipliers.
- VWAP Percentage Difference Labels: Display the percentage difference between the current price and each VWAP, shown only for visible VWAPs. Enabled by default to show the AVWAP 1 label.
- Customizable Colors: Each VWAP has a user-defined color via input settings, with labels matching the VWAP line colors (e.g., AVWAP 1 defaults to fuchsia).
Flexible Display Options: Toggle individual EMAs, VWAPs, bands, and labels on or off to reduce chart clutter.
Settings
The indicator is organized into intuitive setting groups:
EMA Settings
Show EMA 1–8 : Toggle each EMA on or off (default: all enabled).
EMA 1–8 Length : Set the period for each EMA (default: 3, 9, 19, 38, 50, 65, 100, 200).
Show EMA % Difference Labels : Enable/disable percentage difference labels for all EMAs (default: enabled).
EMA Label Font Size (8–20) : Adjust the font size for EMA labels (default: 10, mapped to “tiny”).
Anchored VWAP 1–3 Settings
Show AVWAP 1–3 : Toggle each anchored VWAP on or off (default: AVWAP 1 enabled, others disabled).
AVWAP 1–3 Color : Set the color for each VWAP line and its label (default: fuchsia for AVWAP 1, purple for AVWAP 2, teal for AVWAP 3).
AVWAP 1–3 Anchor : Choose the anchor period (“Session,” “Week,” “Month”; default: Session for AVWAP 1, Week for AVWAP 2, Month for AVWAP 3).
AVWAP 1–3 Source : Select the price source (default: hlc3).
AVWAP 1–3 Offset : Set the horizontal offset for the VWAP line (default: 0).
Show AVWAP 1–3 Bands : Toggle upper/lower bands (default: disabled).
AVWAP 1–3 Band Multiplier : Adjust the standard deviation multiplier for bands (default: 1.0).
Rolling VWAP 1–3 Settings
Show RVWAP 1–3 : Toggle each rolling VWAP on or off (default: disabled).
RVWAP 1–3 Color : Set the color for each VWAP line and its label (default: navy for RVWAP 1, maroon for RVWAP 2, fuchsia for RVWAP 3).
RVWAP 1–3 Period Length : Set the period for the rolling VWAP (default: 20, 50, 100).
RVWAP 1–3 Source : Select the price source (default: hlc3).
RVWAP 1–3 Offset : Set the horizontal offset (default: 0).
Show RVWAP 1–3 Bands : Toggle upper/lower bands (default: disabled).
RVWAP 1–3 Band Multiplier : Adjust the standard deviation multiplier for bands (default: 1.0).
VWAP Label Settings
Show VWAP % Difference Labels : Enable/disable percentage difference labels for all VWAPs (default: enabled, showing AVWAP 1 label).
VWAP Label Font Size (8–20) : Adjust the font size for VWAP labels (default: 10, mapped to “tiny”).
How It Works
EMAs : Calculated using ta.ema(close, length) for each user-defined period. Percentage differences are computed as ((close - ema) / close) * 100 and displayed as labels for visible EMAs when show_ema_labels is enabled.
Anchored VWAPs : Calculated using ta.vwap(source, anchor, 1), where the anchor is determined by the selected timeframe (Session, Week, or Month). Bands are computed using the standard deviation from ta.vwap.
Rolling VWAPs : Calculated using ta.vwap(source, length), with bands based on ta.stdev(source, length).
Labels : Updated on each new bar (ta.barssince(ta.change(time) != 0) == 0) to show percentage differences. Labels are only displayed for visible EMAs/VWAPs to avoid clutter.
Color Matching: VWAP labels use the same color as their corresponding VWAP lines, set via input settings (e.g., avwap1_color for AVWAP 1).
Example Use Cases
- Trend Following: Use longer EMAs (e.g., 100, 200) to identify trends and shorter EMAs (e.g., 3, 9) for entry/exit signals.
- Mean Reversion: Monitor percentage difference labels to spot overbought/oversold conditions relative to EMAs or VWAPs.
- VWAP Trading: Use the default session-anchored AVWAP 1 for intraday trading, adding weekly/monthly VWAPs or rolling VWAPs for broader context.
- Intraday Analysis: Leverage the session-anchored AVWAP 1 (enabled by default) for day trading, with bands as support/resistance zones.