Understanding the cOfferings cAlgo/cBot/cTrader
Understanding the cOfferings cAlgo/cBot/cTrader
07 Mar 2015, 19:33
Hi Everybody,
Please help me understand the different offerings and how they are related.
I am not looking for a full blown GUI to trade. I just need an API to operate on a headless machine, cross-platform or Linux.
The problems I've seen in the forum with cTrader in Wine is the incompatible WPF which is a GUI presentation framework.
Can cAlgo operate standalone to trade or does it require integration with cTrader?
Does cAlgo work in Wine?
What is cBot? (Is it an app written in cAlgo which integrates with cTrader as a selectable trading object from the GUI?)
If cAlgo can run headless on say Linux, then can I monitor automated trades by cAlgo and even trade manually and simultaneously with cTrader Web, without the need for cBot?
Thanks in advance.
Replies
padawan
12 Mar 2015, 06:13
RE:
Spotware said:...
No, cAlgo cannot be run under Wine.
...
If you cannot use cAlgo/cTrader we can recommend you to check Spotware Connect: Open API. If you have any question regarding Open API, please contact connect@spotware.com.
Thank you for mentioning the Open API. I think I had seen that before but may have gotten the impression it was for institutional traders.
I did look into a Windows VPS, but I believe my broker's servers are in Amsterdam, contrary to the answer here /forum/calgo-support/4587
After finally running cAlgo in MS Windows, I saw documentation to "Attach to Chart". After recovering from cringing and reviewing forum topics like
/search?q=multiple+symbols
/forum/calgo-support/1245
/search?q=auto+start
I was considering posting in the Suggestions forum /forum/suggestions All you need to add are the following methods to the cAlgo API:
BrokerInstance signIn(Username, Password, Server, Port); // Potentially can login to multiple [live and demo] brokers simultaneously but can start with just 1 broker
boolean subscribe(Symbol); // No more "Attach to Chart" code smell
onTick(Tick, Symbol, BrokerInstance); // Can keep tick and symbol separate or just onTick(Tick) and provide Symbol inside Tick object
boolean unsubscribe(Symbol); // Might as well allow unsubscribe
boolean signOut(BrokerInstance);
Then there will not need to be any GUI bloat if it is not wanted by the application developer. It can be the App Dev's responsibility to auto launch a simple MS Windows executable (which is now probably also compatible with Wine).
If the API Developers really want to help, automatically provide reconnection behind the scenes if that's already in cAlgo/cTrader, or add boolean isSignedIn() method.
The Open API looks huge already and does not even have rates or orders? https://sandbox-connect.spotware.com/draftref/GetStartAccounts.html says
And we are planning to provide with the next release following:
- price rates;
- send market order to open position;
I guess I'll just bite the bullet and improve my FIX engine. Please post back here if these above methods are ever added.
Thanks again for your reply.
@padawan
Spotware
16 Mar 2015, 08:46
I was considering posting in the Suggestions forum /forum/suggestions All you need to add are the following methods to the cAlgo API:
BrokerInstance signIn(Username, Password, Server, Port); // Potentially can login to multiple [live and demo] brokers simultaneously but can start with just 1 brokerboolean signOut(BrokerInstance);
We are not going to provide such functionality in cAlgo.API.
boolean subscribe(Symbol); // No more "Attach to Chart" code smell
onTick(Tick, Symbol, BrokerInstance); // Can keep tick and symbol separate or just onTick(Tick) and provide Symbol inside Tick object
boolean unsubscribe(Symbol); // Might as well allow unsubscribe
MarketData.GetSeries automatically subscribes you to quotes for corresponding symbols. There is no need to subscribe and unsubscribe manually.
@Spotware
Spotware
11 Mar 2015, 17:57
.Dear Trader,
cTrader is not required to run cAlgo.
No, cAlgo cannot be run under Wine.
It is a .NET library packed to encrypted .algo file. cBot can be run in cTrader or cAlgo.
If you cannot use cAlgo/cTrader we can recommend you to check Spotware Connect: Open API. If you have any question regarding Open API, please contact connect@spotware.com.
@Spotware