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 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
    63 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    63 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