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 WHICKED, Today, 12:45 PM
          2 responses
          18 views
          0 likes
          Last Post WHICKED
          by WHICKED
           
          Started by GussJ, 03-04-2020, 03:11 PM
          15 responses
          3,276 views
          0 likes
          Last Post xiinteractive  
          Started by Tim-c, Today, 02:10 PM
          1 response
          8 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by Taddypole, Today, 02:47 PM
          0 responses
          5 views
          0 likes
          Last Post Taddypole  
          Started by chbruno, 04-24-2024, 04:10 PM
          4 responses
          51 views
          0 likes
          Last Post chbruno
          by chbruno
           
          Working...
          X