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

Re: [amibroker] Help



PureBytes Links

Trading Reference Links







Ernie,
 
Graph() function  is still available for backward compatability ( I believe ) ...The plot () function is the newer version of showing charts.....
 
It is your choice as to what to use to show graphs..
 
XXX = (AdvIssues() / DecIssues()) / (AdvVolume() / DecVolume());Plot(XXX,"Trin_A",colorRed,styleline);plot(ma(xxx,5),"MA5", colorblue,styleline);
plot(ma(xxx,10),"MA10",coloryellow,styleline);
Plot(ma(xxx,15),"MA15",colorwhite,styleline);
 
OR this:
 
Maxgraph=5;//number should be 1 more than graph statements
 
XXX = (AdvIssues() / DecIssues()) / (AdvVolume() / DecVolume());
graph0=xxx;
graph1=ma(xxx,5);
graph2=ma(xxx,10);
graph3=ma(xxx,15);
 
graph0style=graph1style=graph2style=graph3style=styleline;
 
graph0color=colorred;
graph1color=colorblue;
graph2color=colorwhite;
graph3color=coloryellow;
 
Title=Name();
 
So....I quess you can decide which you would like to use...Plot() or Graph().
 
Anthony
 
-------Original Message-------
 

From: amibroker@xxxxxxxxxxxxxxx
Date: Tuesday, March 18, 2003 10:53:47 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Help
 Hi,I am trying to Plot a moving average of the trin index.I would like to create this indicator to use on an index suchas the S+P 500. I have been trying it like thisXXX = (AdvIssues() / DecIssues()) / (AdvVolume() / DecVolume());Plot(XXX,"Trin_A",colorRed);This will plot the trin just fine but I now want a 5-day moving avgof this.Graph0= MA( XXX, 5 );Graph1= MA( XXX, 10 );This does not work.What is the difference between a plot and a graph? Which do I use andhow can I plot a 5-day, 10-day or even a 55-day moving avg of the XXX above on the same plot and then make a Buy Sell scan using crossovers of this data.Thanks a Lot!!ErnieSend BUG REPORTS to bugs@xxxxxxxxxxxxxSend 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 the Yahoo! Terms of Service. 
 







____________________________________________________  IncrediMail - Email has finally evolved - Click Here






Yahoo! Groups Sponsor


  ADVERTISEMENT









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 the Yahoo! Terms of Service.

Attachment: Description: ""