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

[amibroker] Re: Syntax Question



PureBytes Links

Trading Reference Links


Thanks William.

I tried using nested iif statements to select a value for the percent,
but that still doesn't work.  I'll look around and see if I can find
this setup anywhere else.

Bret 


--- In amibroker@xxxxxxxxxxxxxxx, William Peters <william@xxxx> wrote:
> 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 --------------------~--> 
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/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/