I'm trying to develop an indicator that use volume of the current day but when i use VOL(indicator), GetVolume function or Volumes(series) with a daily series i get the volume of prior day but not current day.
Can anyone help me ?
Example:
AddDataSeries(Data.BarsPeriodType.Day, 1);
....
Print("VOL - Current: " + VOL(BarsArray[0])[CurrentBars[0]]);
Print("VOL - Daily: " + VOL(BarsArray[1])[CurrentBars[1]]);
Print("GET - Current: " + BarsArray[0].GetVolume(CurrentBars[0]));
Print("GET - Daily: " + BarsArray[1].GetVolume(CurrentBars[1]));
Print("VOLUMES - Current: " + Volumes[0][CurrentBars[0]]);
Print("VOLUMES - Daily: " + Volumes[1][CurrentBars[1]]);

Comment