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 NullPointStrategies, Today, 05:17 AM
        0 responses
        52 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        130 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        70 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        44 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        49 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X