Bot appearts to have stopped following the code logic

Created at 02 Jan 2025, 00:07
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!
DE

Dennis1

Joined 24.12.2023

Bot appearts to have stopped following the code logic
02 Jan 2025, 00:07


Hi, I have a GBPUSD-EURUSD pairs trading bot that has been working fine both in my demo trading and live trading. However on 17th Dec it didn't follow the code logic and placed >1000trades in 40mins, all of which violate the logic triggers in the code... I've stopped and re-started it on demo account and it works fine again. This is baffling.
The bot cloud instance ID 122928.
Could you check detailed server execution logs and help me invetigate what has happened?


@Dennis1
Replies

firemyst
02 Mar 2025, 02:23

I don't think they have any execution logs they share.

On the flip side, did you have any protections in your code to prevent such a thing from happening? That is:

  1. Do you have anything in your code that checks the spread before placing an order to make sure you both isn't placing orders when spreads double, triple, or even quadruple?
  2. Did you have anything in your code to stop your bot if you have more than x-number of consecutive losses?
  3. Did you have anything in your code to stop your bot if your pup losses exceeded a threshold?

@firemyst