How to get started with MT4 programming

Source: Internet
Author: User

MT4 Programming Introductory Tutorial:

Directory of MT4 Programming introductory tutorials

MT4 Programming Entry 1:MT4 Basic operations for custom metrics

Introduction to MT4 Programming 2: Indicators in the source code of common symbols

Getting Started with MT4 programming 3: Customizing variables

Getting Started with MT4 programming 4: Custom Functions

Getting Started with MT4 programming 5: Customizing arrays

Getting Started with MT4 Programming 6: Market data values

Getting Started with MT4 Programming 7: Judgment statements

Getting Started with MT4 programming 8: Looping

Introduction to MT4 programming 9:MT4 the structure of custom metrics

Getting Started with MT4 programming 10: Draw an indicator line

Introduction to MT4 Programming 11:MT4 alarm

MT4 Programming Entry 1:MT4 The basic operation of custom metrics MT4 The directory of the Customization Index, Index editor and Index adjustment

Use

 The MT4 custom index is saved in the C:Program filesmetatrader 4expertsindicators directory.

There are mainly two types of files in this directory,

One is the mq4 file, which is the MT4 custom index source file, is a high-level language file, you can manually write repair

, the machine cannot be executed directly, but it can be automatically compiled into the ex4 executable when the MT4 is started.

The other is the ex4 file, which is the executable file of the MT4 custom metric, compiled by the mq4 file.

MQ4 files must be compiled into ex4 files to be MT4 executed.

But the ex4 file is a machine code file, the manual can not be modified

Another file is Mqlcache.dat, which is used to save the file information in the directory, if MT4 cannot be compiled automatically,

Just delete this file to solve the problem

mq4 files are compiled into EX4 executables in two ways:

1. When MT4 starts, the mq4 file in this directory is automatically compiled into ex4 file.

2, with the MQ language editor to open the Mq4 file, click the "Write" button, you can generate EX4 files

Second, download and save mq4 files, ex4 files

On the forum we often see mq4 files, ex4 files available for download, we just save them to the C:Program

Filesmetatrader 4expertsindicators This directory, which is the following directory, you can. If you download

is the ex4 file, which can be called directly, if the mq4 file, you will need to restart the MT4, let the system automatically compile the build

ex4 executable file. If you download a RAR, zip, and other types of compressed files, you must also download and extract to this directory to make

Use.

  Third, the source code to save the source file

In the forum, we can often see the index source posted on the Web page, but no mq4, ex4 and other documents can be downloaded, can only duplicate

System source. At this time we need to do our own source code to save the source file, it does not matter, very simple, a few more points

The mouse is done.

1. Open the MQ language editor

2, in the MQ language editor to create a new file, the file name must be lost, other casual operation does not matter.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.