RATS 10.1
RATS 10.1

Examples /

GRAPHHIGHLOW.RPF

Home Page

← Previous Next →

GRAPHHIGHLOW.RPF uses GRAPH with STYLE=VERTICAL to do a high-low-close graph.
 

It uses three DATA instructions, one to get the maximum, one the minimum and one the final value during the year. Since each DATA instruction will reset SPDJI, the data are copied to a new series name after each. The “close” series should be listed on the first supplementary card so it gets tagged with a special symbol. For this graph, we look at results from 1982 through 2006.

Full Program
 

open data haversample.rat
calendar(a) 1982
all 2006:1
data(format=rats,compact=max) / spdji
set djmax = spdji
data(format=rats,compact=min) / spdji
set djmin = spdji
data(format=rats,compact=last) / spdji
set djlast = spdji
graph(style=vertical,header="DJIA: 1982-2006") 3
# djlast
# djmin
# djmax
 

Graph


Copyright © 2025 Thomas A. Doan