1) Values[0][0]
2) PlotName[0]
Second way is march more convenient becouse:
1) significant plot name
double distance = Values[0][1] - Values[1][0]; - this is unreadable, sense is hidden, cause logical mistakes.
double distance = QuickLine[1] - SlowLine[0]; - this is absolutely clear for humans.
2) Plots definition order has no effect on indicator code
For example, if I have 10 indicators plots and want to add some more lines (look at screenhot, please) I just add them an change Plots indexes without correcting code.
So, I ask to implement changing color of indicator plots by their names, instead "PlotColors[1][0]".
Thank You.
Comment