| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| iConfused with iCustom!!! https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5323 |
Page 2 of 2 |
| Author: | SteveHopwood [ Thu Nov 09, 2017 12:30 am ] |
| Post subject: | iConfused with iCustom!!! |
Thanks Bruce for bringing this up and Rene for confirming it. It will not stop me being rude about Crap Custom Abortions (not an epithet applied to the excellent indicators coded by the fantastic coders here), but it does mean I do not have to worry about cpu's emitting blue smoke any more. |
|
| Author: | Bruster400 [ Thu Nov 09, 2017 12:53 pm ] |
| Post subject: | iConfused with iCustom!!! |
Thanks for confirming this Rene. If we know that each successive iCustom call does not re-initialize the indicator, can we also assume that the call is taking into account any control over the indexing limit in the "for" statement? - such as: Code: Select all Not asking for anyone to spend time on this but just wondered if anyone already knows this. Thanks Bruster |
|
| Author: | renexxxx [ Thu Nov 09, 2017 7:25 pm ] |
| Post subject: | iConfused with iCustom!!! |
Of course you are supposed to write your internal function to be as efficient as possible, so only recalculate the last bar if nothing else has changed (like you do in the indicator). We are talking here about the overhead of the iCustom-call itself, and the fact that Empty4 creates a new instance of the indicator for all combinations of input parameters. Suppose you have a multi-symbol, multi-timeframe EA, that calls iCustom for 28 pairs on 4 timeframes with 3 different parameters: Empty4 will then load and cache 28x4x3 instances of the indicator. You will see the memory footprint of the terminal.exe process increase dramatically. Compare for instance the HGI-indicator based version of HGIMatrix to the HGI-library based version and you will see what we mean. |
|
| All times are UTC | Page 2 of 2 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|