Visual Studio

Created at 03 Oct 2014, 00:48
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!
IS

Ishwara

Joined 10.09.2014

Visual Studio
03 Oct 2014, 00:48


Hi,

I would like to know how to add a second Robot in the same solution (visual studio) than a other one.

I already have a solution with a robot that a created via cAlgo. Now i would like add a new robot to this solution directly from Visual Studio.

I tried to create a library and create a robot in it. The compilation was perfect but i don't see it in cAlgo.

The .algo file is not created.

 

Can you explain how to create this algo file in the right directory. I'm using VS 2013.

 

Regards,

 

Sky.


@Ishwara
Replies

Spotware
03 Oct 2014, 09:42

RE:

Currently VS extension doesn't support creating Algo Projects. You can use next workaround  in case you want to add an algo project right from VS.

1. Add a Class Library project to your solution.

2. Unload project  (right click on unloaded project in solution explorer)

3. Edit project (from solution explorer)

4. Add following line right bellow <ProjectGuid> tag

    <ProjectTypeGuids>{DD87C1B2-3799-4CA2-93B6-5288EE928820};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>

5. Reload project 

6. Add cbot class

7. Build it. 

 

 

SkyAction said:

Hi,

I would like to know how to add a second Robot in the same solution (visual studio) than a other one.

I already have a solution with a robot that a created via cAlgo. Now i would like add a new robot to this solution directly from Visual Studio.

I tried to create a library and create a robot in it. The compilation was perfect but i don't see it in cAlgo.

The .algo file is not created.

 

Can you explain how to create this algo file in the right directory. I'm using VS 2013.

 

Regards,

 

Sky.

 


@Spotware

Ishwara
03 Oct 2014, 10:29

Should the <ProjectTypeGuids>  GUID change depending if it's an indicator or Robot ?


@Ishwara

Invalid
03 Oct 2014, 10:38

RE:

No, it's the same for both types

SkyAction said:

Should the   GUID change depending if it's an indicator or Robot ?

 


@Invalid

Ishwara
03 Oct 2014, 12:10

Thanks


@Ishwara

Ishwara
03 Oct 2014, 16:04

Hello,

I did exactly what you said and the algo file is not present.

I see the Robot in the cAlgo, but it tell me that the source code is unavailable.

Any ideas ?


@Ishwara

Spotware
03 Oct 2014, 17:59

RE:

If you can see cBot in cAlgo, it means algo file was created.

cAlgo doesn't supports multiple cBots per solution. It means when you will click build cBot, only one algo file will be created. 

For multiple cBots editing use VS.

 

SkyAction said:

Hello,

I did exactly what you said and the algo file is not present.

I see the Robot in the cAlgo, but it tell me that the source code is unavailable.

Any ideas ?

 


@Spotware

Ishwara
03 Oct 2014, 18:17

Thanks for your answer.


@Ishwara