Topics
02 May 2022, 13:43
 1273
 5
Replies

bllkrkmz
04 May 2022, 14:26

RE:

amusleh said:

Hi,

I tested on Spotware cTrader beta nd IC Markets cTrader, both loaded more than 1000 bars on first GetBars call, so there was not even a need for running the loop.

If the LoadMoreHistory returns 0 then it means you already loaded all available bars data from your broker, each broker has different amount of historical data.

Thanks for your help. I will try another broker.


@bllkrkmz

bllkrkmz
03 May 2022, 16:41

RE:

amusleh said:

Hi,

Please post a code sample that can reproduce the issue.

 

 

the example is below.

 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using cAlgo.API;
using cAlgo.API.Collections;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;

namespace NewcBot
{
    [Robot(AccessRights = AccessRights.None)]
    public class NewcBot : Robot
    {
        protected override void OnStart()
        {
            var kPeriod = 500;
            var _series = MarketData.GetBars(TimeFrame.Hour4);
            while (_series.Count < kPeriod * 2)
            {
                var numberOfLoadedBars = _series.LoadMoreHistory();

                Print(numberOfLoadedBars);

                if (numberOfLoadedBars < 1) break;
            }

            var so = Indicators.StochasticOscillator(kPeriod, 12, 12, MovingAverageType.Simple);
        }

        protected override void OnTick()
        {
            // Handle price updates here
        }

        protected override void OnStop()
        {
            // Handle cBot stop here
        }
    }
}

 

 


@bllkrkmz

bllkrkmz
01 Apr 2022, 10:40

RE:

de.dorpstafel.est said:

Debugging support

Both .NET 4.x and .NET 6 algos can NOT be debugged in Visual Studio 2022 and 2017

loaded new SDK  
System libraries menu gone in Manage reference menu.
Browsed libs not recognized!

Debugging just does not work (no symbols loaded, weird errors, libraries not found) in vs2017 and vs2022

for us it's a useless update! Please notify when things are fixed!
how to roll-back?

 

did you fix it? if you fixed it how?


@bllkrkmz

bllkrkmz
28 Nov 2021, 21:03

Hi,

Any news about renko backtesting?

Thanks in advance 


@bllkrkmz