LIVE
កំពុងទាញយកតម្លៃទីផ្សារ...
ទំព័រដើម មូលដ្ឋានគ្រឹះ ការវិភាគមូលដ្ឋានគ្រឹះ XAUUSD Forex Crypto ការគ្រប់គ្រងហានិភ័យ និងចិត្តវិទ្យា ឧបករណ៍ និងវេទិកាជួញដូរ

គាំទ្រគេហទំព័រនេះ

សូមអរគុណចំពោះការគាំទ្ររបស់អ្នក! ការឧបត្ថម្ភរបស់អ្នកនឹងជួយឱ្យយើងបន្តអភិវឌ្ឍមេរៀនឥតគិតថ្លៃសម្រាប់សហគមន៍អ្នកជួញដូរកម្ពុជា។

ABA KHQR

ដោយក្តីគោរព និងស្រឡាញ់ — ក្រុមការងារ LearnTrade 🙏

Trading Tools & Platforms · មេរៀនទី 05

ការប្រើ Expert Advisor (EA)

Using Expert Advisors (EAs)
មធ្យម
10 នាទីសម្រាប់អាន
ឧបករណ៍ និងវេទិកាជួញដូរ
សេចក្តីផ្តើម Introduction

Expert Advisor (EA) គឺជាកម្មវិធីជួញដូរស្វ័យប្រវត្តិ ដែលដំណើរការនៅក្នុង MT4/MT5 ដោយវិភាគទីផ្សារ និងបើក/បិទ Order ដោយខ្លួនឯង តាមច្បាប់ដែលបានសរសេរទុកជាមុន — ដោយមិនចាំបាច់អ្នកអង្គុយចាំមុខអេក្រង់ ២៤ ម៉ោង។ EA អាចជាឧបករណ៍ដ៏មានឥទ្ធិពល ប៉ុន្តែក៏ជាតំបន់ដែលមានការបោកប្រាស់ច្រើនបំផុតក្នុងពិភព Forex ដែរ — EA «ចំណេញ ១០០%» ដែលលក់តាម Telegram ភាគច្រើនគឺបោកប្រាស់។ មេរៀននេះនឹងបង្រៀនអ្នកពីរបៀបដែល EA ដំណើរការ របៀបដំឡើង និងបើកឱ្យវារត់ របៀប Backtest មុនប្រើប្រាក់ពិត និងរបៀបសម្គាល់ EA បោកប្រាស់។

An Expert Advisor (EA) is an automated trading program that runs inside MT4/MT5, analyzing the market and opening/closing orders by itself according to pre-programmed rules — without you sitting at the screen 24 hours a day. EAs can be powerful tools, but they are also the most scam-filled corner of the Forex world — most "100% profit" EAs sold through Telegram are frauds. This lesson teaches you how EAs work, how to install and run one, how to backtest before risking real money, and how to spot a scam EA.

តើ Expert Advisor ជាអ្វី ហើយដំណើរការយ៉ាងដូចម្ដេច? What Is an EA & How Does It Work?

EA គឺជាកម្មវិធីដែលសរសេរដោយភាសា MQL4 (សម្រាប់ MT4) ឬ MQL5 (សម្រាប់ MT5)។ វាភ្ជាប់ទៅ Chart មួយ ហើយរាល់ពេលតម្លៃផ្លាស់ប្ដូរ (Tick ថ្មី) EA នឹងពិនិត្យលក្ខខណ្ឌរបស់វា — ឧទាហរណ៍ «បើ EMA 50 កាត់ឡើងលើ EMA 200 ហើយ RSI < 70 → បើក Buy 0.01 Lot ជាមួយ SL 30 Pips»។ បើលក្ខខណ្ឌត្រូវ វាបញ្ជូន Order ទៅ Server ភ្លាមៗ ដោយគ្មានអារម្មណ៍ គ្មានការស្ទាក់ស្ទើរ និងគ្មានការភ្លេចដាក់ Stop Loss ឡើយ។

An EA is a program written in MQL4 (for MT4) or MQL5 (for MT5). It attaches to one chart, and on every price change (new tick) it checks its rules — for example, "if EMA 50 crosses above EMA 200 and RSI < 70 → open Buy 0.01 lots with a 30-pip SL". When the conditions are met, it sends the order to the server instantly — no emotions, no hesitation, and no forgotten Stop Loss.

