Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

sharing code between indicators and strategies

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

    sharing code between indicators and strategies

    Is there an example of how to share functions or code between indicators or strategies, such as through a common library file, etc?

    Thanks in advance,

    Ken

    #2
    Ken, have you seen the reference sample titled: Exposing indicator values? I've also covered this in another thread that you can look over.
    AustinNinjaTrader Customer Service

    Comment


      #3
      Thanks for the response, Austin.

      The forum posts seem to talk about sharing indicator values across different strategies.

      I'm actually more concerned about sharing C# code across different strategies, like actual functions. I would like to have a common source code file where I can share commonly used functions across my strategies.

      Is there an example of this somewhere?

      Thanks in advance,

      Ken

      Comment


        #4
        kjackson,

        The UserDefinedMethods.cs file is for this.

        You can also read this post chain for more information.
        mrlogik
        NinjaTrader Ecosystem Vendor - Purelogik Trading

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Segwin, 05-07-2018, 02:15 PM
        10 responses
        1,767 views
        0 likes
        Last Post Leafcutter  
        Started by Rapine Heihei, 04-23-2024, 07:51 PM
        2 responses
        30 views
        0 likes
        Last Post Max238
        by Max238
         
        Started by Shansen, 08-30-2019, 10:18 PM
        24 responses
        943 views
        0 likes
        Last Post spwizard  
        Started by Max238, Today, 01:28 AM
        0 responses
        9 views
        0 likes
        Last Post Max238
        by Max238
         
        Started by rocketman7, Today, 01:00 AM
        0 responses
        7 views
        0 likes
        Last Post rocketman7  
        Working...
        X