Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Idea for a new indicator

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

    #16
    It only works in real-time.
    RayNinjaTrader Customer Service

    Comment


      #17
      Thanks Ray, is there anyway of saving all that data, because everytime I switch timeframes I lose all the data?

      And also does this mean if I need that data I will need multiple charts open just that I can collect that data?
      Last edited by rally; 08-15-2007, 06:51 AM.

      Comment


        #18
        Unfortunately not at this time since we do not have an internal mechanism to store bid/ask data at the tick level.
        RayNinjaTrader Customer Service

        Comment


          #19
          Thanks, when will you be bringing back the CVD indicator?

          This is odd, everytime you remove another indicator, you lose the data

          Comment


            #20
            Its on our list for future consideration.

            Everytime you change the indicators on a chart, all indicators are reset internally, this is why you lose the data. Set up the chart the way you want, add the BuySellVolume indicators, and leave the chart alone after that.
            RayNinjaTrader Customer Service

            Comment


              #21
              Thanks.

              Really appreciate it if you guys can speed up the CVD indicator

              Comment


                #22
                An Initial Attempt at this indicator (Could use a bit of help)

                Thanks for the interesting thread. I was thinking of an indicator along the same lines and UACVAX kindly coded an indicator that sums the level 1 bid or ask or last through the course of a bars formation. The link is here http://www.ninjatrader-support.com/v...ght=cumulative and I have attched the indicator which is Called CumulativeCurrentVolume.

                Yesterday I took a shot at converting this into an indicator that will make a ratio bid/ask and a couple of Moving Averages of this ratio. Unfortunately, I ran into a challenge with my NinjaScript skills and I get a compiling error that I have not been able to figure my way around. If someone wants to take a peek at the attached code, we may have an indicator that partially mimics the Smart Money indicator descibed in one of the previous links.

                The limitation that it would have is that each second it is adding the current bid (Level 1) to a running total for the bar (Same with current ask). It is not taking into account the entire Cumulative Level 2 Depth that is seen in the DOM. The Dom Sums the Bid / Ask Volume, but it seems this number is not currently available in NinjaScript.
                Attached Files

                Comment


                  #23
                  Operator Error Message

                  I Worked on this indicator and made some progress, but I am getting the following error message that I can't seem to get past: " Operator '/' cannot be applied to operands of type 'CumulativeVolume' and 'CumulativeVolume' Indicator\gpPressure.cs 55

                  The two Cumulative volume references in the error come from the following code:

                  Pressure.Set(CumulativeVolume.Bid / CumulativeVolume.Ask);

                  Does anyone have suggestions?


                  Comment


                    #24
                    You are trying to divide an indicator object by another indicator object instead of its values.

                    You need to reference a value at a specific bar within the indicator.

                    Such as :

                    Set(SMA(20)[0] / SMA(40)[0]);
                    RayNinjaTrader Customer Service

                    Comment


                      #25
                      If I reference the value of each object in the current bar,
                      Pressure.Set(CumulativeVolume.Bid[0] / CumulativeVolume.Ask[0]);

                      I get the following error instead:

                      Cannot apply indexing with [] to an expression of type 'CumulativeVolume' Indicator\gpPressure.cs 55

                      Do I need to assign the value of the CumulativeVolume.Bid object into a new dataSeries (Same with Ask), and then Divide the two data series?

                      Comment


                        #26
                        I have not been following this thread intimately so I don't exactly know what CummulativeVolume is.

                        Ultimately, you need to divide two double values.

                        Set(double value / double value);

                        Therefore, if there are values contained in the CummulativeValue object, get those, make sure they are double values and then divide them.

                        There are many ways to do that, you don't need to store values in a DataSeries object unless you have a requirement to retrieve historical values.
                        RayNinjaTrader Customer Service

                        Comment


                          #27
                          CumulativeVolume was a quick custom indicator I made for Learning1 in this thread http://www.ninjatrader-support.com/v...ead.php?t=2864. It just adds up the current volumes of the bid/ask/last of the current bar and resets itself at the start of every new bar.

                          To do the operation you want Learning1 try something like this:
                          Code:
                          CumulativeCurrentVolume(Input).VolType = CumulativeVolume.Bid;
                          double bidvolume = CumulativeCurrentVolume(Input)[0];
                          CumulativeCurrentVolume(Input).VolType = CumulativeVolume.Ask;
                          double askvolume = CumulativeCurrentVolume(Input)[0];
                          Pressure.Set(bidvolume/askvolume);
                          I have not tested this code, but I believe it should work.
                          Last edited by NinjaTrader_JoshP; 08-15-2007, 02:01 PM.
                          Josh P.NinjaTrader Customer Service

                          Comment


                            #28
                            Originally posted by NinjaTrader_Ray View Post
                            Please take a look at some of the BuySellVolume indicators, this may be of value. CVD has not been implemented.
                            Hi Ray,

                            Besides the BuySellVolume and BuySellPressure indicators, what other TT's volume based indicators are there in the current version of NT?

                            Also what is the BuySellPressure indicator known as in TT's X trader, only asking because i've been looking at the Volume indicators in TT.

                            Comment


                              #29
                              I am not familiar with any TT volume indicators. To see all of our available indicators you can press CTRL-I within a chart to open the Indicator dialog window.
                              RayNinjaTrader Customer Service

                              Comment


                                #30
                                Thanks uacvax, for both the original code and this snippet. W

                                hen I use this snippet, the code compiles, but the output is simply a line with all values at 1. It does not seem to be pulling the current values from the CumulativeCurrentVolume Indicator you authored. The Concept was to have a ratio of the Values generated by the CumulativeCurrentVolume(Bid) / CumulativeCurrentVolume(Ask) as a first step. Once this was working I was going to include the math to center it around 0 so that when BidVolume = AskVolume the indicator would be 0. When AskVolume > BidVolume indicator would be positive and when BidVolume > AskVolume, indicator would be negative. Do you have any ideas on why the code snippet would only return 1?

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by argusthome, 03-08-2026, 10:06 AM
                                0 responses
                                113 views
                                0 likes
                                Last Post argusthome  
                                Started by NabilKhattabi, 03-06-2026, 11:18 AM
                                0 responses
                                60 views
                                0 likes
                                Last Post NabilKhattabi  
                                Started by Deep42, 03-06-2026, 12:28 AM
                                0 responses
                                40 views
                                0 likes
                                Last Post Deep42
                                by Deep42
                                 
                                Started by TheRealMorford, 03-05-2026, 06:15 PM
                                0 responses
                                43 views
                                0 likes
                                Last Post TheRealMorford  
                                Started by Mindset, 02-28-2026, 06:16 AM
                                0 responses
                                81 views
                                0 likes
                                Last Post Mindset
                                by Mindset
                                 
                                Working...
                                X