cTrader 4.2 - still not working properly
cTrader 4.2 - still not working properly
07 Sep 2022, 15:08
Hello,
version 4.2. of the platform seems to not work properly as opposed to previous versions.
The below code is supposed to draw multiple objects and it is only drawing the last one.
Besides that the code within the coding section doesn't adjust to the proper columns after it's been saved.
using cAlgo.API;
namespace cAlgo
{
[Indicator(IsOverlay = true,AccessRights = AccessRights.None)]
public class NewIndicator : Indicator
{
protected override void Initialize()
{
}
public override void Calculate(int index)
{
if(index > 0)
{
Chart.DrawText(index.ToString(),"H",index,Bars.HighPrices[index], Color.Green);
Chart.DrawText(index.ToString(),"L",index,Bars.LowPrices[index], Color.Red);
Chart.DrawRectangle(index.ToString(),index,Bars.HighPrices[index ],index-1,Bars.LowPrices[index-1],Color.White);
}
}
}
}
Also like I wrote in a separate post, it is suspending indicators due to errors for big multi timeframe multi instance multi chart setups. The indicators don't report any errors and they worked on those setups before the 4.2 update without that suspending functionality.
Replies
PanagiotisCharalampous
07 Sep 2022, 15:29
Hi crou,
Besides that the code within the coding section doesn't adjust to the proper columns after it's been saved.
Not sure what do you mean with this. Please elaborate.
Also like I wrote in a separate post, it is suspending indicators due to errors for big multi timeframe multi instance multi chart setups. The indicators don't report any errors and they worked on those setups before the 4.2 update without that suspending functionality.
We need the indicators to be able to reproduce the problem
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
07 Sep 2022, 15:43
Hi crou,
If you are referring to the auto format option, the new update features a new code editor that does not support auto formatiing. You can use an external IDE if you need such a feature.
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
07 Sep 2022, 15:16
Hi crou,
Regarding the code sample, you need to have a different name for each object. Else the later will override the previous.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous