Topics
Replies
PanagiotisCharalampous
07 Feb 2020, 10:40
Hi koktos632,
We plan to add this function in a future release.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
07 Feb 2020, 10:17
Hi firemyst,
I would just use a boolean flag indicating if the Calculate() method has been executed.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
07 Feb 2020, 10:06
Hi koktos632,
Change your cBot access rights to FullAccess. See below
[Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.FullAccess)]
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
07 Feb 2020, 08:22
Hi firemyst,
1) Timer event should work as well.
2) We had to make this change to fix other issues with indicators not being updated after reconnections
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
07 Feb 2020, 08:05
Hi w.b.z,
Unfortunately without a code sample to reproduce the problem we cannot determine what is the reason of the exception.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
07 Feb 2020, 08:01
Hi all,
Can we have a code sample that reproduces this problem?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
06 Feb 2020, 14:59
Hi there,
This parameter is not available in the API at the moment.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
06 Feb 2020, 14:21
Hi ysdytk1973,
Your host is wrong. You can find the correct hosts here.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
06 Feb 2020, 12:35
Hi Tengu,
See an example below
using System;
using cAlgo.API;
using cAlgo.API.Internals;
using cAlgo.API.Indicators;
using cAlgo.Indicators;
namespace cAlgo
{
[Cloud("Fast MA", "Slow MA", FirstColor = "Aqua", Opacity = 0.5, SecondColor = "Red")]
[Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
public class CloudExample : Indicator
{
[Parameter("Fast MA Period", DefaultValue = 21)]
public int FastMaPeriod { get; set; }
[Parameter("Slow MA Period", DefaultValue = 50)]
public int SlowMaPeriod { get; set; }
[Output("Fast MA", LineColor = "#FF6666")]
public IndicatorDataSeries FastMaResult { get; set; }
[Output("Slow MA", LineColor = "#0071C1")]
public IndicatorDataSeries SlowMaResult { get; set; }
SimpleMovingAverage FastMa;
SimpleMovingAverage SlowMa;
protected override void Initialize()
{
FastMa = Indicators.SimpleMovingAverage(Bars.ClosePrices, FastMaPeriod);
SlowMa = Indicators.SimpleMovingAverage(Bars.ClosePrices, SlowMaPeriod);
}
public override void Calculate(int index)
{
FastMaResult[index] = FastMa.Result[index];
SlowMaResult[index] = SlowMa.Result[index];
}
}
}
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
06 Feb 2020, 10:43
Hi firemyst,
In 3.7 all output series are cleared after initialization. All value assignments in output series should take place inside Calculate method.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
06 Feb 2020, 09:19
Hi 66281850,
It represents seconds. It is around 30 days.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
06 Feb 2020, 08:56
Hi 66281850,
I just tried this with my token and it works fine. Try with getting new tokens.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
06 Feb 2020, 08:46
Hi 66281850,
It means that you are using wrong credentials. Make sure that refresh_token, client_id and client_secret are correct.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
06 Feb 2020, 08:30
Hi 66281850,
If you manually get the initial token, then everything else can be done automatically. No further user interaction is required.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
06 Feb 2020, 08:07
Hi casiimwe,
Can you please explain which icon are you referring to?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
06 Feb 2020, 08:06
Hi Tolu4fx,
We will restore this option in an upcoming update.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
06 Feb 2020, 08:04
Hi 66281850,
There is no way to get a token automatically. The user needs to give his explicit permission at least once. After you receive the token, you can use the refresh token to automatically refresh your token without user interaction.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
05 Feb 2020, 16:14
RE: RE:
TzvetomirTerziysky said:
The Optimisation is crashing even though exactly the same cBot works in Backtesting. For me the issue is in the time frame e.g. when I remove the timeframe description from the description of the indicator, Optimisation starts working e.g.
the code lines (in protected override void OnStart()) are:
Bars M15 = MarketData.GetBars(TimeFrame.Minute15);
_abd = Indicators.GetIndicator<abd>(M15, abd_Period, abd_Signal);If I remove M15, the Optimisation starts working.
Hi TzvetomirTerziysky,
Can you post the complete cBot code?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
05 Feb 2020, 16:13
( Updated at: 21 Dec 2023, 09:21 )
RE: RE: RE:
victor.major said:
1. Optimization may have indeed finished. The parameters are different across different runs, however I have no way of seeing which parameters are optimal as all the results are zeroed.
2. When I press "play" the optimizer quickly goes through the sequence of run numbers and stops at 574 and shows the screen above.
3. cBot runs well and two optimisations completed successfuly on 3.6
4. I restarted cTrader, once automatically during update, once manually. I also removed the cBot instance and assigned it again. No change.
5. cBot is closed source.
My guess is that this is some kind of cache issue. Can I manually scrub the optimizer cache and start again?
V.
victor.major said:
Hi thank you for the reply.
This is what I see and cannot unsee - there is no way for me to restart or resume the optimization process:
PanagiotisCharalampous said:
Hi Victor,
Can you post some screenshots as well for us to understand the issue?
Best Regards,
Panagiotis
This is probably an issue with the cBot's code. Can you post the source code?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
07 Feb 2020, 10:52
Hi all,
We have identified a performance issue in indicators. We will fix it and push a hotfix soon
Best Regards,
Panagiotis
Join us on Telegram
@PanagiotisCharalampous