Sorry, I forgot to say what it is I'm trying to do.
I would like to be able to display on the same pane, a number of
indicators that might show divergences, by showing the following ratios:
- the SP-500 and the Russel 2000
- the SP-100 and the SP-600
- the Russel 1000 and the Russel 2000
I have the following code, but it overlays the plots on top of one
another. Using separate panes would mean that I would need to use four
separate AFLs - not a problem, but not so clean as having everything
together:
SPX = Foreign("SP-500", "C");
RUT_SPX = Foreign("RUT-X", "C")/Foreign("SP-500","C");
OEX_SML = Foreign("OEX", "C")/Foreign("SML--X","C");
RUI_RUT = Foreign("RUI-X", "C")/Foreign("RUT-X","C");
Plot( SPX, "SPX", colorWhite );
Plot( RUT_SPX, "RUT-SPX", colorBrightGreen, styleLine | styleOwnScale );
Plot( OEX_SML, "OEX-SML", colorOrange, styleLine | styleOwnScale );
Plot( RUI_RUT, "RUI-RUT", colorLightBlue, styleLine | styleOwnScale );