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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    80 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    40 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    64 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    66 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X