Topics
19 Jan 2019, 16:59
 0
 1102
 1
29 Jul 2018, 18:28
 1
 1294
 1
Replies

hideki
29 Jul 2018, 16:25

Hi Panagiotis,

 

Thank you! I really appreciate you providing the sample code.

I also verified by myself. Good learning for me.

 

It is very interesting. May I ask: what does "index" really mean?

MarketSeries.TickVolume.Count[index]

If index=[MarketSeries.TickVolume.Count-2], it means the TickVolume of last bar, but if index=[MarketSeries.TickVolume.Count-1] or index=[MarketSeries.TickVolume.Count], which bar's value will be outputed?

 

If you can provide more detail information, I would appreciate it!

Thank you in advance!


@hideki

hideki
26 Jul 2018, 16:40

Hi Panagiotis,

Thank you for responding and providing the sample code!

It's interesting. Becuase I verified: 

MarketSeries.Close[MarketSeries.Close.Count - 1] is equivalent to MarketSeries.Close.Last(1)

But as you mentioned here:

MarketSeries.TickVolume[MarketSeries.TickVolume.Count - 2] (the index is not "M.T.C-1" but "M.T.C-2") is equivalent to MarketSeries.TickVolume.Last(1)

May I ask why the "index" value should be different between in MarketSeries.Close and MarketSeries.TickVolume?

Thank you in advance.


@hideki