You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Most of the cycles will be used by iCustom. Try to minimze the calls to it.
Thanks Lippmaje, but there are 13 iCustom calls and they are only called once... so essentially that would not make a difference
Without code it's just speculation, as you see. You can profile your code by counting how many ticks have passed:
If it's below ~16 you need to scale it up (call the code in a for loop or so) to get more precise figures.
And using NULL instead of Symbol() is a tad faster.
Without code it's just speculation, as you see. You can profile your code by counting how many ticks have passed:
If it's below ~16 you need to scale it up (call the code in a for loop or so) to get more precise figures.
And using NULL instead of Symbol() is a tad faster.
Thanks for the info... I'll have a good look at it...
They are not called once, or else the EA would never open orders (except perhaps on initial tick.) They are called per bar or per tick. We can't see your broken code.
Array_1[15,1];
Array_1[i,0] = iCustom(Symbol(),0,Etc1.,0,i);
Value_1 = Array_1[i,0];
Stop capitalizing Global Variables. That is the name of Global Variables of the Terminal
General rules and best pratices of the Forum. - General - MQL5 programming forum
Messages Editor
EAs : Don't do per tick that you can do per bar, or on open.
If you are waiting for a level, don't reevaluate, wait until price reaches it (or a new bar starts and you recalculate.)
If you are waiting for an order to open or close, only look when OrdersTotal has changed.
How to get backtesting faster ? - MT4 - MQL4 programming forum