C bot problem
C bot problem
18 Mar 2024, 15:48
When I turn on my C bot, it opens a trade just after a candle closes, even if the conditions aren't met during backtesting. For example, when I backtest for 90 days, it consistently opens a bad trade at the start(only the first trade is bad). However, after it gets closed, it starts to open good trades.
ExecuteMarketOrder(TradeType.Buy, Symbol, positionSize, "Bot", roundedStopLoss, TakeProfitWhole);
It also opens opposite partial take profit for example my bot is intended to only open long trades but it has a feature to close 50%of the position if the conditions are met
ExecuteMarketOrder(TradeType.Sell, Symbol, closePositionSize, "Bot", 0, 0);
and it is opening these to trades and he never exit the sort one.
Replies
PanagiotisCharalampous
19 Mar 2024, 07:50
Hi there,
Please provide us with your cBot code and exact steps to reproduce your issue.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
19 Mar 2024, 07:50
Hi there,
Please provide us with your cBot code and exact steps to reproduce your issue.
Best regards,
Panagiotis
@PanagiotisCharalampous