คู่มือ AckAlgo EA Builder: สร้าง EA สำหรับ MT5
จากกติกาที่คุณคิด ไปสู่ไฟล์ EA ที่ตรวจสอบได้ เรียนทีละขั้น ค้นหาเครื่องมือที่ต้องใช้ และส่งงานต่อให้คนหรือ AI ได้ในคู่มือเดียว
รองรับการส่งออก source .mq5 ส่วน compile และ backtest ต้องทำแยกใน MT5 ผล Preflight ไม่ใช่หลักฐานกำไร
เริ่มที่นี่
AckAlgo EA Builder เป็นเครื่องมือต่อกติกาด้วยบล็อกบนเว็บสำหรับ MetaTrader 5 (MT5) กลยุทธ์ที่รองรับสามารถสร้างไฟล์ภาษา MQL5 นามสกุล .mq5 ได้ เว็บไซต์ไม่ได้รันทดสอบย้อนหลังหรือเชื่อมบัญชีโบรกเกอร์ให้
- เตรียมคอมพิวเตอร์และเบราว์เซอร์สมัยใหม่ มือถือเลือกเทมเพลต ตั้งค่ากลยุทธ์และพารามิเตอร์ node นำเข้า/ส่งออก JSON และ Preflight ได้ ส่วนเพิ่ม ต่อเส้น และจัดกราฟใช้เดสก์ท็อปหรือแท็บเล็ต
- เขียนกติกาเข้า ออก คู่เงิน timeframe และขนาดความเสี่ยงให้ชัด หากยังอธิบายไม่ได้ ให้เริ่มจากตัวอย่างเพื่อเรียนรู้ก่อน
- ติดตั้ง MT5 และ MetaEditor แยกต่างหากเมื่อต้องการ compile และทดสอบ เก็บค่าเริ่มต้น InpAllowTrading=false และ InpAllowRealAccount=false ไว้ก่อน
สถานะต้องอ่านแยกกัน: Preflight ผ่าน = ตรวจโครงสร้างในเว็บผ่าน; Generated = สร้าง source แล้ว; Compiled = มีหลักฐาน compile ของไฟล์นั้น; Tested = มีรายงาน MT5 ของไฟล์นั้น ไม่มีสถานะใดรับประกันกำไร
ทำ EA ตัวแรกทีละขั้น
บทเรียนนี้ใช้ MA Crossover บน EURUSD / M15 เพื่ออธิบายเครื่องมือ ค่าทั้งหมดเป็นตัวอย่างฝึกใช้ ไม่ใช่ค่าที่แนะนำให้ลงทุน เป้าหมายจบที่ไฟล์พร้อมนำไปตรวจ ไม่ใช่เปิดเทรดจริง
- เปิด Builder → Builder settings → Export strategy JSON เพื่อสำรองงานที่เปิดอยู่ จากนั้นปิด Settings
- เลือก Templates → MA Crossover ถ้ามีหน้าต่างถามแทนที่งาน ให้อ่านและยืนยันเฉพาะเมื่อสำรองแล้ว จะเห็น Fast EMA 20, Slow EMA 50, EMA Crossover, Market Entry, Risk และ Protected Exit
- ตั้ง Strategy name เป็นชื่อที่จำได้ เช่น EMA practice 01 ตรวจ Broker symbol เป็น EURUSD และ Timeframe เป็น M15 ชื่อ symbol ต้องตรงกับโบรกเกอร์จริงในขั้นทดสอบ
- เลือก Fast EMA 20 → Inspector: Period 20, MA method Exponential, Applied price Close จากนั้นเลือก Slow EMA 50 และตรวจ Period 50 โดยใช้ timeframe เดียวกัน
- เลือก EMA Crossover ตรวจ Left operand เป็น Fast EMA, Right operand เป็น Slow EMA, Operator เป็น Crosses above และ bar shift เป็น 1 ถ้า Signal เป็น Long & short ให้ตรวจ Reverse rule for short entries ด้วย
- เลือก Market Entry ตรวจทิศทาง เปิดได้สูงสุด 1 position และเปิด Limit to one trade per bar จากนั้นเลือก Risk ตรวจค่าขนาดสถานะ Stop loss, Take profit และ Maximum spread พร้อมหน่วยทุกครั้ง
- เปิด Problems แก้ Error ทุกข้อด้วย Go to node และอ่าน Warning จากนั้นกด Preflight → Summary ต้องเห็น MQL5 source ready to download ส่วน compiler/tester ยังเป็น Not run for this file
- กด Download for Strategy Tester / demo แล้วเปิด Technical details กด Download tester manifest; เปิด MQL5 Source เพื่อตรวจหรือ Copy source; ปิด Preflight แล้ว Export strategy JSON อีกครั้ง เก็บสามไฟล์ไว้ด้วยกัน
- ทำตามหัวข้อ Compile และทดสอบใน MT5 ด้านล่าง หากแก้กติกาใหม่ต้องส่งออกและตรวจไฟล์ใหม่ทุกครั้ง
รู้จักทุกส่วนของหน้าจอ
| ตำแหน่ง / ปุ่ม | วิธีใช้และผลที่ได้ |
|---|---|
| Strategy name · Saved locally | แก้ชื่อด้านบนแล้วตรวจสถานะบันทึก Saved locally หมายถึงอยู่ในเบราว์เซอร์นี้ ไม่ใช่ cloud |
| Broker symbol · Timeframe | พิมพ์ symbol รวม suffix ได้; ช่องแปลงตัวอักษรเป็นตัวใหญ่ ต้องตรวจชื่อที่ส่งออกกับโบรกเกอร์ เลือก timeframe หลัก และตรวจ timeframe ของแต่ละ node หลังเปลี่ยน |
| Undo · Redo | ย้อนหรือทำซ้ำการเปลี่ยนกลยุทธ์ในแท็บปัจจุบัน ใช้ปุ่มหรือ Ctrl/Cmd+Z และ Ctrl/Cmd+Shift+Z |
| Switch to light/dark theme | เปลี่ยนสีทั้ง editor และจำตัวเลือกในเครื่อง คู่มือใช้พื้นสว่างสำหรับอ่านยาว |
| Builder settings | แก้ Description และ Trade direction; ส่งออก/นำเข้า JSON; ดูสถานะ local storage และจัดการข้อมูลกู้คืน |
| Node library | เลือก Templates หรือเพิ่มบล็อกจากหมวดด้านซ้าย Search ค้นอินดิเคเตอร์ตามชื่อ ชื่อย่อ หมวด และ keyword รวมถึงเครื่องมืออย่าง Session Filter และ My Blocks ที่บันทึกไว้ |
| Canvas · Canvas outline | จัดตำแหน่งและต่อเส้น หรือเปิด outline เพื่อเลือก node และเชื่อมต่อด้วยปุ่มแทนการลาก |
| Inspector · PLAIN-ENGLISH RULE | เลือก node ก่อนจึงแก้ได้ อ่านคำสรุปหลังแก้ทุกครั้ง ชื่อ node เป็นเพียงป้าย ไม่ใช่ค่าตั้งที่มีผลต่อกลยุทธ์ |
| Problems · Go to node | เปิดรายการข้อผิดพลาดและคำเตือน กด Go to node เพื่อเลือกบล็อกที่ต้องแก้ |
| Preflight | มี Summary, MQL5 Source และ MT5 Setup ตรวจและส่งออกในเว็บ ไม่ได้เปิดโปรแกรม MT5 |
เลือกเทมเพลตและไฟล์ฝึก
เลือกเทมเพลตจากพฤติกรรมของกติกา ตัวอย่างดาวน์โหลดด้านล่างสร้างจากข้อมูลชุดเดียวกับ Builder ใช้ Settings → Import strategy JSON เพื่อเปิด และตรวจ Problems อีกครั้ง การนำเข้าไม่ใช่การ compile
| Template | ใช้เรียนอะไร |
|---|---|
| MA Crossover | EMA 20/50 ตัดกันบนแท่งปิด เรียนวิธีต่ออินดิเคเตอร์สองตัวเข้าเงื่อนไข |
| RSI Reversal | RSI กลับผ่านระดับ 30/70 เรียนการตั้ง threshold แยกขาขึ้นและขาลง ไม่ใช่ซื้อทุกครั้งที่ RSI ต่ำกว่า 30 |
| Breakout | ราคาเบรก fractal ที่ยืนยันแล้วและมีค่าจริง เรียน output, bar shift และข้อมูลแบบมีช่องว่าง |
| Broker Session + ATR | จำกัดเวลาตามโบรกเกอร์และใช้ ATR ต่าง timeframe คำนวณระยะป้องกัน ตรวจเวลา server และแหล่ง ATR ให้ตรง |
เพิ่ม ต่อเส้น และนำบล็อกกลับมาใช้
- เพิ่ม: กดชื่ออินดิเคเตอร์จาก Indicators หรือค้น เช่น RSI; ใช้ Logic สำหรับ Compare Values / Session Filter, Entry & Exit สำหรับคำสั่ง และ Risk สำหรับการคุมขนาด
- Quick add: ปุ่ม + บน node เพิ่มบล็อกขั้นถัดไปตามชนิดของ node ให้ตรวจการเชื่อมต่อและกติกาที่ได้ทุกครั้ง ไม่ใช่เครื่องมือแต่งกลยุทธ์อัตโนมัติ
- ต่อเส้น: ลากจาก output ไป input หรือเปิด Canvas outline เลือกต้นทาง แล้ว Connect to … ระบบปฏิเสธเส้นที่ชนิดไม่เข้ากัน การเพิ่ม data input อาจเปลี่ยน operand ของเงื่อนไข
- ลบเส้น: เลือกเส้นแล้ว Delete/Backspace หรือใช้ Remove ใน outline; ลบ node ด้วย Delete ใน Inspector แล้ว Undo ได้ ตรวจ Problems หลังลบเพราะ reference อาจขาด
- จัดมุมมอง: ลาก node เพื่อย้าย ลากพื้นที่ว่างเพื่อเลื่อน ใช้ Zoom in / Zoom out / Fit strategy in view และแผนที่ย่อ Shift ใช้เลือกหลายรายการ แต่ Inspector แก้ node ที่เลือกทีละตัว
- Duplicate ทำสำเนา node ที่เลือก ไม่ได้คัดลอกทั้งกลยุทธ์พร้อมสายเชื่อม; ต้องตรวจและต่อสายของสำเนาเอง
- Recent คืออินดิเคเตอร์ที่เพิ่งใช้; Favorites คือดาวที่กดเก็บเอง; My Blocks คือ node ที่ตั้งค่าแล้วกด Save as Block ทั้งหมดเก็บในเบราว์เซอร์
- Save as Block รองรับ node เดี่ยวที่ไม่อ้าง node อื่น หากปุ่มปิดอยู่ให้เก็บต้นทางที่เป็นอิสระ หรือ Export strategy JSON สำหรับเก็บทั้งกราฟ My Blocks เก็บล่าสุดได้สูงสุด 20 รายการ
เส้น Indicator → Condition ส่งค่า; Condition → Market Entry ส่งสัญญาณ; Entry → Risk → Exit กำหนดขนาดและการปิด; Session กรองเวลา และ ATR → Risk ระบุค่าที่ใช้คำนวณ stop เส้นที่ลากได้ยังต้องผ่านการตรวจความหมายใน Preflight
อินดิเคเตอร์และเงื่อนไขอย่างถูกต้อง
เลือกอินดิเคเตอร์แล้วตั้ง Timeframe, Output และพารามิเตอร์ตามรายการด้านล่าง การเปลี่ยนชนิด Indicator จะโหลดค่าเริ่มต้นของชนิดใหม่ อย่าสับสน Shift ของเส้นอินดิเคเตอร์กับ bar shift ของเงื่อนไข: bar shift 1 คือแท่งที่ปิดล่าสุด ส่วน 0 คือแท่งยังไม่ปิดและไม่ใช่โหมดประเมินของ Builder
| Operator / field | ความหมายและวิธีใช้ |
|---|---|
| Crosses above / Crosses below | ตรวจการเปลี่ยนฝั่งระหว่างแท่งปิด ไม่ใช่แค่อยู่เหนือหรือต่ำกว่า ใช้กับ MA cross หรือ RSI กลับผ่าน threshold |
| Is greater than / Is less than | ตรวจว่าค่าซ้ายมาก/น้อยกว่าค่าขวาที่แท่งที่กำหนด อาจเป็นจริงต่อเนื่องหลายแท่ง |
| Breaks above / Breaks below | ตรวจการเบรกระดับ อ้างอิงตัวอย่าง Breakout สำหรับ fractal ที่ยืนยันแล้ว อย่าใช้ยอดที่ยังไม่ยืนยัน |
| Equals | มีในรายการแต่ยังติด export blocker เพราะยังไม่มี tolerance ที่รองรับ เลือก operator ที่อธิบายกติกาจริงได้แทน |
| Left operand / Right operand | ตรวจ source และ output ให้ตรง เช่น MACD main ต่างจาก signal; threshold แก้ได้เมื่อ operand เป็นค่าคงที่; source ที่แสดงแบบอ่านอย่างเดียวเปลี่ยนผ่านสายเชื่อม |
| Signal · Reverse rule for short entries | Long/Short คือสัญญาณทิศทาง Filter คือเงื่อนไขประกอบ หากใช้ Long & short ให้ตรวจวิธีกลับกติกา; threshold สองค่าต่างกันควรใช้เงื่อนไขแยกแบบ RSI template |
ใช้หลาย timeframe ได้ภายใน symbol เดียว ตรวจว่าข้อมูลทุก timeframe พร้อมใน MT5 ค่าที่ใช้ต้องเป็นแท่งที่ยืนยันแล้ว ณ เวลาสัญญาณ ไม่ใช้ข้อมูลอนาคต การเชื่อมหลายเงื่อนไขไม่ได้สร้าง AND/OR อิสระทุกแบบ จึงต้องอ่าน source และทดสอบผลที่ได้
เวลาเข้า ขนาดสถานะ และการออก
| เครื่องมือ | ตั้งค่าและตรวจอะไร |
|---|---|
| Session Filter | Start/End ใช้ Broker time ในรุ่นนี้ ไม่ใช่เวลาไทยอัตโนมัติ ตรวจเวลา server และ DST กับโบรกเกอร์ Weekdays เป็น Monday–Friday; UTC ยังบล็อก export และยังไม่มีตัวเลือกวันเพิ่มเติม |
| Market Entry | รองรับ market order เท่านั้น ตรวจ Direction ให้ตรงกับ Strategy settings และ Signal ใช้ maximum 1 position และ one trade per bar ตามข้อจำกัดรุ่นนี้ |
| Risk percent | Risk per trade เป็นเปอร์เซ็นต์ใช้คำนวณขนาดสถานะจากระยะ stop ไม่ใช่เปอร์เซ็นต์ระยะราคา ตรวจ lot ที่คำนวณจริงใน MT5 |
| Fixed lot | กำหนดจำนวน lots โดยตรง ต้องตรวจ minimum lot, maximum lot และ lot step ของ symbol จริง Fixed lot ไม่ได้ทำให้จำนวนเงินที่เสี่ยงคงที่ |
| Stop loss / Take profit | อ่านหน่วยท้ายช่อง: percent คือระยะเป็น % ของราคา, points คือหน่วย point ของ symbol, atr คือจำนวนเท่าของ ATR หน้าจอแก้ค่าในโหมดของ template ปัจจุบัน ยังไม่มีปุ่มสลับ stop mode ทั่วไป ใช้ template ATR เมื่อต้องการฝึก ATR |
| Maximum spread | หน่วย points ไม่ใช่ pips ตรวจ point size ของโบรกเกอร์ หากตั้งต่ำกว่าสเปรดจริงอาจไม่มี entry |
| Protected Exit | ใช้ At stop or target เท่านั้น On opposite signal และ At session close ยังติด export blocker; trailing stop และ break-even ไม่ใช่เครื่องมือส่งออกที่รองรับในรุ่นนี้ |
ตัวอย่าง Stop loss 0.5 percent หมายถึงระยะ 0.5% ของราคา ไม่ใช่ขาดทุนสูงสุด 0.5% ของบัญชี และไม่ใช่ 0.5 pip ความเสี่ยงจริงยังเปลี่ยนได้จาก slippage, gap และเงื่อนไขการส่งคำสั่ง
คู่มืออินดิเคเตอร์ทั้งหมด
ข้อจำกัด output: Shift / Jaw shift / Teeth shift / Lips shift ที่ไม่ใช่ 0 อาจติด PLOT_SHIFT_ALIGNMENT_REQUIRED ให้ตั้ง 0 ก่อนใช้ส่งออกและทบทวนกติกาใหม่; Ichimoku ใช้ Tenkan/Kijun ได้ แต่ Senkou A/B และ Chikou ยังบล็อกเพราะการจัดแนวเส้น; Fractals ต้อง bar shift อย่างน้อย 3 และการค้นค่าล่าสุดที่ไม่ว่างใช้ lookback 1–500 แท่งตามตัวอย่าง Breakout รายการ MT5 native จึงไม่ได้หมายถึงทุกค่าและทุก output ส่งออกได้
ค้นตามชื่อหรือคำอธิบาย แล้วเปิดรายการเพื่อดูพารามิเตอร์ ค่าเริ่มต้น ตัวเลือก และ output ตัวเลขในตารางเป็นค่าของซอฟต์แวร์สำหรับเริ่มต้น ไม่ใช่ค่าที่เหมาะกับตลาด MT5 native หมายถึงมีตัวสร้าง source; Catalog only หมายถึงเลือกดูได้แต่จะบล็อก export
Accelerator OscillatorMT5 native
วัดการเปลี่ยนแปลงความเร่งของโมเมนตัม
ac · iAC · bill-williams
ไม่มีพารามิเตอร์เฉพาะเพิ่มเติม
Output: AC (value, buffer 0)
Accumulation/DistributionMT5 native
รวมตำแหน่งราคากับปริมาณเพื่อประเมินกระแสการสะสมและกระจาย
ad · iAD · volume
| พารามิเตอร์ / key | ค่าเริ่มต้น | ช่วง / ตัวเลือก |
|---|---|---|
| Volume (volumeType) | VOLUME_TICK | Tick volume: VOLUME_TICK; Real volume: VOLUME_REAL |
Output: A/D (value, buffer 0)
Average Directional IndexMT5 native
วัดความแข็งแรงแนวโน้ม พร้อมเส้นทิศทางบวกและลบ
adx · iADX · trend
| พารามิเตอร์ / key | ค่าเริ่มต้น | ช่วง / ตัวเลือก |
|---|---|---|
| Period (period) · bars | 14 | 1 … 1000; step 1 |
Output: ADX (main, buffer 0); +DI (plusDi, buffer 1); -DI (minusDi, buffer 2)
Average Directional Index by WilderMT5 native
วัดความแข็งแรงแนวโน้มด้วยการทำให้เรียบแบบ Wilder
adx-wilder · iADXWilder · trend
| พารามิเตอร์ / key | ค่าเริ่มต้น | ช่วง / ตัวเลือก |
|---|---|---|
| Period (period) · bars | 14 | 1 … 1000; step 1 |
Output: ADX (main, buffer 0); +DI (plusDi, buffer 1); -DI (minusDi, buffer 2)
AlligatorMT5 native
ค่าเฉลี่ยแบบ smoothed สามเส้นสำหรับพิจารณาช่วงแนวโน้ม
alligator · iAlligator · bill-williams
| พารามิเตอร์ / key | ค่าเริ่มต้น | ช่วง / ตัวเลือก |
|---|---|---|
| Jaw period (jawPeriod) · bars | 13 | 1 … 1000; step 1 |
| Jaw shift (jawShift) · bars | 8 | 0 … 500; step 1 |
| Teeth period (teethPeriod) · bars | 8 | 1 … 1000; step 1 |
| Teeth shift (teethShift) · bars | 5 | 0 … 500; step 1 |
| Lips period (lipsPeriod) · bars | 5 | 1 … 1000; step 1 |
| Lips shift (lipsShift) · bars | 3 | 0 … 500; step 1 |
| MA method (maMethod) | MODE_SMMA | Simple: MODE_SMA; Exponential: MODE_EMA; Smoothed: MODE_SMMA; Linear weighted: MODE_LWMA |
| Applied price (appliedPrice) | PRICE_MEDIAN | Close: PRICE_CLOSE; Open: PRICE_OPEN; High: PRICE_HIGH; Low: PRICE_LOW; Median (HL/2): PRICE_MEDIAN; Typical (HLC/3): PRICE_TYPICAL; Weighted (HLCC/4): PRICE_WEIGHTED |
Output: Jaw (jaw, buffer 0); Teeth (teeth, buffer 1); Lips (lips, buffer 2)
Adaptive Moving AverageMT5 native
ปรับความเร็วการทำให้เรียบตามประสิทธิภาพการเคลื่อนที่ของราคา
ama · iAMA · trend
| พารามิเตอร์ / key | ค่าเริ่มต้น | ช่วง / ตัวเลือก |
|---|---|---|
| AMA period (period) · bars | 10 | 1 … 1000; step 1 |
| Fast EMA period (fastPeriod) · bars | 2 | 1 … 1000; step 1 |
| Slow EMA period (slowPeriod) · bars | 30 | 1 … 1000; step 1 |
| Shift (shift) · bars | 0 | 0 … 500; step 1 |
| Applied price (appliedPrice) | PRICE_CLOSE | Close: PRICE_CLOSE; Open: PRICE_OPEN; High: PRICE_HIGH; Low: PRICE_LOW; Median (HL/2): PRICE_MEDIAN; Typical (HLC/3): PRICE_TYPICAL; Weighted (HLCC/4): PRICE_WEIGHTED |
Output: AMA (value, buffer 0)
Awesome OscillatorMT5 native
เปรียบเทียบโมเมนตัมราคากึ่งกลางระยะสั้นและยาว
ao · iAO · bill-williams
ไม่มีพารามิเตอร์เฉพาะเพิ่มเติม
Output: AO (value, buffer 0)
Average True RangeMT5 native
วัดช่วงแกว่งและความผันผวน ไม่บอกทิศทางราคา
atr · iATR · volatility
| พารามิเตอร์ / key | ค่าเริ่มต้น | ช่วง / ตัวเลือก |
|---|---|---|
| Period (period) · bars | 14 | 1 … 1000; step 1 |
Output: ATR (value, buffer 0)
Bears PowerMT5 native
วัดแรงขายที่กดราคาต่ำกว่า EMA
bears-power · iBearsPower · momentum
| พารามิเตอร์ / key | ค่าเริ่มต้น | ช่วง / ตัวเลือก |
|---|---|---|
| Period (period) · bars | 13 | 1 … 1000; step 1 |
Output: Bears Power (value, buffer 0)
Bollinger Bands®MT5 native
กรอบความผันผวนรอบค่าเฉลี่ยเคลื่อนที่
bollinger-bands · iBands · volatility
| พารามิเตอร์ / key | ค่าเริ่มต้น | ช่วง / ตัวเลือก |
|---|---|---|
| Period (period) · bars | 20 | 1 … 1000; step 1 |
| Shift (shift) · bars | 0 | 0 … 500; step 1 |
| Deviation (deviation) | 2 | 0.1 … 20; step 0.1 |
| Applied price (appliedPrice) | PRICE_CLOSE | Close: PRICE_CLOSE; Open: PRICE_OPEN; High: PRICE_HIGH; Low: PRICE_LOW; Median (HL/2): PRICE_MEDIAN; Typical (HLC/3): PRICE_TYPICAL; Weighted (HLCC/4): PRICE_WEIGHTED |
Output: Middle band (middle, buffer 0); Upper band (upper, buffer 1); Lower band (lower, buffer 2)
Bulls PowerMT5 native
วัดแรงซื้อที่ดันราคาเหนือ EMA
bulls-power · iBullsPower · momentum
| พารามิเตอร์ / key | ค่าเริ่มต้น | ช่วง / ตัวเลือก |
|---|---|---|
| Period (period) · bars | 13 | 1 … 1000; step 1 |
Output: Bulls Power (value, buffer 0)
Commodity Channel IndexMT5 native
วัดระยะเบี่ยงเบนราคาจากค่าเฉลี่ยทางสถิติ
cci · iCCI · momentum
| พารามิเตอร์ / key | ค่าเริ่มต้น | ช่วง / ตัวเลือก |
|---|---|---|
| Period (period) · bars | 14 | 1 … 1000; step 1 |
| Applied price (appliedPrice) | PRICE_TYPICAL | Close: PRICE_CLOSE; Open: PRICE_OPEN; High: PRICE_HIGH; Low: PRICE_LOW; Median (HL/2): PRICE_MEDIAN; Typical (HLC/3): PRICE_TYPICAL; Weighted (HLCC/4): PRICE_WEIGHTED |
Output: CCI (value, buffer 0)
Chaikin OscillatorMT5 native
ติดตามโมเมนตัมเส้น Accumulation/Distribution
chaikin · iChaikin · volume
| พารามิเตอร์ / key | ค่าเริ่มต้น | ช่วง / ตัวเลือก |
|---|---|---|
| Fast period (fastPeriod) · bars | 3 | 1 … 1000; step 1 |
| Slow period (slowPeriod) · bars | 10 | 1 … 1000; step 1 |
| MA method (maMethod) | MODE_EMA | Simple: MODE_SMA; Exponential: MODE_EMA; Smoothed: MODE_SMMA; Linear weighted: MODE_LWMA |
| Volume (volumeType) | VOLUME_TICK | Tick volume: VOLUME_TICK; Real volume: VOLUME_REAL |
Output: Chaikin (value, buffer 0)
Double Exponential Moving AverageMT5 native
ค่าเฉลี่ยจาก EMA สองชั้นเพื่อลดความล่าช้า
dema · iDEMA · trend
| พารามิเตอร์ / key | ค่าเริ่มต้น | ช่วง / ตัวเลือก |
|---|---|---|
| Period (period) · bars | 14 | 1 … 1000; step 1 |
| Shift (shift) · bars | 0 | 0 … 500; step 1 |
| Applied price (appliedPrice) | PRICE_CLOSE | Close: PRICE_CLOSE; Open: PRICE_OPEN; High: PRICE_HIGH; Low: PRICE_LOW; Median (HL/2): PRICE_MEDIAN; Typical (HLC/3): PRICE_TYPICAL; Weighted (HLCC/4): PRICE_WEIGHTED |
Output: DEMA (value, buffer 0)
DeMarkerMT5 native
เปรียบเทียบจุดสูงต่ำเพื่อประเมินแรงซื้อขาย
demarker · iDeMarker · momentum
| พารามิเตอร์ / key | ค่าเริ่มต้น | ช่วง / ตัวเลือก |
|---|---|---|
| Period (period) · bars | 14 | 1 … 1000; step 1 |
Output: DeMarker (value, buffer 0)
EnvelopesMT5 native
กรอบเปอร์เซ็นต์เหนือและใต้ค่าเฉลี่ยเคลื่อนที่
envelopes · iEnvelopes · volatility
| พารามิเตอร์ / key | ค่าเริ่มต้น | ช่วง / ตัวเลือก |
|---|---|---|
| Period (period) · bars | 14 | 1 … 1000; step 1 |
| Shift (shift) · bars | 0 | 0 … 500; step 1 |
| MA method (maMethod) | MODE_SMA | Simple: MODE_SMA; Exponential: MODE_EMA; Smoothed: MODE_SMMA; Linear weighted: MODE_LWMA |
| Applied price (appliedPrice) | PRICE_CLOSE | Close: PRICE_CLOSE; Open: PRICE_OPEN; High: PRICE_HIGH; Low: PRICE_LOW; Median (HL/2): PRICE_MEDIAN; Typical (HLC/3): PRICE_TYPICAL; Weighted (HLCC/4): PRICE_WEIGHTED |
| Deviation (deviation) · percent | 0.1 | 0.01 … 50; step 0.01 |
Output: Upper (upper, buffer 0); Lower (lower, buffer 1)
Force IndexMT5 native
รวมการเปลี่ยนราคากับปริมาณเพื่อวัดแรงเคลื่อนที่
force-index · iForce · volume
| พารามิเตอร์ / key | ค่าเริ่มต้น | ช่วง / ตัวเลือก |
|---|---|---|
| Period (period) · bars | 13 | 1 … 1000; step 1 |
| MA method (maMethod) | MODE_EMA | Simple: MODE_SMA; Exponential: MODE_EMA; Smoothed: MODE_SMMA; Linear weighted: MODE_LWMA |
| Volume (volumeType) | VOLUME_TICK | Tick volume: VOLUME_TICK; Real volume: VOLUME_REAL |
Output: Force Index (value, buffer 0)
FractalsMT5 native
จุดสูงต่ำเฉพาะที่จากรูปแบบห้าแท่ง ต้องรอการยืนยัน
fractals · iFractals · bill-williams
ไม่มีพารามิเตอร์เฉพาะเพิ่มเติม
Output: Upper fractal (upper, buffer 0); Lower fractal (lower, buffer 1)
Fractal Adaptive Moving AverageMT5 native
ปรับความเรียบโดยใช้มิติ fractal ของตลาด
frama · iFrAMA · trend
| พารามิเตอร์ / key | ค่าเริ่มต้น | ช่วง / ตัวเลือก |
|---|---|---|
| Period (period) · bars | 14 | 1 … 1000; step 1 |
| Shift (shift) · bars | 0 | 0 … 500; step 1 |
| Applied price (appliedPrice) | PRICE_CLOSE | Close: PRICE_CLOSE; Open: PRICE_OPEN; High: PRICE_HIGH; Low: PRICE_LOW; Median (HL/2): PRICE_MEDIAN; Typical (HLC/3): PRICE_TYPICAL; Weighted (HLCC/4): PRICE_WEIGHTED |
Output: FrAMA (value, buffer 0)
Gator OscillatorMT5 native
แสดงการลู่เข้าและแยกออกของเส้น Alligator
gator · iGator · bill-williams
| พารามิเตอร์ / key | ค่าเริ่มต้น | ช่วง / ตัวเลือก |
|---|---|---|
| Jaw period (jawPeriod) · bars | 13 | 1 … 1000; step 1 |
| Jaw shift (jawShift) · bars | 8 | 0 … 500; step 1 |
| Teeth period (teethPeriod) · bars | 8 | 1 … 1000; step 1 |
| Teeth shift (teethShift) · bars | 5 | 0 … 500; step 1 |
| Lips period (lipsPeriod) · bars | 5 | 1 … 1000; step 1 |
| Lips shift (lipsShift) · bars | 3 | 0 … 500; step 1 |
| MA method (maMethod) | MODE_SMMA | Simple: MODE_SMA; Exponential: MODE_EMA; Smoothed: MODE_SMMA; Linear weighted: MODE_LWMA |
| Applied price (appliedPrice) | PRICE_MEDIAN | Close: PRICE_CLOSE; Open: PRICE_OPEN; High: PRICE_HIGH; Low: PRICE_LOW; Median (HL/2): PRICE_MEDIAN; Typical (HLC/3): PRICE_TYPICAL; Weighted (HLCC/4): PRICE_WEIGHTED |
Output: Upper histogram (upper, buffer 0); Lower histogram (lower, buffer 2)
Ichimoku Kinko HyoMT5 native
หลายเส้นสำหรับพิจารณาแนวโน้ม โมเมนตัม และแนวรับต้าน ต้องตรวจ output และการเลื่อนเส้น
ichimoku · iIchimoku · trend
| พารามิเตอร์ / key | ค่าเริ่มต้น | ช่วง / ตัวเลือก |
|---|---|---|
| Tenkan-sen period (tenkanPeriod) · bars | 9 | 1 … 1000; step 1 |
| Kijun-sen period (kijunPeriod) · bars | 26 | 1 … 1000; step 1 |
| Senkou Span B period (senkouSpanBPeriod) · bars | 52 | 1 … 1000; step 1 |
Output: Tenkan-sen (tenkan, buffer 0); Kijun-sen (kijun, buffer 1); Senkou Span A (senkouA, buffer 2); Senkou Span B (senkouB, buffer 3); Chikou Span (chikou, buffer 4)
Market Facilitation IndexMT5 native
เทียบช่วงราคากับปริมาณเพื่อพิจารณาการมีส่วนร่วม ไม่ใช่ Money Flow Index
bw-mfi · iBWMFI · bill-williams
| พารามิเตอร์ / key | ค่าเริ่มต้น | ช่วง / ตัวเลือก |
|---|---|---|
| Volume (volumeType) | VOLUME_TICK | Tick volume: VOLUME_TICK; Real volume: VOLUME_REAL |
Output: BW MFI (value, buffer 0)
MomentumMT5 native
เทียบราคากับราคาย้อนหลังตามจำนวนแท่ง
momentum · iMomentum · momentum
| พารามิเตอร์ / key | ค่าเริ่มต้น | ช่วง / ตัวเลือก |
|---|---|---|
| Period (period) · bars | 14 | 1 … 1000; step 1 |
| Applied price (appliedPrice) | PRICE_CLOSE | Close: PRICE_CLOSE; Open: PRICE_OPEN; High: PRICE_HIGH; Low: PRICE_LOW; Median (HL/2): PRICE_MEDIAN; Typical (HLC/3): PRICE_TYPICAL; Weighted (HLCC/4): PRICE_WEIGHTED |
Output: Momentum (value, buffer 0)
Money Flow IndexMT5 native
โมเมนตัมถ่วงด้วยปริมาณสำหรับพิจารณาแรงซื้อขาย
mfi · iMFI · volume
| พารามิเตอร์ / key | ค่าเริ่มต้น | ช่วง / ตัวเลือก |
|---|---|---|
| Period (period) · bars | 14 | 1 … 1000; step 1 |
| Volume (volumeType) | VOLUME_TICK | Tick volume: VOLUME_TICK; Real volume: VOLUME_REAL |
Output: MFI (value, buffer 0)
Moving AverageMT5 native
ทำราคาให้เรียบด้วย Simple, Exponential, Smoothed หรือ Linear weighted
moving-average · iMA · trend
| พารามิเตอร์ / key | ค่าเริ่มต้น | ช่วง / ตัวเลือก |
|---|---|---|
| Period (period) · bars | 14 | 1 … 1000; step 1 |
| Shift (shift) · bars | 0 | 0 … 500; step 1 |
| MA method (maMethod) | MODE_SMA | Simple: MODE_SMA; Exponential: MODE_EMA; Smoothed: MODE_SMMA; Linear weighted: MODE_LWMA |
| Applied price (appliedPrice) | PRICE_CLOSE | Close: PRICE_CLOSE; Open: PRICE_OPEN; High: PRICE_HIGH; Low: PRICE_LOW; Median (HL/2): PRICE_MEDIAN; Typical (HLC/3): PRICE_TYPICAL; Weighted (HLCC/4): PRICE_WEIGHTED |
Output: MA (value, buffer 0)
Moving Average of OscillatorMT5 native
ส่วนต่างระหว่างเส้นหลักและ signal ของ MACD
osma · iOsMA · momentum
| พารามิเตอร์ / key | ค่าเริ่มต้น | ช่วง / ตัวเลือก |
|---|---|---|
| Fast EMA period (fastPeriod) · bars | 12 | 1 … 1000; step 1 |
| Slow EMA period (slowPeriod) · bars | 26 | 1 … 1000; step 1 |
| Signal period (signalPeriod) · bars | 9 | 1 … 1000; step 1 |
| Applied price (appliedPrice) | PRICE_CLOSE | Close: PRICE_CLOSE; Open: PRICE_OPEN; High: PRICE_HIGH; Low: PRICE_LOW; Median (HL/2): PRICE_MEDIAN; Typical (HLC/3): PRICE_TYPICAL; Weighted (HLCC/4): PRICE_WEIGHTED |
Output: OsMA (value, buffer 0)
Moving Average Convergence/DivergenceMT5 native
ความสัมพันธ์ระหว่าง EMA เร็วและช้า มี main กับ signal ให้เลือก
macd · iMACD · momentum
| พารามิเตอร์ / key | ค่าเริ่มต้น | ช่วง / ตัวเลือก |
|---|---|---|
| Fast EMA period (fastPeriod) · bars | 12 | 1 … 1000; step 1 |
| Slow EMA period (slowPeriod) · bars | 26 | 1 … 1000; step 1 |
| Signal period (signalPeriod) · bars | 9 | 1 … 1000; step 1 |
| Applied price (appliedPrice) | PRICE_CLOSE | Close: PRICE_CLOSE; Open: PRICE_OPEN; High: PRICE_HIGH; Low: PRICE_LOW; Median (HL/2): PRICE_MEDIAN; Typical (HLC/3): PRICE_TYPICAL; Weighted (HLCC/4): PRICE_WEIGHTED |
Output: MACD (main, buffer 0); Signal (signal, buffer 1)
On Balance VolumeMT5 native
บวกหรือลบปริมาณตามทิศทางราคา
obv · iOBV · volume
| พารามิเตอร์ / key | ค่าเริ่มต้น | ช่วง / ตัวเลือก |
|---|---|---|
| Volume (volumeType) | VOLUME_TICK | Tick volume: VOLUME_TICK; Real volume: VOLUME_REAL |
Output: OBV (value, buffer 0)
Parabolic Stop and ReverseMT5 native
จุดตามแนวโน้มที่อาจช่วยพิจารณาการกลับทิศ
parabolic-sar · iSAR · trend
| พารามิเตอร์ / key | ค่าเริ่มต้น | ช่วง / ตัวเลือก |
|---|---|---|
| Step (step) | 0.02 | 0.001 … 1; step 0.001 |
| Maximum (maximum) | 0.2 | 0.01 … 1; step 0.01 |
Output: SAR (value, buffer 0)
Relative Strength IndexMT5 native
วัดความเร็วและขนาดการเปลี่ยนราคา
rsi · iRSI · momentum
| พารามิเตอร์ / key | ค่าเริ่มต้น | ช่วง / ตัวเลือก |
|---|---|---|
| Period (period) · bars | 14 | 1 … 1000; step 1 |
| Applied price (appliedPrice) | PRICE_CLOSE | Close: PRICE_CLOSE; Open: PRICE_OPEN; High: PRICE_HIGH; Low: PRICE_LOW; Median (HL/2): PRICE_MEDIAN; Typical (HLC/3): PRICE_TYPICAL; Weighted (HLCC/4): PRICE_WEIGHTED |
Output: RSI (value, buffer 0)
Relative Vigor IndexMT5 native
เปรียบเทียบการเปลี่ยนจาก open ถึง close กับช่วงราคา
rvi · iRVI · momentum
| พารามิเตอร์ / key | ค่าเริ่มต้น | ช่วง / ตัวเลือก |
|---|---|---|
| Period (period) · bars | 10 | 1 … 1000; step 1 |
Output: RVI (main, buffer 0); Signal (signal, buffer 1)
Standard DeviationMT5 native
การกระจายราคาจากค่าเฉลี่ย
standard-deviation · iStdDev · volatility
| พารามิเตอร์ / key | ค่าเริ่มต้น | ช่วง / ตัวเลือก |
|---|---|---|
| Period (period) · bars | 20 | 1 … 1000; step 1 |
| Shift (shift) · bars | 0 | 0 … 500; step 1 |
| MA method (maMethod) | MODE_SMA | Simple: MODE_SMA; Exponential: MODE_EMA; Smoothed: MODE_SMMA; Linear weighted: MODE_LWMA |
| Applied price (appliedPrice) | PRICE_CLOSE | Close: PRICE_CLOSE; Open: PRICE_OPEN; High: PRICE_HIGH; Low: PRICE_LOW; Median (HL/2): PRICE_MEDIAN; Typical (HLC/3): PRICE_TYPICAL; Weighted (HLCC/4): PRICE_WEIGHTED |
Output: StdDev (value, buffer 0)
Stochastic OscillatorMT5 native
เทียบราคาปิดกับช่วงสูงต่ำล่าสุด
stochastic · iStochastic · momentum
| พารามิเตอร์ / key | ค่าเริ่มต้น | ช่วง / ตัวเลือก |
|---|---|---|
| %K period (kPeriod) · bars | 5 | 1 … 1000; step 1 |
| %D period (dPeriod) · bars | 3 | 1 … 1000; step 1 |
| Slowing (slowing) · bars | 3 | 1 … 1000; step 1 |
| MA method (maMethod) | MODE_SMA | Simple: MODE_SMA; Exponential: MODE_EMA; Smoothed: MODE_SMMA; Linear weighted: MODE_LWMA |
| Price field (priceField) | STO_LOWHIGH | Low / High: STO_LOWHIGH; Close / Close: STO_CLOSECLOSE |
Output: %K (main, buffer 0); %D (signal, buffer 1)
Triple Exponential Moving AverageMT5 native
ค่าเฉลี่ยจากการทำให้เรียบสามชั้นเพื่อลดความล่าช้า
tema · iTEMA · trend
| พารามิเตอร์ / key | ค่าเริ่มต้น | ช่วง / ตัวเลือก |
|---|---|---|
| Period (period) · bars | 14 | 1 … 1000; step 1 |
| Shift (shift) · bars | 0 | 0 … 500; step 1 |
| Applied price (appliedPrice) | PRICE_CLOSE | Close: PRICE_CLOSE; Open: PRICE_OPEN; High: PRICE_HIGH; Low: PRICE_LOW; Median (HL/2): PRICE_MEDIAN; Typical (HLC/3): PRICE_TYPICAL; Weighted (HLCC/4): PRICE_WEIGHTED |
Output: TEMA (value, buffer 0)
Triple Exponential Average OscillatorMT5 native
อัตราเปลี่ยนแปลงของค่าเฉลี่ยที่ทำให้เรียบสามชั้น
trix · iTriX · momentum
| พารามิเตอร์ / key | ค่าเริ่มต้น | ช่วง / ตัวเลือก |
|---|---|---|
| Period (period) · bars | 14 | 1 … 1000; step 1 |
| Applied price (appliedPrice) | PRICE_CLOSE | Close: PRICE_CLOSE; Open: PRICE_OPEN; High: PRICE_HIGH; Low: PRICE_LOW; Median (HL/2): PRICE_MEDIAN; Typical (HLC/3): PRICE_TYPICAL; Weighted (HLCC/4): PRICE_WEIGHTED |
Output: TRIX (value, buffer 0)
Williams' Percent RangeMT5 native
ตำแหน่งราคาปิดภายในช่วงสูงต่ำ
williams-percent-range · iWPR · momentum
| พารามิเตอร์ / key | ค่าเริ่มต้น | ช่วง / ตัวเลือก |
|---|---|---|
| Period (period) · bars | 14 | 1 … 1000; step 1 |
Output: %R (value, buffer 0)
Variable Index Dynamic AverageMT5 native
ปรับการทำให้เรียบของ EMA ด้วย Chande Momentum Oscillator
vidya · iVIDyA · trend
| พารามิเตอร์ / key | ค่าเริ่มต้น | ช่วง / ตัวเลือก |
|---|---|---|
| CMO period (cmoPeriod) · bars | 9 | 1 … 1000; step 1 |
| EMA period (emaPeriod) · bars | 12 | 1 … 1000; step 1 |
| Shift (shift) · bars | 0 | 0 … 500; step 1 |
| Applied price (appliedPrice) | PRICE_CLOSE | Close: PRICE_CLOSE; Open: PRICE_OPEN; High: PRICE_HIGH; Low: PRICE_LOW; Median (HL/2): PRICE_MEDIAN; Typical (HLC/3): PRICE_TYPICAL; Weighted (HLCC/4): PRICE_WEIGHTED |
Output: VIDyA (value, buffer 0)
VolumesMT5 native
ปริมาณ tick หรือปริมาณจริงของแต่ละแท่ง ขึ้นกับข้อมูลโบรกเกอร์
volumes · iVolumes · volume
| พารามิเตอร์ / key | ค่าเริ่มต้น | ช่วง / ตัวเลือก |
|---|---|---|
| Volume (volumeType) | VOLUME_TICK | Tick volume: VOLUME_TICK; Real volume: VOLUME_REAL |
Output: Volume (value, buffer 0)
Volume Weighted Average PriceCatalog only · บล็อก export
ต้นแบบราคาเฉลี่ยถ่วงปริมาณแบบ session หรือ rolling — ยังส่งออกไม่ได้
vwap · iCustom · volume
| พารามิเตอร์ / key | ค่าเริ่มต้น | ช่วง / ตัวเลือก |
|---|---|---|
| Anchor (anchor) | session | Session: session; Week: week; Month: month |
Output: VWAP (value, buffer 0)
SupertrendCatalog only · บล็อก export
ต้นแบบเส้นแนวโน้มจาก ATR — ยังส่งออกไม่ได้
supertrend · iCustom · trend
| พารามิเตอร์ / key | ค่าเริ่มต้น | ช่วง / ตัวเลือก |
|---|---|---|
| Period (period) · bars | 10 | 1 … 1000; step 1 |
| ATR multiplier (multiplier) | 3 | 0.1 … 20; step 0.1 |
Output: Supertrend (line, buffer 0); Direction (direction, buffer 1)
Donchian ChannelCatalog only · บล็อก export
ต้นแบบกรอบราคาสูงสุดและต่ำสุดสำหรับ breakout — ยังส่งออกไม่ได้
donchian-channel · iCustom · levels
| พารามิเตอร์ / key | ค่าเริ่มต้น | ช่วง / ตัวเลือก |
|---|---|---|
| Period (period) · bars | 20 | 1 … 1000; step 1 |
Output: Upper (upper, buffer 0); Middle (middle, buffer 1); Lower (lower, buffer 2)
Keltner ChannelCatalog only · บล็อก export
ต้นแบบกรอบ EMA ขยายด้วย ATR — ยังส่งออกไม่ได้
keltner-channel · iCustom · volatility
| พารามิเตอร์ / key | ค่าเริ่มต้น | ช่วง / ตัวเลือก |
|---|---|---|
| EMA period (emaPeriod) · bars | 20 | 1 … 1000; step 1 |
| ATR period (atrPeriod) · bars | 10 | 1 … 1000; step 1 |
| ATR multiplier (multiplier) | 2 | 0.1 … 20; step 0.1 |
Output: Middle (middle, buffer 0); Upper (upper, buffer 1); Lower (lower, buffer 2)
Hull Moving AverageCatalog only · บล็อก export
ต้นแบบค่าเฉลี่ยถ่วงน้ำหนักเน้นความเรียบและลดความล่าช้า — ยังส่งออกไม่ได้
hull-moving-average · iCustom · trend
| พารามิเตอร์ / key | ค่าเริ่มต้น | ช่วง / ตัวเลือก |
|---|---|---|
| Period (period) · bars | 20 | 1 … 1000; step 1 |
| Applied price (appliedPrice) | PRICE_CLOSE | Close: PRICE_CLOSE; Open: PRICE_OPEN; High: PRICE_HIGH; Low: PRICE_LOW; Median (HL/2): PRICE_MEDIAN; Typical (HLC/3): PRICE_TYPICAL; Weighted (HLCC/4): PRICE_WEIGHTED |
Output: HMA (value, buffer 0)
Zero Lag Exponential Moving AverageCatalog only · บล็อก export
ต้นแบบ EMA ชดเชยความล่าช้าของข้อมูล — ยังส่งออกไม่ได้
zero-lag-ema · iCustom · trend
| พารามิเตอร์ / key | ค่าเริ่มต้น | ช่วง / ตัวเลือก |
|---|---|---|
| Period (period) · bars | 20 | 1 … 1000; step 1 |
| Applied price (appliedPrice) | PRICE_CLOSE | Close: PRICE_CLOSE; Open: PRICE_OPEN; High: PRICE_HIGH; Low: PRICE_LOW; Median (HL/2): PRICE_MEDIAN; Typical (HLC/3): PRICE_TYPICAL; Weighted (HLCC/4): PRICE_WEIGHTED |
Output: ZLEMA (value, buffer 0)
Chandelier ExitCatalog only · บล็อก export
ต้นแบบจุดออกตาม ATR จากจุดสูงต่ำล่าสุด — ยังส่งออกไม่ได้
chandelier-exit · iCustom · levels
| พารามิเตอร์ / key | ค่าเริ่มต้น | ช่วง / ตัวเลือก |
|---|---|---|
| Period (period) · bars | 22 | 1 … 1000; step 1 |
| ATR period (atrPeriod) · bars | 22 | 1 … 1000; step 1 |
| ATR multiplier (multiplier) | 3 | 0.1 … 20; step 0.1 |
Output: Long exit (long, buffer 0); Short exit (short, buffer 1)
Squeeze MomentumCatalog only · บล็อก export
ต้นแบบติดตามการบีบตัวความผันผวนและการขยายโมเมนตัม — ยังส่งออกไม่ได้
squeeze-momentum · iCustom · volatility
| พารามิเตอร์ / key | ค่าเริ่มต้น | ช่วง / ตัวเลือก |
|---|---|---|
| Bands period (bbPeriod) · bars | 20 | 1 … 1000; step 1 |
| Bands multiplier (bbMultiplier) | 2 | 0.1 … 10; step 0.1 |
| Keltner period (kcPeriod) · bars | 20 | 1 … 1000; step 1 |
| Keltner multiplier (kcMultiplier) | 1.5 | 0.1 … 10; step 0.1 |
Output: Momentum (momentum, buffer 0); Squeeze state (squeeze, buffer 1)
ไม่พบรายการ ลองเปลี่ยนคำค้นหรือปิดตัวกรอง
แก้ Problems และส่งออกไฟล์
- เปิด Problems: Error บล็อก source และ download; Warning ยังส่งออกได้แต่ต้องอ่าน การ dismiss ข้อความไม่ได้แก้เงื่อนไขที่ผิด
- กด Go to node → แก้ field หรือ connection ที่เกี่ยวข้อง ถ้าไม่รู้สาเหตุ ให้จด code กับข้อความเต็มและ Export strategy JSON เพื่อส่งตรวจ
- Preflight → Summary แยก Export validation, MQL5 source, MetaEditor compiler, MT5 Strategy Tester และ Source SHA-256 ตรวจให้ตรงกับสิ่งที่ทำจริง
- MQL5 Source แสดง source และ Copy source; ถ้าคัดลอกไม่ได้ให้ใช้ Download .mq5 แทน Download manifest เก็บ hash เต็มและกลยุทธ์สำหรับผูกหลักฐานกับไฟล์
| ไฟล์ | ใช้ทำอะไร |
|---|---|
| *.strategy.json | ไฟล์จาก Export strategy JSON สำหรับกลับมาแก้กราฟหรือส่งให้คน/AI; ไม่รวม favorites, theme และ My Blocks ทั้งหมด |
| *.mq5 | source สำหรับ MetaEditor ยังใช้แทนไฟล์ compile แล้วไม่ได้ |
| *.manifest.json | ข้อมูล source hash, generator version, กลยุทธ์ และสถานะตรวจ ณ ตอน export; ไม่ใช่ใบรับรองผล compile |
| *.ex5 · compiler log · tester report | สร้างภายนอกเว็บด้วย MT5/MetaEditor เก็บคู่กับ source และ manifest ของรอบนั้น |
Compile และทดสอบใน MT5
- ใน MT5 เปิด File → Open Data Folder → MQL5 → Experts แล้ววาง .mq5 จากนั้นเปิดไฟล์ใน MetaEditor และกด F7 เกณฑ์ส่งมอบของคู่มือนี้คือ 0 errors / 0 warnings เก็บ log และไฟล์ .ex5
- เปิด Strategy Tester เลือก EA ที่ compile จากไฟล์นั้น เลือก symbol ของโบรกเกอร์ timeframe ช่วงข้อมูล เงินจำลอง และการจำลอง tick ให้ตรงกับการทดสอบ บันทึกค่าทั้งหมด
- ไม่ต้องแก้ Inputs: ใน Strategy Tester EA จะเปิดคำสั่งจำลองให้อัตโนมัติ (Journal จะขึ้นว่า Strategy Tester detected) ส่วนบนกราฟจริงยังเป็น DRY RUN จนกว่าจะตั้ง InpAllowTrading=true และคง InpAllowRealAccount=false
- ตรวจ Journal, เวลาเกิดสัญญาณ, ทิศทาง, lot, spread และ SL/TP ใช้ visual mode เทียบกับกติกา ไม่มี trade อาจเกิดจากเงื่อนไขไม่เกิดหรือ filter ไม่ผ่าน ไม่ควรแก้ด้วยการปิดการป้องกันทั้งหมด
- บันทึก tester report พร้อมช่วงข้อมูล broker/symbol และต้นทุนที่ใช้ หลังตรวจพฤติกรรมแล้วค่อยประเมินข้อมูลช่วงอื่นและ demo แยกต่างหาก ผลย้อนหลังไม่รับรองอนาคต
หน้า MT5 Setup ใน Preflight เป็นคำแนะนำ ไม่ได้ตรวจพบโปรแกรมหรือรันทดสอบให้คุณ หากไม่มี MT5 ให้จบงานที่ source + manifest + strategy JSON และระบุ compiler/tester ว่า Not run
บันทึก นำเข้า และกู้คืนงาน
ระบบบันทึกอัตโนมัติใน local storage ของเบราว์เซอร์นี้ ไม่ใช่บัญชีผู้ใช้ การเปลี่ยนเบราว์เซอร์ ล้างข้อมูล หรือใช้โหมดส่วนตัวอาจทำให้งานเดิมไม่อยู่ จึงควร Export strategy JSON ก่อนปิดหรือเปลี่ยนเครื่อง
- นำเข้า: Builder settings → Import strategy JSON → เลือกไฟล์ → ระบบตรวจรูปแบบ → อ่านคำยืนยันแทนที่ → ตรวจชื่อและ Problems หลังเปิด รองรับ workspace schema 1.0 และ strategy ที่รองรับ
- Local save failed: งานยังอยู่ในหน่วยความจำ ให้ Export strategy JSON ทันที อย่ารีเฟรชก่อนสำรอง ตรวจสิทธิ์และพื้นที่จัดเก็บของเบราว์เซอร์
- Local autosave is paused: export งานปัจจุบัน; Download recovery bytes สำรองข้อมูลเก่าถ้าปุ่มปรากฏ; Resume local save จะกลับไปเขียน storage หลังยืนยัน อ่านว่าข้อมูลใดจะถูกแทนที่ก่อนกด
- ข้อมูลเสียหรือ schema ใหม่กว่า: อย่าแก้เลข version ให้ผ่านเอง เก็บ recovery bytes และส่งไฟล์พร้อมข้อความ error ให้ผู้ช่วยวิเคราะห์
- Clear saved browser data เป็นการล้างข้อมูลที่บันทึกของ Builder ต้องสำรองก่อน ไม่ใช่วิธีแก้ error ทั่วไป
ทำงานร่วมกับ AI
AI อ่านคู่มือนี้แบบ HTML หรือดาวน์โหลด Markdown และ reference.json ได้ แต่ Builder ไม่มี public execution API, broker API หรือบริการ compile ฝั่งเซิร์ฟเวอร์ การกดใช้งานต้องผ่านเบราว์เซอร์ที่ผู้ใช้อนุญาต หรือสร้างไฟล์ JSON แล้วให้ผู้ใช้ Import
- รับข้อมูล: กติกา symbol/timeframe ทิศทาง risk/stop/spread และไฟล์ strategy ปัจจุบัน ถ้าขาดรายละเอียดที่เปลี่ยนพฤติกรรม ให้ถามก่อน อย่าเติมค่าความเสี่ยงเอง
- เริ่มจาก example JSON ที่รองรับ เปลี่ยนค่าโดยรักษา schemaVersion, node IDs, edges และ reference ให้ตรง; ดู reference.json สำหรับ parameter keys และค่าที่อนุญาต
- หากใช้เบราว์เซอร์ ให้เลือกด้วยชื่อปุ่มและ label เช่น Builder settings, Canvas outline, Preflight แล้วอ่านหน้าจอใหม่หลังเปลี่ยน หลีกเลี่ยงการเดาพิกัดหรือเขียน local storage ตรง
- ไม่ล้างข้อมูล ไม่ยืนยันแทนที่ ไม่ส่งไฟล์ลูกค้าไปบริการอื่น และไม่เปิดการเทรดจริงนอกขอบเขตที่เจ้าของอนุญาต
- ส่งมอบ: summary ของกติกา, strategy JSON, source/manifest ถ้าสร้างได้, warnings/blockers และผลตรวจที่มีจริง ระบุ Not run สำหรับ compiler/tester ที่ยังไม่ได้ทำ
ช่วยทำกลยุทธ์ใน AckAlgo EA Builder ตามคู่มือนี้ กติกาเข้า: [ระบุ] กติกาออก: [ระบุ] Broker symbol / timeframe: [ระบุ] ทิศทาง / position sizing / stop loss / take profit / spread: [ระบุพร้อมหน่วย] ใช้เฉพาะเครื่องมือที่รองรับ ถ้าข้อมูลไม่ครบให้ถาม สำรอง strategy JSON ก่อนแก้ และอ่านคำยืนยันแทนที่ก่อนดำเนินการ ตรวจ Problems และ Preflight แล้วส่ง strategy JSON, .mq5 และ manifest ถ้าสร้างได้ รายงาน local validation, source generation, exact-file compilation และ MT5 testing แยกกัน ห้ามอ้างผล compile/backtest หากไม่ได้ทำ ห้ามเปิดบัญชีจริงหรือส่งคำสั่งเงินจริง
แก้ปัญหาที่เจอบ่อย
| อาการ | ตรวจและแก้อย่างไร |
|---|---|
| Download .mq5 กดไม่ได้ | ดู Error ใน Problems; ตรวจ Catalog only, Equals, UTC, exit mode ที่ยังไม่รองรับ และ node/edge ที่ขาด แก้ให้ Preflight ผ่านก่อน |
| ค้น Session Filter ไม่พบ | ค้น Session หรือเปิด Logic; ตรวจการสะกดชื่อเครื่องมือเป็นภาษาอังกฤษ |
| ต่อเส้นไม่ได้ / กติกาเปลี่ยนหลังต่อ | อ่านเหตุผล ตรวจชนิดต้นทาง–ปลายทางและ input ที่มีแล้ว จากนั้นอ่าน Left/Right operand ใหม่ |
| Save as Block ปิดอยู่ | node อ้าง node อื่นอยู่ ให้บันทึกต้นทางที่เป็นอิสระ หรือ export ทั้ง strategy |
| compile มี error | เก็บ .mq5 เดิม hash เวอร์ชัน MetaEditor และ log เต็ม อย่านำ log ของ template อื่นมาแทนหลักฐาน แก้แล้ว compile ไฟล์ใหม่ |
| ทดสอบแล้วไม่มี trade | อ่าน Journal ก่อน: ข้อความ Waiting: spread = spread กว้างเกิน InpMaxSpreadPoints, built for ... running on ... = ชื่อ symbol ไม่ตรง (ตั้ง InpSymbol ให้ตรงโบรกเกอร์) จากนั้นตรวจประวัติราคา, signal และ session time |
| lot หรือ stop ไม่ตรงที่คิด | ตรวจหน่วย percent/points/atr และข้อมูลโบรกเกอร์ แยก risk percent ออกจากระยะ stop; ตรวจ source และ Journal |
| มือถือไม่เห็น editor เต็ม | กด Configure & files เพื่อตั้งค่าและนำเข้า/ส่งออก JSON กด Edit node settings ใต้กฎเพื่อแก้พารามิเตอร์ กล่องที่พับ/เปิดจะจำสถานะระหว่างแก้ไข การเพิ่ม node ต่อเส้น และจัดกราฟใช้ desktop หรือ tablet |
ขอบเขตของรุ่นนี้
ใช้ได้: template, visual graph, indicator parameters, closed-bar conditions, broker session, market entry, position sizing, stop/target, JSON import/export, local preflight และ MQL5 source export สำหรับกราฟที่รองรับ
ยังไม่รองรับ: อินดิเคเตอร์เสริม Catalog only, Equals แบบมี tolerance, UTC session export, pending orders, หลาย symbol ในกลยุทธ์เดียว, editor มือถือเต็มรูปแบบ, custom indicator upload, cloud sync, การจ่ายเงิน, web backtest, server compile และ broker connection การเห็นตัวเลือกใน UI ไม่ได้แปลว่าส่งออกได้
หากต้องการสิ่งที่อยู่นอกขอบเขต ให้ส่งกติกาที่ต้องการพร้อมตัวอย่างและ blocker เพื่อประเมินการพัฒนา ไม่ควรเปลี่ยนความหมายของกลยุทธ์เงียบ ๆ เพื่อให้ Preflight ผ่าน
การจัดการตำแหน่งที่ส่งออกได้
ตัวสร้าง source รองรับ trailing stop, break-even, opposite-signal exit และ session-close exit เมื่อมี Session node รวมถึงการตั้งค่า averaging, martingale, basket limits และจำนวนตำแหน่ง ตรวจค่าทุกตัวใน source และ MT5 แยกต่างหาก การส่งออกได้ไม่ได้รับรองผลการเทรด
ไฟล์ Strategy Tester / demo ตั้ง InpAllowTrading=false ส่วนตัวเลือก Download with live trading ON ตั้งค่านี้เป็น true อย่างชัดเจน ทั้งสองแบบตั้ง InpAllowRealAccount=false ต้อง compile และทดสอบไฟล์จริงแต่ละไฟล์ก่อนใช้งาน
คำถามที่ถามบ่อย
ต้องเขียนโค้ดไหม?
การต่อกลยุทธ์ที่รองรับไม่ต้องเขียนโค้ด แต่การตรวจ source และทดสอบ MT5 ยังจำเป็น งานนอกขอบเขตอาจต้องนักพัฒนา
Preflight ผ่าน แปลว่า EA ใช้ได้แล้วไหม?
หมายถึงผ่านการตรวจในเว็บเท่านั้น ต้อง compile และทดสอบไฟล์ที่ส่งออกจริงแยกต่างหาก
AI เปิดคู่มือแล้วสร้างงานต่อได้ไหม?
ได้ผ่าน HTML, Markdown, reference.json และตัวอย่าง strategy JSON แต่ไม่มี execution API และต้องมีสิทธิ์ใช้เบราว์เซอร์หรือให้เจ้าของนำเข้าไฟล์
งานบันทึกอยู่ที่ไหน?
ในเบราว์เซอร์ที่ใช้อยู่ ควร export JSON เป็นสำรอง ยังไม่มีบัญชีหรือ cloud sync
สร้าง EA แล้วทำกำไรได้แน่นอนไหม?
ไม่รับประกัน เครื่องมือแปลงกติกาเป็น source คุณภาพกลยุทธ์และผลการส่งคำสั่งต้องตรวจจากข้อมูลและการทดสอบจริง
ไฟล์อ้างอิงและเอกสารต้นทาง
- คู่มือฉบับเต็ม Markdown ↓
- ข้อมูลเครื่องมือสำหรับ AI (JSON)
- ดัชนีสำหรับ AI (llms.txt)
- Sitemap
- MT5 Strategy Tester ↗
- MQL5 indicator reference ↗
ชื่อเครื่องมือ พารามิเตอร์และ output ในคู่มือนี้อ้างอิงจากรุ่นของ Builder ที่ใช้สร้างคู่มือ ตัวอย่างทุกชุดเป็นบทเรียน ไม่ใช่ผล backtest หรือคำแนะนำซื้อขาย หาก UI รุ่นใหม่ต่างจากคู่มือ ให้เก็บไฟล์และข้อความที่พบก่อนขอความช่วยเหลือ