Optimization do not work...
Optimization do not work...
06 Feb 2020, 17:42
Hello,
when i run my cbot on backtest or live there is no problem, all run fine.
But when i run it on optimization, tests passes but there is no result found as shown on picture below...how is it possible ?
Replies
Nobody
11 Feb 2020, 16:54
RE: RE:
TzvetomirTerziysky said:
Nobody said:
Hello,
when i run my cbot on backtest or live there is no problem, all run fine.
But when i run it on optimization, tests passes but there is no result found as shown on picture below...how is it possible ?
I have raised that yesterday:
The issue will appear at least when one uses multi timeframe. I am waiting for an update
OK thanks, but somebody of Spotware can confirm that issue will be solved soon please ? is this due to last update (cause multiple timeframe in optimization run well before) ?
@Nobody
PanagiotisCharalampous
11 Feb 2020, 16:58
Hi Nobody,
We will release a hotfix for this issue soon.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Feb 2020, 14:56
Hi Nobody,
You should have received the hotfix by now. Please let us know if it has resolved the issue.
Best Regards,
Panagiotis
@PanagiotisCharalampous
office3131
28 Apr 2020, 05:10
RE:
PanagiotisCharalampous said:
Hi Nobody,
You should have received the hotfix by now. Please let us know if it has resolved the issue.
Best Regards,
Panagiotis
Hello Panagiotis ,
I am having a similar problem. Some bots are optimized, but one of them not. Once starting optimization the elapsed time is counting endlessly. Even the stop button is not working.The only solution is to restart cTrader. When I close cTrader the task manager shows that cTrader is still running. Here is the (ugly, testing) code
@office3131
PanagiotisCharalampous
28 Apr 2020, 08:40
Hi office3131,
It seems you are using an indicator that uses data from other timeframes. There is an issue in optimization for such cases. It will be resolved in a future update.
Best Regards,
Panagiotis
@PanagiotisCharalampous
trading.ternet
10 Sep 2020, 21:02
RE:
PanagiotisCharalampous said:
Hi office3131,
It seems you are using an indicator that uses data from other timeframes. There is an issue in optimization for such cases. It will be resolved in a future update.
Best Regards,
Panagiotis
Hi PanagiotisCharalampous,
I am using Ctrader with FxPro broker and the optimization doesn't work no more , it's exactly like nobody described : backtesting and real are ok.
Yesterday and before , optimization worked very fine with the previous version of my cBot, so I decided to start to day a new optimization with this previous version and
i have the same problem : test passes but result = 0.0 on every line....
I have also restarted cTrader but nothing to do...
Is there a way to resolve this issue ? How can I get cTrader version number ?
Many thanks
Michel
@trading.ternet
PanagiotisCharalampous
11 Sep 2020, 09:01
Hi Michel,
Please provide us your cBot's code so that we can reproduce the problem and investigate.
Best Regards,
Panagiotis
@PanagiotisCharalampous
trading.ternet
11 Sep 2020, 12:08
RE:
PanagiotisCharalampous said:
Hi Michel,
Please provide us your cBot's code so that we can reproduce the problem and investigate.
Best Regards,
Panagiotis
Hi Panagiotis,
Thank you very much for reply,
I have just found the issue.
I am using a part of script which sends Telegram notifications when buy or sell positions are triggered with trades informations.
So, I have just disabled this part of script by a condition if (RunningMode != RunningMode.Optimization) and now all it's ok
Thank you
Best regards
Michel
@trading.ternet
akudzmanas
26 Aug 2021, 08:14
RE:
PanagiotisCharalampous said:
Hi office3131,
It seems you are using an indicator that uses data from other timeframes. There is an issue in optimization for such cases. It will be resolved in a future update.
Best Regards,
Panagiotis
I am using a Cbot which uses some data drawn from Weekly TimeFrame to then use it for trades in Hourly 1h chart.
I suspect I might be having the issue you mentioned, could somebody confirm this has been fixed ?
protected override void OnBar()
{
//OnBar last week high low array updater
Bars series = MarketData.GetBars(TimeFrame.Weekly);
double lastWeeekHigh = series.HighPrices[series.Count - 2];
double lastWeeekLow = series.LowPrices[series.Count - 2];
weekHighLow[0] = lastWeeekHigh;
weekHighLow[1] = lastWeeekLow;
//Curent week number
currentServerDateTime = Server.Time;
weekNumber = calendar.GetWeekOfYear(currentServerDateTime, CalendarWeekRule.FirstFourDayWeek, DayOfWeek.Monday);
cancelOrdersEndOfWeek();
}
protected override void OnTick()
{
// Order placement logic
var totalOrders = PendingOrders.Count;//Int totalPositions = Positions.Count; I used this to limit trades based on open position count
if (totalOrders == 0 && weeklyTradeCount != weekNumber)
{
stopOrderSell();
stopOrderBuy();
}
}
protected void stopOrderSell()
{
//
if (secretMethodName > weekHighLow[0])
{
PlaceStopOrder(TradeType.Sell, SymbolName, inputVolume, secretNumber() - entryOffset * Symbol.PipSize, "Sell", StopLossPips, TakeProfitPips);
Print("Sell" + Server.Time);
weeklyTradeCount = weekNumber;
}
else
return;
}
@akudzmanas
PanagiotisCharalampous
26 Aug 2021, 08:39
Hi akudzmanas,
This issue has not been fixed yet.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
akudzmanas
26 Aug 2021, 19:19
RE:
PanagiotisCharalampous said:
Hi akudzmanas,
This issue has not been fixed yet.
Best Regards,
Panagiotis
Thank you for your prompt reply.
Should I take it, this will not be fixed anytime soon or at all, sir ?
@akudzmanas
PanagiotisCharalampous
27 Aug 2021, 07:36
Hi akudzmanas,
It will be fixed but we do not have an ETA yet.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
TzvetomirTerziysky
06 Feb 2020, 19:04 ( Updated at: 21 Dec 2023, 09:21 )
RE:
Nobody said:
I have raised that yesterday:
The issue will appear at least when one uses multi timeframe. I am waiting for an update
@TzvetomirTerziysky