Make sure that the backtesting settings are the same. 99% of the times it happened this to me it was caused by some oversight in my backtesing settings. If there is still a problem, then we will need to following information in order to reproduce the problem
cBot code
Optimization parameters file, symbol, timeframe and dates
The exact set of parameters for which the discrepancy is observed
Best regards,
Panagiotis
Hi, Thanks your response, I will try a third evening to figure this issue out, starting from scratch on a different cBot, and report back.
Ok, another couple of hours and I managed to reproduce the issue. I am sure it is a bug (I am a programmer myself). Two solid pages of notes in fine print… I will try to best explain it, maybe you can reproduce it. I am old to debugging, but new to forums, so please advise if I should do something differently.
When the price of US30 is 40,000, I buy US30 using ExecuteMarketRangeOrderAsync(TradeType.Buy, US30, lot, 10, Symbol.Ask + 100, MyLabel, stopLoss, stopLoss * 10, comment); my base price should be 40,100, and the range pips are 10 points. In theory, the transaction should only be executed when the ask price reaches 40,099 or 40,101, but in practice, it is executed immediately. Why is this RANGE restriction ineffective?
Hi there,
No, this is not how it works. Market orders are executed immediately. This is way they are called market orders. If you need a pending order use a Stop Limit order.
Bars.LoadMoreHistory() does not work for backtesting at the moment. This feature will be added in a future release of cTrader.
Best regards,
Panagiotis
Thanks a lot!
One additional question: Previously, the Bars.OpenTimes.Count method brought more than 3,000 candles to the index. Today, I notice it is only bringing 200.
Please use English language and use screenshots/videos to explain your issue.
Best regards,
Panagiotis
Hello, When I try to create a new order, nothing happens. I can't find a way to open the new order window, the only way to open trades is to use the gadget in the chart.
An error message is displayed
Hi there,
Please share screenshots/videos so that we can see what you are doing and what error you receive.
Make sure that the backtesting settings are the same. 99% of the times it happened this to me it was caused by some oversight in my backtesing settings. If there is still a problem, then we will need to following information in order to reproduce the problem
cBot code
Optimization parameters file, symbol, timeframe and dates
The exact set of parameters for which the discrepancy is observed
Please provide more information about your issue. Where can we see this happening? Can you record a video demonstrating this behavior?
Best regards,
Panagiotis
Attached is a video showing this, it may not be clear on your end, was i a rush to record, from the clip you can see my SL level was 20061.19 when my order was triggered inclusive slippage the SL level was automatically adjusted to 20059.96, i had to edit the SL level to 20061.19. Also when editing an entry point to a new level for my stop orders, i have noticed that it adjusts the SL level too, for example if i add 10 pips/points to my estimated entry level, the SL adjusts its self by deducting 10 pips/points.
Hi Nesh,
The stop loss is always relative and it is placed at the relative distance specified in pips from the entry price.
Please contact your broker regarding execution issues.
Best regards,
Panagiotis
Hi, I've already submitted the problem to the borker (IC Markets) which redirected me to you because they said “The error does not provide more details in order to investigate further from our side”.
There not much information for us either. If you can share your source code and steps to reproduce this issue, we are happy to have a look
Problem is not systematic, it can't be reproduced. The bot works well except once every X days this problem occurs and must be a server side problem. It is just happened again (twice):
The only thing I can notice is that, the hour is almost the same.
The portion of code which closes pending orders is quite simple:
foreach (var order in PendingOrders) if ( order.Label == _BotLabel && order.SymbolName == SymbolName && order.Comment == Comment ) CancelPendingOrder(order);
Hi there,
It's hard to help you in the forum. The broker needs to check why the orders are not cancelled.
PanagiotisCharalampous
10 Oct 2024, 10:41
RE: RE: RE: Backtester/Optimiser not matching with same parameters
davidrob said:
Hi there,
There is no information in your message.
Best regards,
Panagiotis
@PanagiotisCharalampous