Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indexing Volumetric TotalBuying/TotalSelling Volume

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Indexing Volumetric TotalBuying/TotalSelling Volume

    Hi All,

    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

    #2
    Hello jeh007258,

    Thank you for your note.

    Can you give a larger code example showing the instruments being added and the logic you're using to access the volumetric bar information? Are you adding volumetric series and accessing that?

    Thanks in advance; I look forward to assisting you further.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    56 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    132 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    73 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    45 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X