Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

new compiled indicator can't be called?

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

    new compiled indicator can't be called?

    Hi,

    I developed a new indicator for use within a strategy of mine. It is simply a modification of an older indicator. When I "call" the new indicator in my strategy I get a "The name (indicator name) does not exist in the current context" error. The new indicator compiles just fine, why can I not use it within my strategy??? This is very frustrating.

    here is how I'm calling the "new" indicator in my strategy (throws an error):

    if(Close[0] >= FiboBoll2(1.618, 1, 2.618, 1.27, 4.24, 0.5, 1, 8).Upper2[1]){do something}

    and the "old" (works fine):

    if(Close[0] >= FiboBoll(1.618, 2.618, 4.24, 1, 8).Upper2[1]){do something}

    thanks in advance.

    #2
    Hello Burga1,

    Where are you calling the indicator from? It should be in the strategies OnBarUpdate() method.

    It may help to use the intellisense command this. and then see if you can browse to your indicator.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Hello and thank you.

      Yes it is within the strategy's OnBarUpdate() method. I simply want to replace the old instances of the old indicator and replace with the "new" one, what's the big deal?

      I don't understand how to use the Intellisense "this" command...

      Comment


        #4
        OK I think I got it now. That "this." command worked to somehow "find" my new indicator so I could use it after I figured out how the command worked, thanks aain...

        Comment


          #5
          Thanks for the update, burga1. Glad to hear you got it worked out.
          Ryan M.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by sjsj2732, 03-23-2026, 04:31 AM
          0 responses
          42 views
          0 likes
          Last Post sjsj2732  
          Started by NullPointStrategies, 03-13-2026, 05:17 AM
          0 responses
          294 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          290 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          135 views
          1 like
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          98 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Working...
          X