Topics
06 Jun 2023, 15:07
 4
 507
 2
Replies

ctid581738
10 Jun 2023, 17:40 ( Updated at: 21 Dec 2023, 09:23 )

Hi Panagiotis! It seems, each Indicator and Bot uses its own project. So, how is it possible to share code between projects (Indicators or Bots)?

PanagiotisCharalampous said:

Hi Luigi,

A cBot is nothing less than a C# project. So if you edit it using Visual Studio you can have all the options available for a C# project. This means that you can have separate classes for reusable code. See below an example of calling a function of another class inside the cBot.

This way you can organize your code in a proper object oriented approach. Let me know if you need any additional assistance.

Best Regards,

Panagiotis

 


@ctid581738