របៀបដែល Expert Advisor ដំណើរការ ១. ទិន្នន័យទីផ្សារ តម្លៃថ្មី (Tick) ចូលមក គ្រប់វិនាទី ២. EA ពិនិត្យច្បាប់ Indicator + លក្ខខណ្ឌ (MQL4/MQL5 Code) លក្ខខណ្ឌត្រូវ ឬអត់? ត្រូវ ៣. បើក/បិទ Order Buy/Sell + SL/TP ដោយស្វ័យប្រវត្តិ មិនត្រូវ រង់ចាំ Tick បន្ទាប់ (ធ្វើឡើងវិញរាប់ពាន់ដងក្នុងមួយថ្ងៃ) លក្ខខណ្ឌចាំបាច់៖ MT4 ត្រូវបើកជានិច្ច + ប៊ូតុង AutoTrading ពណ៌បៃតង បិទកុំព្យូទ័រ = EA ឈប់ដំណើរការ (ដំណោះស្រាយ៖ VPS) EA ធ្វើការវិលជុំឥតឈប់៖ ទទួលតម្លៃ → ពិនិត្យច្បាប់ → បើក Order ឬរង់ចាំបន្ត
លំហូរការងាររបស់ EA — ទទួលទិន្នន័យតម្លៃ ពិនិត្យលក្ខខណ្ឌ រួចបើក Order ដោយស្វ័យប្រវត្តិ វិលជុំរាប់ពាន់ដងក្នុងមួយថ្ងៃ The EA workflow — receive price data, check the rules, then execute orders automatically, looping thousands of times per day
EA គ្មានអារម្មណ៍ — មិនភ័យ មិនលោភ មិន Revenge Trading ក្រោយពេលខាត
EAs have no emotions — no fear, no greed, no revenge trading after a loss
EA អនុវត្តច្បាប់ដដែលៗ ១០០% ជាប់លាប់ — មនុស្សធ្វើមិនបានទេ
An EA follows its rules with 100% consistency — something humans cannot do
ប៉ុន្តែ EA ឆ្លាតត្រឹមច្បាប់ដែលគេសរសេរប៉ុណ្ណោះ — បើយុទ្ធសាស្ត្រខ្សោយ EA នឹងខាតដោយស្វ័យប្រវត្តិ និងលឿនជាងមនុស្សទៀត
But an EA is only as smart as its rules — a bad strategy just loses money automatically, and faster than a human would
EA ភាគច្រើនត្រូវការលក្ខខណ្ឌទីផ្សារជាក់លាក់ (Trend ឬ Range) — គ្មាន EA ណាឈ្នះគ្រប់ស្ថានភាពទីផ្សារទេ
Most EAs need specific market conditions (trending or ranging) — no EA wins in every market environment
របៀបដំឡើង EA ចូល MT4 How to Install an EA in MT4

EA មានពីរទម្រង់៖ .ex4 (Compiled — ប្រើបានតែម្ដង មើលកូដមិនបាន) និង .mq4 (Source Code — អាចបើកមើល និងកែកូដបាន)។ ការដំឡើងគឺគ្រាន់តែចម្លងឯកសារចូល Folder ត្រឹមត្រូវ រួច Refresh ប៉ុណ្ណោះ។

EA files come in two formats: .ex4 (compiled — runs but the code is hidden) and .mq4 (source code — you can open and edit it). Installation is simply copying the file into the right folder and refreshing.

