Bars.LastBarOnChart not executed ?

Questions about MultiCharts .NET and user contributed studies.
Fabrice
Posts: 182
Joined: 14 Jun 2011
Has thanked: 44 times
Been thanked: 30 times

Bars.LastBarOnChart not executed ?

Postby Fabrice » 09 Mar 2014

Hello,

When doing a test with Bars.LastBarOnChart on a tick chart, the block seems never executed. On a minute chart, it works. The code is :

Code: Select all

public class test_debugLastBarOnChart : IndicatorObject {
private IPlotObject plot1;

public test_debugLastBarOnChart(object _ctx):base(_ctx){}

protected override void Create() {
plot1 = AddPlot(new PlotAttributes("", EPlotShapes.Line, Color.Black));
}
protected override void StartCalc() {
}
protected override void CalcBar(){
if (Bars.LastBarOnChart)
Output.WriteLine("Never written with a tick chart");
plot1.Set(Bars.Close[0]);
}
}
This code is applied on a closed market. On a minute-chart, the string is correctly displayed in the Output window. But on the tick-chart, this code seems never executed, as the Output windows remains empty. Is this normal ?

Regards.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Bars.LastBarOnChart not executed ?

Postby Henry MultiСharts » 12 Mar 2014

But on the tick-chart, this code seems never executed, as the Output windows remains empty. Is this normal ?
Hello Fabrice,

This issue has been confirmed. It will be fixed in MultiCharts .NET 9.0 Beta1

Fabrice
Posts: 182
Joined: 14 Jun 2011
Has thanked: 44 times
Been thanked: 30 times

Re: Bars.LastBarOnChart not executed ?

Postby Fabrice » 18 Mar 2014

Hello Henry,

I don't know when you will release 9.0 (release, not the beta - I do not trade with beta version) but if is not before several months, I would appreciate that you produce a minor release update of 8.x including the correction of this bug. It prevents me from trading from tick charts several times each day.

Regards.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Bars.LastBarOnChart not executed ?

Postby Henry MultiСharts » 19 Mar 2014

Fabrice, I have asked our engineers to provide a hotfix for this issue if there is a technical possibility. I will update the thread once I have any feedback on this case.


Return to “MultiCharts .NET”