iCustom - prevent indicator from init()'ing at every call - page 2

 
What part of:
Each unique combination of input parameters (including pair and timeframe, but not buffer and shift) loads a completely SEPARATE indicator on to the chart. Init is called for each one - once only.
didn't you understand. Moving average(period=5) and moving average(period=10) are two separate indicators.
 
WHRoeder:
What part of:didn't you understand. Moving average(period=5) and moving average(period=10) are two separate indicators.


May be.

But calling iCustom(NULL, 0, <indicator name>, x, y, z, mode, bar); twice, with no change in x, y and z, is calling the same or two separate indicators?

 
AnkaSoftware:


To clarify

- With hard coded constants ie - iCustom(NULL, 0, <indicator name>, 105, 38.2, 30, mode, bar); <----------- inits once

- With variables ie - iCustom(NULL, 0, <indicator name>, x, y, z, mode, bar); <----------- inits at each call

Hope this clarifiies

Isn't it obvious what's the prb?

1) You are misunderstanding init with re-calculations.

2) ---> You seriously need to put keyword, reserved words (like init) into proper perspective when discussing issues, and anything for that matter.

Nobody can understand if this practice of citing keywords, reserved words, to refer and "mean" to whatever is in your mind, if not imagination, when those words do ALREADY have their own proper definitions and need not require anyone's creativity.

Reason: