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

การทดสอบไปข้างหน้า (Forward Testing)Forward Testing

ทดสอบระบบกับตลาดจริงที่ยังไม่เกิดก่อนใช้เงินก้อนใหญ่ วัดอะไร นานแค่ไหน และเมื่อไหร่ควรหยุดHow to test a system on live, unseen market data before committing real size: what to measure, how long to run it, and when to stop.

กราฟ XAUUSD ประกอบหมวด ทดสอบระบบและเทรดแบบมืออาชีพ / Testing & trading like a pro
ในบทความนี้ · 8
  1. ทำไม backtest อย่างเดียวไม่พอ
  2. เตรียมก่อนเริ่ม
  3. Demo หรือบัญชีจริงไม้เล็ก
  4. สิ่งที่ต้องวัดระหว่างทดสอบ
  5. จะรู้ได้อย่างไรว่าผลต่างจาก backtest "ผิดปกติ"
  6. จุดอ่อน / ข้อผิดพลาดที่พบบ่อย
  7. ใช้บนมือถือ
  8. สรุป
In this article · 8
  1. Why a backtest alone is not enough
  2. Preparing
  3. Demo or small live
  4. What to measure
  5. How to tell whether a difference is "abnormal"
  6. Weaknesses / common mistakes
  7. On a phone
  8. Summary

การทดสอบไปข้างหน้า (Forward testing) คือการเอาระบบที่ผ่าน backtest แล้ว มาใช้กับตลาดจริงที่กำลังเกิดขึ้น ไม่ว่าจะในบัญชีทดลอง (Demo) หรือบัญชีจริงด้วยขนาดไม้เล็กมาก จุดประสงค์คือดูว่าผลที่ได้ในอดีตยังอยู่รอดเมื่อเจอข้อมูลที่ระบบไม่เคยเห็น และเมื่อเจอสิ่งที่ backtest จำลองไม่ได้ เช่น สลิปเพจ (Slippage) อินเทอร์เน็ตหลุด หรือมือเราเองที่ลังเล

ทำไม backtest อย่างเดียวไม่พอ

backtest มีจุดบอดเสมอ แม้จะทำอย่างระมัดระวัง

  • ข้อมูลที่ใช้ถูกเห็นมาแล้ว ตอนสร้างระบบ เรามักปรับกฎหลังจากดูกราฟช่วงเดียวกัน ทำให้ผลดีเกินจริงโดยไม่รู้ตัว
  • การส่งคำสั่งจริงไม่สมบูรณ์ ราคาที่ได้จริงอาจต่างจากราคาที่เห็น สเปรดกว้างขึ้นช่วงข่าวหรือช่วงตลาดเปิด
  • คนไม่ใช่เครื่อง ใน backtest เราไม่เคยข้ามสัญญาณเพราะกลัว แต่ในตลาดจริงเกิดขึ้นบ่อย

forward test จึงเป็นด่านที่สองที่ตอบคำถามว่า "ระบบนี้ทำงานในโลกจริงกับตัวเราได้ไหม"

เตรียมก่อนเริ่ม

  1. จดตัวเลขอ้างอิงจาก backtest เช่น อัตราชนะ กำไรเฉลี่ยต่อไม้ (Expectancy) จำนวนไม้ต่อเดือน Drawdown สูงสุด และแพ้ติดกันยาวสุด
  2. ล็อกกฎ ห้ามแก้กฎระหว่างทดสอบ ถ้าอยากแก้ ให้จดไว้แล้วเริ่มรอบทดสอบใหม่
  3. กำหนดเกณฑ์หยุดล่วงหน้า เช่น ถ้า drawdown เกิน 1.5 เท่าของค่าสูงสุดใน backtest ให้หยุดทบทวน
  4. กำหนดขนาดตัวอย่าง ตั้งเป้าจำนวนไม้ เช่น 50–100 ไม้ ไม่ใช่จำนวนวัน ระบบที่เทรดน้อยต้องใช้เวลานานกว่า
เตรียมก่อนเริ่ม forward testBefore a forward test starts
1จดตัวเลขอ้างอิงจาก backtestWrite down the backtest referencenumbers2ล็อกกฎ ห้ามแก้ระหว่างทดสอบFreeze the rules for the whole test3ตั้งเกณฑ์หยุด เช่น DD เกิน 1.5 เท่าStop rule, e.g. DD over 1.5× backtest max4ตั้งเป้า 50–100 ไม้ ไม่ใช่จำนวนวันTarget 50–100 trades, not days

Demo หรือบัญชีจริงไม้เล็ก

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

ลำดับที่หลายคนใช้คือ demo ก่อนเพื่อเช็คว่ากฎและ EA ทำงานถูกต้อง แล้วต่อด้วยบัญชีจริงขนาดไม้เล็กที่สุดที่โบรกให้ (เช่น 0.01 ล็อต) ก่อนค่อย ๆ เพิ่มขนาด ดูรายละเอียดเพิ่มที่ จาก Demo สู่บัญชีจริง

ลำดับการทดสอบก่อนใช้ไม้ใหญ่The testing ladder before real size
1Backtest ผ่านด้วยข้อมูลอดีตBacktest passes on past data2Demo เช็คว่ากฎและ EA ทำงานถูกDemo: check rules and EA behave correctly3บัญชีจริงไม้เล็กสุด เช่น 0.01 ล็อตLive at the smallest size, e.g. 0.01 lots4เพิ่มขนาดทีละขั้นเมื่อผ่านเกณฑ์Step size up only after passing criteria

สิ่งที่ต้องวัดระหว่างทดสอบ

  • ราคาเข้าที่ตั้งใจ เทียบกับราคาที่ได้จริง ความต่างนี้คือสลิปเพจ
  • สเปรดตอนเข้าไม้ โดยเฉพาะช่วงข่าวและช่วงเปลี่ยนวัน
  • สัญญาณที่ระบบให้ แต่เราไม่ได้เข้า ถ้ามีเยอะ ปัญหาอยู่ที่คน ไม่ใช่ระบบ
  • ตัวเลขผลลัพธ์ เทียบกับตัวเลขอ้างอิงจาก backtest ทุก 20–25 ไม้

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

🧮 กำไรเฉลี่ยหายไปไหน

สมมติ backtest ทองคำที่ 0.10 ล็อต อัตราชนะ 40% กำไรเฉลี่ย $30 ขาดทุนเฉลี่ย $15 Expectancy = 0.40 × 30 − 0.60 × 15 = 12 − 9 = $3 ต่อไม้ ใน forward test พบว่าสลิปเพจเฉลี่ย $0.20 ต่อออนซ์ ที่ 0.10 ล็อต (10 ออนซ์) = 0.20 × 10 = $2 ต่อไม้ Expectancy ที่เหลือ = 3 − 2 = $1 ต่อไม้ ระบบยังเป็นบวก แต่บางลงมาก ถ้าสลิปเพจเพิ่มอีกเพียง $0.10 ต่อออนซ์ ($1 ต่อไม้) ระบบจะเหลือศูนย์พอดี ข้อสรุปไม่ใช่ "ระบบใช้ไม่ได้" แต่คือ "ระบบนี้ไวต่อต้นทุนมาก" ต้องหาทางลดต้นทุน หรือใช้ TP/SL ที่กว้างขึ้น

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

Expectancy ต่อไม้ หลังเจอสลิปเพจจริงExpectancy per trade after real slippage
BacktestBacktest$3สลิปเพจ $0.20/ออนซ์Slippage $0.20/oz$1สลิปเพจ $0.30/ออนซ์Slippage $0.30/oz$0
ต้นทุนเพิ่มแค่ไม่กี่สิบเซนต์ต่อออนซ์ก็ทำให้ขอบหายได้A few cents per ounce can erase the edge

จะรู้ได้อย่างไรว่าผลต่างจาก backtest "ผิดปกติ"

ผล forward test จะไม่เหมือน backtest เป๊ะ เพราะตัวอย่างสั้นและมีโชคเข้ามาเกี่ยว คำถามที่ควรถามคือผลยังอยู่ในกรอบที่ backtest เคยเจอหรือไม่

  • แพ้ติดกัน 6 ไม้ ขณะที่ backtest เคยแพ้ติดกัน 9 ไม้ = ยังปกติ
  • drawdown ลึกกว่าค่าสูงสุดใน backtest ชัดเจน = สัญญาณเตือน
  • อัตราชนะใกล้เดิม แต่กำไรเฉลี่ยลดลงมาก = มักเป็นเรื่องต้นทุนหรือการออกไม้
  • จำนวนไม้ต่อเดือนต่างจากเดิมมาก = ตรวจว่าเงื่อนไขทำงานถูกต้อง หรือตลาดเปลี่ยนสภาพ
