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

Testing strategy on playback connection

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

    Testing strategy on playback connection

    Hi,

    I'm trying to test my real time strategy.
    When I'm running it on live data - it works. It sends orders and enter trades.

    When i'm running it on playback mode - the strategy doesn't send any order.

    What can be a reason for that?


    Thanks,
    Offer

    #2
    Do you have replay data? Are the charts working? Is this market replay or historical data?


    Have you even bothered to try to debug your strategy in replay mode? Is it even enabled or did it disable itself with an error?

    Does the SampleMACrossover strategy even work? If that doesn't work - then your strategy probably has no chance.

    Comment


      #3
      I'm using replay data and the charts are working well.

      No error showed in the log.
      I saw in the log "Enabling NinjaScript strategy<strategy name>...".

      The sampleMA Crossover is working in the replay mode.

      I'm not the developer. someone developed it for me.


      Any ideas how to make it work on replay data?

      Comment


        #4
        Yikes, not really... it should work?

        I'm not sure what was coded by someone else for you, but I have had no issues in running replay mode with my strategies.

        Do you have access to the source code or is it protected? Is there some sort of replay check to prevent running in replay?


        You are on NT 8.0.7.1?

        Comment


          #5
          I'm using the latest version of NT8, and i do have the source code.

          Can we switch to the Email and than I'll add my developer to the conversation ?

          Comment


            #6
            Originally posted by offeraz View Post
            I'm using the latest version of NT8, and i do have the source code.

            Can we switch to the Email and than I'll add my developer to the conversation ?
            I'd rather not get involved between you and your developer... I don't work for NT, I just hang out here and help things along or become a PITA at times.

            I suspect they'll [NT] get around to your post during business hours tomorrow.

            But it does sound really odd what you are experiencing...

            Comment


              #7
              Allright.

              So i'll wait for someone from NT to answer.

              Thank you

              Comment


                #8
                Hello offeraz,

                Thank you for the post.

                In this situation, I would suggest speaking with the developer of the script to see about debugging it in playback using the settings you are currently.

                If the SampleMACrossOver is placing trades, this is likely something to do with the strategies logic although this could be the strategy instance. Have you tried removing the strategy from the control center and re adding it after you connected to playback?

                If the developer is unavailable but you have the source code, you could also add prints into the script to do some quick checks to see if the logic is running, although this could be troublesome depending on how complicated the developer made the script. Debugging is not a service our support offers but we can take a look at your script to see if anything sticks out as to why it would not work in playback specifically. In that situation, I would suggest emailing our platform support [at] ninjatrader.com.


                I look forward to being of further assistance.
                JesseNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by RookieTrader, Today, 09:37 AM
                1 response
                10 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Started by alifarahani, Today, 09:40 AM
                0 responses
                5 views
                0 likes
                Last Post alifarahani  
                Started by Gerik, Today, 09:40 AM
                0 responses
                5 views
                0 likes
                Last Post Gerik
                by Gerik
                 
                Started by KennyK, 05-29-2017, 02:02 AM
                3 responses
                1,284 views
                0 likes
                Last Post NinjaTrader_Clayton  
                Started by AttiM, 02-14-2024, 05:20 PM
                11 responses
                185 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Working...
                X