Am I blind? Need help DataSeries

Created at 06 Oct 2016, 22:38
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
CT

ctid230797

Joined 06.10.2016

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 )


@ctid230797
Replies

... Deleted by UFO ...

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