Using F# for develop bots and indicators
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.?
Replies
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
ClickAlgo
22 May 2020, 18:19
You can create an assembly written in F# and reference this.
@ClickAlgo