Hopefully you can get the latest version now and update to 5.0.38.
AGain, it's one of those things that people need to ask how much testing they do before releasing a version as this seems like something that should have been pretty straight forward and catching beforehand.
What's the spread on your US30 when you place the order?
On a few brokers, the spread is larger than the 2-point SL you set.
If you're doing this in a bot or indicator, you need to check the spread before placing your order. It's not a guarantee since the spread could hypothetically change at any given moment, but it's a good safety check
Any updates on this issue? It's affecting us on our VPS as well. cTrader keeps “losing touch” with running bot instances as described in this thread. We discovered this two weeks ago when we were wondering why our bots weren't taking trades they were supposed to. They just “stopped” logging anything, but cTrader still showed them as running.
It's frustrating that now there's at least 2 users reporting this issue, and there still doesn't seem to be any movement on it even though I:
sent them emails (Screen captures above in this thread where they acknowledge receipt of the emails) in August on what the issue is and how to reproduce
provided them the exact source code I was using
provided them full access to my VPS with the bots running where the issue outlined in the emails happens all the time
provided them a YouTube video link demonstrating the issue and how I reproduce it
People would probablyt be more inclined to help you if you used the “insert code block” option and pasted in nicely formatted code instead of what you have.
And try to get somewhere close to how they are implemented in ThinkMarkets ThinkTrader as no other platform comes close to the exception way they've implemented their alerts.
They're all cloud-based, and can be set for any indicator and any option (price cross, indicator cross, indicator levels, etc).
I use ThinkTrader solely for this purpose because they're so excellently done, and being cloud based with push notifications (so they work on desktop, mobile, web, etc) it doesn't matter how we're logged into the app - we get notified:
You need to post this in the Suggestions forum. This is technical support, and Spotware doesn't come here to see what users are requesting for new features.
I hope you're not expecting a response and just posting a general statement because you've posted no screen shots, haven't mentioned the time it happened, or anything else.
I did not write that this does not happen, I wrote that we are not able to reproduce the "unexpectedly terminated" message on our machines on your VPS either. If we cannot reproduce it, then we cannot easily spot the problem. Also we cannot spend unlimited hours waiting for one user's problem to happen again. If you are able to isolate exact steps that will allow us to consistently reproduce this behavior, we are happy to have another look. Else it is a low priority issue and we will fix it if we stumble on it in another occasion.
Best regards,
Panagiotis
I explained how to do it in the video that apparently nobody from Spotware is willing to watch from start to finish.
I also sent them this email, dated August 20th, that I was acknowledged because they responded to it:
Proof of the acknowledgment of having received the email. THe “unexpectedly terminated” doesn't always happen, but what DOES always happen is the bots will “lose” their connection to cTrader. I've left the windows open in the VPS showing this. AUDCAD pair. cTrader says the bot is still running, but it's obviously not doing anything because it's no longer logging anything in the “OnTick” event. This is easily reproducible in the steps I've outlined in the above email screen capture. It happened for your team as well – just look at the logs from when they started the bots. They should see several bots are still running, but cTrader “lose” them because they are no longer responding/logging.
firemyst
04 Oct 2024, 14:42 ( Updated at: 05 Oct 2024, 08:40 )
Have you seen these examples?
https://help.ctrader.com/ctrader-algo/articles/for-developers/how-to-use-custom-indicators-in-cbots/#initialising-an-indicator
One way or the other you have to program it in your bot code, so reference the indicator in your bot instead of trying to read a value from teh chart
@firemyst