PROTECTED SOURCE SCRIPT
Cập nhật EdgeFlow: Momentum Ribbon

📘 9/21 EMA + Stochastic Strategy [Ribbon Fill + Confirm + Stack Check]
This indicator combines EMA trend structure with Stochastic momentum extremes to generate clean, high-probability entry confirmations — visualized through a dynamic color-filled ribbon.
🔹 Core Concept
The script looks for market conditions where short-term momentum (Stochastic) aligns with trend direction (9 EMA vs 21 EMA).
It then waits for price-action confirmation before triggering an entry — avoiding premature signals.
Trend Filter:
Bullish: 9 EMA > 21 EMA
Bearish: 9 EMA < 21 EMA
Setup Condition:
Bullish Setup: Stochastic (8, 3, 3) crosses below 20 while EMAs are stacked bullish.
Bearish Setup: Stochastic (8, 3, 3) crosses above 80 while EMAs are stacked bearish.
Entry Confirmation:
Long Confirm: Candle closes above previous candle’s high while EMAs remain bullish.
Short Confirm: Candle closes below previous candle’s low while EMAs remain bearish.
🎨 Visual Elements
Ribbon Fill:
Green when 9 EMA > 21 EMA, red when 9 EMA < 21 EMA.
(EMAs themselves are hidden for a cleaner look.)
Markers:
Small green/red circles = setup triggered (waiting for confirmation)
Triangles = confirmed entries (Long = Up Triangle, Short = Down Triangle)
🔔 Alerts
Four ready-made alerts are included:
🟢 Bullish Setup Triggered
🔴 Bearish Setup Triggered
✅ Bullish Entry Confirmed
✅ Bearish Entry Confirmed
Use them to receive notifications when setups form or confirm on your chosen timeframe.
⚙️ Recommended Use
Designed for 3-minute charts (scalping & short-term intraday), but adaptable to any timeframe.
Works effectively on indices, crypto, and FX.
Can be combined with volume or higher-timeframe filters for extra precision.
🧠 Summary
This indicator gives a clean, rules-based structure:
Identify the trend.
Wait for a momentum pullback (Stochastic extreme).
Entry after price confirms direction is recommended.
This indicator combines EMA trend structure with Stochastic momentum extremes to generate clean, high-probability entry confirmations — visualized through a dynamic color-filled ribbon.
🔹 Core Concept
The script looks for market conditions where short-term momentum (Stochastic) aligns with trend direction (9 EMA vs 21 EMA).
It then waits for price-action confirmation before triggering an entry — avoiding premature signals.
Trend Filter:
Bullish: 9 EMA > 21 EMA
Bearish: 9 EMA < 21 EMA
Setup Condition:
Bullish Setup: Stochastic (8, 3, 3) crosses below 20 while EMAs are stacked bullish.
Bearish Setup: Stochastic (8, 3, 3) crosses above 80 while EMAs are stacked bearish.
Entry Confirmation:
Long Confirm: Candle closes above previous candle’s high while EMAs remain bullish.
Short Confirm: Candle closes below previous candle’s low while EMAs remain bearish.
🎨 Visual Elements
Ribbon Fill:
Green when 9 EMA > 21 EMA, red when 9 EMA < 21 EMA.
(EMAs themselves are hidden for a cleaner look.)
Markers:
Small green/red circles = setup triggered (waiting for confirmation)
Triangles = confirmed entries (Long = Up Triangle, Short = Down Triangle)
🔔 Alerts
Four ready-made alerts are included:
🟢 Bullish Setup Triggered
🔴 Bearish Setup Triggered
✅ Bullish Entry Confirmed
✅ Bearish Entry Confirmed
Use them to receive notifications when setups form or confirm on your chosen timeframe.
⚙️ Recommended Use
Designed for 3-minute charts (scalping & short-term intraday), but adaptable to any timeframe.
Works effectively on indices, crypto, and FX.
Can be combined with volume or higher-timeframe filters for extra precision.
🧠 Summary
This indicator gives a clean, rules-based structure:
Identify the trend.
Wait for a momentum pullback (Stochastic extreme).
Entry after price confirms direction is recommended.
Phát hành các Ghi chú
// some plot placement changesPhát hành các Ghi chú
//Added buffer for catching the buy/sell confirmations where EMAs stack opposite side between setup and confirmation signals.Phát hành các Ghi chú
// small code bug fixPhát hành các Ghi chú
//Added regular stochastic option for calculation. User can select between Stochastic RSI and Regular Stochastic osscilator.Phát hành các Ghi chú
+ Changed code version to v6.Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.