แพ้ติด 6 ไม้ ยังอยู่ในกรอบเดิมA 6-loss streak is still inside the range
Forward แพ้ติดกันForward losingstreak6Backtest เคยแพ้ติดกันBacktest worststreak9
ถามว่าผลยังอยู่ในกรอบที่เคยเจอไหม ไม่ใช่ตรงเป๊ะไหมAsk if it is inside the known range, not an exact match
ปกติ หรือ สัญญาณเตือนNormal or a warning sign
ยังปกติStill normal✓แพ้ติดกันน้อยกว่าที่ backtest เคยเจอStreak shorter than the backtest worst✓อัตราชนะและกำไรเฉลี่ยใกล้เดิมWin rate and average profit similarสัญญาณเตือนWarning sign✗DD ลึกกว่าค่าสูงสุดใน backtest ชัดเจนDD clearly beyond the backtest max✗ชนะเท่าเดิมแต่กำไรเฉลี่ยลดมากSame win rate, much smaller profit✗จำนวนไม้ต่อเดือนต่างจากเดิมมากTrade count per month very different

การทำ Monte Carlo จากผล backtest จะช่วยให้เห็นกรอบที่กว้างขึ้นว่า "แย่แค่ไหนยังถือว่าปกติ"

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

  • ใจร้อน ทดสอบแค่สองสัปดาห์แล้วสรุป ช่วงสั้น ๆ อาจเจอแต่ตลาดแบบเดียว
  • แก้กฎกลางทาง ทุกครั้งที่แก้ ผลก่อนหน้าใช้เทียบไม่ได้อีก
  • demo สวยแล้วเพิ่มไม้ทันที การจับคู่คำสั่งและความรู้สึกต่างจากบัญชีจริงมาก
  • ไม่จดสัญญาณที่ข้าม ทำให้ไม่รู้ว่าผลที่ได้มาจากระบบหรือจากการเลือกเอง
  • ใช้ forward test เป็นการปรับค่าอีกรอบ ถ้าดูผลแล้วปรับค่าเรื่อย ๆ ก็กลายเป็น backtest ที่ช้าลงเท่านั้น
forward test ที่ได้ข้อมูลจริงA forward test that tells you something
ทำแบบนี้Do✓ทดสอบจนครบจำนวนไม้ที่ตั้งไว้Run until the target trade count✓จดทุกสัญญาณ รวมที่ข้ามไปLog every signal, including skipped ones✓เพิ่มไม้ทีละขั้นหลังผ่านเกณฑ์Size up step by step after passingอย่าทำแบบนี้Don't✗ทดสอบสองสัปดาห์แล้วสรุปJudge after two weeks✗แก้กฎหรือปรับค่ากลางทางChange rules or re-optimize midway✗demo สวยแล้วเพิ่มไม้ทันทีSize up right after a good demo

ใช้บนมือถือ

forward test แบบเทรดมือทำบนมือถือได้ดี ตั้งแจ้งเตือนราคา (Alert) ที่จุดเงื่อนไข เมื่อเข้าไม้ให้แคปหน้าจอคำสั่งไว้ทั้งราคาที่ตั้งใจและราคาที่ได้ แล้วจดลงสเปรดชีตทันที ถ้าใช้ EA ต้องรันบนคอมพิวเตอร์หรือ VPS เพราะแอปมือถือรัน EA ไม่ได้

สรุป

  • Forward test คือการทดสอบกับตลาดที่ยังไม่เกิด เพื่อจับสิ่งที่ backtest มองไม่เห็น
  • ล็อกกฎ ตั้งเกณฑ์หยุด และกำหนดจำนวนไม้เป้าหมายก่อนเริ่ม
  • วัดสลิปเพจ สเปรด และสัญญาณที่ข้าม ไม่ใช่แค่กำไรขาดทุน
  • เทียบผลกับกรอบปกติจาก backtest ไม่ใช่เทียบตัวเลขเป๊ะ
  • เพิ่มขนาดไม้ทีละขั้นหลังผลผ่านเกณฑ์เท่านั้น

Forward testing means taking a system that passed its backtest and running it on the market as it unfolds, either on a demo account or on a live account with very small size. The goal is to see whether the historical result survives contact with data the system has never seen, and with things a backtest cannot simulate: slippage, dropped connections, and your own hesitation.

Why a backtest alone is not enough

