cyberalgo wrote:
I am using the simple indicator as an example and exercise and try to create my own indicator however I would need only to calculate output on a completed candle and not on every tick price as it is the case in the simpleindicator ?
Indicators get recalculated on every tick if you simply don't need the in-progress candle's value you can ignore last element in the array of input values in your calculations.
cyberalgo wrote:
And why is 4000 the maximum it can return ?
Usually the maximum number of visible candles on screen is less than 2000 so 4000 is more than enough for an indicator.