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
No. I think when iCustom is run with parameters passed to the custom indicator (the ones that refer to "..." in the iCustom call description in the help file) I believe the indicators is loaded on every call.
Markus
the log is from a backtest (times are faked backtest time, the first time column is running time).
Markus
I have used it with functions instead already.
However, in my case, the indicator was called with the same value every time (they were user inputs and the program did not modify them). I think it would be a good optimization to only reload the indicator if the parameter values are different.
Just a suggestion though ... I've already got it working.
Markus
I think it would be a good optimization to only reload the indicator if the parameter values are different.
up to 256 indicators can be loaded. if their number is less than 256 then indicators are not reloaded. if more than 256 first loaded indicator first unload
thanks for the info. I will double check this with my case to see if I did something wrong and will probably upload a test case.
Many thanks for your ongoing support.
Markus
I think I found the source of the problem:
Here is how I call the iCustom:
The Print command always results in the same output, so the parameters are basically constant.
The following is a snippet from the indicator which is called (0-RossFX). If the parameters are called as above, the indicator is loaded for every call:
Now, if I change the paramters to the following with exactly the same code from the calling expert, the indicator is just loaded once (as it is to be expected):
This serves me fine as a workaround, but my conclusion is that MT4 Client has problem a problem when determinging if indicator needs to be reloaded if bools are present in the input parameter list.
Hope this helps.
Markus