Custom library in VS

Created at 30 Mar 2015, 20:26
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!
MZ

MZen

Joined 29.12.2014

Custom library in VS
30 Mar 2015, 20:26


Hi,

I am new to VS, C# and cAlgo, so my question might be naive. Anyway.

How can I create custom library in VS to use in my robots and indicators? I already installed VS and I can edit cBots in VS. Yet, I need something like Money management class and methods to use in all my cBots. Where to start? 

Thanks.


@MZen
Replies

SwapBridgeCapital
31 Mar 2015, 20:26

RE:

MZen said:

Hi,

I am new to VS, C# and cAlgo, so my question might be naive. Anyway.

How can I create custom library in VS to use in my robots and indicators? I already installed VS and I can edit cBots in VS. Yet, I need something like Money management class and methods to use in all my cBots. Where to start? 

Thanks.

You need to reference the calgo api dll, then you will have intellisense and easily start your project in VS - http://redrhinofx.com/calgo


@SwapBridgeCapital

MZen
31 Mar 2015, 22:08

RE: RE:

Thanks,

I am trying to learn. So, when I have class library ready I have to reference it in cAlgo?

I guess it does not matter in which namespace I put it?

RedRhinoFX said:

MZen said:

Hi,

I am new to VS, C# and cAlgo, so my question might be naive. Anyway.

How can I create custom library in VS to use in my robots and indicators? I already installed VS and I can edit cBots in VS. Yet, I need something like Money management class and methods to use in all my cBots. Where to start? 

Thanks.

You need to reference the calgo api dll, then you will have intellisense and easily start your project in VS - http://redrhinofx.com/calgo

 


@MZen