Download MetaTrader 5

Seeing the .mq4 for built-in indicators

To add comments, please log in or register
Drew Poteau
28
Drew Poteau  
Maybe a dumb question?... When I'm in MetaEditor, I want to open the .mq4 file for, let's say, the Average Directional Movement Index. That particular indicator is in another folder - called Trend -  within the indicators folder. When I try to open a file from the editor, I can't see that Trend folder, only the files directly within the 'Indicators' folder.
Keith Watford
Moderator
10569
Keith Watford  
I think that you will find that only the ex4 file is supplied with MT4 for that indicator.
Blahtech Limited
4898
James Cater  
Keith Watford:
I think that you will find that only the ex4 file is supplied with MT4 for that indicator.

I think the source code can be found here  MQL4\Include\Indicators\Trend.mqh

But I'm not sure how you get from the CiADX class to the actual indicator.

honest_knave
Moderator
2329
honest_knave  

Additionally, everything in the Trend folder has an "i" function too:

  • iADX()
  • iBands()
  • iEnvelopes()
  • iIchimoku()
  • iMA()
  • iSAR()
  • iStdDev()
Stanislav Korotky
20362
Stanislav Korotky  

You can use the built-in context search on this site:

  • provide the indicator name
  • enter user name "MetaQuotes"
  • and limit the results to the codebase

Here is how this looks for "ADX" search.

And here is the mq4 code which is listed in the results.

Drew Poteau
28
Drew Poteau  
Thank you folks for your responses and links. The guidance on using the search feature was really helpful.
To add comments, please log in or register