เขียน EA เทรดตามสัญญาณ MACD Zero Crossover | สอนพื้นฐาน MQL4 เขียน EA ทดสอบระบบเทรดบน MT4

Published on August 29, 2022

New un-edited videos highly rated Price Action Trading, Oscillating Indicators, and MACD Zero Crossover, เขียน EA เทรดตามสัญญาณ MACD Zero Crossover | สอนพื้นฐาน MQL4 เขียน EA ทดสอบระบบเทรดบน MT4.

https://RookieTraders.com – จากคลิปก่อนหน้านี้ ที่ได้อธิบายเกี่ยวกับการใช้ฟังค์ชั่น OrderSend เพื่อส่ง Order buy sell และ pending order ต่างๆ ในคลิปนี้เราลองมาเขียน EA ที่ทำการซื้อ-ขายอัตโนมัติตามเงื่อนไขทางเทคนิคคอลแบบง่ายๆกันนะครับ

เราจะใช้สัญญาณจาก indicator ตัวเดียวคือ MACD ซึ่งเชื่อว่าเพื่อนๆหลายคนคงต้องเคยใช้งานกันมาบ้างอยู่แล้ว โดยเงื่อนไขมีแค่ว่าถ้าเส้น MACD มีการตัดเส้น 0 ขึ้น เราจะส่ง order Buy และถ้า MACD ตัดเส้น 0 ลง เราจะส่ง order Sell ทุกๆ order จะมีการตั้ง SL/TP ไว้เรียบร้อย

ในการเขียนโค๊ตครั้งนี้ เราให้ผู้ใช้งานสามารถตั้งค่าต่างๆได้ เช่น ค่าระยะ SL / TP , Lotsize ที่ต้องการเทรดแต่ละไม้ รวมไปถึง ค่า period ต่างของ MACD ที่ใช้ในการเทรด เงื่อนไขซื้อ-ขายของระบบเทรดนี้ก็มีแค่นี้ครับ เพิ่มเติมอีกนิดคือเราจะเปิดทีละ 1 ออร์เดอร์เท่านั้น นั่นหมายความว่า จะเปิดออร์เดอร์ใหม่ได้ต้องเราออร์เดอร์ก่อนหน้านี้ปิดก่อน คือชน Stop Loss หรือไม่ก็ Target Price เท่านั้น

เชื่อว่าเพื่อนๆจะเห็นภาพการเขียน EA แบบง่ายๆเพื่อให้เทรดตามระบบมากขึ้น ยิ่งถ้าเพื่อนๆมีไอเดียระบบเทรดต่างๆก็สามารถลองเขียนออกมาเพื่อทดสอบ Backtest ดูได้สะดวกยิ่งขึ้น ขอให้สนุกกับการเทรด การทดสอบระบบนะครับ

0:00 เกริ่น
0:40 อธิบาย MACD คร่าวๆ
1:22 ตัวอย่างสัญญาณ Sell – MACD ตัด 0 ลง
1:48 ตัวอย่างสัญญาณ Buy – MACD ตัด 0 ขึ้น
2:16 เริ่มเขียนโค๊ด รับค่าจากเทรดเดอร์ และสร้างตัวแปรอื่นๆ
4:24 ดึงค่าจาก MACD ด้วย iMACD
6:06 เช็คจำนวน Order ไม่ให้เกิน 1 order
6:48 เช็คเงื่อนไข Buy และส่ง Order Buy
8:40 เช็คเงื่อนไข Sell และส่ง Order Sell
10:33 ทดสอบ EA ด้วย Strategy Tester
13:30 เช็คความถูกต้องของการออก order
14:40 สรุป

========================================
ถ้ายังไม่มีบัญชีเทรด? เปิดบัญชีเดโม่ลองเทรด Forex กับโบรคเกอร์เจ้าต่างๆต่อไปนี้ได้นะครับ

Exness – https://bit.ly/315pjqy
XM – http://bit.ly/3tNmoPD
Pepperstone – http://bit.ly/2Wqx2Lf
FBS – http://bit.ly/3c5okg8
========================================

