Compiler error

Questions about MultiCharts and user contributed studies.
fs

Compiler error

Postby fs » 07 Sep 2008

Why does this line compile without errors?

Code: Select all

Condition1 = Close > (close[1],Open[1]);

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Postby TJ » 07 Sep 2008

what are you trying to accomplish with

(close[1],Open[1])



you are missing a keyword.
Maybe you are thinking of minlist( close[1],Open[1] ) ?
Last edited by TJ on 07 Sep 2008, edited 1 time in total.

fs

Postby fs » 07 Sep 2008

Excatly. This is missing a keyword. This is why I asked why this compile without errors.

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Postby TJ » 07 Sep 2008

Excatly. This is missing a keyword. This is why I asked why this compile without errors.
sorry... I missread your question. I need another pair of glasses.

Does it work as an OR if there is no keyword?

fs

Postby fs » 07 Sep 2008

When I print the value of Condition1 for each bar, it seems to work as an AND.

I don't have TS8, but TS2000i gives an error when trying to verify as I would expect it to since the syntax is clearly not correct.

fs

Postby fs » 20 Sep 2008

Can someone from TSSupport acknowledge this message and confirm/deny that this is a compiler "error" in that it compiled successfully, instead of giving an error message?

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

Postby Marina Pashkova » 25 Sep 2008

Hi Fanus,

This has been confirmed as a bug: PowerLanguage does not block out this syntax as an error and the gcc compiler compiles it as well.

We have issued a ticket order for this bug. However, it is regarded as a minor bug, so I am not sure what version it will be fixed in.

Regards.


Return to “MultiCharts”