Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

What is the Folder named "templates\Indicator" for?

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

    What is the Folder named "templates\Indicator" for?

    I'm looking for a way to create a template that I can use when creating a new indicator.
    I'm sick of adding "BarsRequiredToPlot = 0;" every time I create a new indicator.
    I did a google search of the forums, and also the help guide, but did not find any information.

    I guess I'll have to create a starting indicator, and then constantly ""Save As" from within the editor?

    #2
    templates -> Indicator is where folders are created to store indicator templates. These are what happens when you save parameter sets for an indicator.

    Although it isn't supported, you could consider implementing an abstract or partial class to do the things you are wanting to do there. Or, you could put some common code blocks in an addon and call them from your indicator e.g. in OnStateChange call MyAddOn.OnStateChange(this) to get all your common functionality out of the way.
    Bruce DeVault
    QuantKey Trading Vendor Services
    NinjaTrader Ecosystem Vendor - QuantKey

    Comment


      #3
      Hello balltrader,

      Thank you for your post.

      As Bruce mentioned, the templates\Indicator folder is for saved indicator templates that are created from the Indicators window:


      "I guess I'll have to create a starting indicator, and then constantly ""Save As" from within the editor?"
      This is an option, or you could try what Bruce has mentioned. You could also copy/paste your commonly used setup for OnStateChange into a text file and start each new script by pasting those values in.

      Please let us know if we may be of further assistance.

      Comment


        #4
        Thanks both Bruce and Emily

        I think there is a typo on the help guide page you linked to

        Saving Custom Indicator Settings


        To save Indicator parameters:



        1.Set the Data Series parameters to desired values
        I think that should read "Set the Indicators parameters..."

        Comment


          #5
          Originally posted by balltrader View Post
          Thanks both Bruce and Emily

          I think there is a typo on the help guide page you linked to



          I think that should read "Set the Indicators parameters..."
          Thank you balltrader. I will submit a request to get this corrected.

          Please feel free to reach out with any additional questions or concerns.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          599 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          344 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          103 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          558 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          557 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X