เข้าสู่ระบบสมัครสมาชิก
หน้าแรกHome / บทความฟรีFree articles / ทดสอบระบบและเทรดแบบมืออาชีพTesting & trading like a pro
ทดสอบระบบและเทรดแบบมืออาชีพTesting & trading like a proขั้นสูงAdvancedอ่าน 4 นาที4 min read5 / 13 ในหมวดนี้5 of 13 in this section

MAE และ MFE: ราคาวิ่งสวนและวิ่งตามได้ไกลแค่ไหนMAE and MFE: How Far Price Moves Against and For You

ใช้ระยะที่ราคาวิ่งสวน (MAE) และวิ่งตาม (MFE) ของแต่ละไม้ มาปรับจุดตัดขาดทุนและจุดทำกำไรด้วยข้อมูล แทนการเดาUse how far each trade moved against you (MAE) and in your favour (MFE) to set stops and targets from evidence instead of guesswork.

กราฟ XAUUSD ประกอบหมวด ทดสอบระบบและเทรดแบบมืออาชีพ / Testing & trading like a pro
ในบทความนี้ · 7
  1. MAE และ MFE คืออะไร
  2. เก็บข้อมูลอย่างไร
  3. อ่านผลเพื่อปรับ SL
  4. อ่านผลเพื่อปรับการทำกำไร
  5. จุดอ่อน / ข้อผิดพลาดที่พบบ่อย
  6. ใช้บนมือถือ
  7. สรุป
In this article · 7
  1. What MAE and MFE are
  2. Collecting the data
  3. Using MAE to adjust the stop
  4. Using MFE to adjust exits
  5. Weaknesses / common mistakes
  6. On a phone
  7. Summary

ทุกไม้ที่เปิด ราคาจะไม่วิ่งเป็นเส้นตรงจากจุดเข้าไปถึงจุดออก ระหว่างทางมันจะวิ่งสวนเราไปช่วงหนึ่ง และวิ่งตามเราไปช่วงหนึ่ง การจดสองระยะนี้ไว้ทุกไม้ทำให้เราตอบคำถามสำคัญได้ด้วยข้อมูล เช่น "SL ของเรากว้างเกินไปหรือแคบเกินไป" และ "เรากำลังปล่อยกำไรทิ้งหรือเปล่า"

MAE และ MFE คืออะไร

  • MAE (Maximum Adverse Excursion) คือระยะที่ราคาวิ่ง สวน ทางเราไกลที่สุดระหว่างที่ถือไม้ เช่น ซื้อแล้วราคาลงไปต่ำสุด $3 ก่อนจะขึ้น MAE = $3
  • MFE (Maximum Favorable Excursion) คือระยะที่ราคาวิ่ง ตาม ทางเราไกลที่สุดระหว่างที่ถือไม้ เช่น ซื้อแล้วราคาขึ้นไปสูงสุด $8 ก่อนจะกลับลงมาออกที่ $5 MFE = $8

วัดได้ทั้งเป็นระยะราคา เป็นจุด (Points/Pips) หรือเป็นหน่วย R (เทียบกับระยะ SL) การใช้หน่วย R ทำให้เทียบไม้ที่ SL ต่างกันได้

ดูภาพด้านล่าง

ไม้ Buy หนึ่งไม้: MAE $3 และ MFE $8One buy trade: MAE $3 and MFE $8
2,0002,005ราคาเข้าEntryMAE −$3MAE −$3MFE +$8MFE +$8ออกที่ +$5Exit at +$5
วิ่งสวนสุด $3 วิ่งตามสุด $8 แต่ออกจริงที่ +$5Worst $3 against, best $8 for, exited at +$5
กำไรที่ได้จริง เทียบกับ MFEProfit taken vs MFE
MFE วิ่งตามสูงสุดMFE, best move$8กำไรที่ออกจริงProfit taken$5กำไรที่คืนตลาดProfit given back$3
ถ้าส่วนที่คืนตลาดใหญ่บ่อย ๆ อาจออกเร็วหรือ TP ใกล้ไปIf the give-back is often large, exits may be early

