• 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

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 ct, Today, 01:57 PM
                1 response
                11 views
                0 likes
                Last Post NinjaTrader_Jim  
                Started by 7robert, Today, 01:13 PM
                1 response
                7 views
                0 likes
                Last Post NinjaTrader_Jim  
                Started by Newtrader101, Today, 12:52 PM
                2 responses
                7 views
                0 likes
                Last Post Newtrader101  
                Started by 7robert, Today, 12:23 PM
                3 responses
                14 views
                0 likes
                Last Post NinjaTrader_Tyler  
                Started by brownsfan019, Today, 12:52 PM
                3 responses
                9 views
                0 likes
                Last Post NinjaTrader_Tyler  
                Working...
                X