• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

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.
    https://www.youtube.com/watch?v=BA0W...utu.be&t=8m15s

    Also, below is a public link to a forum post with helpful information about getting started with NinjaScript.
    http://ninjatrader.com/support/forum...609#post503609
    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.
                https://youtu.be/CktTvESKo4w
                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 Nate G, Yesterday, 04:21 PM
                              0 responses
                              18 views
                              0 likes
                              Last Post Nate G
                              by Nate G
                               
                              Started by Jschmelz, Yesterday, 04:45 PM
                              1 response
                              19 views
                              0 likes
                              Last Post NinjaTrader_Marco  
                              Started by sisenberg, Today, 07:29 AM
                              1 response
                              9 views
                              0 likes
                              Last Post sisenberg  
                              Started by Oceans, Today, 02:22 AM
                              2 responses
                              25 views
                              0 likes
                              Last Post Oceans
                              by Oceans
                               
                              Started by sisenberg, Yesterday, 08:06 PM
                              1 response
                              25 views
                              0 likes
                              Last Post sisenberg  
                              Working...
                              X