Every backtest has blind spots, however careful you are.

  • The data has already been seen. While building a system we usually tweak rules after looking at the same charts, which flatters results without us noticing.
  • Real execution is imperfect. The fill can differ from the price on screen, and spreads widen around news and the daily rollover.
  • People are not machines. In a backtest you never skip a signal out of fear. Live, it happens all the time.

A forward test is the second gate. It answers: "does this system work in the real world, with me running it?"

Preparing

  1. Write down the reference numbers from the backtest: win rate, expectancy, trades per month, maximum drawdown and longest losing streak.
  2. Freeze the rules. No changes during the test. If you want to change something, note it and start a new test round.
  3. Set stop criteria in advance, e.g. if drawdown exceeds 1.5 times the backtest maximum, stop and review.
  4. Set a sample size in trades, not days, e.g. 50–100 trades. A slow system simply takes longer.
เตรียมก่อนเริ่ม forward testBefore a forward test starts
1จดตัวเลขอ้างอิงจาก backtestWrite down the backtest referencenumbers2ล็อกกฎ ห้ามแก้ระหว่างทดสอบFreeze the rules for the whole test3ตั้งเกณฑ์หยุด เช่น DD เกิน 1.5 เท่าStop rule, e.g. DD over 1.5× backtest max4ตั้งเป้า 50–100 ไม้ ไม่ใช่จำนวนวันTarget 50–100 trades, not days

Demo or small live

TypeProsCons
DemoFree, unlimitedFills may be kinder than live; no emotional pressure
Small liveReal slippage and spreads; real pressureCosts real money, even if little

A common sequence is demo first to confirm the rules and the EA behave correctly, then live at the smallest size the broker allows (for example 0.01 lots), and only then step size up gradually. See Demo to live.

ลำดับการทดสอบก่อนใช้ไม้ใหญ่The testing ladder before real size
1Backtest ผ่านด้วยข้อมูลอดีตBacktest passes on past data2Demo เช็คว่ากฎและ EA ทำงานถูกDemo: check rules and EA behave correctly3บัญชีจริงไม้เล็กสุด เช่น 0.01 ล็อตLive at the smallest size, e.g. 0.01 lots4เพิ่มขนาดทีละขั้นเมื่อผ่านเกณฑ์Step size up only after passing criteria

What to measure

  • Intended entry versus actual fill. The difference is slippage.
  • Spread at entry, especially around news and rollover.
  • Signals the system gave that you did not take. If there are many, the problem is the trader, not the system.
  • Results, compared with the backtest reference numbers every 20–25 trades.

To set expectations for how far price has historically moved against an entry before going your way, you can compare with the chart analysis tool, which helps when judging stop distance.

🧮 Where did the average profit go?

Suppose a gold backtest at 0.10 lots shows a 40% win rate, $30 average win and $15 average loss. Expectancy = 0.40 × 30 − 0.60 × 15 = 12 − 9 = $3 per trade. In the forward test, average slippage is $0.20 per ounce. At 0.10 lots (10 oz) that is 0.20 × 10 = $2 per trade. Remaining expectancy = 3 − 2 = $1 per trade. Still positive, but thin. Another $0.10 per ounce of slippage ($1 per trade) would take it to exactly zero. The conclusion is not "the system is broken" but "this system is very sensitive to costs". Reduce costs, or use wider stops and targets.

See the chart below.

Expectancy ต่อไม้ หลังเจอสลิปเพจจริงExpectancy per trade after real slippage
BacktestBacktest$3สลิปเพจ $0.20/ออนซ์Slippage $0.20/oz$1สลิปเพจ $0.30/ออนซ์Slippage $0.30/oz$0
ต้นทุนเพิ่มแค่ไม่กี่สิบเซนต์ต่อออนซ์ก็ทำให้ขอบหายได้A few cents per ounce can erase the edge

How to tell whether a difference is "abnormal"

Forward results will never match the backtest exactly, because the sample is short and luck plays a role. The right question is whether results stay inside the range the backtest has already shown.

  • Six losses in a row when the backtest had a nine-loss streak: still normal.
  • Drawdown clearly deeper than the backtest maximum: warning sign.
  • Similar win rate but much smaller average profit: usually costs or exits.
  • Trade frequency very different from before: check the conditions fire correctly, or whether the market regime changed.
