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

Re: Easy Language Question



PureBytes Links

Trading Reference Links

At 8:39 AM -0600 1/12/01, Sean O'Toole wrote:

>This one should be easy but I keep getting the wrong results.  If condition
>1 is met on day 1 and condition 2 is met on day 2 then buy.  What is the
>proper if then syntax for such a statement?

I assume any day can be "day 1" and you are using daily bars. Try:

   if Condition1[1] and Condition2 then ....

This says:

   if Condition1 was true yesterday and Condition2 is true today then..



Bob Fulks