I apologize as I'm doing fine indexing the price-related volumetric properties (Ex: barstype.Volumes[CurrentBar].GetBidVolumeForPrice[Highs[14][0] functions fine), but when it comes to accessing "barsType.Volumes[CurrentBar].TotalBuyingVolume" in a multi-timeframe script I'm running into a barrier properly indexing. Can you please point me in the right direction?
Using Calculate.OnBarClose, what I'm looking to accomplish in a strategy script is to compare an indexed instrument's last bar [0] to it's preceding bar [1] to see if the TotalBuyingVolume of [0] is greater than the TotalSellingVolume of [1].
Example using the 2nd instrument in index:
barsType.Volumes[CurrentBar].TotalBuyingVolume(Closes[2][0]) > barsType.Volumes[CurrentBar].TotalSellingVolume(Closes[2][1])
However, this throws the "cannot be used like a method" error, and unless I'm missing it I couldn't pass through a (BarsArray[2][0]) anywhere, either. I've tried multiple different combinations, swapped in CurrentBars, read a bunch of threads, and am unfortunately still missing something.
Thoughts on how to accomplish this? Your input is much appreciated.
Thanks
Comment