Sending command to cAlgo from external app

Created at 17 Aug 2017, 23:30
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!
AL

ales.sobotka@gmail.com

Joined 17.08.2017

Sending command to cAlgo from external app
17 Aug 2017, 23:30


Dear Spotware Team,

I would like to ask you if there is a way to send external commands to cAlgo. We need to solve SL/TP somehow on trades opened via FIX API so one idea we have is to use cAlgo to amend opened trades. Yet we need to send some input on what SL/TP levels should be set. 

Please advise. 


@ales.sobotka@gmail.com
Replies

solark
18 Aug 2017, 00:24

The whole idea of a "hedging account" is kind of pointless, if you're uising FIX the ideal solution is to have a netted acount (opting for a broker that offers such a thing). That would obvisouly allow you to place appropriate stop/limit orders around an open position using FIX.

Assuming this is not an option then the question is more of a general IPC question less so than a Spotware/cAlgo question. The more common methods of IPC are,

1. Sockets over localhost (probably the most popular and opens the possiblity of having processes on separate machines)

2. Named pipes.

3. Shared memory (memory mapped files). With some sort of signaling (named pipes, EventWaitHandle, or whatever)

4. Synchronized file access/ file polling (generally kinda hacky but depending on the situation might be the easiest)

Lastly another option is the Spotware connect API instead of FIX or specifically to modify SL/TP levels.

 

Hope that helps!


@solark

Spotware
18 Aug 2017, 09:21

Dear ales.sobotka@gmail.com,

There is no way to send external commands to cAlgo. As solark suggested, you can use Connect API to modify positions. You can find more information about Connect API here.

Best Regards,

cTrader Team


@Spotware

Emmanuel.evrard2
25 Oct 2020, 23:15

RE:

SpotWare, 

 

Can we use pipe to connect to Calgo? (with AccessRights = AccessRights.FullAccess)

Thank you

 

 

Spotware said:

Dear ales.sobotka@gmail.com,

There is no way to send external commands to cAlgo. As solark suggested, you can use Connect API to modify positions. You can find more information about Connect API here.

Best Regards,

cTrader Team

 


@Emmanuel.evrard2

PanagiotisCharalampous
26 Oct 2020, 08:40

Hi Enammuel,

You should be able to do so.

Best Regards,

Panagiotis 

Join us on Telegram 

 


@PanagiotisCharalampous