1
ក្នុង MT4 ចូលទៅ File > Open Data Folder
In MT4, go to File > Open Data Folder
2
បើក Folder MQL4 > Experts រួចចម្លងឯកសារ .ex4 ឬ .mq4 ចូលទីនោះ
Open MQL4 > Experts and copy the .ex4 or .mq4 file into it
3
ត្រឡប់មក MT4 វិញ ចុចខាងស្ដាំលើ "Expert Advisors" ក្នុង Navigator រួចជ្រើស Refresh
Back in MT4, right-click "Expert Advisors" in the Navigator and choose Refresh
4
អូស EA ពី Navigator មកទម្លាក់លើ Chart ដែលចង់ឱ្យវាដំណើរការ (Symbol និង Timeframe ត្រូវតាមការណែនាំរបស់ EA)
Drag the EA from Navigator onto the chart you want it to trade (match the symbol and timeframe the EA was designed for)
5
ក្នុងបង្អួចកំណត់ Tab "Common" ធីក "Allow live trading" រួចកំណត់ Lot Size និង Risk នៅ Tab "Inputs"
In the settings window, tick "Allow live trading" under the "Common" tab, then set lot size and risk under "Inputs"
6
ចុចប៊ូតុង AutoTrading នៅ Toolbar ឱ្យទៅជាពណ៌បៃតង — EA ចាប់ផ្ដើមដំណើរការ ពេលឃើញសញ្ញាញញឹម 😊 នៅជ្រុងស្ដាំខាងលើ Chart
Click the AutoTrading button on the toolbar so it turns green — the EA is live when you see the smiley face 😊 in the chart's top-right corner
អត្ថន័យសញ្ញាលើ Chart Chart symbol meanings
😊 (ញញឹម) = EA កំពុងដំណើរការធម្មតា — 😐 ឬ ✖ = EA ភ្ជាប់ហើយ ប៉ុន្តែ AutoTrading បិទ ឬ "Allow live trading" មិនបានធីក។ ចាំថា ប៊ូតុង AutoTrading គ្រប់គ្រង EA ទាំងអស់ក្នុង Platform ចំណែក "Allow live trading" គ្រប់គ្រងតែ EA នីមួយៗ
😊 (smiley) = the EA is running normally — 😐 or ✖ = the EA is attached but AutoTrading is off or "Allow live trading" was not ticked. Remember: the AutoTrading button controls all EAs platform-wide, while "Allow live trading" controls each individual EA
ការ Backtest ជាមួយ Strategy Tester Backtesting with the Strategy Tester

មុននឹងឱ្យ EA ណាមួយប៉ះប្រាក់ពិត ត្រូវតែ Backtest វាជាមុនសិន — គឺការសាកល្បង EA លើទិន្នន័យតម្លៃអតីតកាល ដើម្បីមើលថាតើយុទ្ធសាស្ត្ររបស់វាធ្លាប់ចំណេញ ឬខាតប៉ុន្មានក្នុងរយៈពេលកន្លងមក។ បើក Strategy Tester ដោយចុច Ctrl+R។

Before any EA touches real money, backtest it first — run it against historical price data to see how its strategy would have performed. Open the Strategy Tester with Ctrl+R.

1
ចុច Ctrl+R ដើម្បីបើក Strategy Tester នៅផ្នែកខាងក្រោម
Press Ctrl+R to open the Strategy Tester panel at the bottom
2
ជ្រើស EA, Symbol, Timeframe និងរយៈពេលសាកល្បង (យ៉ាងតិច ១-២ ឆ្នាំ)
Select the EA, symbol, timeframe, and test period (at least 1-2 years)
3
ជ្រើស Model "Every tick" សម្រាប់លទ្ធផលទុកចិត្តបានបំផុត (យឺតជាង ប៉ុន្តែសុក្រឹតជាង)
Choose the "Every tick" model for the most reliable results (slower, but more accurate)
4
ចុច Start រួចរង់ចាំ — បន្ទាប់មកពិនិត្យ Tab "Report" និង "Graph"
Click Start and wait — then review the "Report" and "Graph" tabs
Profit Factor — ចំណេញសរុប ÷ ខាតសរុប។ លើសពី 1.5 ចាត់ទុកថាល្អ ក្រោម 1.0 គឺខាត
Profit Factor — gross profit ÷ gross loss. Above 1.5 is decent; below 1.0 means it loses money
Maximal Drawdown — ការធ្លាក់ចុះជ្រៅបំផុតនៃគណនី។ លើសពី 30% គឺហានិភ័យខ្ពស់ពេក
Maximal Drawdown — the deepest account decline. Anything above 30% is too risky
ចំនួន Trade — Backtest ដែលមានក្រោម 100 Trades មិនគ្រប់គ្រាន់សម្រាប់សន្និដ្ឋានទេ
Trade count — a backtest with fewer than 100 trades is not statistically meaningful
Graph — ខ្សែកោង Equity គួរឡើងរលូន។ បើឡើងចោតៗចុងក្រោយតែម្ដង អាចជាការ Over-optimize
Graph — the equity curve should rise smoothly. A sudden spike only at the end may signal over-optimization
⚠️ ប្រយ័ត្ន Over-Optimization ⚠️ Beware over-optimization
EA ដែលត្រូវបានកែតម្លៃ Input ឱ្យសមឥតខ្ចោះជាមួយទិន្នន័យអតីតកាល (Curve Fitting) នឹងបង្ហាញ Backtest ស្អាតបំផុត ប៉ុន្តែខាតភ្លាមៗលើទីផ្សារពិត។ ដំណោះស្រាយ៖ Backtest លើរយៈពេលមួយ រួចផ្ទៀងផ្ទាត់លើរយៈពេលផ្សេងដែល EA មិនធ្លាប់ឃើញ (Forward Test) និងរត់លើ Demo យ៉ាងតិច ១ ខែមុនប្រើប្រាក់ពិត
An EA whose inputs were tuned to fit historical data perfectly (curve fitting) shows a beautiful backtest but loses immediately in live markets. The fix: backtest on one period, validate on a different unseen period (forward test), and run it on demo for at least a month before going live
EA បោកប្រាស់ — របៀបសម្គាល់ Scam EAs — How to Spot Them

