• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Problems with UserDefinedMethods

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

    Problems with UserDefinedMethods

    Hi!

    We have created a new Indicator with the "UserDefinedMethod" functionality, but after all, when I try referer to it from a Strategy, I get the next error message: "The name xxxxxx does not exist in the current context"

    I attach you both syntax files.

    Do you know what I am doing wrong?

    Thank you very much in advance from Spain!!
    Attached Files

    #2
    ccruells, welcome to our forums - there's two user defined method classes, one for indicators and one for strategies. Please try moving the needed methods for the strategy to the strategy based user defined methods file and retry accessing them then in your strategy script.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      It works!!

      I made a mistake changing roles of the UserDefinedMethod files.

      Thank you very very much!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by chrismcdermut, Yesterday, 01:46 PM
      3 responses
      19 views
      0 likes
      Last Post MojoJojo  
      Started by Bricolico, Yesterday, 09:28 PM
      0 responses
      5 views
      0 likes
      Last Post Bricolico  
      Started by Tradwell385, Yesterday, 08:51 PM
      0 responses
      7 views
      0 likes
      Last Post Tradwell385  
      Started by dvcpro4, Yesterday, 07:08 PM
      0 responses
      21 views
      0 likes
      Last Post dvcpro4
      by dvcpro4
       
      Started by pennywise, Yesterday, 06:40 PM
      0 responses
      8 views
      0 likes
      Last Post pennywise  
      Working...
      X