• 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

Recommend: Put myMethods in AddOns

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

    Recommend: Put myMethods in AddOns

    Hi, like you have sample strategies, suggest you put SampeMyMethods in the AddOns with comments and link back to the forum.

    Thanks!

    #2
    Hello stevenev,

    Are you asking to have an example of an Addon using a custom method created for you?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi Chelsea, just suggesting to add that to the NT8 base code, as a starting block for people who might find it useful, same as sample strategies already included. This is not a bug, just something to help future users with. Just referring to skeletal code to be added to the base, nothing specific in mind.

      Comment


        #4
        Hello stevenev,

        Just to confirm, you would like an example of how to write an indicator and add a custom method to this indicator, is this correct?

        This would not involve static methods, or partial classes correct?

        This is not in reference to another post you have created, which I have linked below, is this correct?
        http://www.ninjatrader.com/support/f...ad.php?t=81647


        Custom methods are not part of NinjaScript and are general C#. These would not be in the help guide and would not have any examples added with NinjaTrader by default as this would be something learned from a book on C# and is not specific to making NinjaScripts.

        However, I have created an example of adding a custom method to an indicator for you and attached to this post.
        Attached Files
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          My goal is to find out how to write common code that can be used in different strategies (in the AddOns). As I indicated in the other post, the sample code in 'code breaking changes' does not work out of the box (not for us newbies). So suggested to maybe expand that part of docs and/or if appropriate add the sample code to the release.

          The zip file you provided is GREAT. That would get me going. Thank you.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Gregorian, Today, 02:05 PM
          2 responses
          11 views
          0 likes
          Last Post Gregorian  
          Started by smf2005, Today, 01:49 PM
          6 responses
          17 views
          0 likes
          Last Post smf2005
          by smf2005
           
          Started by punkiy2111, Today, 02:00 PM
          2 responses
          5 views
          0 likes
          Last Post punkiy2111  
          Started by hunter7, Today, 12:44 PM
          3 responses
          17 views
          0 likes
          Last Post NinjaTrader_PatrickG  
          Started by aaadetos, Today, 12:29 PM
          2 responses
          6 views
          0 likes
          Last Post aaadetos  
          Working...
          X