Replies

patrickandrade2
25 Jul 2024, 14:36

RE: Critical bot action error. Bankruption possible.

PanagiotisCharalampous said: 

As explained in your other thread, this is an issue of your cBot, you need to handle this situation inside your cBot code

I saw that other people had the exact same problem, and the same issue happens even if you use an algo bot ctrader generated bot. I don't think it's a “me” problem, there's even a post on quora about someone who had the exact same issue and didn't find any answer here or in the ctrader database. Looks like it's something like a latency issue with ctrader while using bots, if there's a command to input a stop loss and the ctrader doesn't compute that command and proceeds with the order it doesn't look like something an external code should fix.


@patrickandrade2

patrickandrade2
25 Jul 2024, 09:18

RE: RE: Found the problem

PanagiotisCharalampous said: 

patrickandrade2 said: 

The thing is, the actual bot is misbehaving, it occurs when the bot is trying to set a stop loss and a sudden movement happens. It happened live just some moments ago. I have the setup for max 15 pips of stop loss on this strategy. When buying there was a massive movement to go down. Stop loss wasn't setted and now I'm in a huge loss. This is severe, please fix. 

Hi there,

The stop loss is ignored when it falls within the spread since it is invalid. You need to handle this situation within your cBot code and detect when stop losses are not set due to invalid values.

Best regards,

Panagiotis

And how is it possible to fix this issue? I'm trying to find any article in the support database that makes possible to implement a stop loss verification but can't find one.


@patrickandrade2

patrickandrade2
24 Jul 2024, 21:01 ( Updated at: 25 Jul 2024, 05:21 )

Found the problem

The thing is, the actual bot is misbehaving, it occurs when the bot is trying to set a stop loss and a sudden movement happens. It happened live just some moments ago. I have the setup for max 15 pips of stop loss on this strategy. When buying there was a massive movement to go down. Stop loss wasn't setted and now I'm in a huge loss. This is severe, please fix. 


@patrickandrade2