Attached is the code using offsetSeries and found null value return at some point. I use tick playfile and 3 minutes bars and return null values after 2 days charts. I am not sure whether it also have the same problem during live session. Here is the result.
ema34 --- 670.5849210211504
ema343 --- 670.6638252300194
ema34 --- 670.6029255342276
ema343 --- 670.6830352168754
ema34 --- 670.6313297894145
ema343 --- null
ema34 --- 670.6638252300194
ema343 --- null
ema34 --- null
ema343 --- null
ema34 --- null
ema343 --- 671.6423865546218
ema34 --- null
ema343 --- 671.4913930372148
ema34 --- 671.7964705882353
ema343 --- 671.3433134350882
ema34 --- 670.5849210211504
ema343 --- 670.6638252300194
ema34 --- 670.6029255342276
ema343 --- 670.6830352168754
ema34 --- 670.6313297894145
ema343 --- null
ema34 --- 670.6638252300194
ema343 --- null
ema34 --- null
ema343 --- null
ema34 --- null
ema343 --- 671.6423865546218
ema34 --- null
ema343 --- 671.4913930372148
ema34 --- 671.7964705882353
ema343 --- 671.3433134350882
Comment