bugs in LoadMoreHistory()

Created at 02 Feb 2024, 11:07
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!
QU

Quantrosoft

Joined 02.02.2024

bugs in LoadMoreHistory()
02 Feb 2024, 11:07


cTrader Version 4.8.30

 

If have the following code:
      protected override void OnStart()

      {

         //mMyBars = MarketData.GetBars(TimeFrame.Hour, Symbol.Name);

         var mMyBars = Bars;

         Print(mMyBars.Count);

         var loaded = mMyBars.LoadMoreHistory();

         Print(loaded);

         Print(mMyBars.Count);

      }

 

Bug1:

When    [Robot(AccessRights = AccessRights.None)] AND backtesting is NOT in VisualMode the following is printed after backtest start:


29/01/2024 01:00:00.000 | CBot instance [Empty, EURUSD, h1] started.

29/01/2024 01:00:00.000 | Symbol 'EURUSD h1' cached data not available or corrupted.

29/01/2024 01:00:00.000 | Symbol 'EURUSD h1' cached data cleared.

29/01/2024 01:00:00.000 | Failed to get symbol 'EURUSD': Symbol not found or has no quotes.

29/01/2024 01:00:00.000 | 0

29/01/2024 01:00:00.000 | 0

29/01/2024 01:00:00.000 | 0

29/01/2024 01:00:00.000 | CBot instance [Empty, EURUSD, h1] stopped.

 

If Visual Mode is on OR    [Robot(AccessRights = AccessRights.FullAccess)], the following is printed after backtest start:


29/01/2024 01:00:00.000 | CBot instance [Empty, EURUSD, h1] started.

29/01/2024 01:00:00.130 | 201

29/01/2024 01:00:00.130 | 0

29/01/2024 01:00:00.130 | 201

31/01/2024 12:24:20.104 | CBot instance [Empty, EURUSD, h1] stopped by user.

 

Bug2:

As it can been seen, LoadMoreHistory() has absolutely no effect.
I need more than just 201 History bars at the start of the bot!


@Quantrosoft
Replies

PanagiotisCharalampous
03 Feb 2024, 12:49

Hi there,

Both issues are known and will be resolved in the next major update of cTrader.

Best regards,

Panagiotis


@PanagiotisCharalampous