Replies

bogdan.titomir
24 May 2022, 10:36

RE:

amusleh said:

Hi,

Yes, every bot/indicator runs on their own threads.

In version 4.2 every instance of bots/indicators run on their separate process not just thread.

Thanks for your support, amusleh! 


@bogdan.titomir

bogdan.titomir
13 May 2022, 12:09

seems i know how to doing it, in method onStart just  run server if port hasn't listen


@bogdan.titomir

bogdan.titomir
13 May 2022, 11:59

RE:

amusleh said:

Hi,

I didn't understand exactly what you are looking for, but you can develop a cBot/indicator that will run upon cTrader desktop launch.

There is an option on cTrader automate that will auto restart your cBot when cTrader launched.

i want to run up server which could to gets commands of trading from external program by json or xml protocols and call ExecuteMarketOrder


@bogdan.titomir

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

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