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

[amibroker] Re: how to plot a secant



PureBytes Links

Trading Reference Links

thanks it works

ThisIsLastBar = BarCount-1 ;

_TRACE("ABTEST VALE OF BAR COUNT " + WriteVal(ThisIsLastBar ));
y1=LastValue(ADX());
ADXhistory=Ref(ADX(),-10);
y0=ADXhistory[ThisIsLastBar];
x0=ThisIsLastBar-10;
x1=ThisIsLastBar;

//WriteVal(y0) + "\n";
//WriteVal()   + "\n";
//Title=y1[ThisIsLastBar];


Line = LineArray( x0, y0, x1, y1, 1 ); 
Plot( Line, "Trend line", colorOrange ); 

--- In amibroker@xxxxxxxxxxxxxxx, "wavemechanic" <fimdot@xxx> wrote:
>
> You can use linearray()
> 
> Bill
> 
> ----- Original Message ----- 
> From: "murthysuresh" <money@xxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Thursday, October 18, 2007 11:46 AM
> Subject: [amibroker] how to plot a secant
> 
> 
> > hello
> > How can i plot a secant. I want to plot a secant that intersects 
> > lstvalue(adx()) and ref(adx(),-3) and determine the slope. 
> > GFXLINETO function takes in pixel co ordinates only. so is there 
a way 
> > to get convert the ref(adx(),-3)  into x,y co ordinates?
> > 
> > seede
> > 
> > 
> > 
> > 
> > 
> > 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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> > http://www.amibroker.com/devlog/
> > 
> > For other support material please check also:
> > http://www.amibroker.com/support.html
> > 
> > Yahoo! Groups Links
> > 
> > 
> > 
> > 
> > 
> > -- 
> > No virus found in this incoming message.
> > Checked by AVG Free Edition. 
> > Version: 7.5.488 / Virus Database: 269.14.13/1075 - Release Date: 
10/17/2007 9:38 AM
> > 
> >
>




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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

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/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

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