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

Re: [amibroker] ref



PureBytes Links

Trading Reference Links

David:

Check out the function "Hold". I think this will do what you are asking.

Steve


HOLD:

SYNTAX hold( EXPRESSION, periods ) RETURNS ARRAY FUNCTION

Extends a "true" result of EXPRESSION for the specified number of periods.

This true result is held true over the number of periods specified even if 
a "false" result is generated.

EXAMPLE hold( cross(rsi(14),70),5 )


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