ទីផ្សារ EA ពោរពេញដោយការបោកប្រាស់ ជាពិសេសតាម Telegram និង Facebook ក្នុងតំបន់អាស៊ី។ រូបភាព Backtest អាចក្លែងបាន Screenshot ចំណេញអាចកាត់តបាន ហើយសូម្បីតែគណនី Live ដែលបង្ហាញចំណេញ ក៏អាចជាគណនីមួយក្នុងចំណោមគណនីរាប់សិប ដែលគេបើកផ្ទុយគ្នា រួចបង្ហាញតែគណនីឈ្នះ។

The EA marketplace is full of scams, especially on Telegram and Facebook across Asia. Backtest images can be faked, profit screenshots can be edited, and even a "live" profitable account may be one of dozens opened in opposite directions — with only the winning one shown to you.

«ចំណេញ ១០-៣០% ក្នុងមួយខែ ធានា ១០០%» — គ្មានអ្វីធានាបានក្នុងការជួញដូរទេ។ នេះជាសញ្ញាបោកប្រាស់ច្បាស់បំផុត
"Guaranteed 10-30% per month" — nothing is guaranteed in trading. This is the clearest scam signal of all
បង្ហាញតែ Screenshot ចំណេញ ដោយគ្មាន Link ផ្ទៀងផ្ទាត់ពីភាគីទី៣ ដូចជា Myfxbook ឬ FX Blue
Only profit screenshots, with no third-party verification link such as Myfxbook or FX Blue
យុទ្ធសាស្ត្រ Martingale ឬ Grid ដែលបង្កើន Lot ទ្វេដងរាល់ពេលខាត — ចំណេញតូចៗរាល់ថ្ងៃ រហូតដល់ថ្ងៃដែលគណនីរលាយទាំងស្រុងក្នុងពេលតែមួយ
Martingale or grid strategies that double the lot after every loss — small daily wins until the one day the entire account evaporates
បង្ខំឱ្យប្រើ Broker ជាក់លាក់តាមរយៈ Link របស់គេ — គេចង់បានកម្រៃ Commission ពី Broker មិនមែនចង់ឱ្យអ្នកចំណេញទេ
Forcing you to sign up with a specific broker through their link — they earn broker commissions from your trading volume, not from your success
ទាមទារពាក្យសម្ងាត់គណនី ដើម្បី «ជួយដំឡើងឱ្យ» — កុំផ្ដល់ Password ជូនអ្នកណាម្នាក់ជាដាច់ខាត
Asking for your account password to "install it for you" — never give your password to anyone, ever
🚫 ចងចាំ 🚫 Remember
សួរខ្លួនឯងសំណួរសាមញ្ញមួយ៖ បើ EA នេះពិតជាចំណេញ ១០-២០% ក្នុងមួយខែមែន ម្ចាស់វានឹងក្លាយជាមហាសេដ្ឋីក្នុងរយៈពេលប៉ុន្មានឆ្នាំ — ហេតុអ្វីគាត់ត្រូវលក់វាឱ្យអ្នកតម្លៃ $100-500? ចម្លើយ៖ ព្រោះការលក់ EA ចំណេញច្បាស់ជាងការជួញដូរដោយ EA នោះ
Ask yourself one simple question: if this EA truly made 10-20% per month, its owner would become a billionaire within years — why would they sell it to you for $100-500? Answer: because selling the EA is far more profitable than trading with it
VPS និងការអនុវត្តល្អបំផុត VPS & Best Practices

