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

How to: Copy and Rename?

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

    How to: Copy and Rename?

    Hello,
    I want to copy the default SampleMACrossOver strategy then rename it in order to be able to fidget with it without losing the default SampleMACrossOver.

    I also would like to be able to change name & Description

    How do I do this?

    #2
    Hello SBMT17,

    To copy an unlocked script open the script in the NinjaScript Editor, right-click the text in the script, select Save As, give the script a new name, click OK.

    The name and description can be changed in OnStateChange() in the State.SetDefaults action block.

    Below is a public link to the NinjaScript Editor 401 training video which demonstrates.
    Dive into manipulating C# code from within an unlocked NinjaScript strategy using the NinjaScript Editor.3:11 Creating a New NinjaScript Strategy13:52 Analyz...


    Also, below is a public link to a forum post with helpful information about getting started with NinjaScript.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thank you for such a quick reply,
      I am watching the 401 video now thank you.
      When I right click to 'Save As', the save as is greyed out. Any idea why this would be? I've followed the steps in the video to the T.

      Comment


        #4
        Hello SBMT17,

        I would only expect the Save As to be grayed out if you are trying to copy a strategy that was created with the Strategy Builder.

        If you are copying the SampleMACrossOver this would be unexpected and I am not able to reproduce this when copying this specific script on my end.

        Please send an email to platformsupport [at] ninjatrader [dot] com so that I may schedule a call with you to investigate further. In the email please include a link to this forum thread.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Oh wowwwwww,
          I"m an idiot!!
          Well, maybe, I don't know. But the video is actually giving different directions than you did. In the video it walks you through the process of 'creating' a new strategy, then right clicking in that new one you ...... oh man i'm dumb.

          Comment


            #6
            Hello SBMT17,

            The behavior of copying a strategy in the Strategy Builder has changed since this video was created and uploaded.
            Strategies locked for editing in the Strategy Builder would need to be copied in the Strategy Builder on the welcome page.
            New strategies that are created from the NinjaScript Editor are automatically unlocked and would be copied using the steps from the video.

            However, you stated that you are copying the SampleMACrossOver included with NinjaTrader. This script cannot be opened with the Strategy Builder and would be copied using the steps in the video.

            If you are unable to copy this specific script I would like to schedule a call with you to further investigate.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              Now if only my NT8 had a "playback" account so I could review the results

              Comment


                #8
                Hello SBMT17,

                NinjaTrader has a Playback101 account when connected to the Playback connection.

                Below is a public link to a video on the Playback connection.
                Chelsea B.NinjaTrader Customer Service

                Comment


                  #9
                  Hello Chelsea,
                  Yes sadly mine is not there. I've sent an email in to schedule a call, hopefully they'll cover that there also.

                  Comment


                    #10
                    Hello SBMT17,

                    Please include a screenshot of the Connections menu of the NinjaTrader Control Center showing the Accounts tab at the same time.
                    Chelsea B.NinjaTrader Customer Service

                    Comment


                      #11
                      Hi Chelsea,
                      I also just did a database repair just before this also.
                      Attached Files

                      Comment


                        #12
                        Hello SBMT17,

                        The Accounts tab is definitely showing a Playback101 account.

                        Is there an issue looking at orders on the Orders tab of the Control Center?

                        Based on the time and date of the playback it doesn't look like you are including any trades from the Playback101 in the TradePerformance window in the From and To dates.
                        Chelsea B.NinjaTrader Customer Service

                        Comment


                          #13
                          Right, that's the issue i'm having:
                          Trying to look at the trades in the Trader Performance window. That's what I meant... I'm sorry if I boggled that....

                          How do I review playback trades in trader performance?

                          Comment


                            #14
                            Hello SBMT17,

                            Set your from and to dates to encompass the trades you are placing.
                            Chelsea B.NinjaTrader Customer Service

                            Comment


                              #15
                              I swear, .... hahaha, thanks!

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Waxavi, Today, 02:10 AM
                              0 responses
                              3 views
                              0 likes
                              Last Post Waxavi
                              by Waxavi
                               
                              Started by TradeForge, Today, 02:09 AM
                              0 responses
                              9 views
                              0 likes
                              Last Post TradeForge  
                              Started by Waxavi, Today, 02:00 AM
                              0 responses
                              2 views
                              0 likes
                              Last Post Waxavi
                              by Waxavi
                               
                              Started by elirion, Today, 01:36 AM
                              0 responses
                              4 views
                              0 likes
                              Last Post elirion
                              by elirion
                               
                              Started by gentlebenthebear, Today, 01:30 AM
                              0 responses
                              4 views
                              0 likes
                              Last Post gentlebenthebear  
                              Working...
                              X