Using F# for develop bots and indicators

Created at 22 May 2020, 17:23
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!
BO

bogdan.titomir

Joined 22.05.2020

Using F# for develop bots and indicators
22 May 2020, 17:23


If i can use VisualStudio for develop trading tools, can i adding support of F sharp language. In searches can not find mentions about extension from C# to F# in context of cAlgo.

And i can see that bots and indicators can include references from external dll, calling functions from those dlls, can i using cAlgo API in my Dll code for takes trade information, accept orders etc.? 


@bogdan.titomir
Replies

ClickAlgo
22 May 2020, 18:19

You can create an assembly written in F# and reference this.


@ClickAlgo

bogdan.titomir
22 May 2020, 19:53

RE:

ClickAlgo said:

You can create an assemble written in F# and reference this.

Ok, i'll ask more correctly. If i create dll, for some bot or indicator can i calling functions from API as is:

using cAlgo.API;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;

directly in my dll?


@bogdan.titomir

ClickAlgo
22 May 2020, 22:27

  • You can add references to the cTrader assemblies in your custom assembly.
  • You can pass the robot or indicator objects from the cTrader base class to your custom assemblies.
  • You can capture cTrader cBot events in your custom assembly by subscribing to them.
  • You can use any .NET language in your custom assembly
  • You can use any .NET framework in your custom assembly.

Hope that helps.

 


@ClickAlgo

bogdan.titomir
22 May 2020, 22:51

RE:

ClickAlgo said:

  • You can add references to the cTrader assemblies in your custom assembly.
  • You can pass the robot or indicator objects from the cTrader base class to your custom assemblies.
  • You can capture cTrader cBot events in your custom assembly by subscribing to them.
  • You can use any .NET language in your custom assembly
  • You can use any .NET framework in your custom assembly.

Hope that helps.

 

Thanks for you full reply, that is crystal for me!


@bogdan.titomir