Topics
Replies
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 vs2022for 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
04 May 2022, 14:26
RE:
amusleh said:
Thanks for your help. I will try another broker.
@bllkrkmz