PureBytes Links
Trading Reference Links
|
It looks like you got it right, a flipflop mechanism.
At 02:25 PM 3/3/99 -0800, you wrote:
>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
>...
>
>
William Brower
Publisher of TS Express
Email: 1000mileman@xxxxxxxxxxxxxx
Web: http://www.insideedgesystems.com
|