Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Idea for a new indicator

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

    #31
    Hi Learning1. I've been playing around with this all morning, but for some reason trying to change CumulativeCurrentVolume(Input).VolType twice doesn't seem to work. It does acknowledge that it has changed, but it only wants to call the CumulativeCurrentVolume indicator once with the first setting. This causes your ratio to be 1 because essentially you are dividing the bid by itself.

    I couldn't figure out how to "fix" it in calling the indicators so I just modified CumulativeCurrentVolume to work around the issue. Install this version of CumulativeCurrentVolume and use this snippet instead.

    Code:
    bidvolume = CumulativeCurrentVolume(1)[0];
    askvolume = CumulativeCurrentVolume(2)[0];
    Pressure.Set(bidvolume/askvolume);
    0=last
    1=bid
    2=ask
    Attached Files
    Josh P.NinjaTrader Customer Service

    Comment


      #32
      Import Error,

      For some reason I get an import error when I try to replace the exisiting indicator. The error says "there are NinaScript files in the imported NinjaScript archive file that have programming errors. These errors must be resolved before you can import the NinjaScript Archive File."

      I've checked to ensure I don't have compiling errors in any other indicators or strategies and things seem OK. Odd ... Does it compile for you? Perhaps I should I open with a text editor and edit the current indicator manually?

      By the way ... Thanks again.

      Learning1

      Comment


        #33
        I am theorizing that the problem is one of your indicators has references to the old style of calling CumulativeCurrentVolume. Try deleting all of those references before importing the new CumulativeCurrentVolume.
        Josh P.NinjaTrader Customer Service

        Comment


          #34
          Probably True

          Comment


            #35
            That Worked - Good guess

            Comment


              #36
              any progress on the the CVD indicator?

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by CaptainJack, 05-29-2026, 05:09 AM
              0 responses
              310 views
              0 likes
              Last Post CaptainJack  
              Started by CaptainJack, 05-29-2026, 12:02 AM
              0 responses
              200 views
              0 likes
              Last Post CaptainJack  
              Started by charlesugo_1, 05-26-2026, 05:03 PM
              0 responses
              186 views
              1 like
              Last Post charlesugo_1  
              Started by DannyP96, 05-18-2026, 02:38 PM
              1 response
              278 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by CarlTrading, 05-11-2026, 05:56 AM
              0 responses
              229 views
              0 likes
              Last Post CarlTrading  
              Working...
              X