[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

EL Problem



PureBytes Links

Trading Reference Links

Hello Colleagues!

Could You explain the next EL problem?

A Very Simple System:
{-------------------}
print("p1 ",TestFunc:2:0);
print("p2 ",TestFunc:2:0);
{-------------------}

and a Very Simple Function

{------------------------}
vars: memo(0);

if currentbar=1 then memo=1
else if memo=1 then memo=0
	else memo=1;
TestFunc=memo;
{------------------------}

I have in the Print Log:
p1 1
p2 1
p1 0
p2 0
p1 1
p2 1
p1 0
p2 0
...