Ctrader bot ignores code and blown my account!
Ctrader bot ignores code and blown my account!
14 Jan 2025, 22:52
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 around 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?
I haven't received any meaningful reposnse on this neither form Spotweare nort from my broker and this looks like fraud at this point. Please help!
Replies
Dennis1
22 Jan 2025, 12:44
RE: Ctrader bot ignores code and blown my account!
firemyst said:
Why haven't you run your bot locally and do a “back test” for the dates Dec 16th - 20th to see if anything happens that you can pin point?
Run your backtest against tick data and see what happens.
Of course I have run the backtest over those days. It shows that bot didn't open any trades since none of the entry criteria have been met. Yet on live account it went wild and made 1166 trades in 40mins!
@Dennis1
firemyst
26 Jan 2025, 07:40
( Updated at: 14 Feb 2025, 18:19 )
RE: RE: Ctrader bot ignores code and blown my account!
Dennis1 said:
firemyst said:
Why haven't you run your bot locally and do a “back test” for the dates Dec 16th - 20th to see if anything happens that you can pin point?
Run your backtest against tick data and see what happens.
Of course I have run the backtest over those days. It shows that bot didn't open any trades since none of the entry criteria have been met. Yet on live account it went wild and made 1166 trades in 40mins!
What protection do you have built into your bot? For instance:
- do you check spreads before you bot opens a position?
- do you have anything that checks for x-number of losing trades and to stop your bot if it reaches that threshold?
- do you have anything that checks for x-number of losing pips and to stop your bot if it passes that threshold?
While this doesn't help you to resolve what happened, these are a few suggestions to build safety-nets into your algos as it doesn't seem like you have any to prevent your bot from blowing an account again .
As a programmer you need to consider such things when programming algorithms for the unpredictable markets, regardless of how sound your strategy may be.
@firemyst
Dennis1
14 Feb 2025, 23:30
RE: RE: RE: Ctrader bot ignores code and blown my account!
firemyst said:
Dennis1 said:
firemyst said:
Why haven't you run your bot locally and do a “back test” for the dates Dec 16th - 20th to see if anything happens that you can pin point?
Run your backtest against tick data and see what happens.
Of course I have run the backtest over those days. It shows that bot didn't open any trades since none of the entry criteria have been met. Yet on live account it went wild and made 1166 trades in 40mins!
What protection do you have built into your bot? For instance:
- do you check spreads before you bot opens a position?
- do you have anything that checks for x-number of losing trades and to stop your bot if it reaches that threshold?
- do you have anything that checks for x-number of losing pips and to stop your bot if it passes that threshold?
While this doesn't help you to resolve what happened, these are a few suggestions to build safety-nets into your algos as it doesn't seem like you have any to prevent your bot from blowing an account again .
As a programmer you need to consider such things when programming algorithms for the unpredictable markets, regardless of how sound your strategy may be.
I don’t think it has anything to do with unpredictable markets (everything was stable that day and malicious trades are <2pips each). and the checks you’ve mentioned wouldn’t help since it ignored most of my instructions anyway and would’ve ignored them as well. It’s about this trading platform, people who’ve created it and reports of regular live account swipes like happened with mine. I was lucky to have a small amount there but others lost much larger amounts through similar circumstances
@Dennis1
firemyst
15 Jan 2025, 05:51 ( Updated at: 21 Jan 2025, 21:07 )
Why haven't you run your bot locally and do a “back test” for the dates Dec 16th - 20th to see if anything happens that you can pin point?
Run your backtest against tick data and see what happens.
@firemyst