เก็บข้อมูลอย่างไร

  1. ทุกไม้ จดราคาเข้า ราคาออก SL TP
  2. ดูกราฟช่วงที่ถือไม้ หาจุดที่ราคาวิ่งสวนไกลสุด (ไม้ Buy คือราคาต่ำสุด ไม้ Sell คือราคาสูงสุด) และจุดที่วิ่งตามไกลสุด
  3. คำนวณ MAE และ MFE เป็นระยะราคา
  4. แยกกลุ่มไม้ชนะกับไม้แพ้ เพราะจะบอกเรื่องต่างกัน

ใน backtest ด้วย EA สามารถให้โปรแกรมบันทึกค่าสูงสุดต่ำสุดระหว่างถือไม้ได้ ส่วนการเทรดมือ ใช้กราฟ M1 หรือ M5 ช่วงนั้นหาค่าได้

เก็บ MAE และ MFE ทีละไม้Logging MAE and MFE per trade
1จดราคาเข้า ราคาออก SL TPRecord entry, exit, SL and TP2หาจุดสวนไกลสุดและตามไกลสุดFind the furthest move against and for3คิดเป็นระยะราคา หรือหน่วย RConvert to price distance or R4แยกกลุ่มไม้ชนะกับไม้แพ้Split winners from losers

อ่านผลเพื่อปรับ SL

ดู MAE ของไม้ที่ชนะ ถ้าไม้ชนะเกือบทั้งหมดไม่เคยวิ่งสวนเกินระยะหนึ่ง แต่ SL ตั้งไว้กว้างกว่านั้นมาก แปลว่าเราอาจจ่ายความเสี่ยงต่อไม้มากเกินจำเป็น การลด SL ลงมาใกล้ระยะนั้น (บวกระยะเผื่อ) ทำให้ใช้ล็อตใหญ่ขึ้นได้ภายใต้ความเสี่ยงเป็นเงินเท่าเดิม

ในทางกลับกัน ถ้าพบว่าไม้จำนวนมากโดน SL แล้วราคาค่อยกลับไปทางที่ถูก แปลว่า SL อาจแคบเกินไปจนโดนสัญญาณรบกวนกิน

🧮 ใช้ MAE ปรับ SL ทองคำ

สมมติระบบทองคำตั้ง SL ห่าง $10 (ระยะราคา) และยอมเสีย $50 ต่อไม้ ล็อต = 50 ÷ (10 × 100) = 0.05 ล็อต (ทอง 1 ล็อตขยับ $1 = $100) จดไม้ชนะ 10 ไม้ล่าสุด MAE เรียงจากน้อยไปมาก: 0.8, 1.2, 1.9, 2.0, 2.4, 2.6, 3.0, 3.5, 4.1, 5.2 9 ใน 10 ไม้วิ่งสวนไม่เกิน $4.1 และไม่มีไม้ไหนเกิน $5.2 ห่างจาก SL $10 พอสมควร ถ้าลอง SL $6 (เผื่อจาก 5.2): ล็อต = 50 ÷ (6 × 100) ≈ 0.083 ปัดลงเป็น 0.08 ล็อต ความเสี่ยงจริง = 6 × 100 × 0.08 = $48 ไม้ชนะทั้ง 10 ไม้ในตัวอย่างนี้ยังรอด และได้กำไรต่อไม้มากขึ้นราว 0.08 ÷ 0.05 = 1.6 เท่า แต่ 10 ไม้น้อยเกินไปที่จะตัดสินจริง ต้องเก็บอย่างน้อยระดับร้อยไม้ และนับด้วยว่ามีไม้ที่ MAE อยู่ระหว่าง $6–$10 แล้วชนะกี่ไม้ ไม้กลุ่มนั้นจะกลายเป็นไม้แพ้ทันทีถ้าใช้ SL ใหม่

ดูภาพด้านล่าง

