Download MetaTrader 5
To add comments, please log in or register
No time to learn MQL5? The source code library is at your service!
Rob Langley
83
Rob Langley 2013.11.13 20:07 

Hi

I have wrote a few simple EA and have them running on a demo account.  I now want to use the indicator Williams Fractals, I see the function iFractal, but note this is described as an indicator and the example uses onCalculate which is triggered by an indicator.

Is there a difference when coding for an EA compared to an Indicator? can I utilise pre built indicators in my EA code?  Or is an Indicator different when coding? 

Its just when I create a project I have to specify EA, Indicator or Script.  Are these just wizards and I can utilise all code in my EA?

 

Thanks In Advance

 

Rob 

Rob Langley
83
Rob Langley 2013.11.13 20:33  

Think I have found my own answer. hopefully useful for someone else.

https://www.mql5.com/en/articles/31

 Thanks

Rob 

MQL5 for Newbies: Guide to Using Technical Indicators in Expert Advisors
MQL5 for Newbies: Guide to Using Technical Indicators in Expert Advisors
  • 2010.03.18
  • Sergey Pavlov
  • www.mql5.com
In order to obtain values of a built-in or custom indicator in an Expert Advisor, first its handle should be created using the corresponding function. Examples in the article show how to use this or that technical indicator while creating your own programs. The article describes indicators that are built n the MQL5 language. It is intended for those who don't have much experience in the development of trading strategies and offers simple and clear ways of working with indicators using the offered library of functions.
Alain Verleyen
Moderator
28522
Alain Verleyen 2013.11.13 20:43  
RobLangley:

Think I have found my own answer. hopefully useful for someone else.

https://www.mql5.com/en/articles/31

 Thanks

Rob 

Pasi Hakamaki
3600
Pasi Hakamaki 2013.11.13 21:04  

This article : Step-By-Step Guide to writing an Expert Advisor in MQL5 for Beginners is also good for beginning.

Good luck.

/
To add comments, please log in or register