Topics
Replies
xabbu
04 Oct 2022, 16:28
( Updated at: 04 Oct 2022, 16:36 )
probably because of that bug), if you load an old (from yesterday before upgarde) parameter file, the double fields are not imported correctly
HOW DO I CAN ROLL BACK to the pre version? Downloading 4.1 in help doesn't work and installing 4.1 from my download folder says there is already a newer version installed?
@xabbu
xabbu
26 Sep 2022, 12:44
Thank you very much for the kind and fast support, Panagiotis.
Completly of topic but on my question list for a long time:
1) (when) will 2FA finally arive?
2) (when) will backtesting Renko comes anytime?
3) (when) will ctrader sales be so successfull as ctrader support ;-)?
@xabbu
xabbu
10 Nov 2021, 12:48
Dear Panagiotis,
I might be wrong, but look at the required sell margin. 14.000 GBP for 0.7 Lots?
We discussed a very similar issue with the order placement on my cBot and I could get the impression that something within cTrader is running not correctly. I don't want to interfere with this case here, only mentioning that are some similarities to my case, even if I place the trades with a cBot and in this case they are placed manually
Best regards to Cyprus,
@xabbu
xabbu
04 Nov 2021, 14:29
sorry, due to a signed NDA that is not possible. The command to open the pending order is:
PlaceStopLimitOrderAsync(type, SymbolName, volume, price, 3, InstanceName, stoploss, takeprofit, expiration, comment,
true, OrderTriggered);
and there are NO cBots running which could interfere with a pending order or no commands in the cBot which close a pending order
@xabbu
xabbu
04 Nov 2021, 14:20
( Updated at: 21 Dec 2023, 09:22 )
Panagiotis, another problem occures multiple time and I don't know if it's connected or not:
A pending order is placed by the cBot and and the system accepts this order. After a while (or some time immediatly) the order is CANCELLED by the system, I can't recognise any pattern. No other running cBot as any cancelling pending order commands implemented, I have absolutly no clue WHY the system cancels a pending order (exepted when the expiration time is reached, of course):
or here:
@xabbu
xabbu
04 Nov 2021, 09:34
( Updated at: 21 Dec 2023, 09:22 )
the bug works also in the other direction, cTrader (and Windows) is restartet reveral times. TO what adress should I send the report, Panagiotis?
first picture checking pending order after placement / second modify to 0.5 lots / third modify back to initial volume
@xabbu
xabbu
26 Oct 2021, 11:25
Dear amusleh,
thank you for your kind support with my question and the code you have provided!
I have implemented it into my cBot and will run it - in my test it works as wanted.
Again, great support and great community here - appreciate it a lot!
Kindest regards to you and Panagiotis
@xabbu
xabbu
17 Oct 2022, 14:26 ( Updated at: 17 Oct 2022, 14:58 )
Hey ncel01,
You can try an onTimer with
Symbol.MarketHours.TimeTillClose() <= _afterSessionOpen
and before define
afterSessionOpen = "22:" + Convert.ToString(minutesAfter) + ":00";
TimeSpan.TryParse(afterSessionOpen, CultureInfo.InvariantCulture, out _afterSessionOpen);
So with that logic my trades are only executed if the time to market close is smaller 22 hours and x minutes, which means I don't trade between 23 pm and 1 am (my time) broker dependend - but you got the idea.
xabbu
@xabbu