OPEN-SOURCE SCRIPT

Triple EMA High PnL (Agnostic, Tick OHLC)

62
### 📈 **Triple EMA High PnL (Agnostic, Tick OHLC Logging)**

This strategy is designed to **capture high-probability trend entries using a Triple EMA structure**, combined with **tick-level execution precision** and **automated TP/SL management**. It is fully **agnostic**, meaning it can be applied to **any symbol or asset class** — crypto, stocks, forex, indices, or ETFs — and works on all timeframes.

#### 🧠 **Core Concept**

The script leverages the alignment and crossover of fast, mid, and slow EMAs to detect **momentum shifts within an established trend**.

* **Fast EMA crossover** above the Mid EMA acts as the primary trigger.
* **Mid EMA above Slow EMA** plus price above a **Trend SMA** acts as a trend filter to avoid chop.
* **TP & SL** levels are automatically calculated from the average entry price.

#### ⚡ **Key Features**

* ✅ **Agnostic strategy** — works on any symbol and timeframe
* 🕒 **Tick-level OHLC logging** on every entry and exit event
* 📊 **Automatic TP and SL placement** with visible lines on the chart
* 🪄 Clean entry and exit labels with timestamp and price context
* 🧭 Built-in alert messages (ENTRY/EXIT) for automation or webhook integration
* 📌 Fully customizable Fast/Mid/Slow EMA lengths and risk parameters

#### 🧰 **Default Parameters**

* Fast EMA: 7
* Mid EMA: 25
* Slow EMA: 180
* Trend SMA: 180
* Take Profit: 15%
* Stop Loss: 2.5%
* Commission: 0.2% (configurable)

#### 📡 **Alerts & Automation**

The strategy sends **detailed alerts** on both entries and exits, including ticker, OHLC values, and exact entry/exit prices — making it easy to **integrate with bots or external systems**.

#### 🧭 **Recommended Usage**

* Ideal for **trend-following** setups on medium to higher timeframes
* Use alerts to **connect to trade execution systems** or for manual trade mirroring
* Parameters can be tuned for different assets to maximize PnL efficiency


Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.