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 alifarahani, Today, 09:40 AM
              2 responses
              12 views
              0 likes
              Last Post alifarahani  
              Started by junkone, Today, 11:37 AM
              3 responses
              15 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by pickmyonlineclass, Today, 12:23 PM
              0 responses
              1 view
              0 likes
              Last Post pickmyonlineclass  
              Started by frankthearm, Yesterday, 09:08 AM
              12 responses
              44 views
              0 likes
              Last Post NinjaTrader_Clayton  
              Started by quantismo, 04-17-2024, 05:13 PM
              5 responses
              35 views
              0 likes
              Last Post NinjaTrader_Gaby  
              Working...
              X