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

FriendlyName

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

    FriendlyName

    Hi,
    My list of personal indicators is very large. Is there a way to use a friendly name so that I can see Indicator0001BusyPrice as Indicator00001_BusyPrice?
    thanks,
    David

    #2
    Hello David,

    Thanks for your post.

    You could set the Name property of the indicator to be "Indicator00001_BusyPrice" in OnStateChange() when the State == State.SetDefaults.

    Note that indicators will display in the Indicators window based on the Name property that is set in the State.Defaults section of code in the script.
    Brandon H.NinjaTrader Customer Service

    Comment


      #3
      Hi Brandon,
      Thanks,
      I was hoping i could find a way to see Indicator00001_BusyPrice in the ninjascript editor indicators window.
      David

      Comment


        #4
        Load Indicator0001BusyPrice into a simple editor, such as Notepad++, find/replace all occurrences of Indicator0001BusyPrice in the code with Indicator0001_BusyPrice, save as Indicator0001_BusyPrice. Then delete the original Indicator0001BusyPrice.
        eDanny
        NinjaTrader Ecosystem Vendor - Integrity Traders

        Comment


          #5
          Hello David,

          Thanks for your notes.

          eDanny has provided some great information on this topic.

          The indicator class name would need to be changed and any other use of that indicator name should be changed along with the .cs file name.

          Brandon H.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by SnailHorn, 05-02-2024, 10:49 PM
          3 responses
          26 views
          0 likes
          Last Post SnailHorn  
          Started by giulyko00, Today, 11:49 AM
          1 response
          4 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by marksingh87, 02-13-2024, 04:55 PM
          6 responses
          210 views
          1 like
          Last Post mshrstv
          by mshrstv
           
          Started by SnailHorn, Today, 08:38 AM
          2 responses
          4 views
          0 likes
          Last Post SnailHorn  
          Started by Skifree, Yesterday, 11:38 PM
          1 response
          16 views
          1 like
          Last Post NinjaTrader_LuisH  
          Working...
          X