Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Current day Volume ?

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

    Current day Volume ?

    Hi

    i try to call the current day volume like for example the current day low

    => CurrentDayOHL().CurrentLow[0]

    but for the volume...

    Can you help ?

    Thx

    #2
    Hello,

    You can use the VOL indicator to access the volume for any specified bar. You can find more information about the VOL indicator method at the link below:

    http://www.ninjatrader.com/support/h...tml?volume.htm

    I'm thinking this may not be exactly what you are looking for, though. Can you please clarify exactly what data you are trying to access? Are you looking for cumulative volume for the entire day, or the highest/lowest volumes of the day, or something else, perhaps?
    Dave I.NinjaTrader Product Management

    Comment


      #3
      Hi Dave

      thx for the reply.

      i try to call the entire cumulative volume of the current day. For example at 3pm i try to call the current entire day volume.

      If a use VOL()[0], that call the entire cumulative volume of yesterday.

      If you can help...

      Comment


        #4
        Hello,

        There is not a cumulative daily volume indicator that comes pre-loaded with NinjaTrader, but you can access this data by adding a secondary data series with a one-day (or 1440 minute) interval in your code, then checking the VOL indicator on that secondary series. In this case, VOL(BarsArray[1])[0] would reference the current day's cumulative volume.

        Please let me know if I can assist further.
        Dave I.NinjaTrader Product Management

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by trilliantrader, Today, 03:01 PM
        0 responses
        2 views
        0 likes
        Last Post trilliantrader  
        Started by pechtri, 06-22-2023, 02:31 AM
        9 responses
        122 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by frankthearm, 04-18-2024, 09:08 AM
        16 responses
        67 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Started by habeebft, Today, 01:18 PM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by benmarkal, Today, 12:52 PM
        2 responses
        19 views
        0 likes
        Last Post benmarkal  
        Working...
        X