MAE ของไม้ชนะ 10 ไม้ (SL เดิม $10)MAE of 10 winners (old stop $10)
ไม้ 1Trade 1$0.8ไม้ 2Trade 2$1.2ไม้ 3Trade 3$1.9ไม้ 4Trade 4$2.0ไม้ 5Trade 5$2.4ไม้ 6Trade 6$2.6ไม้ 7Trade 7$3.0ไม้ 8Trade 8$3.5ไม้ 9Trade 9$4.1ไม้ 10Trade 10$5.2
ไม่มีไม้ไหนสวนเกิน $5.2 ห่างจาก SL $10 มาก จึงลอง SL $6None went past $5.2, far from the $10 stop, so test $6
SL แคบลง = ล็อตใหญ่ขึ้น ที่ความเสี่ยงใกล้เดิมTighter stop = bigger lot, similar risk
SL $10 เสี่ยง $50$10 stop, $50 risk0.05 lotSL $6 เสี่ยง $48$6 stop, $48 risk0.08 lot
ล็อต = เงินที่ยอมเสีย ÷ (ระยะ SL × 100)Lot = money at risk ÷ (stop distance × 100)

อ่านผลเพื่อปรับการทำกำไร

ดู MFE เทียบกับกำไรที่ได้จริง ของไม้ชนะ ถ้า MFE เฉลี่ยมากกว่ากำไรที่ออกจริงหลายเท่า แปลว่าเราออกเร็วเกินหรือ TP ใกล้เกิน อาจลองขยาย TP หรือใช้ Trailing stop

ดู MFE ของไม้ที่แพ้ ถ้าไม้แพ้จำนวนมากเคยวิ่งตามไปไกลพอสมควรก่อนกลับมาโดน SL อาจลองแบ่งปิดบางส่วน หรือเลื่อน SL มาจุดเข้า (Breakeven) เมื่อถึงระยะหนึ่ง แต่ต้องทดสอบกับไม้ชนะด้วย เพราะการเลื่อน SL เร็วเกินไปอาจตัดไม้ชนะที่ต้องย่อก่อนไปต่อทิ้ง

ถ้าอยากเห็นภาพว่าในอดีต ราคามักวิ่งสวนก่อนไปต่อไกลแค่ไหนในสถานการณ์คล้ายกัน เครื่องมือวิเคราะห์ภาพกราฟ ช่วยดูระยะเหล่านี้ได้

จุดอ่อน / ข้อผิดพลาดที่พบบ่อย

  • ตัวอย่างน้อย สรุปจาก 10–20 ไม้ แล้วบีบ SL จนแคบ
  • ปรับจนพอดีอดีต การเลือก SL ที่ "พอดี" กับ MAE ในอดีตเป๊ะ ๆ คือ Overfitting อีกรูปแบบ ต้องมีระยะเผื่อเสมอ
  • ลืมว่าความผันผวนเปลี่ยน ระยะที่พอดีในช่วงตลาดเงียบ อาจแคบเกินไปในช่วงตลาดผันผวน การวัด MAE เป็นหน่วยของ ATR ช่วยแก้ได้บางส่วน
  • ดูแต่ไม้ชนะ ต้องดูไม้แพ้ด้วยเพื่อรู้ว่าการเปลี่ยนกฎกระทบทั้งระบบอย่างไร
  • วัดจากราคา Bid อย่างเดียว ไม้ Sell ปิดที่ราคา Ask สเปรดทำให้ MAE จริงกว้างกว่าที่เห็นบนกราฟ
ใช้ MAE/MFE ให้ถูกวิธีUsing MAE/MFE the right way
ทำแบบนี้Do✓เก็บระดับร้อยไม้ก่อนเปลี่ยน SLCollect hundreds of trades first✓เผื่อระยะเหนือ MAE เสมอAlways keep a buffer above MAE✓วัดเป็น R หรือ ATRMeasure in R or ATR✓ดูทั้งไม้ชนะและไม้แพ้Study winners and losersอย่าทำแบบนี้Don't✗บีบ SL จาก 10–20 ไม้Tighten the stop from 10–20 trades✗ตั้ง SL พอดีกับ MAE อดีตเป๊ะFit the stop exactly to past MAE✗ลืมสเปรดของไม้ SellForget the spread on sells

ใช้บนมือถือ

บนแอป MT5 มือถือ เปิดไม้ที่ปิดแล้วในประวัติ แล้วสลับไปกราฟ M5 ช่วงเวลานั้นเพื่อหาจุดสวนไกลสุดและตามไกลสุด จดลงสเปรดชีตสองคอลัมน์ ทำทุกวันหลังตลาดปิด ใช้เวลาไม่กี่นาที

สรุป

  • MAE คือระยะวิ่งสวนสูงสุด MFE คือระยะวิ่งตามสูงสุดระหว่างถือไม้
  • MAE ของไม้ชนะช่วยดูว่า SL กว้างเกินจำเป็นหรือไม่
  • MFE ช่วยดูว่ากำลังปล่อยกำไรทิ้ง หรือควรมีวิธีป้องกันไม้ที่เคยกำไรแล้วกลับมาแพ้
  • ต้องใช้ตัวอย่างมากและเผื่อระยะเสมอ ไม่บีบ SL ให้พอดีอดีต
  • วัดเป็นหน่วย R หรือ ATR เพื่อให้เทียบข้ามช่วงเวลาได้

No trade travels in a straight line from entry to exit. Along the way, price moves against you for a while and in your favour for a while. Recording those two distances for every trade lets you answer important questions with data, such as "is my stop too wide or too tight?" and "am I leaving profit on the table?"

What MAE and MFE are

  • MAE (Maximum Adverse Excursion) is the furthest price moved against you while the trade was open. Buy, price dips $3 below entry before rising: MAE = $3.
  • MFE (Maximum Favorable Excursion) is the furthest price moved in your favour while the trade was open. Buy, price rises $8 above entry, then you exit at +$5: MFE = $8.

You can measure them as a price distance, in points or pips, or in R (relative to the stop distance). Using R lets you compare trades with different stop sizes.

See the charts below.

ไม้ Buy หนึ่งไม้: MAE $3 และ MFE $8One buy trade: MAE $3 and MFE $8
2,0002,005ราคาเข้าEntryMAE −$3MAE −$3MFE +$8MFE +$8ออกที่ +$5Exit at +$5
วิ่งสวนสุด $3 วิ่งตามสุด $8 แต่ออกจริงที่ +$5Worst $3 against, best $8 for, exited at +$5
กำไรที่ได้จริง เทียบกับ MFEProfit taken vs MFE
MFE วิ่งตามสูงสุดMFE, best move$8กำไรที่ออกจริงProfit taken$5กำไรที่คืนตลาดProfit given back$3
ถ้าส่วนที่คืนตลาดใหญ่บ่อย ๆ อาจออกเร็วหรือ TP ใกล้ไปIf the give-back is often large, exits may be early

Collecting the data

  1. For every trade, record entry, exit, SL and TP.
  2. Look at the chart while the trade was open. Find the furthest adverse point (the low for a buy, the high for a sell) and the furthest favourable point.
  3. Calculate MAE and MFE as price distances.
  4. Split winners and losers, because they tell you different things.

In an EA backtest, the program can record the high and low during each trade. For manual trades, use the M1 or M5 chart for that period.

เก็บ MAE และ MFE ทีละไม้Logging MAE and MFE per trade
1จดราคาเข้า ราคาออก SL TPRecord entry, exit, SL and TP2หาจุดสวนไกลสุดและตามไกลสุดFind the furthest move against and for3คิดเป็นระยะราคา หรือหน่วย RConvert to price distance or R4แยกกลุ่มไม้ชนะกับไม้แพ้Split winners from losers

Using MAE to adjust the stop

Look at the MAE of winning trades. If almost all winners never moved against you beyond a certain distance, but your stop is much wider, you may be paying more risk per trade than necessary. Bringing the stop closer to that distance (plus a buffer) lets you trade a larger size for the same dollar risk.

The reverse also matters. If many trades hit the stop and then went your way, the stop may be so tight that noise is taking you out.

🧮 Using MAE to tune a gold stop

