Introduction - Write your own expert for MT4 - MA Cross

Описание к видео Introduction - Write your own expert for MT4 - MA Cross

This is an introductory tutorial on writing an expert for MT4. The expert uses a simple moving average cross as a template example.

This video is for 2 reasons. First it is as I said an introductory video for those just starting out to program for MT4.
Secondly, I plan to use this as a template for future expert videos. That will allow me to keep the future videos shorter by not including basic information each time.
There can be many variations to experts and I will release further introductory expert videos in the future.

The moving average cross used here as an example simply buys each time a fast MA crosses above the slow MA and sells each time the fast MA crosses below the slow MA.
Take profit and stop loss are at a fixed size.

This video is for MT4. I am keeping the MT4 and MT5 versions separated to avoid confusion in the video.
There is a separate video for MT5 with a link below.

Links:
Playlist for this series:    • Introduction series - writing experts...  
MT5 Version:    • Introduction - Write your own expert ...  
NewBar function:    • How to run MQL4 or MQL5 code only one...  

If you are looking for a broker with good leverage, spreads and product range and want to help out our channel try OX Securities. We do receive commission from this broker.
Demo Account: https://orchardforex.com/demo-account
Live Account: https://orchardforex.com/live-account

Web: https://orchardforex.com/introduction...
Discord: https://orchardforex.com/discord/
Twitter:   / orchardforex  
Telegram: https://t.me/orchardforex

00:00 - Introduction
00:58 - Creating the expert with the wizard
02:48 - Event Handlers
04:42 - Inputs
10:50 - Convert points to double
12:30 - Why check only on closed bars
13:19 - Is trading currently allowed
13:49 - Checking for a new bar
16:07 - Loading indicator values
18:08 - Strategy based comparisons
19:23 - OpenTrade function
23:59 - Demonstration

Комментарии

Информация по комментариям в разработке