Light version of MarketSeries ?
Light version of MarketSeries ?
30 May 2017, 12:02
Hi
I am interested in getting only last bar values in multiple crossess at the same time. Is there any way getting it without retrieving the whole data for MarketSeries object?
Instead of
var pairSeries = MarketData.GetSeries(fxPair, timeFrame);
Something like MarketData.GetSeries(fxPair, timeFrame).LastBarValues
The primary concern is performance, it may take long time to load 50-60 assets on the bar. Instead of getting whole series, only specific bar could be accessed directly.
Please clafiry
Replies
Futuresmo
30 May 2017, 17:29
Market series initializes at least 2000 bars, that could be overhead with many multipairs setups. The purpose is to load 1 bar insted of 2000
@Futuresmo
croucrou
30 May 2017, 15:39
You need to initialize the series, to then access last bar values.
@croucrou