Microsoft.ML in a cBot

DarkFlame since: 21 May 2023;

  21 May 2023, 20:13
Microsoft.ML in a cBot

Is it possible to use Microsoft.ML in a cBot?

At the moment when tried following, it didn't recognize it.

using Microsoft.ML;

Any idea how can I use ML package in a cBot?

PanagiotisChar's avatar

PanagiotisChar since: 15 Sep 2022;

  22 May 2023, 09:30
Cofounder and Chief Technologist at Aieden Technologies

DarkFlame since: 21 May 2023;

  22 May 2023, 21:05
RE:

PanagiotisChar said:

Hi there,

Did you install the package from NuGet?

Aieden Technologies

Need help? Join us on Telegram

Need premium support? Trade with us

I did install it into cbot folder where the project file is (.csproj) and it was installed successfully. command used to install:

 dotnet add package Microsoft.ML

However, on cBot build, I get the following error:

Eror CT0201: Pachake "Microsoft.ML" is not supported.

PanagiotisChar's avatar

PanagiotisChar since: 15 Sep 2022;

  23 May 2023, 08:52
Cofounder and Chief Technologist at Aieden Technologies

DarkFlame since: 21 May 2023;

  25 May 2023, 20:09
RE:

Thanks for your response.

Now I did select sdk 7 in 'Select Compiler'  as on my computer I have dotnet-sdk-7.0.203 installed.

Though I still have error but now error is:

The type or namepsace name 'ML' doesn't exist in namespace 'Microsoft'

PanagiotisChar's avatar

PanagiotisChar since: 15 Sep 2022;

  26 May 2023, 08:15

Hi,

Hard to tell what you are doing wrong without your project file. I am able to build my cBot in VS without a problem

Builds fine in cTrader too even if there are some false positives highlighed by the editor

Aieden Technologies

Need help? Join us on Telegram

Need premium support? Trade with us

Cofounder and Chief Technologist at Aieden Technologies

DarkFlame since: 21 May 2023;

  27 May 2023, 14:44
RE:

I tried a simple hello cBot, just using ML library. So this one, I am able to build in Visual Studio but not in cTrader, it says build failed. So maybe that's what I need to do, build in Visual Studio and then run in cTrader