home *** CD-ROM | disk | FTP | other *** search
- APPENDIX A
-
- TAS GRAPH Function
- ---------------------
-
- The new TAS GRAPH functions are:
-
- OPENGRAPH(numgraphs[,start,end])
-
- This function prepares for "numgraph" graph windows to
- be displayed. The dates displayed are from quote 'start'
- to quote number 'end'. For example, to prepare to display
- 3 graphs of the last 50 days, you would say:
- OPENGRAPH(3,-50,0);
- The 'start' and 'end' values are optional, so you don't have
- to specify them. If they are not specified, the default is
- to display from the first to the last quote.
-
- SIZEGRAPH(s1,s2,..sN)
-
- where 's1'..'sN' are the number of 'shares' of the display
- area each graph prepared by the OPENGRAPH function will get
- when shown. For example, as above, with 3 graphs to be
- displayed, if you want the first graph to have 2 times as
- much space as the second or third, you would say
- SIZEGRAPH(2,1,1);
- Note that there must be as many parameters to the SIZEGRAPH
- function as the number in the first parameter of the
- OPENGRAPH function ('numgraphs' above).
-
- GRAPH(a1,l1,a2,l2...,aN,lN)
- where 'a1' is the first array to be graphed, 'l1' is the
- legend (name to be displayed with) the graph of 'a1',
- 'a2' is the second array and 'l2' is the second legend.
- Each of the arrays and legends specified in the GRAPH
- command are graphed in the same window, one on top of the
- other. For example, to graph +DI, -DI and ADX on the same
- graph, you would say
- GRAPH(PDI(14),'+DI',MDI(14),'-DI',ADX(14),'ADX 14');
- Simple as that.
-
- There is a special 'array' named '1' which represents the
- Price Bar Chart normally seen in charts. So, to plot the
- price bar chart, you could say
- GRAPH(1);
-
- DRAWLINE(color,x1,y1,x2,y2,start,end)
- This function will draw a line from the point (x1,y1) to
- (x2,y2) starting at point 'start' and ending at point 'end'.
- The 'color' parameter can be in the range from 0 (black) to
- 15 (white).
-
- CLOSEGRAPH()
- The CLOSEGRAPH() function waits for you to hit any key. If
- you hit an ESC or CTRL-C the graphing (and the script)
- stop completely. Any other key will close the graph and
- go back to the regular TAS output display.
-
- Here is an example of a graph that shows how to draw a price graph
- with Bollinger Bands around it in the first (top) graph and the
- MACD indicator and its trigger in the bottom graph.
-
- opengraph(2);
- graph(bbandt(20,2),bbandb(20,2),1);
- graph(macd(),'Macd',macdtrigger(),'Trigger');
- closegraph();
-