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

[amibroker] Re: Syntax Question



PureBytes Links

Trading Reference Links


Thanks Graham.  I tried to use nested iif's to "fool" it, but that
didn't work.  I'll just use a straight percent and see what works best.


--- In amibroker@xxxxxxxxxxxxxxx, Graham <kavemanperth@xxxx> wrote:
> I don't think peak can use a variable %
> It nees to be straight value
> 
> 
> On Fri, 04 Feb 2005 02:22:13 -0000, Quad Rate Serial Abby
> <quad_pumped_abby@xxxx> wrote:
> > 
> > 
> > I have the following bit of code to find a peak and value based on
> > ATR.  For some reason, this gives me an error even though I am
> > rounding the "Range" to be an integer value.  If I hardcode a percent
> > into the Peak function it works.  Anybody see the problem?  TIA, Bret
> > 
> > Range = round ( MA ( 100*ATR ( 50 ) / C, 10 ) );
> > 
> > One_Peak_Back = LastValue ( Peak ( H, Range, 1 ) );
> > 
> > 
> > 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
> > 
> > 
> > 
> > 
> > 
> 
> 
> -- 
> Cheers
> Graham
> http://e-wire.net.au/~eb_kavan/





------------------------ 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/