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 dmking, 11-12-2019, 12:31 PM
              4 responses
              4,139 views
              0 likes
              Last Post jasonw
              by jasonw
               
              Started by roblogic, Today, 04:31 PM
              0 responses
              3 views
              0 likes
              Last Post roblogic  
              Started by morrnel, 05-12-2024, 06:07 PM
              4 responses
              52 views
              0 likes
              Last Post NinjaTrader_Manfred  
              Started by xepher101, 05-10-2024, 12:19 PM
              6 responses
              69 views
              0 likes
              Last Post xepher101  
              Started by gbourque, Today, 04:11 PM
              0 responses
              1 view
              0 likes
              Last Post gbourque  
              Working...
              X