Posted By:
29 Aug, 2014 1:56 am PDT

Directory structure of MetaTrader

I have heard that a new file and folder structure is available for MetaTrader. But I am bit confused about where does all the files and folders go. Please explain

Attachment:None


Previously, to install an Expert Advisor, you had to copy the EA file to the MT4-folderexperts. And if you wanted to install an indicator you had to copy it to theMT4-folderexpertsindicators.

People usually had two challenges with this. First was that they did not know how to find the MT4-folder. But now, the new MT4 simply gives you the menu option to open that folder and MetaQuotes calls it the “Terminal Data Folder“. You can open it easily from any new MT4 by going to “File -> Open Data Folder“.

The second challenge was the confusing part about how the indicator files go to theexperts folder as well as the Expert Advisors, but the actual indicators should be located under the sub-folder “indicators”.

Now, the new MT4 simply creates a separate folder for each of those files and puts all of these sub-folders under the MQL4 folder. This new folder can easily be found in the Terminal Data Folder.

I am sure all of you have Expert Advisors or indicators that you need to install to the new MT4 platform. This is where you will need to install them.

Let’s go to the File -> Open Data Folder and MT4 will open a window which is calledTerminal Data Folder. Make sure to remember this name because we will be using it a lot.

In the Terminal Data Folder you will find the MQL4 folder and this is the one you will be using the most. Anytime you need to analyze log files or install new Expert Advisors, Indicators or other files into your MT4, you will do this in the MQL4 folder.

Hopefully this helps you to understand what file goes where. Folder names are self explanatory.

  • Expert Advisors go into the “Experts” folder,
  • Indicators go into the “Indicators” folder,
  • Scripts go into the “Scripts” folder,
  • Libraries such as DLL files go into the “Libraries” folder. 

If you ever need to analyze log files or send them to the programmer, you will find them here as well. For example I might need these log files to investigate a problem with the software. Without these files sometimes it is close to impossible to solve a problem or even to understand what caused that problem in the first place.

The same messages that are stored in these log files are located in the “Experts” tab of each MT4 terminal window and this is where you can easily find any error or warning messages that may help you solve the problem by yourself. For example if it says something like “not enough money” or “invalid trade volume”, obviously you need to change your lot size to some smaller value as your broker might have a maximum lot size limit

Now do not confuse this logs folder inside MQL4 with the one that is located one level above. When you just open Terminal Data Folder you will see the logs folder, but that is not the one that holds the messages which can help to solve a problem with Expert Advisors. Log files stored in Terminal Data Folderlogs does not contain messages from Expert Advisors that can be used for investigation of a problem. Those are the messages from the “Journal” tab. Be sure that you analyze the files from the “Logs” folder inside the MQL4.

 

Was it useful?  




Please login to reply to this problem.