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

[amibroker] Re: Ratios



PureBytes Links

Trading Reference Links


Thanks Graham

I just paste this code into the indicator builder? Then i draw lines? 
How does the calculation start? 

Thanks for your help!






> use
> study( STUDYID, CHARTID = 1 ) 
> 
> here is part of a code I have that uses study on manually drawn line
> f1 . To use in AA you just need the chartID number which you can
> easily get by adding +GetChartID() to your chart title line
> 
> Upper= Study( "f1", GetChartID() );
> 
> TLB = ValueWhen( Upper AND IsNull( Ref(Upper,-1) ), BarIndex() );
> TLP = ValueWhen( Upper AND IsNull( Ref(Upper,-1) ), Upper );
> 
> 
> On Wed, 02 Mar 2005 21:56:53 -0000, Johan <epostens@xxxx> wrote:
> > 
> > 
> > Hi! I am calculating ratios but do it manually. Would it be 
possible
> > to get the data from the lines that i have drawn into a script 
that
> > then calculate the ratio?
> > 
> > Thank you!
> > 
> > 
> > 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/