--- In
amibroker@xxxxxxxxxxxxxxx, Michael <comtech.usa@xxx> wrote:
>
> I got some old code from other friends, and even for the example in the
> "sample systems" from AB,
>
> I got the same error:
>
> And it's like "Missing short/cover variables..."
>
> The code is like this:
>
> Buy = state>Ref(state,-1);
> Sell = state<Ref(state,-1);
>
> --------------
>
> To get around the error message, I added,
>
> Buy = state>Ref(state,-1);
> Sell = state<Ref(state,-1);
> Short = Sell;
> Cover = Buy;
>
> Is that a right thing to do?
>
> Thanks a lot!
>