ដោយសារ EA ដំណើរការតែពេល MT4 បើក ការបិទកុំព្យូទ័រ ដាច់ភ្លើង ឬដាច់អ៊ីនធឺណិត (ជាបញ្ហាទូទៅនៅកម្ពុជា) នឹងធ្វើឱ្យ EA ឈប់ដំណើរការភ្លាមៗ — Order ដែលកំពុងបើកនៅតែមាន SL/TP ការពារ (ព្រោះនៅលើ Server) ប៉ុន្តែ EA នឹងមិនអាចបើក Order ថ្មី ឬគ្រប់គ្រង Trailing Stop បានទេ។ ដំណោះស្រាយស្តង់ដារគឺ VPS (Virtual Private Server) — កុំព្យូទ័រនិម្មិតដែលដំណើរការ ២៤/៧ នៅ Data Center។

Because an EA only runs while MT4 is open, shutting down your computer, a power cut, or an internet outage (a common issue in Cambodia) stops the EA instantly — open trades keep their server-side SL/TP protection, but the EA cannot open new trades or manage trailing stops. The standard solution is a VPS (Virtual Private Server) — a virtual computer running 24/7 in a data center.

ចាប់ផ្ដើមលើ Demo ១ ខែជាមុន — សូម្បីតែ EA ល្អ ក៏ត្រូវសាកល្បងលើទីផ្សារបច្ចុប្បន្នដែរ
Start on demo for a month — even a good EA needs proving in current market conditions
ចាប់ផ្ដើមប្រាក់ពិតជាមួយ Lot តូចបំផុត (0.01) រួចបង្កើនបន្តិចម្ដងៗ បើលទ្ធផលល្អ
Go live with the smallest lot (0.01) and scale up gradually only if results hold
តាមដាន EA ជាប្រចាំ — ពិនិត្យ Tab "Experts" និង "Journal" ក្នុង Terminal ដើម្បីមើល Log និង Error
Monitor the EA regularly — check the "Experts" and "Journal" tabs in the Terminal for logs and errors
ដាក់ EA មួយក្នុងមួយ Chart ប៉ុណ្ណោះ ហើយកុំឱ្យ EA ពីរផ្សេងគ្នាជួញដូរ Symbol ដដែល ដោយគ្មាន Magic Number ខុសគ្នា
Run one EA per chart, and never let two different EAs trade the same symbol without distinct Magic Numbers
បិទ EA ជាបណ្ដោះអាសន្ន នៅមុនព័ត៌មានធំៗ (NFP, FOMC) ប្រសិនបើ EA មិនត្រូវបានរចនាសម្រាប់ News
Pause the EA before major news events (NFP, FOMC) if it was not designed to trade news
✅ ចំណុចចុងក្រោយ ✅ Final point
EA មិនមែនជាម៉ាស៊ីនបង្កើតលុយស្វ័យប្រវត្តិទេ — វាជាឧបករណ៍អនុវត្តយុទ្ធសាស្ត្រដោយស្វ័យប្រវត្តិប៉ុណ្ណោះ។ អ្នកនៅតែជាអ្នកទទួលខុសត្រូវលើ Risk Management ការជ្រើសរើសយុទ្ធសាស្ត្រ និងការសម្រេចចិត្តថាពេលណាត្រូវបើក ឬបិទវា។ សិក្សាមេរៀន VPS for Trading បន្ទាប់ ដើម្បីដឹងពីរបៀបជ្រើសរើស VPS សមស្រប
An EA is not an automatic money machine — it is a tool that executes a strategy automatically. You remain responsible for risk management, strategy selection, and deciding when to switch it on or off. See the VPS for Trading lesson next to learn how to choose a suitable VPS
សាកល្បងចំណេះដឹង Quick Quiz
តើលក្ខខណ្ឌអ្វីខ្លះ ដែលចាំបាច់ដើម្បីឱ្យ EA ដំណើរការជួញដូរបានពិតប្រាកដលើ Chart?What must be true for an EA to actually trade on a chart?
  • គ្រាន់តែចម្លងឯកសារចូល Folder ExpertsJust copy the file into the Experts folder
  • AutoTrading បើក (បៃតង) + "Allow live trading" ត្រូវបានធីកAutoTrading on (green) + "Allow live trading" ticked
  • ត្រូវ Backtest ជាមុនសិន ទើប EA អាចដំណើរការIt must be backtested first before it can run
  • ត្រូវមាន VPS ជាចាំបាច់A VPS is strictly required
🏆
អបអរសាទរ!
Congratulations!
អ្នកបានបញ្ចប់គ្រប់មេរៀនទាំង 19 ក្នុងផ្នែក «ឧបករណ៍ និងវេទិកាជួញដូរ» ដោយជោគជ័យ! 🎉
You have completed all 19 lessons in "Trading Tools & Platforms". Keep going!