OPEN-SOURCE SCRIPT
Triple EMA High PnL (Agnostic, Tick OHLC)

### 📈 **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
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
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.