Weekly Prices not available on EURUSD - GetSeries Method

Created at 03 Feb 2016, 04:14
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!
GoldnOil750's avatar

GoldnOil750

Joined 07.04.2015

Weekly Prices not available on EURUSD - GetSeries Method
03 Feb 2016, 04:14


Dear Spotware,

 

It is now almost 2 weeks and the GetSeries Method is unable to work flawlessly.  Currently, it is unable to fetch "WEEKLY" prices of EURUSD pair.

In other words we trader feel that we are being told to look for other platform as Spotware is not going to address serious issues.

 //GET DAILY OPEN PRICES FOR THE SYMBOL
var temp_1 = MarketData.GetSeries(Symbol.Code, TimeFrame.Weekly);
Result_1 = temp_1.Open.LastValue;
Result_2 = temp_1.Close.LastValue;

paste this code on EURUSD Chart.

 

Like Spotware is not understanding that a TRADING PLATFORM should be FREE from these kind of basic issues.  A TRADER cannot be looking on his BACK continuously and deploy MT4 to cross-check cTRADER Price-Feed.  I think many years have passes and cTRADER & cALGO should have been a flawless package atleast where the BASICS lies.

 

Hope that this problem is take care-of for good.

 

///S.Khan


@GoldnOil750
Replies

Spotware
04 Feb 2016, 16:06

Dear Trader,

Could you please run your code again?

We apologize for any inconvenience. 


@Spotware

algoforce
16 Feb 2016, 18:04

gaps in historical data

I am unable to get correct value when  _M1 = MarketData.GetSeries(AnyTimeFrame); ,

When I Print, the _M1.OpenTime[0]; results in printout from last week data ( Feb 8th), today Feb 16. 

 

 DateTime currentDate = MarketSeries.OpenTime.LastValue.Date;
            var bartime1 = _M1.OpenTime[0];
            var bartime2 = m1Series.OpenTime[0];

 time 2/8/2016 6:06:00 AM, time 2/8/2016 6:06:00 AM , time 2/16/2016 12:00:00 AM

 


@algoforce

Spotware
17 Feb 2016, 15:30

Dear algoforce,

You initialize the currentDate variable with the latest Date. A Date starts always at 12:00 AM.

You initialize the bartime1, bartime2 variables with the OpenTime of the first candle in the MarketSeries you retrieved. 

We kindly ask you to have a look at the API references section and at the following code snippet:

Print("Date of OpenTime {0}", MarketSeries.OpenTime.LastValue.Date);
Print("OpenTime {0}", MarketSeries.OpenTime.LastValue);

Print("GetSeries Minute OpenTime first candle {0}", MarketData.GetSeries(TimeFrame.Minute).OpenTime[0]);
Print("GetSeries Minute OpenTime latest candle {0}", MarketData.GetSeries(TimeFrame.Minute).OpenTime.LastValue);

We hope this helps you.


@Spotware