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

Re: [amibroker] ref



PureBytes Links

Trading Reference Links

David

Or you could do the following:

Try:

var0 = cross (ma(close, 10 ),ema (close, 30) ) ;
var1 = IIF(HHV(var0,-10) = 1,1,0) ;

These two lines of code should result in var1 being true (1) if anytime in 
the past 10 days a cross occurred.

Steve



At 08:29 PM 5/13/01 +1000, you wrote:
TJ is there a way for ami to look for a condition true over xn periods

eg

ref(cross (ma(close, 10 ),ema (close, 30)),-10)>0;

so that ami look for the true condition over the last 10 periods
no just 10 periods ago ?

may have asked this before


Thanks David

Your use of Yahoo! Groups is subject to the 
<http://docs.yahoo.com/info/terms/>Yahoo! Terms of Service.







  • References:
    • ref
      • From: David Holzgrefe