Does the function call automaticly ?

Questions about MultiCharts and user contributed studies.
bailey
Posts: 16
Joined: 05 Oct 2011
Has thanked: 1 time
Been thanked: 1 time

Does the function call automaticly ?

Postby bailey » 18 Mar 2012

Im discover very strange behavior in MC 8 Beta 1.

I have array.


arrays:
FiboArray[20,5](0);


end a function which fills this array with data. (FiboArray is referenced argument)

ComputeData(YesterdayLow,YesterdayHigh,YesterdayDate,FiboArray,1,1);

Now, i have if Statement which asks for some value in this array


if( (FiboArray[12,3] < FiboArray[8,3]) AND
(Close > FiboArray[10,2]) AND
(Low < FiboArray[10,2]) )then
begin



And now comes realy strage behavior. This if Statement calls the function ComputeData ..
I checked this issue from several points. it looks in deed what every time the if statement works with FiboArray the function ComputeDate is automaticly calling.

Is this possible !?, how can i stop this.

Thanks.

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

Re: Does the function call automaticly ?

Postby TJ » 18 Mar 2012

Im discover very strange behavior in MC 8 Beta 1.

I have array.


arrays:
FiboArray[20,5](0);


end a function which fills this array with data. (FiboArray is referenced argument)

ComputeData(YesterdayLow,YesterdayHigh,YesterdayDate,FiboArray,1,1);

Now, i have if Statement which asks for some value in this array


if( (FiboArray[12,3] < FiboArray[8,3]) AND
(Close > FiboArray[10,2]) AND
(Low < FiboArray[10,2]) )then
begin



And now comes realy strage behavior. This if Statement calls the function ComputeData ..
I checked this issue from several points. it looks in deed what every time the if statement works with FiboArray the function ComputeDate is automaticly calling.

Is this possible !?, how can i stop this.

Thanks.
...can't tell you much with the limited information you provided.




ps. please use code tag when posting codes. It makes reading codes easier.


Return to “MultiCharts”