Topics
Replies
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
trading.ternet
10 Sep 2020, 12:30
RE: RE: RE:
trading.ternet said:
firemyst said:
PanagiotisCharalampous said:
Hi firemyst,
Here it is.
Best Regards,
Panagiotis
Thanks @Panagiotis!
For anyone looking for a code sample, this will return the time as specified on the chart regardless of local user's computer's timezone:
DateTime.UtcNow + Application.UserTimeOffset
Hi,
I am a newbie in cAlgo,
many thanks for informations.
But I don't understand how I can get hour value from UserTimeOffset (to use in a Bot Time filter for example)Many thanks for help
MichelOh sorry
I have found
Thank you
@trading.ternet
trading.ternet
10 Sep 2020, 12:08
RE: RE:
firemyst said:
PanagiotisCharalampous said:
Hi firemyst,
Here it is.
Best Regards,
Panagiotis
Thanks @Panagiotis!
For anyone looking for a code sample, this will return the time as specified on the chart regardless of local user's computer's timezone:
DateTime.UtcNow + Application.UserTimeOffset
Hi,
I am a newbie in cAlgo,
many thanks for informations.
But I don't understand how I can get hour value from UserTimeOffset (to use in a Bot Time filter for example)Many thanks for help
Michel
@trading.ternet
trading.ternet
11 Sep 2020, 12:08
RE:
PanagiotisCharalampous said:
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