อยากเทรด Bitcoin & Crypto แนะนำเปิดบัญชี
Bitkub – https://bit.ly/3x6ClC7
Binance – https://bit.ly/3xl3p0J

Hardware Wallet ที่ผมใช้ (สายออม Bitcoin ไม่ควรเก็บใน Exchange)
Trezor One – https://bit.ly/3kKzDyQ

========================================
😄😄 ฝากติดตามช่องทางอื่นๆด้านล่างนี้ได้ด้วยนะครับ 😄😄
Website : https://RookieTraders.com
FB : https://www.facebook.com/RookieTradersDotCom/
Line : https://lin.ee/WWpbkGM
#เทรดforex #สอนmql4 #เขียนEA

MACD Zero Crossover

MACD Zero Crossover, เขียน EA เทรดตามสัญญาณ MACD Zero Crossover | สอนพื้นฐาน MQL4 เขียน EA ทดสอบระบบเทรดบน MT4.

Stock Analysis Online, Indian And Us Markets

It is most conservative to trade with the pattern. Moving averages are one of the most popular indications utilized by traders to identify a trend. Luckily for us, we are robots and we can run our trades with no interruptions.

เขียน EA เทรดตามสัญญาณ MACD Zero Crossover | สอนพื้นฐาน MQL4 เขียน EA ทดสอบระบบเทรดบน MT4, Watch popular high definition online streaming videos relevant with MACD Zero Crossover.

Currency Trading – The Stepping Stones Towards Successful Trading

Another mistake new technical traders will have is not having specific entry and exit signals. Additionally, the SPX 200-day MA continued to rise over the steep fall and volatility, which is bullish.

I am specific people have told you that you can make huge cash by trading foreign currencies, right? I am likewise ready to wager somebody has told you it is simple to do. Is this real?

CROSSOVERS: The basic Macd Trading rule is to sell when the MACD falls below its signal line. When the MACD increases above its signal line, while a buy signal occurs. When the MACD goes above or below zero line, it is likewise popular to offer or purchase.

However there is one sign, one core piece of details, that is always approximately date and constantly correct. That piece of details, is rate. And particularly the closing cost at the end of every Macd Trading signals day. All the news, details, financial and fundamental data available, is reflected because closing rate.

A lot of people just focus on the reward and not the danger. Instead of falling under this trap remember to utilize stops and keep your losses as little as possible.

4) Trading Arrange. When do you prepare to trade? When will you accept brand-new entries or exits? Is there a point when all trades will be closed? Certain times of day are much better than others depending on the Macd Trading Crossover system you are planning. A schedule also helps you handle your life and put your concerns in appropriate order.

The MACD is an acronym for Moving Average Convergence/Divergence. It is a trend following momentum indicator that shows the relationship between 2 moving averages of costs. The MACD default is the distinction in between a 26-day and 12-day rapid moving average. A 9-day rapid moving average, called the signal or trigger line is plotted on top of the MACD to show buy/sell chances.

Hind site being 20/20, I asked myself the very same question, But in my personal trading style, I utilized 1.7460 as my entry, which suggests I missed getting in my trades by a discouraging 4 Pips.

Volume. Without volume trading might not take location. Its volume that triggers stocks to move.Without volume no one can get off the ground. Its cost will increase if a specific stock is being acquired a lot. If a stock is being greatly offered more than its being purchased it will fall. It will most likely continue higher if a stock all of the sudden breaks resistance with increased volume. Always pay attention to a volume chart.

Volume, put in context with cost motion, enables me to trade successfully. Removes Emotions – Being able to manage your emotions in forex trading is challenging. Include a time stop and evaluate the results once again.

If you are looking rare and entertaining videos related to MACD Zero Crossover, and Best Forex Strategy for Forex Trading, Forex Charts, Online Dating, Momentum Forex Trading please signup in email alerts service for free.

Enjoyed this video?
"No Thanks. Please Close This Box!"