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

RE: [amibroker] Trend bands / tolerance



PureBytes Links

Trading Reference Links

Hi Steve,

 

yes, it would be possible. I think you mean a "hand-drawn" Trendline. In this case you have to define it as SU, etc... through the line parameters and thereafter you can use it in your code.

 

Line = Study( "su",GetChartID() );

Width = Param("Width",1.5,0,10,0.1);

Width = Width*0.01;

LineBand1 = Line+Width*Line;

LineBand2 = Line-Width*Line;

 

SetChartOptions(0,chartShowArrows|chartShowDates);

Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle()) ;

Plot(LineBand1,"Line Band 1",colorLightBlue,styleLine);

Plot(LineBand2,"Line Band 2",colorLightBlue,styleLine);

 

Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) );

 

 

Regards

 

- - - - - - - - - - - - - - - - - - - -

Thomas

www.tradingbasis.com

support@xxxxxxxxxxxxxxxx

- - - - - - - - - - - - - - - - - - - -

 

 

 

-----Original Message-----
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Steve
Sent: Friday, May 05, 2006 5:55 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Trend bands / tolerance

 

Hi all

 

As a beginner, I'm wondering if there is any way to create trend bands

within Amibroker. What I would like to do is to create a trend band

either side of my trend line with a tolerance of 1.5%

 

Any tips would be appreciated!

Thanks

Steve

:)

 

 

 

 

 

 

 

 

------------------------ Yahoo! Groups Sponsor --------------------~-->

Home is just a click away.  Make Yahoo! your home page now.

http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/GHeqlB/TM

--------------------------------------------------------------------~->

 

Please note that this group is for discussion between users only.

 

To get support from AmiBroker please send an e-mail directly to

SUPPORT {at} amibroker.com

 

For other support material please check also:

http://www.amibroker.com/support.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/

 



Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





SPONSORED LINKS
Investment management software Real estate investment software Investment property software
Software support Real estate investment analysis software Investment software


YAHOO! GROUPS LINKS