BarStatus(1)=2...Bug?

Questions about MultiCharts and user contributed studies.
SUPER
Posts: 646
Joined: 03 Mar 2007
Has thanked: 106 times
Been thanked: 84 times

BarStatus(1)=2...Bug?

Postby SUPER » 23 May 2008

It seems there is bug with BarStatus(1)=2 when used with IntraBarOrderGeneration enabled.

I ran following code as a strategy with IntraBarOrderGeneration settings.

If lastBarOnChart print(BarNumber,BarStatus(1)=2);

with following results.

Bar=1345,BarStatusStrategy=FALSE
Bar=1345,BarStatusStrategy=FALSE
Bar=1345,BarStatusStrategy=FALSE
Bar=1345,BarStatusStrategy=TRUE
Bar=1345,BarStatusStrategy=FALSE


The BarStatus should never turn "TRUE" within a bar, it should only happen on last tick of the bar. This happens as soon as you load the strategy and it works propely on subsequent bars, it's begining of the bar you will observe this problem. As further evidence, I ran same code as an indicator and the results are perfect, clearly pointing to a bug with intrabarordergeneration.

Results of Indicator:

Bar=1395,BarStatusIndicator=FALSE
Bar=1395,BarStatusIndicator=FALSE
Bar=1395,BarStatusIndicator=FALSE
Bar=1395,BarStatusIndicator=FALSE
Bar=1395,BarStatusIndicator=FALSE

Will appreciate comments.

Regards
SUPER

User avatar
Marina Pashkova
Posts: 2758
Joined: 27 Jul 2007

Postby Marina Pashkova » 23 May 2008

Hi Super,

This is a known bug. Our engineers are working to fix it.

Regards.

SUPER
Posts: 646
Joined: 03 Mar 2007
Has thanked: 106 times
Been thanked: 84 times

Postby SUPER » 23 May 2008

Marina,

Thanks for your feedback, I hope it gets fixed in your next release.

There is also bug with BarStatus(1)=1 and it behaves in similar fashion.

within the bar you get following values at begining stage:

BarNumber 1395 True
BarNumber 1395 True
BarNumber 1395 True
BarNumber 1395 False
BarNumber 1395 True

Regards
SUPER

User avatar
Marina Pashkova
Posts: 2758
Joined: 27 Jul 2007

Postby Marina Pashkova » 23 May 2008

We're working on it SUPER.


Return to “MultiCharts”