แพ้ติด 6 ไม้ ยังอยู่ในกรอบเดิมA 6-loss streak is still inside the range
Forward แพ้ติดกันForward losingstreak6Backtest เคยแพ้ติดกันBacktest worststreak9
ถามว่าผลยังอยู่ในกรอบที่เคยเจอไหม ไม่ใช่ตรงเป๊ะไหมAsk if it is inside the known range, not an exact match
ปกติ หรือ สัญญาณเตือนNormal or a warning sign
ยังปกติStill normal✓แพ้ติดกันน้อยกว่าที่ backtest เคยเจอStreak shorter than the backtest worst✓อัตราชนะและกำไรเฉลี่ยใกล้เดิมWin rate and average profit similarสัญญาณเตือนWarning sign✗DD ลึกกว่าค่าสูงสุดใน backtest ชัดเจนDD clearly beyond the backtest max✗ชนะเท่าเดิมแต่กำไรเฉลี่ยลดมากSame win rate, much smaller profit✗จำนวนไม้ต่อเดือนต่างจากเดิมมากTrade count per month very different

Running a Monte Carlo simulation on the backtest trades gives a wider view of how bad things can get and still count as normal.

Weaknesses / common mistakes

  • Impatience. Two weeks of testing, then a verdict. A short window may contain only one type of market.
  • Changing rules midway. Every change makes earlier results incomparable.
  • Good demo, instant size-up. Demo fills and feelings differ a lot from live.
  • Not logging skipped signals. You cannot tell whether results come from the system or from your selection.
  • Using the forward test to optimize again. Tweaking after every batch just turns it into a slower backtest.
forward test ที่ได้ข้อมูลจริงA forward test that tells you something
ทำแบบนี้Do✓ทดสอบจนครบจำนวนไม้ที่ตั้งไว้Run until the target trade count✓จดทุกสัญญาณ รวมที่ข้ามไปLog every signal, including skipped ones✓เพิ่มไม้ทีละขั้นหลังผ่านเกณฑ์Size up step by step after passingอย่าทำแบบนี้Don't✗ทดสอบสองสัปดาห์แล้วสรุปJudge after two weeks✗แก้กฎหรือปรับค่ากลางทางChange rules or re-optimize midway✗demo สวยแล้วเพิ่มไม้ทันทีSize up right after a good demo

On a phone

Manual forward testing works well on a phone. Set price alerts at your trigger levels, screenshot the order ticket with both the intended and filled price, and log it in a spreadsheet right away. If you use an EA, it must run on a computer or a VPS; mobile apps cannot run EAs.

Summary

  • A forward test runs the system on unseen market data to catch what the backtest misses.
  • Freeze rules, set stop criteria and a target number of trades before you start.
  • Measure slippage, spread and skipped signals, not only profit and loss.
  • Compare results with the backtest's normal range, not its exact numbers.
  • Increase size step by step, and only after results pass your criteria.
ลองกับกราฟของคุณ: วิเคราะห์ภาพกราฟฟรี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 ประกอบหมวด ทดสอบระบบและเทรดแบบมืออาชีพ / 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.

กราฟ XAUUSD ประกอบหมวด พื้นฐานการเทรด / Trading basics
พื้นฐานการเทรดTrading basicsเริ่มต้นBeginner5 นาที5 min

จากบัญชีทดลองสู่บัญชีจริง (Demo to Live)Moving from Demo to Live

ใช้บัญชีทดลองให้ได้ประโยชน์จริง รู้ว่าเมื่อไรควรเริ่มเงินจริง และขยายขนาดไม้อย่างเป็นขั้นตอนโดยไม่ทำลายพอร์ตUse a demo account properly, know when you are ready for real money, and scale up step by step without wrecking the account.

กราฟ 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กลางIntermediate4 นาที4 min

VPS และคุณภาพการส่งคำสั่ง (Execution)VPS and Execution Quality

VPS คืออะไร จำเป็นเมื่อไหร่ เลือกอย่างไร และวิธีวัดสลิปเพจกับความหน่วงว่ากระทบผลการเทรดแค่ไหนWhat a VPS is, when you need one, how to choose, and how to measure slippage and latency to see how much they affect your results.

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

Overfitting: ระบบที่เก่งแค่ในอดีตOverfitting: Systems That Only Work in the Past

เข้าใจว่าทำไมการปรับค่าจนกราฟทุนสวยมักพังในตลาดจริง และวิธีทดสอบว่าระบบมีความทนทานจริงหรือแค่จำอดีตได้Why tuning a system until the equity curve looks perfect usually fails live, and how to test whether a system is robust or has just memorised the past.