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

Stupefying mystery:variable condition



PureBytes Links

Trading Reference Links

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