In the OnBarUpdate I have set the following:
myBidSeries.Set(GetCurrentBid());
in one of my methods, I set the following variables:
iMax = MAX(myBidSeries, iBars)[0];
iMin = MIN(myBidSeries, iBars)[0];
My output however is inconsistent:
for iMax I always get a proper value, for iMin however, for the same set of ranges, I get a 0.
This problem is only resolved when I substitue myBidSeries with Close price. Why doesn't this work with my Bid Price Data Series??? Interestingly, when I print out the myBidSeries[i], and Close[i] in a for loop, I get the same values, but when used with the Min function it does not work...
Please help, btw, I am using market replay to test this function.
Thanks,
Gary
Comment