เส้นค่าเฉลี่ยเคลื่อนที่ (Moving Average)Moving Averages
เข้าใจ SMA กับ EMA ต่างกันอย่างไร ตั้งค่าแบบไหน ใช้ดูเทรนด์ จุดเข้า จุดออก และรู้ว่าเมื่อไหร่ที่เส้นค่าเฉลี่ยหลอกเราLearn how SMA and EMA differ, which settings traders use, how to read trend, entries and exits, and when moving averages mislead you.

ในบทความนี้ · 7
In this article · 7
เส้นค่าเฉลี่ยเคลื่อนที่ (Moving Average หรือ MA) คืออินดิเคเตอร์ที่ง่ายที่สุดและถูกใช้มากที่สุดในโลกการเทรด มันไม่ได้ทำนายอนาคต แต่ช่วย "ลบเสียงรบกวน" ของกราฟ ให้เราเห็นทิศทางหลักของราคาได้ชัดขึ้น อินดิเคเตอร์อื่นอีกหลายตัว เช่น MACD และ Bollinger Bands ก็สร้างมาจากเส้นค่าเฉลี่ย ถ้าเข้าใจตัวนี้ดี ตัวอื่นจะง่ายขึ้นมาก
เส้นค่าเฉลี่ยคืออะไร
เส้นค่าเฉลี่ยคือการเอาราคาปิดย้อนหลัง N แท่งมาเฉลี่ย แล้วลากเป็นเส้นต่อกันไปเรื่อย ๆ ทุกครั้งที่มีแท่งใหม่ แท่งเก่าสุดจะหลุดออก แท่งใหม่เข้ามาแทน เส้นจึง "เคลื่อนที่" ตามราคา
SMA — ค่าเฉลี่ยธรรมดา (Simple Moving Average)
SMA = (ราคาปิดแท่งที่ 1 + 2 + … + N) ÷ N
ทุกแท่งมีน้ำหนักเท่ากัน เส้นจึงเรียบแต่ตอบสนองช้า
EMA — ค่าเฉลี่ยแบบถ่วงน้ำหนัก (Exponential Moving Average)
EMA วันนี้ = (ราคาปิด − EMA เมื่อวาน) × k + EMA เมื่อวาน โดย k = 2 ÷ (N + 1)
EMA ให้น้ำหนักกับราคาล่าสุดมากกว่า จึงหักหัวเร็วกว่า SMA แต่ก็โดนหลอกง่ายกว่าเมื่อตลาดแกว่ง เช่น EMA 20 มี k = 2 ÷ 21 ≈ 0.095 แปลว่าราคาปิดล่าสุดมีน้ำหนักประมาณ 9.5%
นอกจากนี้ยังมี WMA (ถ่วงน้ำหนักเชิงเส้น) และ SMMA (ค่าเฉลี่ยแบบเรียบ) ใน MT4/MT5 แต่หลักการเหมือนกัน คือแลกกันระหว่าง "เร็ว" กับ "นิ่ง" ดูภาพด้านล่าง
ค่าตั้งที่นิยมใช้
| ค่า | ใช้ทำอะไร |
|---|---|
| EMA 9–21 | เทรนด์ระยะสั้น ใช้หาจังหวะเข้าในกรอบเวลาเล็ก |
| EMA/SMA 50 | เทรนด์ระยะกลาง |
| SMA/EMA 100–200 | เทรนด์ใหญ่ ใช้เป็นตัวกรองว่าจะเน้นฝั่งซื้อหรือขาย |
ไม่มีค่าไหน "ถูกที่สุด" ค่าเหล่านี้นิยมเพราะคนดูเยอะ ไม่ใช่เพราะมีพลังพิเศษ ควรเลือกค่าให้สอดคล้องกับกรอบเวลาที่เทรด ดูเพิ่มที่ กรอบเวลา (Timeframe)
เทรดเดอร์อ่านเส้นค่าเฉลี่ยอย่างไร
- ดูทิศทางเทรนด์ — ราคาอยู่เหนือเส้นและเส้นชี้ขึ้น = แนวโน้มขาขึ้น ราคาอยู่ใต้เส้นและเส้นชี้ลง = ขาลง เส้นแบนและราคาตัดไปมา = ไซด์เวย์
- ดูความชัน — เส้นชันมาก แปลว่าแรงส่งแรง เส้นเริ่มแบน แปลว่าแรงอ่อนลง
- ใช้เป็นแนวรับแนวต้านเคลื่อนที่ (Dynamic Support/Resistance) — ในเทรนด์ที่ชัด ราคามักย่อมาแตะ EMA 20 หรือ 50 แล้วไปต่อ
- ดูการตัดกัน (Crossover) — เส้นเร็วตัดเส้นช้าขึ้น เรียกกันว่า Golden Cross เส้นเร็วตัดลงเรียกว่า Death Cross เป็นสัญญาณว่าโมเมนตัมเปลี่ยนฝั่ง
กฎเข้าออกแบบทั่วไป
ตัวอย่างระบบพื้นฐานที่คนใช้กันมาก (ใช้เป็นจุดตั้งต้นในการทดสอบ ไม่ใช่สูตรสำเร็จ):
- ใช้ EMA 200 เป็นตัวกรอง — ราคาอยู่เหนือเส้น เน้นหาจังหวะซื้อเท่านั้น
- รอราคาย่อลงมาแตะหรือใกล้ EMA 20
- รอแท่งเทียนยืนยัน เช่น แท่งกลืนกิน (Engulfing) หรือแท่งปิดกลับขึ้นเหนือ EMA 20
- วาง SL ใต้จุดต่ำสุดของการย่อ (Swing Low)
- ออกเมื่อถึงเป้า 2 เท่าของความเสี่ยง หรือเมื่อแท่งปิดใต้ EMA 20 (แบบตามเทรนด์)
ราคาปิด 5 แท่งล่าสุดของ XAUUSD: 2,000 / 2,004 / 2,010 / 2,006 / 2,015 SMA 5 = (2,000 + 2,004 + 2,010 + 2,006 + 2,015) ÷ 5 = 10,035 ÷ 5 = 2,007
สมมติราคาอยู่เหนือ EMA 200 และย่อมาแตะ EMA 20 แล้วมีแท่งยืนยัน เข้าซื้อที่ 2,020 วาง SL ใต้ Swing Low ที่ 2,008 = ระยะ $12 บัญชี $3,000 ยอมเสีย 2% = $60 → ล็อต = 60 ÷ (12 × 100) = 0.05 ล็อต ถ้าโดน SL เสีย 12 × 0.05 × 100 = $60 ถ้าถึงเป้า 2 เท่า (2,044) ได้ 24 × 0.05 × 100 = $120
จุดอ่อน / ข้อผิดพลาดที่พบบ่อย
- ช้าเสมอ (Lag) — เส้นค่าเฉลี่ยคำนวณจากอดีต สัญญาณตัดกันมักมาหลังราคาวิ่งไปแล้วพอสมควร บางครั้งเข้าไปตอนเทรนด์ใกล้หมดแรง
- โดนหลอกหนักในตลาดไซด์เวย์ — เส้นเร็วกับเส้นช้าจะตัดไปตัดมา ทำให้เกิดสัญญาณซื้อขายถี่ ๆ ที่ขาดทุนติดกันหลายไม้
- ปรับค่าจนพอดีกับอดีต — การเปลี่ยนจาก EMA 20 เป็น 23 เพราะกราฟเก่าดูสวยกว่า เป็นการหลอกตัวเอง ดู Overfitting
- ใส่เส้นมากเกินไป — 5–6 เส้นบนกราฟเดียวทำให้สับสน ส่วนใหญ่ 2–3 เส้นก็พอ
- คิดว่าราคาต้องเด้งที่เส้น — เส้นค่าเฉลี่ยไม่ใช่กำแพง ราคาทะลุผ่านได้เสมอ ต้องมีแผนรองรับด้วย SL
ถ้าเส้น 50 กับ 200 แบนและพันกัน ระบบตามเส้นค่าเฉลี่ยมักทำงานได้แย่ ควรพักหรือเปลี่ยนไปใช้แนวคิดแบบเทรดในกรอบ
ใช้บนมือถือ
ใน MT4/MT5 บนมือถือ แตะไอคอน f บนกราฟ เลือก Moving Average แล้วตั้งค่า Period และ Method (Simple/Exponential) จอเล็กควรใช้แค่ 2 เส้นและเลือกสีที่ต่างกันชัด ๆ ส่วน TradingView มือถือสามารถบันทึกเทมเพลตไว้เรียกใช้ซ้ำได้
สรุป
- MA คือค่าเฉลี่ยราคาย้อนหลัง ช่วยให้เห็นทิศทางหลัก ไม่ได้ทำนายอนาคต
- SMA นิ่งแต่ช้า EMA เร็วแต่โดนหลอกง่ายกว่า
- ใช้ดูเทรนด์ ความชัน แนวรับต้านเคลื่อนที่ และการตัดกัน
- อ่อนแอในตลาดไซด์เวย์และมาช้าเสมอ ต้องมี SL และขนาดไม้ที่คุมความเสี่ยง
- ทดสอบกฎของตัวเองก่อนใช้เงินจริง
The moving average (MA) is the simplest and most widely used indicator in trading. It does not predict the future; it filters out noise so the main direction of price is easier to see. Many other tools, including MACD and Bollinger Bands, are built on top of moving averages, so understanding this one makes the rest much easier.
How it works
A moving average takes the closing prices of the last N candles, averages them, and plots the result as a line. Every time a new candle closes, the oldest one drops out and the newest one comes in, so the line "moves" with price.
SMA — Simple Moving Average
SMA = (close 1 + close 2 + … + close N) ÷ N
Every candle carries equal weight. The line is smooth but slow to react.
EMA — Exponential Moving Average
EMA today = (close − EMA yesterday) × k + EMA yesterday, where k = 2 ÷ (N + 1)
The EMA gives more weight to recent prices, so it turns faster than an SMA, but it is also fooled more easily when the market chops around. For a 20 EMA, k = 2 ÷ 21 ≈ 0.095, meaning the latest close carries about 9.5% of the weight.
MT4/MT5 also offer WMA (linear weighted) and SMMA (smoothed). The idea is the same: you are always trading speed against stability. See the chart below.
Common settings
| Setting | Typical use |
|---|---|
| EMA 9–21 | Short-term trend, timing entries on lower timeframes |
| EMA/SMA 50 | Medium-term trend |
| SMA/EMA 100–200 | Big-picture trend filter: favour buys or sells |
No setting is "the correct one". These values are popular because many people watch them, not because they hold special power. Match the length to the timeframe you trade; see Timeframes.
How traders read it
- Direction — price above a rising line = uptrend; price below a falling line = downtrend; flat line with price crossing back and forth = range.
- Slope — a steep line means strong momentum; a flattening line means momentum is fading.
- Dynamic support/resistance — in a clean trend, price often pulls back to the 20 or 50 EMA and then continues.
- Crossovers — a fast MA crossing above a slow one is often called a golden cross; crossing below is a death cross. Both signal that momentum has switched sides.
Typical entry and exit rules
A common starting template (something to test, not a finished system):
- Use the 200 EMA as a filter — price above it, look for buys only.
- Wait for a pullback to, or near, the 20 EMA.
- Wait for a confirming candle, such as a bullish engulfing bar or a close back above the 20 EMA.
- Place the stop below the pullback's swing low.
- Exit at 2× the risk, or when a candle closes below the 20 EMA (trend-following style).
Last five XAUUSD closes: 2,000 / 2,004 / 2,010 / 2,006 / 2,015 5-period SMA = (2,000 + 2,004 + 2,010 + 2,006 + 2,015) ÷ 5 = 10,035 ÷ 5 = 2,007
Suppose price is above the 200 EMA, pulls back to the 20 EMA and prints a confirming candle. You buy at 2,020 with a stop under the swing low at 2,008 — a $12 distance. Account $3,000, risking 2% = $60 → lot = 60 ÷ (12 × 100) = 0.05 lot If stopped out: 12 × 0.05 × 100 = $60 lost. If the 2R target at 2,044 is hit: 24 × 0.05 × 100 = $120 gained.
Weaknesses and common mistakes
- Always late (lag) — an MA is built from the past. Crossover signals often arrive after a big part of the move is over, sometimes right as the trend runs out of steam.
- Whipsaws in ranges — fast and slow lines cross back and forth, producing a string of small losing trades.
- Curve-fitting the length — switching from 20 to 23 because old charts look nicer is self-deception. See Overfitting.
- Too many lines — five or six MAs on one chart create confusion; two or three are usually enough.
- Treating the line as a wall — price can and does slice through any average. Your stop-loss is the plan for that.
If the 50 and 200 are flat and tangled together, MA-following rules tend to perform poorly. Step aside or switch to range-trading ideas.
On a phone
In MT4/MT5 mobile, tap the "f" icon on the chart, choose Moving Average, then set the Period and Method (Simple/Exponential). On a small screen, keep it to two lines in clearly different colours. TradingView mobile lets you save a template so you do not rebuild it every time.
Summary
- An MA is an average of past prices; it clarifies direction but does not forecast.
- SMA is smooth but slow; EMA is fast but easier to fool.
- Use it for direction, slope, dynamic support/resistance and crossovers.
- It lags and struggles in ranges, so a stop-loss and proper position size are non-negotiable.
- Test your own rules before risking real money.


