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

Ninja weird behavior

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

    Ninja weird behavior

    Hey, while testing a strategy with Market Replay i noticed something weird, every time conditions are met to enter the market Ninja goes:

    "O - Or - Ord - Order - Order Filed "..

    like if it was entering many operations but the settings are 1 lot, unique entries.


    SetStopLoss ("target1", CalculationMode.Ticks, initialStopLoss , false); // Default Stop
    EnterLong ( "target1" );
    SetProfitTarget ("target1" , CalculationMode.Ticks, takeProfitTarget );


    it also seem to be exiting more than once

    Click image for larger version

Name:	2stops.jpg
Views:	1
Size:	7.5 KB
ID:	904060


    not sure where to look, this doesn't seem right, what could be the reason?


    Thank you in advance.

    #2
    What shows in the executions tab? What's in the log file? Do you see multiple entries there by chance?

    Comment


      #3
      Hello kabott,

      Thanks for your post.

      Even though you are placing 1 order it looks like it has a quantity of 1000. Looking at the picture you can see two 1 lot exits and then the 3rd is 998.

      Are you intending to trade 1000? Are you trading in Forex?
      Paul H.NinjaTrader Customer Service

      Comment


        #4
        Hi Paul, im testing it on FX market, Eur pairs, mm then how do i fix this?

        Thank you for the help!

        Comment


          #5
          hey sledge, no i see no errors in the logs, think think it has to be something related to partial fills or something like that.

          Comment


            #6
            Hello kabott,

            Thanks for your reply.

            Tools>Options>Simulator

            Make sure to set (check) "Enforce Immediate fills" and uncheck (if checked) "Enforce partial fills".
            Paul H.NinjaTrader Customer Service

            Comment


              #7
              an other thing Paul, since i was on the simulator options i decided to delete historical trades and clean up a bit my charts by resetting it, i did but some are still there.

              Click image for larger version

Name:	tradelogs.jpg
Views:	1
Size:	45.6 KB
ID:	876417

              Comment


                #8
                Hello kabott,

                Thanks for your reply.

                If you are using more than 1 sim account make sure you have reset the correct one. If the issue persists the next step would be to do a "repair" of the database file. Tools>options>Data - select Repair DB. Then restart.
                Paul H.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by rtwave, 04-12-2024, 09:30 AM
                5 responses
                37 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Started by funk10101, Today, 12:02 AM
                1 response
                11 views
                0 likes
                Last Post NinjaTrader_LuisH  
                Started by GLFX005, Today, 03:23 AM
                1 response
                6 views
                0 likes
                Last Post NinjaTrader_Erick  
                Started by nandhumca, Yesterday, 03:41 PM
                1 response
                13 views
                0 likes
                Last Post NinjaTrader_Gaby  
                Started by The_Sec, Yesterday, 03:37 PM
                1 response
                11 views
                0 likes
                Last Post NinjaTrader_Gaby  
                Working...
                X