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

[amibroker] Re: Drawing Lines



PureBytes Links

Trading Reference Links

Example[for IB window]:

Plot(C,"",1,64);per=5;
g=PeakBars(H,per)==0;dmax=LastValue(Cum(g)); 
for(d=0;d<dmax-1;d++)
{
x1=LastValue(ValueWhen(g,Cum(1),d+1));y1=LastValue(ValueWhen
(g,H,d+1));
x2=LastValue(ValueWhen(g,Cum(1),d+2));y2=LastValue(ValueWhen
(g,H,d+2));
LineP=LineArray(x2,y2,x1,y1,0);
Plot(LineP,"",7,1);
}
g=TroughBars(L,per)==0;dmax=LastValue(Cum(g)); 
for(d=0;d<dmax-1;d++)
{
x1=LastValue(ValueWhen(g,Cum(1),d+1));y1=LastValue(ValueWhen
(g,H,d+1));
x2=LastValue(ValueWhen(g,Cum(1),d+2));y2=LastValue(ValueWhen
(g,H,d+2));
LineT=LineArray(x2,y2,x1,y1,0);
Plot(LineT,"",7,1);
}
--- In amibroker@xxxxxxxxxxxxxxx, "DIMITRIS TSOKAKIS" <TSOKAKIS@xxxx> 
wrote:
> Now it is easier with 4.49 version:
> See LineArray() function, it is cute!!
> Dimitris Tsokakis
> --- In amibroker@xxxxxxxxxxxxxxx, "osondu2" <osondu2@xxxx> wrote:
> > Hi,
> > 
> > Does anybody know how to draw lines with AFL from any x,y 
> coordinate 
> > to another.
> > 
> > Thanks.


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/