compare the indexes on time

Created at 01 Sep 2015, 09:34
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!
MF

mfedora

Joined 27.02.2015

compare the indexes on time
01 Sep 2015, 09:34


How do you compare the two indices over time?

I take

MarketSeries MSeries1 = MarketData.GetSeries(sym1, tf);
MarketSeries MSeries2 = MarketData.GetSeries(sym2, tf);

To them it is necessary to compare

MSeries1 > MSeries2

or

MSeries1 < MSeries2

But,

how do you know whether these indices to each other?

i.e., may be

closing time  MSeries1.Close[1]  = 10:30 01.09.2015

closing time  MSeries2.Close[1]  = 11:00 01.09.2015


@mfedora
Replies

mfedora
01 Sep 2015, 10:31

I decided

ts1 = MSeries1.OpenTime;
ts1.Last(k);

 


@mfedora