Download MetaTrader 5

Seeing the .mq4 for built-in indicators

To add comments, please log in or register
Do you keep a blog? Place a link to MQL5.community there and make money!
Drew Poteau
28
Drew Poteau 2017.03.20 03:00 
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
9624
Keith Watford 2017.03.20 04:33  
I think that you will find that only the ex4 file is supplied with MT4 for that indicator.
Blahtech Limited
3610
James Cater 2017.03.20 09:16  
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
2216
honest_knave 2017.03.20 09:24  

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

  • iADX()
  • iBands()
  • iEnvelopes()
  • iIchimoku()
  • iMA()
  • iSAR()
  • iStdDev()
Stanislav Korotky
17925
Stanislav Korotky 2017.03.20 10:46  

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 2017.03.20 21:19  
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