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

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:



            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.


                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



                      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)


                        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


                            #14
                            Hello Chelsea
                            Thank you for your answer
                            I try to fix the problem and enhance the indicator and I did it, I don't how but I was lucky and love to learn, it is fun
                            Now I am stuck with some add option in this indicator and don't know how to do it.
                            What I try to do is:
                            Add and script :
                            Margin Y and Margin X
                            to control Text box into a very specific spot on the chart not only limited by TopRight / BottomRight / TopLeft / BottomLeft.
                            would you please let me know how to add that
                            Please find here the enhanced indicator.
                            Thank you
                            Mike

                            CurrentAndYestVolumeDailyChart.zip
                            CurrentAndYestVolumeDailyChart.zip


                            Comment


                              #15
                              Hi Chelsea
                              Also forget to mention that is all the time I found difference in the VOL Quantity between this indicator text and Market Analyzer (Text about 6% less then Market Analyzer)
                              Do I need to adjust any set up???
                              Thank you
                              Mike

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by techgetgame, Today, 11:42 PM
                              0 responses
                              7 views
                              0 likes
                              Last Post techgetgame  
                              Started by sephichapdson, Today, 11:36 PM
                              0 responses
                              1 view
                              0 likes
                              Last Post sephichapdson  
                              Started by bortz, 11-06-2023, 08:04 AM
                              47 responses
                              1,612 views
                              0 likes
                              Last Post aligator  
                              Started by jaybedreamin, Today, 05:56 PM
                              0 responses
                              9 views
                              0 likes
                              Last Post jaybedreamin  
                              Started by DJ888, 04-16-2024, 06:09 PM
                              6 responses
                              19 views
                              0 likes
                              Last Post DJ888
                              by DJ888
                               
                              Working...
                              X