PureBytes Links
Trading Reference Links
|
Try the following:
cond=(xa50>xa50[1]) and (xa50[1]>xa50[2]);
~Bob
-----Original Message-----
From: Feivy <shraga@xxxxxxxxxxxx>
To: omega-list@xxxxxxxxxx <omega-list@xxxxxxxxxx>
Date: Monday, April 23, 2001 1:25 PM
Subject: Stupefying mystery:variable condition
>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?
>Philip
>
>
|