Suppose a gold system uses a $10 stop distance and risks $50 per trade. Lot = 50 ÷ (10 × 100) = 0.05 lots (a $1 move in gold = $100 per 1.00 lot). The last 10 winners had these MAEs, sorted: 0.8, 1.2, 1.9, 2.0, 2.4, 2.6, 3.0, 3.5, 4.1, 5.2. 9 of 10 moved against you by $4.1 or less, and none beyond $5.2, well inside the $10 stop. Try a $6 stop (a buffer above 5.2): lot = 50 ÷ (6 × 100) ≈ 0.083, rounded down to 0.08 lots. Real risk = 6 × 100 × 0.08 = $48. All 10 winners in this sample would still have survived, each with about 0.08 ÷ 0.05 = 1.6 times the profit. But 10 trades are far too few to decide. Collect hundreds, and count how many winners had an MAE between $6 and $10: every one of those becomes a loser under the new stop.

See the charts below.

MAE ของไม้ชนะ 10 ไม้ (SL เดิม $10)MAE of 10 winners (old stop $10)
ไม้ 1Trade 1$0.8ไม้ 2Trade 2$1.2ไม้ 3Trade 3$1.9ไม้ 4Trade 4$2.0ไม้ 5Trade 5$2.4ไม้ 6Trade 6$2.6ไม้ 7Trade 7$3.0ไม้ 8Trade 8$3.5ไม้ 9Trade 9$4.1ไม้ 10Trade 10$5.2
ไม่มีไม้ไหนสวนเกิน $5.2 ห่างจาก SL $10 มาก จึงลอง SL $6None went past $5.2, far from the $10 stop, so test $6
SL แคบลง = ล็อตใหญ่ขึ้น ที่ความเสี่ยงใกล้เดิมTighter stop = bigger lot, similar risk
SL $10 เสี่ยง $50$10 stop, $50 risk0.05 lotSL $6 เสี่ยง $48$6 stop, $48 risk0.08 lot
ล็อต = เงินที่ยอมเสีย ÷ (ระยะ SL × 100)Lot = money at risk ÷ (stop distance × 100)

Using MFE to adjust exits

Compare MFE with the profit actually taken on winners. If the average MFE is several times the realised profit, you may be exiting too early or setting targets too close. Consider a wider target or a trailing stop.

Look at the MFE of losing trades. If many losers went well into profit before reversing to the stop, you might test partial exits or moving the stop to breakeven at some distance. Test it against the winners too: moving the stop too early can kill winners that need a pullback before continuing.

To see how far price has historically moved against an entry before continuing in similar situations, the chart analysis tool can show those distances.

Weaknesses / common mistakes

  • Small samples. Tightening the stop based on 10–20 trades.
  • Fitting the past. Choosing a stop that matches past MAE exactly is another form of overfitting. Always keep a buffer.
  • Forgetting that volatility changes. A distance that fits a quiet market may be too tight in a volatile one. Measuring MAE in units of ATR helps.
  • Only studying winners. Losers show how a rule change affects the whole system.
  • Measuring on Bid only. Sells close at the Ask, so the spread makes the real MAE wider than the chart shows.
ใช้ MAE/MFE ให้ถูกวิธีUsing MAE/MFE the right way
ทำแบบนี้Do✓เก็บระดับร้อยไม้ก่อนเปลี่ยน SLCollect hundreds of trades first✓เผื่อระยะเหนือ MAE เสมอAlways keep a buffer above MAE✓วัดเป็น R หรือ ATRMeasure in R or ATR✓ดูทั้งไม้ชนะและไม้แพ้Study winners and losersอย่าทำแบบนี้Don't✗บีบ SL จาก 10–20 ไม้Tighten the stop from 10–20 trades✗ตั้ง SL พอดีกับ MAE อดีตเป๊ะFit the stop exactly to past MAE✗ลืมสเปรดของไม้ SellForget the spread on sells

On a phone

In the MT5 mobile app, open a closed trade in History, then switch to the M5 chart for that time to find the furthest adverse and favourable points. Log them in two spreadsheet columns. Done daily after the session, it takes a few minutes.

Summary

  • MAE is the furthest move against you, MFE the furthest move for you, while a trade is open.
  • MAE of winners shows whether your stop is wider than it needs to be.
  • MFE shows whether you leave profit behind, or need protection for trades that were once in profit.
  • Use large samples and always keep a buffer; never fit the stop exactly to the past.
  • Measure in R or ATR so results compare across different market conditions.
