pmd30011991:
Hi Guys
I'm manage to write a automated trading script when I using iCustom to load my custom indicator it's seem like get value once and that value didn't change if I put it in "Init" function
Then I try to put it in OnTick but I saw that script load indicator many times, I'm concerning about memory with this way.
Please enlighten me whether I using iCustom wrongly and there is any best way to deal with iCustom one time load ?
OnInit() will only run once. So the iCustom value will not update after that point.
You need to make the iCustom call every time you want to check the value.
Are you changing the arguments in your iCustom call frequently?
pmd30011991: Please enlighten me whether I using iCustom wrongly and there is any best way to deal with iCustom one time load ?
- How should we know? There are no mind readers here. We can't see your indicator code or the EA's. You should write a self documenting function instead of calling iCustom directly, see Detailed explanation of iCustom - MQL4 forum
- Changing the indicator's parameters in the call will load multiple copies.
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
Hi Guys
I'm manage to write a automated trading script when I using iCustom to load my custom indicator it's seem like get value once and that value didn't change if I put it in "Init" function
Then I try to put it in OnTick but I saw that script load indicator many times, I'm concerning about memory with this way.
Please enlighten me whether I using iCustom wrongly and there is any best way to deal with iCustom one time load ?