OPEN-SOURCE SCRIPT
Trend-following MTF EMA Entries [CocoChoco]

**MTF EMA Entries [CocoChoco]** is a multi-timeframe trend-following indicator designed to identify high-probability entry points using EMA alignment and trend strength confirmation.
The script evaluates price relative to a configurable EMA (default 20) across three timeframes: a lower “execution” TF and two higher TFs.
A directional bias is established when price is above/below the EMA *and* the EMA slope confirms momentum (rising for longs, falling for shorts).
Trade signals are generated only when all three timeframes are fully aligned in the same direction.
To filter out weak or ranging conditions, an ADX-based strength filter (default threshold: 18) is applied on the execution timeframe, requiring increasing trend strength before allowing entries.
**Entries**
* Long: All timeframes bullish (price > EMA + rising EMA) + ADX confirmation
* Short: All timeframes bearish (price < EMA + falling EMA) + ADX confirmation
* Signals trigger once per move (no repeated entries)
**Exits**
* Triggered on price crossing back through the EMA on the execution timeframe
**Features**
* Optional EMA overlay
* Clean entry/exit markers
* Real-time dashboard showing trend alignment across timeframes
* Alert conditions for bullish and bearish entries
Best suited for traders seeking structured, trend-aligned entries with built-in momentum confirmation.
The script evaluates price relative to a configurable EMA (default 20) across three timeframes: a lower “execution” TF and two higher TFs.
A directional bias is established when price is above/below the EMA *and* the EMA slope confirms momentum (rising for longs, falling for shorts).
Trade signals are generated only when all three timeframes are fully aligned in the same direction.
To filter out weak or ranging conditions, an ADX-based strength filter (default threshold: 18) is applied on the execution timeframe, requiring increasing trend strength before allowing entries.
**Entries**
* Long: All timeframes bullish (price > EMA + rising EMA) + ADX confirmation
* Short: All timeframes bearish (price < EMA + falling EMA) + ADX confirmation
* Signals trigger once per move (no repeated entries)
**Exits**
* Triggered on price crossing back through the EMA on the execution timeframe
**Features**
* Optional EMA overlay
* Clean entry/exit markers
* Real-time dashboard showing trend alignment across timeframes
* Alert conditions for bullish and bearish entries
Best suited for traders seeking structured, trend-aligned entries with built-in momentum confirmation.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.