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

Re: Stupefying mystery:variable condition



PureBytes Links

Trading Reference Links

Works fine for me.

Perhaps you have no ExitLong signals and you are getting one "buy" at
the beginning that you are not seeing?

Bob Fulks


At 11:21 PM +0200 4/23/01, Feivy wrote:

>Hello everyone,
>I`ve got the following weird problem:
>Variables:xa50(0), cond(false);
>xa50=xaverage(close,50)data2;
>cond=xa50>xa50[1] and xa50[1]>xa50[2];
>if blabla and cond then buy market;
>
>this gives me absolutely no buys. If I take off either of the two
>conditions in cond, it works fine. I thought maybe the problem was some
>"and" confusion, so I tried putting "(" and ")" but it didn`t change
>anything? Am I missing something elementary here?