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

unable to change order

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

    #16
    Hello hansg1,

    I have been running the script today on the coinbase connection however I have not run into the unable to change order error.

    I tried to gather the details from your images to reconstruct the use case however I may have missed something. Are you using a set of specific steps when you see that happen with this script? What were the specific settings for the data series that you had used?



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

    Comment


      #17
      Data series is "ask" of 200 Renko. Maybe it is a problem of fast moving markets ? Hope it helps
      regards

      Comment


        #18
        Hi Jesse,

        I had the same error with dataseries "Last" of 200 Renko. I let it run overnight.
        regards

        Comment


          #19
          Hi Jesse,


          for me it is the problem, I cannot find the time and place, where this happens, because it is for me NT8 internal code.

          The stop buy order is submitted, but then something "internal"? is canceled ? In case long : stop is below bid/ask for me, so I do not understand


          I named all the orders and as I see the stop is below current bid/ask?

          thx

          Click image for larger version

Name:	7.PNG
Views:	211
Size:	42.7 KB
ID:	1144825
          [ATTACH]n1144826[/ATTACH]

          Comment


            #20
            Hello hansg1,

            Thank you for the additional details.

            I let the script run again today based on the settings you provided however I am not seeing any problem with change order.

            Have you tried too re sync your PC clock? That may help in case the PC clock is out of sync that can cause issues with prices and orders.


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

            Comment


              #21
              Hi Jesse,
              I come back to you with one step further. Coinbase , ETHUSD,30 Range. I used the strategy SampleMonitorStopProfit ( I think it is from your site) with some additional output.
              It takes only long trades and the problem is, that the stop price in some cases is above ask/bid in the moment of using( see image)
              For me it is the question, how to bypass or react on this state in "OnOrderUpdate" to come again to the point of setting stop order with lower value.
              Maybe you have any idea.
              Thx
              regards


              P.S. the real value of current bid in the image is 1774,98 (there is one blank missing)

              Click image for larger version  Name:	7.PNG Views:	0 Size:	100.0 KB ID:	1147020
              SampleMonitorStopProfit.cs
              Last edited by hansg1; 03-17-2021, 09:37 AM.

              Comment


                #22
                for me it crashes at or after this command "stopLossOrders.Remove(order);" if I look in the output ? or is there any misunderstanding on my side?
                Attached Files

                Comment


                  #23
                  Hello hansg1,

                  Thank you for the reply.

                  I still have not been able to hit the error you mentioned by testing the sample. The .Remove from the list should not be relevant to the error, the error is based on the order and what price is being used and not a runtime/C# error.

                  I will try this again tomorrow during market hours to see if I can observe this in some way.

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

                  Comment


                    #24
                    Hi Jesse,
                    thx for you reply. Yes I understand . But for me is the question where can I check if the price is "wrong" to change the price before it runs in this error.
                    You do not need comprehend the error.
                    thx
                    regards
                    Last edited by hansg1; 03-18-2021, 02:48 AM.

                    Comment


                      #25
                      Hello hansg1,

                      Pricing needs to be done before submitting the order. For targets using the Set methods with offsets you would just need to use a larger offset to avoid that. For other orders which you are pricing yourself you can calculate a price ahead of time and then use that with the various order methods.

                      I look forward to being of further assistance.

                      JesseNinjaTrader Customer Service

                      Comment


                        #26
                        Hello Jesse,

                        is there any possiblilty tu suppress the errormessages from post 15? Strategy is working further with RealtimeErrorHandling = RealtimeErrorHandling.IgnoreAllErrors
                        thx
                        regards

                        Comment


                          #27
                          Hello hansg1,

                          No, if you are getting rejections the platform will always let you know about it. That property only ignores the rejections in the sense that it wont disable the strategy. You would still need to be there to constantly monitor it so you can close those dialogs when they appear.

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

                          Comment

                          Latest Posts

                          Collapse

                          Topics Statistics Last Post
                          Started by Aviram Y, Today, 05:29 AM
                          0 responses
                          1 view
                          0 likes
                          Last Post Aviram Y  
                          Started by quantismo, 04-17-2024, 05:13 PM
                          3 responses
                          25 views
                          0 likes
                          Last Post NinjaTrader_Gaby  
                          Started by ScottWalsh, 04-16-2024, 04:29 PM
                          7 responses
                          34 views
                          0 likes
                          Last Post NinjaTrader_Gaby  
                          Started by cls71, Today, 04:45 AM
                          0 responses
                          6 views
                          0 likes
                          Last Post cls71
                          by cls71
                           
                          Started by mjairg, 07-20-2023, 11:57 PM
                          3 responses
                          216 views
                          1 like
                          Last Post PaulMohn  
                          Working...
                          X