We have received the exception and the issue will be solved in an upcoming release.
Regarding the SL issue, we would need the cBot code and backtesting parameters in order to reproduce this and explain what happens.
Best regards,
Panagiotis
Hi Panagiotis,
Here is the test code that produce the SL issue, I'm using Nikkei225, Hm1 for testing
using System; using System.Collections.Generic; using System.Linq; using System.Text; using cAlgo.API; using cAlgo.API.Collections; using cAlgo.API.Indicators; using cAlgo.API.Internals;
namespace cAlgo.Robots { [Robot(AccessRights = AccessRights.FullAccess, TimeZone = TimeZones.EasternStandardTime)] public class Test2 : Robot { [Parameter(DefaultValue = 10, MinValue = 0, MaxValue = 500, Step = 10)] public int lossCut { get; set; } [Parameter(DefaultValue = 10, MinValue = 0, MaxValue = 500, Step = 10)] public int takeProfit { get; set; } double volume = 0.0; protected override void OnStart() { // To learn more about cTrader Automate visit our Help Center: // https://help.ctrader.com/ctrader-automate }
I've been looking for the optimization / backtesting section for my cBot. Since the update, I haven't been able to locate it. I'm using Desktop version 5.0.25
After the backtest finishes it is possible to change the timeframe
How do I do that? When my backtest finishes, I am unable to change the timeframe on the backtest tab, the options are greyed out. Changing the timeframe under the Algo left panel does not update the backtest window timeframe either.
Hi there,
It looks like a bug. You should be able to change it from the instance.
Best regards,
Panagiotis
Hi Panagiotis,
I can indeed change the timeframe from the instance as per you screenshot, but the problem is when you change it there the chart on the finished backtesting tab is not changed, it stays on the timeframe of when you ran the backtest.
Kind regards
Beyers
Hi Beyers,
The timeframe will change as soon as you start backtesting again.
After the backtest finishes it is possible to change the timeframe
How do I do that? When my backtest finishes, I am unable to change the timeframe on the backtest tab, the options are greyed out. Changing the timeframe under the Algo left panel does not update the backtest window timeframe either.
Hi there,
It looks like a bug. You should be able to change it from the instance.
One of the changes in cTrader 5.0 is that the data for all passes is kept. So if your cBot is printing too much information in the log, this could eventually hinder the performance of optimization
Panagiotis, what about after the visual backtest has finished? Technically the bot is not running anymore, so why are we not able to change the timeframe then, but keep the backtest trade history?
After the backtest finishes it is possible to change the timeframe
PanagiotisCharalampous
18 Jun 2024, 05:36
Hi there,
It's better to ask your broker why this happened.
Best regards,
Panagiotis
@PanagiotisCharalampous