Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

copied (select all) and renamed (save as) strategy not appearing with new name

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

    copied (select all) and renamed (save as) strategy not appearing with new name

    The new strategy doesn't appear in strategy analyzer with it's new name. It appears as a double of the original, although it is in the alphabetical position it would be in if it had it's new name. Please see attachment. The strategy My Pnl was saved as MomentumES in the editor but appears as a double My Pnl in the analyzer list, yet in the alphabetical position MomentumES would be in.
    Please advise.
    David
    Attached Files

    #2
    Hello trader3000a,

    To confirm you are right-clicking in the code and selecting Save As, then providing a new unique name?

    What are you meaning by select all?

    You are not coping the code by hand are you?

    Have you changed the Name property in OnStateChange when State is State.SetDefaults?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      I am right-clicking in the code and selecting Save As, then providing a new unique name.

      Comment


        #4
        Hello trader3000a,

        The new script with have the unique name as long as you not changing the code.

        Compile so the script is ready to use.

        Below is a link to a video that demonstrates.
        https://youtu.be/H7aDpWoWUQs?t=355&l...We0Nf&index=14
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Hi Chelsea,
          I am not changing the code. I am compiling once the new script with the new name is created. The new script is created in the editor with it's new name, but it is not appearing in the analyzer list with a new name. It appears in the alphabetical order that the new name would have, but with the old name. Please look at my attachment. The new script is called MomentumES and the one it was created from is called My Pnl.
          Attached Files

          Comment


            #6
            Hello trader3000a,

            This would be unexpected behavior.

            Below is a link to a video demonstrating the expected behavior.


            May we see the code of where the Name property is set in both of your scripts from OnStateChange() State.SetDefaults?
            Chelsea B.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by funk10101, Today, 09:43 PM
            0 responses
            6 views
            0 likes
            Last Post funk10101  
            Started by pkefal, 04-11-2024, 07:39 AM
            11 responses
            37 views
            0 likes
            Last Post jeronymite  
            Started by bill2023, Yesterday, 08:51 AM
            8 responses
            44 views
            0 likes
            Last Post bill2023  
            Started by yertle, Today, 08:38 AM
            6 responses
            26 views
            0 likes
            Last Post ryjoga
            by ryjoga
             
            Started by algospoke, Yesterday, 06:40 PM
            2 responses
            24 views
            0 likes
            Last Post algospoke  
            Working...
            X