Convert Indicator To EA

To add comments, please log in or register
Kenny Jay
212
Kenny Jay  
Hi, How to convert indicator to EA? Anyone can tell me. What support to change if indicator convert to EA? I'm newbie...
Simon Gniadkowski
17683
Simon Gniadkowski  
khanman:
Hi, How to convert indicator to EA? Anyone can tell me. What support to change if indicator convert to EA? I'm newbie...

There is a very good article: Transferring an Indicator Code into an Expert Advisor Code. Indicator Structure - MQL4 Articles

but you probably don't need to do that, use iCustom() . . but you may not even need to do that, have you looked at the Technical Indicator functions ?

Kenny Jay
212
Kenny Jay  

thanks RaptorUK. Hope its work....

Kenny Jay
212
Kenny Jay  
RaptorUK:

There is a very good article: Transferring an Indicator Code into an Expert Advisor Code. Indicator Structure - MQL4 Articles

but you probably don't need to do that, use iCustom() . . but you may not even need to do that, have you looked at the Technical Indicator functions ?


2. Rashid Umarov. Creating an Indicator. http://www.alpari-idc.ru/ru/articles_mql4/11.html
3. Rashid Umarov. Indicator Optimization. http://www.alpari-idc.ru/ru/articles_mql4/12.html

4. Rashid Umarov. Arrays and Technical Indicators for them. http://www.alpari-idc.ru/ru/articles_mql4/20.html


Error page and not in English.

hacibroker
90
hacibroker  

This is related to code any EA for in this iisue. For examle I have codedd some codes for trding with iCuston:


William Roeder
18673
William Roeder  
Kenny Jay: How to convert indicator to EA? Anyone can tell me. What support to change if indicator convert to EA? I'm newbie...
Don't try do that. There are no buffers, no IndicatorCounted() or prev_calculated. No way to know if older bars have changed or been added (history update.)
Just get the value(s) of the indicator(s) into the EA (using iCustom) and do what you want with it.
You should encapsulate your iCustom calls to make your code self-documenting.
          Detailed explanation of iCustom - MQL4 and MetaTrader 4 - MQL4 programming forum
To add comments, please log in or register