BUG in PLEditor-Compiler? Using Value[offset]?

Questions about MultiCharts and user contributed studies.
denizen2
Posts: 125
Joined: 17 Jul 2005
Has thanked: 8 times
Been thanked: 1 time

BUG in PLEditor-Compiler? Using Value[offset]?

Postby denizen2 » 15 Nov 2006

I have problem using a value[offset] in an expression such as:

Momentum = (Value1-Value1[offset])*scaleFactor;

The above expression compiles OK, but the results are incorrect, while if I just change to using two separate expressions:

Momentum = Value1-Value1[offset];
Mom = Momentum*ScaleFactor;

Then the results are correct.

Looks like a 'bug' to me :roll: , right?

User avatar
Alex Kramer
Posts: 834
Joined: 23 Feb 2006

Postby Alex Kramer » 16 Nov 2006

could you please send a minimal test script where this can be reproduced?

denizen2
Posts: 125
Joined: 17 Jul 2005
Has thanked: 8 times
Been thanked: 1 time

Postby denizen2 » 16 Nov 2006

could you please send a minimal test script where this can be reproduced?
:oops: I can't seem to duplicate that 'problem' :o anymore.... I withdraw my 'bug' report.... must have made a mistake in my previous code that I was too quick to attribute as a possible compiler bug. I will be more careful next time :oops: !


Return to “MultiCharts”