Download MetaTrader 5
To add comments, please log in or register
No time to learn MQL5? Order your application from a developer!
Gregory
71
Gregory 2014.05.04 19:21 

Hi there,

In my EA, i look for some signals based in external indicators i call with "iCustoms". The issue is that i call like 50 times the indicator and although they have some different settings, there is maybe 10 unique iCustoms.

So my idea to speed it up would be to first store the 10 iCustoms in some variable and then use the variable in my signal search.

Would that speed up the process ? (i guess so, or maybe MT4 holds the figure in memory and dont recalculate it each time when the settings are the same?-)

Any idea?

Thanks
Greg

Alain Verleyen
Moderator
28672
Alain Verleyen 2014.05.04 20:24  
Greg_:

Hi there,

In my EA, i look for some signals based in external indicators i call with "iCustoms". The issue is that i call like 50 times the indicator and although they have some different settings, there is maybe 10 unique iCustoms.

So my idea to speed it up would be to first store the 10 iCustoms in some variable and then use the variable in my signal search.

Would that speed up the process ? (i guess so, or maybe MT4 holds the figure in memory and dont recalculate it each time when the settings are the same?-)

Any idea?

Thanks
Greg

Why not ? Let us know the results when you tried.
SYED NAUFAL GADDAFI
1401
SYED NAUFAL GADDAFI 2014.05.05 01:12  
So, basically it is like using Array.
whroeder1
13644
whroeder1 2014.05.05 11:45  
Greg_:(i guess so, or maybe MT4 holds the figure in memory and dont recalculate it each time when the settings are the same?-)

If the settings are the same, what's the point of calling it multiple times? It will always be the same value (that tick.)
Gregory
71
Gregory 2014.05.05 17:37  

Ok thanks, i'll try replace it by variables.

@WHRoeder : it's because it looks for patterns and have like 10 of them which use multiple iCustom. They are often the same between the patterns.

/
To add comments, please log in or register