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

RE: [amibroker] Re: plotting x against y



PureBytes Links

Trading Reference Links

Ed
I have given this some thought and done a simple plot of xx and yy on a
single chart

z = IIf(BarIndex()<BarCount-100,Null,1);

xx = 3*Cum(z);
yy = 2*Cum(z);

Plot(xx,"xx",colorRed,styleLine);
Plot(yy,"yy",colorGreen,styleLine);



Cheers,
Graham
http://groups.msn.com/ASXShareTrading
http://groups.msn.com/FMSAustralia 

-----Original Message-----
From: ed2000nl [mailto:pablito@xxxxxxx] 
Sent: Thursday, 30 October 2003 5:59 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Re: plotting x against y


hi Graham,

indeed I'm trying to get xx on the horizontal and yy on the vertical 
axis. This just in an attempt to see if I could use AFL to plot 
statistics and stuff like that about stock analysis as well.

My example with xx and yy was just some example. Although I would 
like to plot two arrays (xx and yy) of the same length, they are not 
directly related. E.g. plotting the re-invested fraction of account 
per wager (xx) versus profitability (yy).

But it is no big deal. I guess one would need a function like Plot
(xx,yy,"") for that,

regards, Ed

> The yy would need to a function of xx though
> needing to be related somehow
> 
> Xbar = barcount - 99 + xx;
> Ybar = valuewhen( Xbar,  yy ); 
> 
> Plot(yy,"yy",colorblue,styledots);




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/ 


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs Online - Over 14,500 titles.
No Late Fees & Free Shipping.
Try Netflix for FREE!
http://us.click.yahoo.com/vhSowB/XP.FAA/3jkFAA/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/