Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Volume multiplier

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

    Volume multiplier

    Hi Ninjatraders,

    Would this be programmatically correct in NT8:

    Volumes[1][0] < Volumes[1][1] * 2

    I am trying to say that Currently developing(not closed yet) bar volume on [1] dataseries is lower than 2x volume of previous bar of the same dataseries.
    Thank you

    #2
    Hello Paco0,

    Thanks for your post.

    Yes. You can always use print statements to verify the values.

    Comment


      #3
      Hi Paul,

      Thank you for such a quick response.

      One follow-up question please:
      Say I have 5 different dataseries in my code. It should not matter which dataseries is being processed for above to be calculated, since I specify index [1] for [1] dataseries.
      Or should I be setting BarsInProgress == 1 in this case?

      My understanding is that even if OnBarUpdate executes 5 times for each one of dataseries, values should always be the same.
      Would that be correct?

      Thanks a lot,

      Comment


        #4
        Hello Paco0,

        Thanks for your reply.

        Yes, that is correct, you are specifically pulling the volume data from the 1st added data series. You can verify this through print statements.

        For further clarity on what is being accessed in the different calculate modes, please see the help guide section, "How Bar Data is Referenced" https://ninjatrader.com/support/help...nstruments.htm

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        46 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        22 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        33 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        50 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        42 views
        0 likes
        Last Post CarlTrading  
        Working...
        X