Bot appearts to have stopped following the code logic

Created at 03 Jan 2025, 00:12
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
03 Jan 2025, 00:12


I have my bot on cloud instance ID122928. It has been working fine on H4 time frame and usaully place d a trade onec in 2 weeks. However on 18th Dec it violated the code logic and placed >1000 trades in  arounf 40mins and blown my acocunt on spread and commissisons. Ctrader interface doesn't provide any server execution logs so I have no idea what went wrong and if it was something I could've accounted for in my code. Or was it Calgo glitch? Can you review from your end and help me get to the root cause?


@Dennis1
Replies

firemyst
02 Mar 2025, 02:22

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