Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Order Flow Volumetric Bars

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

    Order Flow Volumetric Bars

    Hi,
    I am trying to implement the below code:



    but when i print the bar type I get NinjaTrader.NinjaScript.BarsTypes.MinuteBarsType although I am using volumetric bars,
    What should i do ?

    Thanks

    #2
    Hello yaniv,

    Thanks for your post.

    What is the primary series on the chart that you are adding the indicator to?

    Is it a standard Minute chart? Or, is it a Volumetric chart?

    Note that a Volumetric chart could be a Volumetric Minute chart.

    The sample code in the help guide page you links demonstrates how to access OrderFlowVolumetricBars() values in a NinjaScript.

    Note that the sample code assumes that the chart you are adding the indicator to is a Volumetric chart.

    If you are using a standard Minute chart, you would need to add a Volumetric series to a script, you could call AddVolumetric() in State.Configure and then for example use the code below. This is noted in the sample code.

    NinjaTrader.NinjaScript.BarsTypes.VolumetricBarsTy pe barsType = BarsArray[1].BarsType as
    NinjaTrader.NinjaScript.BarsTypes.VolumetricBarsTy pe;

    AddVolumetric(): https://ninjatrader.com/support/help...volumetric.htm
    OrderFlowVolumetricBars(): https://ninjatrader.com/support/help...tric_bars2.htm
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    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
    69 views
    0 likes
    Last Post PaulMohn  
    Working...
    X