Escape Aura
- Experts
- Thongchai Thongla
- Versione: 6.59
- Aggiornato: 20 febbraio 2026
- Attivazioni: 5
TimeFrame: M5
Symbol: XAUUSD, GOLD
Recommended Deposit: $1000+
========================================================================
EA Name: EA-Escape Aura Type: Grid / Martingale with specialized Recovery mechanism (Partial Close)
Overview: This Expert Advisor is a counter-trend grid system that uses Martingale lot sizing to average down positions. Its defining feature is a "Recovery" or "Fix Order" mechanism designed to reduce the risk of old, deeply negative positions by using profits from newer, larger positions to partially close them out.
Note on Filename: The filename indicates "(ReEntry NotWorking)". Based on the code, the initial entry logic is present based on candle patterns. The "NotWorking" likely refers to a specific pending order feature or a secondary re-entry logic that has been disabled or is non-functional in this version.
Detailed Functionality:
1. Initial Entry Strategy (Signal Logic): The EA looks for simple candlestick reversal patterns based on the previous two closed candles (Bar 1 and Bar 2) on the current timeframe.
-
Buy Signal: It enters a Buy if Candle 2 was bearish (closed lower than it opened) and Candle 1 was bullish (closed higher than it opened). This suggests a potential upward reversal.
-
Sell Signal: It enters a Sell if Candle 2 was bullish and Candle 1 was bearish. This suggests a potential downward reversal.
-
Constraint: It only enters a new first trade if there are currently zero Buy and zero Sell orders managed by the EA.
2. Grid and Martingale System (When the trade goes wrong): If the market moves against the initial position, the EA attempts to recover by adding more orders (Grid).
-
Step Distance: It adds a new order if the price moves against the last order by a fixed distance defined by InpStep (in pips).
-
Martingale Multiplier: The lot size of new orders is calculated by multiplying the previous order's lot size by the InpMultiplier . This is a classic Martingale approach to recover losses faster on smaller retracements.
-
Max Orders: The total number of grid orders is limited by InpMaxOrders .
3. The Core Feature: "Fix Order" (Recovery + Partial Close): This is the most crucial part of this EA, designed for drawdown management. It does not run on every tick, but on a specific timer defined by InpFixTimer (e.g., every few seconds).
How it works:
-
The EA identifies the First Order (the oldest order, which is usually in the deepest drawdown) and the Last Order (the newest, largest lot size order placed by the grid).
-
It monitors the profit of the Last Order.
-
Trigger Condition: If the current floating profit of the Last Order exceeds a set threshold ( InpFixProfit ) AND the total drawdown of that specific direction (buy or sell basket) exceeds a certain level ( InpFixDD ).
-
Action (Partial Close): If triggered, the EA calculates how much of the First Order (the losing one) it can afford to close using the profit from the Last Order. It then performs a Partial Close on the First Order.
-
Goal: This mechanism slowly "chips away" at the heaviest, oldest losing positions without waiting for the entire basket to turn positive. It sacrifices immediate profit from recent trades to reduce overall account exposure and stabilize equity.
4. Exit Strategies (How it takes profit or stops loss):
-
Basket Take Profit (Flip Close): The EA calculates the total profit of all open orders combined. If this total floating profit exceeds the value set in InpTP (converted to monetary value), it closes all trades immediately to secure the profit.
-
Equity Protection (MaxDD): It constantly monitors the account's equity drawdown percentage. If the drawdown hits the InpMaxDD percentage (e.g., 30% or 50%), it acts as a hard emergency stop: all trades are closed, and the EA stops working.
-
BreakEven / Trailing: It includes standard logic to move the Stop Loss to a breakeven point ( InpBELevel ) once a position is in profit by a certain amount ( InpBEStart ).
Summary: The EA is an aggressive grid system that relies on a clever "robbing Peter to pay Paul" strategy—using profits from successful martingale layer trades to subsidize the partial closing of failing initial trades. This is a survival strategy meant to endure prolonged trends against the initial entry.
คำอธิบายภาษาไทย
ชื่อ EA: EA-Escape Aura ประเภท: Grid / Martingale พร้อมระบบแก้พอร์ตแบบพิเศษ (ปิดแบ่งกำไร)
ภาพรวม: Expert Advisor ตัวนี้เป็นระบบเทรดแบบสวนเทรนด์ (Counter-trend) ที่ใช้ระบบ Grid และการเบิ้ล Lot (Martingale) เพื่อถัวเฉลี่ยต้นทุน จุดเด่นสำคัญคือฟังก์ชัน "Recovery" หรือ "Fix Order" ซึ่งออกแบบมาเพื่อลดความเสี่ยงของออเดอร์เก่าที่ติดลบหนักๆ โดยการนำกำไรจากออเดอร์ใหม่ที่ไม้ใหญ่กว่า มาช่วย "ปิดแบ่ง" ออเดอร์ที่ขาดทุนเหล่านั้นออกไปบางส่วน
หมายเหตุเกี่ยวกับชื่อไฟล์: ชื่อไฟล์ระบุว่า "(ReEntry NotWorking)" จากการตรวจสอบโค้ด ระบบการเข้าออเดอร์แรกตามรูปแบบแท่งเทียนยังคงทำงานอยู่ คำว่า "NotWorking" น่าจะหมายถึงฟังก์ชันการเข้าออเดอร์ซ้ำ (Re-entry) แบบเฉพาะเจาะจง หรือระบบ Pending Order บางอย่างที่ถูกปิดการใช้งานหรือทำงานไม่ได้ในเวอร์ชันนี้
รายละเอียดการทำงาน:
1. กลยุทธ์การเข้าออเดอร์แรก (สัญญาณเทรด): EA จะมองหารูปแบบการกลับตัวของแท่งเทียนง่ายๆ โดยดูจากแท่งเทียนที่ปิดไปแล้ว 2 แท่งล่าสุด (แท่งที่ 1 และแท่งที่ 2) ใน Timeframe ปัจจุบัน
-
สัญญาณ Buy: จะเข้า Buy เมื่อแท่งที่ 2 เป็นขาลง (ปิดต่ำกว่าเปิด) และแท่งที่ 1 กลับมาเป็นขาขึ้น (ปิดสูงกว่าเปิด) แสดงถึงโอกาสกลับตัวขึ้น
-
สัญญาณ Sell: จะเข้า Sell เมื่อแท่งที่ 2 เป็นขาขึ้น และแท่งที่ 1 กลับมาเป็นขาลง แสดงถึงโอกาสกลับตัวลง
-
เงื่อนไข: EA จะเข้าออเดอร์แรกก็ต่อเมื่อปัจจุบันไม่มีออเดอร์ Buy และไม่มีออเดอร์ Sell ค้างอยู่ในระบบเลยเท่านั้น
2. ระบบ Grid และ Martingale (เมื่อเทรดผิดทาง): หากราคาวิ่งสวนทางกับออเดอร์แรก EA จะพยายามแก้เกมโดยการเปิดออเดอร์เพิ่ม (Grid)
-
ระยะห่าง (Step): จะเปิดออเดอร์ใหม่เมื่อราคาวิ่งสวนทางจากออเดอร์ล่าสุดเป็นระยะทางตามที่กำหนดใน InpStep (หน่วยเป็น Pips)
-
การเบิ้ล Lot (Multiplier): ขนาด Lot ของออเดอร์ใหม่จะถูกคำนวณโดยการนำ Lot ของออเดอร์ก่อนหน้ามาคูณด้วยค่า InpMultiplier นี่คือวิธีแบบ Martingale เพื่อให้คืนทุนได้เร็วขึ้นเมื่อราคาย่อตัวเพียงเล็กน้อย
-
จำนวนไม้สูงสุด: จำกัดจำนวนออเดอร์รวมในฝั่งเดียวกันด้วย InpMaxOrders
3. ฟีเจอร์หลัก: "Fix Order" (การกู้ชีพ + ปิดแบ่งกำไร): นี่คือส่วนที่สำคัญที่สุดของ EA นี้ ออกแบบมาเพื่อบริหารจัดการ Drawdown โดยเฉพาะ ฟังก์ชันนี้ไม่ได้ทำงานทุก Tick แต่จะทำงานตามตัวจับเวลา (Timer) ที่กำหนดไว้ใน InpFixTimer (เช่น ตรวจสอบทุกๆ กี่วินาที)
วิธีการทำงาน:
-
EA จะระบุ ออเดอร์แรกสุด (ไม้ที่เก่าที่สุด ซึ่งมักจะติดลบหนักที่สุด) และ ออเดอร์ล่าสุด (ไม้ใหม่ที่สุด ซึ่งมีขนาด Lot ใหญ่ที่สุดใน Grid)
-
ระบบจะเฝ้าดูกำไรของ ออเดอร์ล่าสุด
-
เงื่อนไขการทำงาน: หากกำไรปัจจุบันของ ออเดอร์ล่าสุด มีค่ามากกว่าเกณฑ์ที่ตั้งไว้ ( InpFixProfit ) และ ค่า Drawdown รวมของฝั่งนั้นๆ (Basket นั้น) สูงเกินระดับที่กำหนด ( InpFixDD )
-
การดำเนินการ (Partial Close): เมื่อเงื่อนไขครบ EA จะคำนวณว่าจะสามารถปิด ออเดอร์แรกสุด (ที่ขาดทุนอยู่) ได้จำนวนกี่ Lot โดยใช้กำไรจาก ออเดอร์ล่าสุด มาโปะ จากนั้นจะทำการ "ปิดแบ่ง" (Partial Close) ออเดอร์แรกสุดนั้นออกไป
-
เป้าหมาย: กลไกนี้จะช่วยค่อยๆ "เฉือน" ออเดอร์ที่ถ่วงพอร์ตหนักที่สุดออกไปทีละน้อย โดยยอมสละกำไรระยะสั้นจากไม้ใหม่ๆ เพื่อลดความเสี่ยงรวมของพอร์ต และทำให้ Equity กลับมาเสถียรขึ้น โดยไม่ต้องรอให้กราฟกลับตัวจนกำไรทั้งตะกร้า
4. กลยุทธ์การทำกำไรและตัดขาดทุน (Exit Strategies):
-
ปิดกำไรทั้งตะกร้า (Basket Take Profit / Flip Close): EA จะคำนวณกำไรฟลอตรวมของทุกออเดอร์ที่เปิดอยู่ หากกำไรฟลอตรวมนี้มากกว่าค่าที่ตั้งไว้ใน InpTP (แปลงเป็นจำนวนเงิน) ระบบจะปิดทุกออเดอร์ทันทีเพื่อเก็บกำไรเข้าพอร์ต
-
การป้องกัน Equity (MaxDD): ระบบจะตรวจสอบเปอร์เซ็นต์ Drawdown ของ Equity ในพอร์ตตลอดเวลา หาก Drawdown แตะถึงระดับเปอร์เซ็นต์ที่ตั้งไว้ใน InpMaxDD (เช่น 30% หรือ 50%) จะถือเป็นจุดตัดขาดทุนฉุกเฉิน: ออเดอร์ทั้งหมดจะถูกปิด และ EA จะหยุดทำงาน
-
BreakEven / Trailing: มีระบบมาตรฐานในการเลื่อน Stop Loss มาบังทุน ( InpBELevel ) เมื่อออเดอร์มีกำไรถึงจุดที่กำหนด ( InpBEStart )
สรุป: EA ตัวนี้เป็นระบบ Grid ที่มีความเสี่ยงสูง (เนื่องจากใช้ Martingale) แต่มีกลยุทธ์การเอาตัวรอดที่ชาญฉลาด โดยใช้หลักการ "เอากำไรจากไม้ใหม่ มาจ่ายหนี้ไม้เก่า" เพื่อช่วยพยุงพอร์ตให้ทนต่อสภาวะที่ตลาดลากยาวผิดทางได้ดีขึ้น
