Hi guys,
I have two questions about graphN, plot or plotforeign.
1. do you know what's different between graphN, plot or plotforeign?
I found I have to put some addtional command for graphN if I want to get the
same result of plot or plotforeign. There are no any other differences except
that.
2. When I put graph0 and plotforeign in the same formule, I found graph0
disappeared automaticaly. When I comment out plotforeign, graph0 come back. Why
? the below is my actual code:
AddToComposite(Close, "~compMyIndex","X");
AddToComposite(1, "~compMyIndex","I");
Buy = 0;
Graph0 = Foreign("~compMyIndex", "Close") / Foreign("~compMyIndex", "I");
PlotForeign("100001", "Market Index", colorBlue, styleLine|styleOwnScale);
thanks.
Kevin