Anyone know what causes this...
I'm writing an efsInternal function (as an addition to an otherwise working script) , but finding it difficult to debug as I'm seeing the script being restarted (main() called with gbs == ALLBARS) multiple times. It seems to process a few more bars each time , then begins again.
Looking at the formulaoutput log I'm on the 24th ALLBARS and have got to candle 62 of 100 and it's been running 10-15 mins so far.
Of course the debug statements are not helping the execution speed, but without them I expect I won't find it easy to debug.
I know that, on a first load, you tend to get an ALLBARS for each series you create, but this is getting a bit much.
All thoughts gratefully received.
PS: ALLBARS = 31, bars = 74 another 10mins later. termination time.
PPS: Finally, reduced bar count to 50, it completed (and the efsInternal seems to have worked as it returned a series which I passed it to an ema() to check), but with ALLBARS called 32 times (seems to be an arbitary number of extra candles processed each time from 1 to 10 or so). Not a viable outcome though, so still need help please.
With 10.1 btw.
I'm writing an efsInternal function (as an addition to an otherwise working script) , but finding it difficult to debug as I'm seeing the script being restarted (main() called with gbs == ALLBARS) multiple times. It seems to process a few more bars each time , then begins again.
Looking at the formulaoutput log I'm on the 24th ALLBARS and have got to candle 62 of 100 and it's been running 10-15 mins so far.
Of course the debug statements are not helping the execution speed, but without them I expect I won't find it easy to debug.
I know that, on a first load, you tend to get an ALLBARS for each series you create, but this is getting a bit much.
All thoughts gratefully received.
PS: ALLBARS = 31, bars = 74 another 10mins later. termination time.
PPS: Finally, reduced bar count to 50, it completed (and the efsInternal seems to have worked as it returned a series which I passed it to an ema() to check), but with ALLBARS called 32 times (seems to be an arbitary number of extra candles processed each time from 1 to 10 or so). Not a viable outcome though, so still need help please.
With 10.1 btw.
Comment