Trying to find Weekly and Daily Open, Close, High and Low

Created at 15 Jun 2022, 00:11
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!
TR

triplelorenz

Joined 05.01.2022

Trying to find Weekly and Daily Open, Close, High and Low
15 Jun 2022, 00:11


Hi,

I will be using a cbot in the lower times frames e.g 1hr and want to calculate the previous day pivot point and weekly pivot point. 

How do I get the higher timeframe data series and get the output?

I was trying this

Bars WeeklyPP = MarketData.GetBars(TimeFrame.Weekly, this.SymbolName); 

&

var dailySeries = MarketData.GetSeries(TimeFrame.Weekly);

But it looks like it only gives High and Low ?? and I am not 100% sure how to call it to get the data back from the new data series.

Any help would be great

Thanks


@triplelorenz
Replies