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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    90 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    137 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    120 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    71 views
    0 likes
    Last Post PaulMohn  
    Working...
    X