hey bullstock.... that can be done by several means... you should be able is understand the code below which is not exactly like your chart but should give an idea.... version 9 has the security so just change the index path to your choice...
you can apply to multiple securites and then just copy and overlay the seperate plots into any same window to compare individual securities..... in that manner you can compare 4 or 5 but the chart quickly becomes cluttered with more than that.... once overlayed all indivdual plots can be further adjusted.... thats handy comparing some of the ultra bear funds ....
workin on a dll for something similar to this.... h
---------------------------------------------------------------------
firstdate:=Input("first date mmddyyyy",111990,12312100,1032006);
amount:=Input("US dollar amount", 1,1000000,1000);
shares:=Input("number of shares",1,1000000,100);
choice:=Input(" 1 dollars or 2 shares",1,2,2);
etf:=Input("0 none, 1 dia, 2 spy, 3 qqq",0,3,0);
etf2:=Input("0 none, 1 dia, 2 spy, 3 qqq",0,3,0);
a:=amount/C;
aa:=ValueWhen(1, firstDate=Month()*1000000 + DayOfMonth()*10000+ Year(),a);
aaaa:=(aa*C)-amount;
b:=shares*C;
bb:=ValueWhen(1, firstDate=Month()*1000000 + DayOfMonth()*10000+ Year(),b);
bbbb:=b-bb;
plot:=If(choice=1,aaaa,If(choice=2,bbbb,aaaa));
0;
plot;
{dia etf section, change the security to suit}
a:=amount/Security("C:\MetaStock Data\etf\dia",C ) ;
aa:=ValueWhen(1, firstDate=Month()*1000000 + DayOfMonth()*10000+ Year(),a);
aaaa:=(aa*Security("C:\MetaStock Data\etf\dia",C ))-amount;
b:=shares*Security("C:\MetaStock Data\etf\dia",C );
bb:=ValueWhen(1, firstDate=Month()*1000000 + DayOfMonth()*10000+ Year(),b);
bbbb:=b-bb;
dia:=If(choice=1,aaaa,If(choice=2,bbbb,aaaa));
{spy etf section, change the security to suit}
a:=amount/Security("C:\MetaStock Data\etf\spy",C ) ;
aa:=ValueWhen(1, firstDate=Month()*1000000 + DayOfMonth()*10000+ Year(),a);
aaaa:=(aa*Security("C:\MetaStock Data\etf\spy",C ))-amount;
b:=shares*Security("C:\MetaStock Data\etf\spy",C );
bb:=ValueWhen(1, firstDate=Month()*1000000 + DayOfMonth()*10000+ Year(),b);
bbbb:=b-bb;
spy:=If(choice=1,aaaa,If(choice=2,bbbb,aaaa));
{qqqq etf section, change the security to suit}
a:=amount/Security("C:\MetaStock Data\etf\qqqq",C ) ;
aa:=ValueWhen(1, firstDate=Month()*1000000 + DayOfMonth()*10000+ Year(),a);
aaaa:=(aa*Security("C:\MetaStock Data\etf\qqqq",C ))-amount;
b:=shares*Security("C:\MetaStock Data\etf\qqqq",C );
bb:=ValueWhen(1, firstDate=Month()*1000000 + DayOfMonth()*10000+ Year(),b);
bbbb:=b-bb;
qqqq:=If(choice=1,aaaa,If(choice=2,bbbb,aaaa));
If(etf=1,dia,If(etf=2,spy,If(etf=3,qqqq,0)));
If(etf2=1,dia,If(etf2=2,spy,If(etf2=3,qqqq,0)));