looping overlaying graph
Posted: Mon Apr 16, 2018 5:12 pm
Hi
I'm new to RATS so my question is probably pretty basic. Nonetheless I would be really grateful of any help.
I want to do 4 graphs of overlapping stock index and return.
In the following code I get 16 graphs. I know I can pick out the right ones, but learning how to do the right coding would be really great.
dofor i = USA China Denmark Romania
dofor y = RETURNUSA RETURNchi RETURNden RETURNrom
GRAPH(STYLE=LINE,OVERLAY=LINE,HEADER="Stock index and return",KEY=BELOW) 2
# y
# i
end dofor i
end dofor y
Hope you can help
I'm new to RATS so my question is probably pretty basic. Nonetheless I would be really grateful of any help.
I want to do 4 graphs of overlapping stock index and return.
In the following code I get 16 graphs. I know I can pick out the right ones, but learning how to do the right coding would be really great.
dofor i = USA China Denmark Romania
dofor y = RETURNUSA RETURNchi RETURNden RETURNrom
GRAPH(STYLE=LINE,OVERLAY=LINE,HEADER="Stock index and return",KEY=BELOW) 2
# y
# i
end dofor i
end dofor y
Hope you can help