Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategey builder help with ex. screenprint, no codes

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

    Strategey builder help with ex. screenprint, no codes

    Hi

    ex. I have a problem that I get this, when my bot runs :
    submitted an order that generated the following error 'Order rejected'. Strategy has sent cancel requests, attempted to close the position and terminated itself.

    There is also some replies here, but as a no coder, just trader, I have no clue how to use those answeres. So is there a place here where you can get help with screen prints and instruktions in strategy Builder.

    Thanks

    #2
    Hello Fireblade88,

    Thank you for your post.

    This message means the order was rejected for some reason, usually, there is another message in the log associated with the order that gives a reason why the order was rejected. Are you seeing any other messages in the Log?

    This support article has detailed instructions on debugging using Prints and TraceOrders, and has a dedicated section for debugging in the Strategy Builder with a video walkthrough.



    Let me know if you need any assistance creating a print or enabling TraceOrders.

    Comment


      #3
      Hi
      Thanks for the reply,
      well I do think this will also not help me much. Probably just not the right place to make robots or trade.

      All the best

      Comment


        #4
        Hello Fireblade88,

        To truly know what is causing the issue it would be necessary to use prints and debug by looking at all of the information the script is using for decisions.

        Adding prints and getting output is known as debugging and is a process that all programmers use to understand the behavior of their code and what steps to take to correct it. You can learn to do this too and become an advanced programmer that is able to work out the barriers preventing the code from behaving as you have intended.

        Then with TraceOrders we can see when orders are being submitted, when orders are being filled, ignored, and cancelled. This lets us know the logic is good, but something is happening with the orders and fill processing. With that information we know which way to address the issue.

        If you would like assistance, please provide the output from debugging. We are happy to assist with analyzing the output. ​

        Comment


          #5
          Hi, I have added some of the log text here :

          Strategy 'Mystrategy/302975992': An order placed at '04/22/2024 01:45:00' has been ignored since the order was submitted before the strategy property BarsRequiredToTrade had been met.

          Strategy 'Mystrategy2/302976005': An order placed at '04/22/2024 00:35:00' has been ignored since the order was submitted before the strategy property BarsRequiredToTrade had been met.

          Connection lost to the NinjaTrader Historical Data Server: hds-us-nt-007.ninjatrader.com

          Strategy 'Mystrategy3/302975978' lost order connection more than 4 times in the past 5 minutes and will be disabled.

          Strategy 'Mystrategy4/302976034' lost order connection more than 4 times in the past 5 minutes and will be disabled.

          Strategy 'Mystrategy5/302976036' lost order connection more than 4 times in the past 5 minutes and will be disabled.

          Strategy 'Mystrategy6/302976005' lost order connection more than 4 times in the past 5 minutes and will be disabled.

          myAccount, AutoLiq 50000.0% affected Order: Sell 4 Market

          myaccount, AutoLiq 50000.0% affected Order: Sell 4 Market

          myaccount, AutoLiq 50000.0% affected Order: Sell 4 Market

          Strategy 'Mystrategy/302975992' submitted an order that generated the following error 'Order rejected'. Strategy has sent cancel requests, attempted to close the position and terminated itself.

          Strategy 'Mystrategy/302975985' submitted an order that generated the following error 'Order rejected'. Strategy has sent cancel requests, attempted to close the position and terminated itself.

          myaccount, AutoLiq 50000.0% affected Order: Sell 4 Market


          As example NO trades where then made over night, all EAs where shot off when I waked op. Just frustrating.

          Comment


            #6
            Hello Fireblade,

            From the log, the platform seems to be losing connection that is unable to re-establish.

            Code:
            Connection lost to the NinjaTrader Historical Data Server: hds-us-nt-007.ninjatrader.com
            
            Strategy 'Mystrategy3/302975978' lost order connection more than 4 times in the past 5 minutes and will be disabled.
            
            Strategy 'Mystrategy4/302976034' lost order connection more than 4 times in the past 5 minutes and will be disabled.
            
            Strategy 'Mystrategy5/302976036' lost order connection more than 4 times in the past 5 minutes and will be disabled.
            
            Strategy 'Mystrategy6/302976005' lost order connection more than 4 times in the past 5 minutes and will be disabled.



            It seems likely that the computer may have gone to sleep if you are leaving it running overnight. You may want to double-check your PC settings to prevent the computer from going to sleep after being left idle for some time.

            Please let us know if you have any other questions.

            Comment


              #7
              What about those : just got them today again.

              myAccount, AutoLiq 50000.0% affected Order: Sell 4 Market

              myaccount, AutoLiq 50000.0% affected Order: Sell 4 Market

              myaccount, AutoLiq 50000.0% affected Order: Sell 4 Market

              Strategy 'Mystrategy/302975992' submitted an order that generated the following error 'Order rejected'. Strategy has sent cancel requests, attempted to close the position and terminated itself.

              Strategy 'Mystrategy/302975985' submitted an order that generated the following error 'Order rejected'. Strategy has sent cancel requests, attempted to close the position and terminated itself.

              myaccount, AutoLiq 50000.0% affected Order: Sell 4 Market​

              Comment


                #8
                Hello Fireblade,

                If you are getting auto liquidation messages you'll need to reach out to your broker to see why you are getting automatically liquidated.
                Last edited by NinjaTrader_Gaby; 08-09-2024, 06:32 AM.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by NullPointStrategies, Today, 05:17 AM
                0 responses
                43 views
                0 likes
                Last Post NullPointStrategies  
                Started by argusthome, 03-08-2026, 10:06 AM
                0 responses
                124 views
                0 likes
                Last Post argusthome  
                Started by NabilKhattabi, 03-06-2026, 11:18 AM
                0 responses
                65 views
                0 likes
                Last Post NabilKhattabi  
                Started by Deep42, 03-06-2026, 12:28 AM
                0 responses
                42 views
                0 likes
                Last Post Deep42
                by Deep42
                 
                Started by TheRealMorford, 03-05-2026, 06:15 PM
                0 responses
                46 views
                0 likes
                Last Post TheRealMorford  
                Working...
                X