ลองกับกราฟของคุณ: วิเคราะห์ภาพกราฟฟรีTry it on your chart: free chart screenshot analysisวางภาพหน้าจอกราฟ ดูว่าในประวัติหลายปี กราฟหน้าตาแบบนี้ราคามักวิ่งไกลแค่ไหน และวิ่งสวนก่อนเท่าไร — คำนวณในเครื่องคุณPaste a chart screenshot and see how far price usually travelled after similar charts — and how far it moved against you first. Runs on your device.
เปิดฟรี ›Open free ›

อ่านต่อRead next

กราฟ XAUUSD ประกอบหมวด การบริหารเงิน (Money Management) / Money management
การบริหารเงิน (Money Management)Money managementกลางIntermediate4 นาที4 min

การวางจุดตัดขาดทุน (Stop Loss Placement)Stop-Loss Placement

วิธีวาง SL ให้อยู่ตรงจุดที่ "ความคิดเทรดผิดแล้ว" ทั้งแบบโครงสร้างราคาและแบบ ATR พร้อมตัวอย่างคำนวณล็อตหลังวาง SLHow to place a stop where the trade idea is proven wrong, using structure and ATR, with lot calculations after the stop is set.

กราฟ XAUUSD ประกอบหมวด การบริหารเงิน (Money Management) / Money management
การบริหารเงิน (Money Management)Money managementกลางIntermediate4 นาที4 min

วิธีตั้งจุดทำกำไร (Take Profit)Take-Profit Methods

เปรียบเทียบวิธีตั้ง TP แบบต่าง ๆ ทั้งแบบ R คงที่ แนวรับแนวต้าน ATR และปิดบางส่วน พร้อมผลลัพธ์ที่คำนวณเป็นตัวเลขA comparison of take-profit methods, fixed R, structure, ATR and partial closes, with the outcomes worked out in numbers.

กราฟ XAUUSD ประกอบหมวด การบริหารเงิน (Money Management) / Money management
การบริหารเงิน (Money Management)Money managementกลางIntermediate4 นาที4 min

การเลื่อน SL ตามราคา (Trailing Stop)Trailing Stops

วิธีเลื่อน SL ตามราคาเพื่อล็อกกำไรและปล่อยให้เทรนด์วิ่ง ทั้งแบบระยะคงที่ ATR และโครงสร้าง พร้อมข้อแลกเปลี่ยนที่ต้องรู้How to move your stop with price to lock in profit and let trends run, using fixed distance, ATR and structure, and the trade-offs involved.

กราฟ XAUUSD ประกอบหมวด ทดสอบระบบและเทรดแบบมืออาชีพ / Testing & trading like a pro
ทดสอบระบบและเทรดแบบมืออาชีพTesting & trading like a proกลางIntermediate5 นาที5 min

ตัวชี้วัดผลงานระบบเทรด (Profit Factor, Expectancy, Drawdown, Sharpe)Trading Performance Metrics (Profit Factor, Expectancy, Drawdown, Sharpe)

อ่านรายงานผลเทรดให้เป็น รู้ว่าแต่ละตัวเลขบอกอะไร คำนวณอย่างไร และตัวไหนหลอกตาได้ง่ายLearn to read a trading report: what each number tells you, how it is calculated, and which ones mislead easily.

กราฟ XAUUSD ประกอบหมวด ทดสอบระบบและเทรดแบบมืออาชีพ / Testing & trading like a pro
ทดสอบระบบและเทรดแบบมืออาชีพTesting & trading like a proกลางIntermediate5 นาที5 min

การทดสอบย้อนหลัง (Backtesting) และ Strategy Tester ของ MT5Backtesting and the MT5 Strategy Tester

วิธีทดสอบกฎการเทรดกับข้อมูลในอดีตให้ได้ผลที่เชื่อถือได้ ทั้งแบบมือและด้วย Strategy Tester ของ MT5 พร้อมกับดักที่ทำให้ผลสวยเกินจริงHow to test trading rules on past data in a way you can trust, by hand and with the MT5 Strategy Tester, plus the traps that make results look better than they are.