Order is not executed until Ctrader platform is active

Created at 23 Nov 2018, 12:15
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!
CT

ctid723683

Joined 23.11.2018

Order is not executed until Ctrader platform is active
23 Nov 2018, 12:15


Hi,

 

We developed a CAlgo that triggers automatically orders depending on Market Conditions. What we found is that you need to be actually using the platform or the computer (not sure on this) to allow the order to be executed. So in case you have a Virtual Machine with Ctrader and our CAlgo running the order is not executed until you log in in the Virtual Machine and use the software.

 

Does this explanation make sense? Is there any option inside the platform to allow automatically trading without being in the platform or using the computer?

 

Regards,


@ctid723683
Replies

PanagiotisCharalampous
23 Nov 2018, 12:40

Hi ctid723683,

Thanks for posting in our forum. cBots run on the client\s computer therefore cTrader needs to be running for them to execute your strategy.

Best Regards,

Panagiotis


@PanagiotisCharalampous

ctid723683
23 Nov 2018, 13:23

Yeah, I get that, but does this behaviour that I am describing make sense? 

I mean cTrader is actually running but unattended therefore the order is not executed until you activate Ctrader window.

 

Regards,


@ctid723683

PanagiotisCharalampous
23 Nov 2018, 14:11

Hi ctid723683,

I am not sure what you mean with activate. If cTrader is launched and cBot running then it should work without any further intervention.

Best Regards,

Panagiotis


@PanagiotisCharalampous

ctid723683
23 Nov 2018, 19:08

ok, so it is quite strange indeed because what it is happening is that only when you activate the window (or login in the Virtual Machine) the order gets executed. We traced all the application cycle and here it is the logs summarized

 

2018-11-21 16:37:22.6379|DEBUG|Init with AccountNumber: 3326420|
2018-11-21 16:37:23.8449|DEBUG|Loading configuration.|
2018-11-21 16:37:23.8539|DEBUG|Getting authorization.|
2018-11-21 16:37:23.8539|DEBUG|Loading settings.|
2018-11-21 16:37:24.6389|DEBUG|Settings loaded.|
2018-11-21 16:37:25.8769|DEBUG|Authorization ok.|
2018-11-21 16:37:26.3975|DEBUG|Configuration loaded.|
2018-11-21 16:37:26.4075|DEBUG|Getting data.|
2018-11-21 16:37:26.5875|DEBUG|Checking version. v1.1.2.0|
2018-11-21 16:37:26.5875|DEBUG|Subscribing to data.|
2018-11-21 16:37:26.9405|DEBUG|Data loaded. Count:9.|
2018-11-23 09:30:00.2927| INFO|Incoming event: Markit Manufacturing PMI (Germany)|
2018-11-23 09:30:15.7377|DEBUG|Calculating trigger for event: Markit Manufacturing PMI (Germany)|
2018-11-23 09:30:15.7377| INFO|Trigger is inverted. False|
2018-11-23 09:30:15.7377| INFO|Trigger is negative.  Side: Sell|
2018-11-23 09:30:15.7377|DEBUG|Executing order. Event: Markit Manufacturing PMI (Germany)  Side: Sell|
2018-11-23 09:30:15.7377|DEBUG|Executing order on Automatic mode.|

//At 9:30:15 the order gets executed (Method from Robot.cs ExecuteMarketOrder is called)
2018-11-23 09:30:15.8567| INFO|Order sent. {"Side":1,"Symbol":"EURUSD","Label":"MIS","Comment".....

//Not until 9:37:15 the method returns a value after 7 minutes!!! Coincides when we look in the virtual machine and activate the Ctrader Window
2018-11-23 09:37:48.0157|INFO|Order executed successfully. 0|


@ctid723683

PanagiotisCharalampous
26 Nov 2018, 11:14

Hi ctid723683,

Can we have the cBot code so that we can investigate further?

Best Regards,

Panagiotis


@PanagiotisCharalampous

ctid723683
27 Nov 2018, 12:25

Hi,

 

Were can I place the source code so you can take a look at it?


@ctid723683

PanagiotisCharalampous
27 Nov 2018, 12:26

Hi ctid723683,

You can paste it here or send it to me at community@spotware.com.

Best Regards,

Panagiotis


@PanagiotisCharalampous