Failure to download Re5 and others programatically.
Failure to download Re5 and others programatically.
28 Dec 2018, 12:20
Hello there.
Maybe this is something only happening today, maybe not. I am able to print "Close.Count" of most MarketSeries programatically created from a TimeFrame passed as an aditional parameter, which means that it is not the default one passed along with the symbol.
The "Count" of the default TimeFrame usually is around 1000 entries. The "Count" of a MarketSeries created via "MarketData.GetSeries(AnotherTimeFrame)" usually is around 8000 entries.
It takes a few seconds to print the "Close.Count" of "AnotherTimeFrame" when it is time or tick based, but it always gets printed. Nevertheless, I can't print the "Close.Count" of Renko based timeframes, unless the default one is the same.
To be sure:
Default TF (Time or Tick): ~1000 / Another TF (Time or Tick): ~8000
Default TF (Time or Tick): ~1000 / Another TF (Re5, Re10, Re15): // never gets printed.
Default TF (Re5): ~1000 / Another TF (Re5): ~1000
Default TF(Re5): ~1000 / Another TF (Re10, Re15): // never gets printed
Default TF (Re10): ~1000 / Another TF (Re10): ~1000
Replies
PanagiotisCharalampous
28 Dec 2018, 12:24
Hi oliveira.phc,
Can you share the cBot code so that we can check?
Best Regards,
Panagiotis
@PanagiotisCharalampous
oliveira.phc
28 Dec 2018, 12:55
RE:
Panagiotis Charalampous said:
Hi oliveira.phc,
Can you share the cBot code so that we can check?
Best Regards,
Panagiotis
using System; using System.Linq; using cAlgo.API; using cAlgo.API.Indicators; using cAlgo.API.Internals; using cAlgo.Indicators; namespace cAlgo.Robots { [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)] public class MarketAnalysis : Robot { [Parameter("Another TF")] public TimeFrame AnotherTF { get; set; } private MarketSeries _mSeries; protected override void OnStart() { Print("Default TF: {0}", MarketSeries.Close.Count); // Always gets printed; ~1000 entries _mSeries = MarketData.GetSeries(AnotherTF); Print("Another TF: {0}", _mSeries.Close.Count); // It works for Time and Tick based, ~8000 entries. It does not work for Re5, Re10 and Re15 unless they are also used as the default one. } } }
@oliveira.phc
oliveira.phc
28 Dec 2018, 21:52
RE:
Panagiotis Charalampous said:
Hi oliveira.phc,
Can you share the cBot code so that we can check?
Best Regards,
Panagiotis
I got "Close.Count" from a MarketSeries based on Re5, but it took exactly one hour to be printed. Again, the default one was time based and about ~1000, and the aditional one based on Re5 was ~8000.
@oliveira.phc
PanagiotisCharalampous
02 Jan 2019, 11:17
Hi oliveira.phc,
I tried this today but could not reproduce any delay. It could be related to your network connection since the data need to be downloaded.
Best Regards,
Panagiotis
@PanagiotisCharalampous
... Deleted by UFO ...