Am I blind? Need help DataSeries
Am I blind? Need help DataSeries
06 Oct 2016, 22:38
Hi all
Here is my code:
int iCounter = MarketSeries.Close.Count - 1;
int countHigh = (MarketSeries.High).Count;
int countLow = (MarketSeries.Low).Count;
Print("High {0} = {1} = {2}", countHigh, MarketSeries.High[iCounter], (MarketSeries.High).Last(1));
Print("Low {0} = {1} = {2}", countLow, MarketSeries.Low[iCounter], (MarketSeries.Low).Last(1));
Print("Open {0} = {1} = {2}", countLow, MarketSeries.Open[iCounter], (MarketSeries.Low).Last(1));
Now result
06/10/2016 21:20:01.761 | High 2093 = 2159,33 = 2159,86
06/10/2016 21:20:01.761Low 2093 = 2159,33 = 2159,09
06/10/2016 21:20:01.761 | Open 2093 = 2159,33 = 2159,09
How can high and low be the same? ( High 2093 = 2159,33 ; 2093 = 2159,33 )
Replies
ctid230797
07 Oct 2016, 00:07
Roger
I knew I was blind! Works. but perhaps an exception should be cast or N/A or something other then numbers.
@ctid230797
... Deleted by UFO ...