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

Re: [amibroker] Syntax Question



PureBytes Links

Trading Reference Links

Hi,

QRSA>  Range = round ( MA ( 100*ATR ( 50 ) / C, 10 ) );

The above statement returns an array of numbers when the Peak function requires a
non arrayed number for the middle argument.


Regards,
William Peters (AmiBroker Group Moderator)
www.amitools.com




Thursday, February 3, 2005, 9:22:13 PM, you wrote:
  
QRSA>  I have the following bit of code to find a peak and value based on
QRSA>  ATR.  For some reason, this gives me an error even though I am
QRSA>  rounding the "Range" to be an integer value.  If I hardcode a percent
QRSA>  into the Peak function it works.  Anybody see the problem?  TIA, Bret

QRSA>  Range = round ( MA ( 100*ATR ( 50 ) / C, 10 ) );
  
QRSA>  One_Peak_Back = LastValue ( Peak ( H, Range, 1 ) );


    
  



------------------------ Yahoo! Groups Sponsor --------------------~--> 
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

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