Microsoft.ML in a cBot

Created at 21 May 2023, 20:13
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!
DA

DarkFlame

Joined 21.05.2023

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


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?


@DarkFlame
Replies

DarkFlame
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.

 

 


@DarkFlame

PanagiotisChar
23 May 2023, 08:52 ( Updated at: 21 Dec 2023, 09:23 )

Hi again,

Make sure you are using the SDK compiler

Aieden Technologies

Need help? Join us on Telegram

Need premium support? Trade with us


@PanagiotisChar

DarkFlame
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'

 

 


@DarkFlame

PanagiotisChar
26 May 2023, 08:15 ( Updated at: 21 Dec 2023, 09:23 )

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

 


@PanagiotisChar

DarkFlame
27 May 2023, 14:44 ( Updated at: 21 Dec 2023, 09:23 )

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

 


@DarkFlame