Anh Nga 6.0 Split (Dynamic + MACD + PC) — Strategy by ngamei2912

By ngamei2912

Performance Metrics

Description

The script **Anh Nga 6.0 Split** is a professional-grade TradingView strategy designed for high-precision trading (specifically optimized for Gold/XAUUSD). It combines trend-following, momentum oscillators, and multi-timeframe analysis with a built-in automation bridge for **PineConnector** (MT4/MT5).Here is a breakdown of how the strategy works for users.---## 1. Core Logic: How it TriggersThe strategy uses a "filter-first" approach, meaning it only looks for trades when multiple conditions align:* **Primary Signal:** Uses the **Wave Trend (WT)** oscillator. It looks for "Gold Crosses" (long) or "Death Crosses" (short) when momentum is at extreme levels.* **Trend Filter:** A dual Moving Average system (Fast 70 / Slow 140). It only buys if the price is above both and sells if below both.* **MACD MTF Filter:** A "Big Brother" check. It looks at the MACD histogram on the **15-minute** and **30-minute** timeframes to ensure you aren't trading against the higher-timeframe momentum.* **Overextension Guard:** It calculates the distance from the Fast MA using **ATR**. If the price has "run too far" from the average, it skips the trade to avoid buying the top or selling the bottom.---## 2. The "Split" Execution (Advanced Sizing)The strategy classifies trades into two quality tiers based on **Bollinger Band Zones**:| Trade Type | Condition | Position Size || --- | --- | --- || **AAA Zone** | Price is close to the Basis (Mean) | **100%** of your base lot || **B Zone** | Price is slightly stretched | **80%** of your base lot |**Automated Partial Exits:**When a trade is entered, it splits the position into two orders:1. **Partial Runner (65%):** Aimed at a closer "TP1" to lock in profits early.2. **Final Runner (35%):** Aimed at the full Risk:Reward target.* **Break-Even Logic:** Once the first target is hit, the script automatically sends a command to move the Stop Loss to the entry price (BE).---## 3. Risk Management & Guards* **Reversal Guard:** Prevents "revenge trading" by enforcing a cooldown period (default 5 bars) after an exit before you can trade in the opposite direction.* **Dynamic Stop Loss:** Uses a **Bollinger Band Multiplier (1.7x)** to place stops outside of immediate market noise.* **Max SL Filter:** If the market is too volatile and the calculated Stop Loss is larger than your "Max SL Dollars" (e.g., $35), the strategy will skip the trade entirely.---## 4. PineConnector AutomationThe script is pre-configured to talk to MetaTrader 4/5 via **PineConnector**.* It generates formatted alert messages containing your **License ID**, **Magic Number**, and **Volume**.* It handles `buy`, `sell`, `modify` (for Break-Even), and `closeall` commands automatically.### Visual Guide* **Teal Line:** Fast Moving Average ().* **White Line:** Slow Moving Average ().* **Green/Red Zones:** Visual "AAA" and "B" zones for entry quality.* **Red/Green Lines:** Active Stop Loss and Take Profit levels currently being tracked.---

Browse all 5,900+ TradingView Pine Script strategies

View on TradingView