I'm Trying to plot Close prices into indicator from diffirent instruments
Want to plot two lines in indicator.
I added two Plots and one add data series.
F.e. CL 11-19 & CL 12-19
I'm using thic code to Plot them:
if (CurrentBars[0] <= BarsRequiredToPlot || CurrentBars[1] <= BarsRequiredToPlot)
return;
if (BarsInProgress == 0){
Values[0][0] = Closes[0][0];
}
if (BarsInProgress == 1){
Values[1][0] = Closes[1][0];
}
But it only works in real-time data. How can I see it on History? It shows fixed difference for me between that instruments. But if I showing only one of them - it shows me correct prices. The trouble is that when I'm trying to display both of them - it shows me incorrect history data. Thanks.
Comment