Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

best way to manage versions of indicators

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

    best way to manage versions of indicators

    As an engineer, my best skill isn't in managing versions of indicators I write. in the past, I have used things like "IndyNamev01.01"

    But I will need to call values from one indicator to another and don't want to update the code each time I change a version.

    But I need some way to keep my partners and I from being on different versions at the same time. Or if I send a new copy to a friend, how do I know they are on the right version?

    Any suggestions on the best way to do that?

    #2
    May I recommend that if you have put the effort into creating indicators, any extra effort in maintaining a version protocol is minimal.

    My suggestion:
    • In each version of each Indicator, include a const string variable with a unique version identifier (e.g. <Indicator-Name> V1.01)
    • If you require an "externally visible" form of version information, you can rename the source file similarly
    • If you want a specific displayed name when the Indicator is on a chart, you can use this in the Indicator source: public override string DisplayName { get { return <IndicatorID>; } }
    Hope that helps.
    Multi-Dimensional Managed Trading
    jeronymite
    NinjaTrader Ecosystem Vendor - Mizpah Software

    Comment


      #3
      I'll try that. thank you

      Comment


        #4
        jeronymite do you have a small example where exactly you have to put this lines ? any help appreciated. Thank you in advance.

        Comment


          #5
          Hi patricia70

          Something like this is all it takes ...
          Code:
          public class ABC : Indicator
          {[INDENT]private const string ABC_CodeID = "ABC V1.01";    // It's an equal sign, NOT a dash, if that's how it appears![/INDENT][INDENT]
          public override string DisplayName
          {[/INDENT][INDENT=2]get { return ABC_CodeID; }[/INDENT][INDENT]}
          
          protected override void OnStateChange() // States in order of execution
          ...
          ...
          ...[/INDENT]
          This is the barest minimum of the start of any Indicator.

          Hope that gets you on the way.

          [NOTE: For some reason, this Forum software makes the equal sign in the const string look like a dash! Weird. It's an equal sign!]
          Last edited by jeronymite; 06-23-2021, 04:37 AM.
          Multi-Dimensional Managed Trading
          jeronymite
          NinjaTrader Ecosystem Vendor - Mizpah Software

          Comment


            #6
            works like a charm, thank you

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            580 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            335 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            102 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            554 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            552 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X