• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Total Volume current and prior day

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

    Total Volume current and prior day

    I have a 30 minute chart.
    I want display the current volume for the current day and total volume for prior day.
    Example:

    Today Total VOL: 150152
    Yesterday Total VOL: 156532

    Any Help?

    #2
    Hello nekroart,

    Thank you for your post.

    I've created a simple example indicator that does just this - you can add a secondary daily data series and use the VOL indicator to get the volume totals for the prior and current bar. You can import the attached file and check it out in the NinjaScript editor - rather than plotting a value, this just draws the text on each bar update.

    Please let us know if we may be of further assistance to you.
    Attached Files
    Kate W.NinjaTrader Customer Service

    Comment


      #3
      Hello Kate
      is this zip file for NT7?
      I try to install it but get error that is for previous version
      Do you know any code like this for NT8?
      Thank you
      Mike

      Comment


        #4
        Hello Mike.A,

        Thank you for your reply.

        Yes, that code is for NinjaTrader 7, as this is forum is for development of NinjaTrader 7 scripts. However, since it's a very simple script, I threw together a quick conversion to NinjaTrader 8 that I've attached.

        Please let us know if we may be of further assistance to you.
        Attached Files
        Kate W.NinjaTrader Customer Service

        Comment


          #5
          Hi Kate
          Thank you for your help and write this indicator
          Sorry just I notice it. please forgive me that I didn't thank you early
          How to add text brushes change to the code?
          Thanks again
          Mike

          Comment


            #6
            Hello Mike.A,

            Thank you for your reply.

            Do you mean you're wanting to add a user defined brush to the NinjaTrader 8 script?

            Here is a link to our help guide that goes over working with brushes and how to set up a user defined brush that you can then use to color the text:

            https://ninjatrader.com/support/help...th_brushes.htm

            Please let us know if we may be of further assistance to you.
            Kate W.NinjaTrader Customer Service

            Comment


              #7
              Thank you
              I installed the script for NT.8 and was really helpful
              But
              Every time I try to open this script form to Ninja Script Editor windows I get this red color error saying

              Unhanded exception:Index was out of rang. Must be non-negative and less than the size of the collection. Parameter name index

              When I open any other script from Ninja Script Editor window, I don't get this error??


              Here is my version from the indicator


              CurrentAnd PriorDayVolumeNT8.zip


              Thank you Kate

              Mike

              Comment


                #8
                Hello Mike.A,

                I've tested the script you have modified and provided but this appears to be working without issue.

                Below is a link to a video of the test.
                https://drive.google.com/file/d/1bwh...w?usp=drivesdk

                Are you getting multiple days of historical data on the chart?
                Are you receiving real-time data on the chart?

                If you take the same steps in the video are you getting different behavior than what is shown in the video?
                Chelsea B.NinjaTrader Customer Service

                Comment


                  #9
                  Hi Chelsea
                  Thank you for your video
                  I still get the error message, it may be from different indicator
                  Do you think I need to reinstall NT.8?
                  I running Ninza Renko and have multiple chart with 5 day historical data

                  Thank you again
                  Mike

                  Comment


                    #10
                    Hello Mike,

                    When is this error appearing?
                    • When opening the Indicators window?
                    • When adding an instance of the CurrentAndPriorDayVolumeNT8?
                    • When clicking OK?

                    Does this error occur when adding the SMA indicator?
                    Chelsea B.NinjaTrader Customer Service

                    Comment


                      #11
                      Hi Chelsea
                      Still have the problem which I don't know coming from where
                      Please find the video here
                      https://www.screencast.com/t/cn75RgOiSC


                      Do I need to reinstall NT. 8?


                      Thank you for help
                      Mike

                      Comment


                        #12
                        Hello Mike,

                        So this error is happening when opening a script in the NinjaScript Editor?
                        Hmm, that would suggest it may not be a script.

                        Yes, re-download and try running the repair from the NinjaTrader installer. (Or update to the latest version if you are not on 8.0.21.1)
                        https://ninjatrader.com/PlatformDirect

                        If this does not resolve the behavior please send an email to platformsupport [at] ninjatrader [dot] com so I may further investigate.
                        In the email please include a link to this forum thread.
                        Chelsea B.NinjaTrader Customer Service

                        Comment


                          #13
                          Originally posted by NinjaTrader_Kate View Post
                          Hello nekroart,

                          Thank you for your post.

                          I've created a simple example indicator that does just this - you can add a secondary daily data series and use the VOL indicator to get the volume totals for the prior and current bar. You can import the attached file and check it out in the NinjaScript editor - rather than plotting a value, this just draws the text on each bar update.

                          Please let us know if we may be of further assistance to you.
                          Thanks for the file!

                          https://buzzon.khaleejtimes.com/author/selamudder
                          https://catchthemes.com/support-forum/users/clickertest
                          Last edited by KarenGates; 05-20-2020, 12:27 AM.

                          Comment

                          Latest Posts

                          Collapse

                          Topics Statistics Last Post
                          Started by SamuelO, 05-22-2020, 11:58 AM
                          7 responses
                          59 views
                          0 likes
                          Last Post guidoisot  
                          Started by Cimxrice, Today, 01:25 AM
                          0 responses
                          1 view
                          0 likes
                          Last Post Cimxrice  
                          Started by Z-Starter, Today, 01:21 AM
                          0 responses
                          1 view
                          0 likes
                          Last Post Z-Starter  
                          Started by atman, Today, 12:37 AM
                          0 responses
                          3 views
                          0 likes
                          Last Post atman
                          by atman
                           
                          Started by random9570, Yesterday, 09:01 PM
                          1 response
                          13 views
                          0 likes
                          Last Post Fulcanelli  
                          Working...
                          X