I have the following code which gives me error in the output format:
AddDataSeries ("M6E 06-17", Data.BarsPeriodType.Volume, 160, Data.MarketDataType.Last);
AddDataSeries ("M6E 06-17", Data.BarsPeriodType.Day, 1, Data.MarketDataType.Last);
Double volumeClose = Closes [0] [0];
Double dayClose = Closes [1] [0];
Print ("first bar of 160 volume:" + volumeClose);
Print ("first bar of day:" + dayClose);
To show it in window I get the following:
Panic: Log text '{0}' {1} ': Error calling' {2} 'method: {3}' can not be formatted
Debugging the code I have realized that it is for this line in particular:
Double dayClose = Closes [1] [0]
I understand that in this position must be the value of the first candle of the dates of the day.
Can you tell me how to get the value I'm looking for?
Thank you.
Comment