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

SplitVolume Indicator

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

    SplitVolume Indicator

    On line 65 you have:

    double tradeVol = previousVol == 0 ? Volume[0] : Volume[0] - previousVol;

    I believe that this line can be simplified to:

    double tradeVol = Volume[0] - previousVol;

    but I'm guessing that you have a good reason why you've done it the way that you have - (or I've made a mistake and you can't simplify it like that).

    #2
    imported post

    Thanks Guy,

    If I am not mistaken, I believe this to initiliaze the value properly in the event that the indicator has not see a volume value before.

    Ray
    RayNinjaTrader Customer Service

    Comment


      #3
      imported post

      double tradeVol = previousVol == 0 ? Volume[0] : Volume[0] - previousVol;

      Expanded out:

      Code:
      double tradeVol;
      
      if(previousVol == 0) {
      
       tradeVol = Volume[0];
      
      } else {
      
       tradeVol = Volume[0] - previousVol;
      
      }


      which implies that if previousVol was 0 then the tradeVol = Volume[0] - previousVol statement would result in the first assignment anyway.

      Comment


        #4
        imported post

        The Split Vol indicator is a nice little tool. However, I notice that after opening the Indicator dialog window and pressing either OK or APPLY and when the chart screen resets, all the other price bars and indicators will flash back on as before, but all the volume bars have disappeared, and they begin to appear only from the time after pressing these buttons.

        This means that hours of generated volume bar data is lost any time you wish to add or change any of the indicators on your chart window. Bummer...:X

        Antraman



        8-0

        Comment


          #5
          imported post

          Correct, the indicator is designed to work with real-time data only not historical.
          RayNinjaTrader Customer Service

          Comment


            #6
            imported post

            Understood, but even in real time charting, is it supposed to blank out all the bars in the middle of a session if you simply open the indicator dialogue and press OK or APPLY?

            It seems to me the chart refreshes and everything else stays but the vol bars start over anew...if thats the way it is supposed to be, so be it. I just thought it may have been an glitch.

            cheers,



            0

            Comment


              #7
              imported post

              That is the way it suppose to be. When you hit apply you are resetting all indicators. There is no way to get the data required historically to build this indicator.
              RayNinjaTrader Customer Service

              Comment


                #8
                imported post

                How do you access this indicator ? Is it in the idicator list ?

                Thanks....

                Comment


                  #9
                  imported post

                  http://ninjatrader.mywowbb.com/forum14/873.html
                  RayNinjaTrader Customer Service

                  Comment


                    #10
                    imported post

                    Not meaning to sound like a pain, but the VOL and VOLColored indicator bars both remain showing after applying any changes within the Indicator Properties dialog...I don't understand why the Split Volume bars have to disappear...

                    cheers,

                    Antraman


                    0

                    Comment


                      #11
                      imported post

                      Split volume is calculated in realtime since it requires the current bid/ask price as part of its calculations. Current bid/ask price is not available as historical data from any data provider I know of therefore historical bars can't be calculated.
                      RayNinjaTrader Customer Service

                      Comment


                        #12
                        imported post

                        This could be partially resolved by writing this information to disk (I believe). Problem is that if you switch to a new instrument then there'd be no historic info.

                        Comment


                          #13
                          imported post

                          But how come VOL and VolColoured are visible as historical data?



                          0

                          Comment

                          Latest Posts

                          Collapse

                          Topics Statistics Last Post
                          Started by GLFX005, Today, 03:23 AM
                          0 responses
                          1 view
                          0 likes
                          Last Post GLFX005
                          by GLFX005
                           
                          Started by XXtrader, Yesterday, 11:30 PM
                          2 responses
                          11 views
                          0 likes
                          Last Post XXtrader  
                          Started by Waxavi, Today, 02:10 AM
                          0 responses
                          6 views
                          0 likes
                          Last Post Waxavi
                          by Waxavi
                           
                          Started by TradeForge, Today, 02:09 AM
                          0 responses
                          12 views
                          0 likes
                          Last Post TradeForge  
                          Started by Waxavi, Today, 02:00 AM
                          0 responses
                          2 views
                          0 likes
                          Last Post Waxavi
                          by Waxavi
                           
                          Working...
                          X