Download MetaTrader 5
To add comments, please log in or register
Interested in Signals activity? Come and track!
imamushroom
148
imamushroom 2016.10.06 16:59 

Hi,

I've written an indicator that works pretty well when I need to trade and want to convert it to an EA.

Clearly, the indicator is using the OnCalculate event and the EA the OnTick event. 

However, when I convert my indicator to an EA it doesn't work as I the original indicator does and I was wondering what are the differences between OnCalculate and OnTick events and any other advice/ideas on how make the EA work as the indicator.

Thanks in advance for your help. 

Michael Maggi
1378
Michael Maggi 2016.10.08 05:48  

You can look for a freelance programmer to do the work for you on this site (I am not one.) 

A lot of traders here are programmers so you can also post a screen shot of your indicator and some kind of indication of it making money, like a print screen capture of the history of trading and it could draw some interest from a programmer to work with you.

Cheers.

Marco vd Heijden
Moderator
4506
Marco vd Heijden 2016.10.08 08:37  

Please look at:

iCustom()

It will give you the abillity to use the indicator's output in your EA.

https://www.mql5.com/en/docs/indicators/icustom

Documentation on MQL5: Technical Indicators / iCustom
Documentation on MQL5: Technical Indicators / iCustom
  • www.mql5.com
Technical Indicators / iCustom - Reference on algorithmic/automated trading language for MetaTrader 5
imamushroom
148
imamushroom 2016.10.08 14:51  
Marco vd Heijden:

Please look at:

It will give you the abillity to use the indicator's output in your EA.

https://www.mql5.com/en/docs/indicators/icustom

Yes, thanks Marco. Unfortunately, I don't like using iCustom as I suspect there is a delay in loading and performing the calculation. I'll battle with it.

 

Thanks again 

imamushroom
148
imamushroom 2016.10.08 14:53  
Michael Maggi:

You can look for a freelance programmer to do the work for you on this site (I am not one.) 

A lot of traders here are programmers so you can also post a screen shot of your indicator and some kind of indication of it making money, like a print screen capture of the history of trading and it could draw some interest from a programmer to work with you.

Cheers.

Thanks but I am a programmer. I was just hoping for some technical details of differences and possible avenues to explore in converting my indicator.

Thanks again for responding though. 

Roberto Jacobs
45986
Roberto Jacobs 2016.10.10 14:52  
imamushroom:

Hi,

I've written an indicator that works pretty well when I need to trade and want to convert it to an EA.

Clearly, the indicator is using the OnCalculate event and the EA the OnTick event. 

However, when I convert my indicator to an EA it doesn't work as I the original indicator does and I was wondering what are the differences between OnCalculate and OnTick events and any other advice/ideas on how make the EA work as the indicator.

Thanks in advance for your help. 

If you do not show your indicator code, we can not give an ideas or advice to you.
/
To add comments, please log in or register