Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy list accessable by editor is not the same as seen by a chart?

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

    Strategy list accessable by editor is not the same as seen by a chart?


    #2
    Hello boreland,
    Thanks for your post.

    That is happening because the "Name" property in State.SetDefaults is "SupperTrader". You will need to go back into the code of that indicator change the name property to the name you would like displayed.
    Josh G.NinjaTrader Customer Service

    Comment


      #3
      I found this in one of the sample strategies. Is it here that I specify the "Name" property?

      protected override void OnStateChange()
      {
      if (State == State.SetDefaults)
      {
      Description = NinjaTrader.Custom.Resource.NinjaScriptStrategyDes criptionSampleATMStrategy;
      Name = NinjaTrader.Custom.Resource.NinjaScriptStrategyNam eSampleATMStrategy;
      // This strategy has been designed to take advantage of performance gains in Strategy Analyzer optimizations
      // See the Help Guide for additional information
      IsInstantiatedOnEachOptimizationIteration = false;
      }
      }

      Comment


        #4
        Yes, that is correct. You would change that line to something like

        Name = "TheNameOfMyIndicator";
        Josh G.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by algospoke, 04-17-2024, 06:40 PM
        6 responses
        48 views
        0 likes
        Last Post algospoke  
        Started by arvidvanstaey, Today, 02:19 PM
        4 responses
        11 views
        0 likes
        Last Post arvidvanstaey  
        Started by samish18, 04-17-2024, 08:57 AM
        16 responses
        61 views
        0 likes
        Last Post samish18  
        Started by jordanq2, Today, 03:10 PM
        2 responses
        9 views
        0 likes
        Last Post jordanq2  
        Started by traderqz, Today, 12:06 AM
        10 responses
        19 views
        0 likes
        Last Post traderqz  
        Working...
        X