• 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 countjoemoney, Today, 01:16 PM
          0 responses
          10 views
          0 likes
          Last Post countjoemoney  
          Started by fx.practic, Today, 12:59 PM
          0 responses
          7 views
          0 likes
          Last Post fx.practic  
          Started by TheNomadicAspie, Today, 12:07 PM
          0 responses
          8 views
          0 likes
          Last Post TheNomadicAspie  
          Started by alcorr247, Today, 12:04 PM
          0 responses
          9 views
          0 likes
          Last Post alcorr247  
          Started by firstlanetech, Today, 11:24 AM
          1 response
          22 views
          0 likes
          Last Post firstlanetech  
          Working...
          X