Inverse order data reference bug !  [SOLVED]

Questions about MultiCharts and user contributed studies.
radekj
Posts: 112
Joined: 28 Apr 2008
Has thanked: 20 times
Been thanked: 1 time

Inverse order data reference bug !

Postby radekj » 02 Mar 2013

Inverse order data reference bug, please validate this !

This does not work:

Code: Select all

vars:
ii(0);

if LastBarOnChart() then
for ii = 100 downto 0 begin
print(date[ii]); // <-- you can try it with close[ii], whatever ! or another function as print()
end;
The code execution is stopping at print()-line without any message !
Maybe it is only on my machine, so please check it.

PS:
You need a chart with more as 100 bars on it !
MC 8.0 and MC 8.5 x32 and x64 under Win7 pro X64 English

User avatar
TJ
Posts: 7380
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 996 times
Been thanked: 2110 times

Re: Inverse order data reference bug !  [SOLVED]

Postby TJ » 02 Mar 2013

I have tested the code with 2 charts and encountered no problem.
ESH3 1 minute chart
ESH3 daily chart
MultiCharts64 Version 8.0 Release (Build 5622)


ps.
I have added ii reference in the print out for easy reading.

Code: Select all

vars:
ii(0);

if LastBarOnChart() then
for ii = 100 downto 0 begin
print(ii, "=", date[ii]); // <-- you can try it with close[ii], whatever ! or another function as print()
end;

radekj
Posts: 112
Joined: 28 Apr 2008
Has thanked: 20 times
Been thanked: 1 time

Re: Inverse order data reference bug !

Postby radekj » 02 Mar 2013

Must be a bug on my machine , many thanks !

ciao
radekj


Return to “MultiCharts”