Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

The strategy freezes and freeze chart.

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

    #31
    Hello CyberNate,

    Thank you for your reply.

    It's fairly unlikely that your strategies are being affected by this particular issue, as this deals with large numbers of orders being submitted in a very short amount of time - moving a stop loss would be unlikely to encounter this. If you'd like to write directly into us at platformsupport [at] ninjatrader [dot] com, we would be happy to take a look at what's specifically occurring with your strategies and provide guidance on how to avoid issues you may be experiencing.

    Please let us know if we may be of further assistance to you.

    Comment


      #32
      Hi CyberNate, thank you for your post.
      I found that order becomes "yellow" and freezes mostly when I change it - manually or programmatic. It happens when multiple orders events were sent with a small delay between.

      Hello, Kate.
      I am watching the tread and waiting the moment when someone say, that 80 msec is a bit too much for just for internal order handling; that maybe it's time to make creating of order object a little faster than sending it to exchange and receiving an answer.
      Maybe, it helps to avoid multiple related issues.
      fx.practic
      NinjaTrader Ecosystem Vendor - fx.practic

      Comment


        #33
        Update: Same issue on Rev 20. Hung after moving stop loss.

        Comment


          #34
          Originally posted by NinjaTrader_Kate View Post
          Hello CyberNate,

          Thank you for your reply.

          It's fairly unlikely that your strategies are being affected by this particular issue, as this deals with large numbers of orders being submitted in a very short amount of time - moving a stop loss would be unlikely to encounter this. If you'd like to write directly into us at platformsupport [at] ninjatrader [dot] com, we would be happy to take a look at what's specifically occurring with your strategies and provide guidance on how to avoid issues you may be experiencing.

          Please let us know if we may be of further assistance to you.
          My strategy moves the stop loss very frequently as I have an ATR based trailing stop loss based on 1 min ATR. I use tick calculation, so very frequently. I guess I could try slowing it down to only move stop on 1 minute bar interval.

          Comment


            #35
            5+ seconds between sending any order events worked for me.
            4 seconds was not enough.
            fx.practic
            NinjaTrader Ecosystem Vendor - fx.practic

            Comment


              #36
              Originally posted by fx.practic View Post
              5+ seconds between sending any order events worked for me.
              4 seconds was not enough.
              There must have been a change at exchange or data provider, as this trailing stop has always worked fine for me and now it hangs predictably. I will do the same, use 5 sec series to control order update frequency. I really appreciate the feedback!

              Edit: Now that I think about it, it might be the result of adding 1 tick series to accommodate Cumulative Delta indicator. Previous strategy didn't have that and was likely updating at frequency less than 5 second interval.
              Last edited by CyberNate; 07-15-2020, 12:14 PM.

              Comment


                #37
                NinaTrader supporters, could you please confirm if there is a restriction on order update frequency? You need to state this as it causes people to lose money.

                Edit: You should also handle this in a more elegant way. The platform should NEVER freeze up like this. If it is a restriction, then put it in place so that backtesting also alerts the end user. This particular issue is only observed with live trading.
                Last edited by CyberNate; 07-15-2020, 11:52 AM.

                Comment


                  #38
                  Hello CyberNate,

                  Thank you for your replies.

                  There is no set limit for order update frequency in the platform, but if a strategy modifies orders in rapid succession, like with each tick on a volatile instrument, a chart could get frozen, this is true. You're most likely correct that adding the additional 1 tick series in the script is the most likely cause of what you're experiencing.

                  Performance demanding strategies can freeze a chart if there are frequent order updates. This is due to the chart being updated frequently to show the order marker at the correct level. Numerous updates can cause a lock up, even if Chart Trader is in Hidden mode, though this is scheduled to be optimized in the next release so order markers will not be updated when Chart Trader is hidden.

                  Our recommendation is to apply Performance Demanding strategies in the Strategies tab of the Control Center rather than running them from a chart.

                  If you run the strategy from the Control Center without a chart open, do you see the orders getting "stuck"?

                  Thanks in advance; I look forward to assisting you further.

                  Comment


                    #39
                    Kate, 80 msec is still 80 msec.
                    fx.practic
                    NinjaTrader Ecosystem Vendor - fx.practic

                    Comment


                      #40
                      CyberNate thank you twice!
                      fx.practic
                      NinjaTrader Ecosystem Vendor - fx.practic

                      Comment


                        #41
                        Originally posted by NinjaTrader_Kate View Post
                        Hello CyberNate,

                        Thank you for your replies.

                        There is no set limit for order update frequency in the platform, but if a strategy modifies orders in rapid succession, like with each tick on a volatile instrument, a chart could get frozen, this is true. You're most likely correct that adding the additional 1 tick series in the script is the most likely cause of what you're experiencing.

                        Performance demanding strategies can freeze a chart if there are frequent order updates. This is due to the chart being updated frequently to show the order marker at the correct level. Numerous updates can cause a lock up, even if Chart Trader is in Hidden mode, though this is scheduled to be optimized in the next release so order markers will not be updated when Chart Trader is hidden.

                        Our recommendation is to apply Performance Demanding strategies in the Strategies tab of the Control Center rather than running them from a chart.

                        If you run the strategy from the Control Center without a chart open, do you see the orders getting "stuck"?

                        Thanks in advance; I look forward to assisting you further.
                        I always run in control center rather than on the chart. It gets stuck everytime, and not only the strategy, but ALL charts that have that instrument.

                        Comment


                          #42
                          Originally posted by NinjaTrader_Kate View Post
                          Hello CyberNate,

                          Thank you for your replies.

                          There is no set limit for order update frequency in the platform, but if a strategy modifies orders in rapid succession, like with each tick on a volatile instrument, a chart could get frozen, this is true. You're most likely correct that adding the additional 1 tick series in the script is the most likely cause of what you're experiencing.

                          Performance demanding strategies can freeze a chart if there are frequent order updates. This is due to the chart being updated frequently to show the order marker at the correct level. Numerous updates can cause a lock up, even if Chart Trader is in Hidden mode, though this is scheduled to be optimized in the next release so order markers will not be updated when Chart Trader is hidden.

                          Our recommendation is to apply Performance Demanding strategies in the Strategies tab of the Control Center rather than running them from a chart.

                          If you run the strategy from the Control Center without a chart open, do you see the orders getting "stuck"?

                          Thanks in advance; I look forward to assisting you further.
                          I haven't tried running without chart trader. I will try that before modifying the order update frequency. Thanks!

                          Comment


                            #43
                            Originally posted by CyberNate View Post

                            I haven't tried running without chart trader. I will try that before modifying the order update frequency. Thanks!
                            After turning off Chart Trader, no issues so far with my frequently updated stop loss based on ATR. 2 days, no issues. Will report back if issue re-occurs.

                            Please fix chart trader, as I like to watch the strategy manage orders visually.

                            Comment


                              #44
                              Hello CyberNate,

                              Thank you for your reply.

                              My understanding is that this is a limitation of chart trader when using strategies that rapidly update orders due to the order updates refreshing the chart. Unfortunately it is a limitation of rendering the chart and at the current time cannot be addressed other than running the strategy in question from the Strategies tab of the Control Center.

                              Please let us know if we may be of further assistance to you.

                              Comment


                                #45
                                Originally posted by NinjaTrader_Kate View Post
                                Hello CyberNate,

                                Thank you for your reply.

                                My understanding is that this is a limitation of chart trader when using strategies that rapidly update orders due to the order updates refreshing the chart. Unfortunately it is a limitation of rendering the chart and at the current time cannot be addressed other than running the strategy in question from the Strategies tab of the Control Center.

                                Please let us know if we may be of further assistance to you.
                                I would also expect that adding the strategy to a chart will also work as long as chart trader is off. That way you can still trade manually in parallel on a separate chart with chart trader as the strategy orders will not be visible on the separate chart.

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by NullPointStrategies, 03-13-2026, 05:17 AM
                                0 responses
                                96 views
                                0 likes
                                Last Post NullPointStrategies  
                                Started by argusthome, 03-08-2026, 10:06 AM
                                0 responses
                                154 views
                                0 likes
                                Last Post argusthome  
                                Started by NabilKhattabi, 03-06-2026, 11:18 AM
                                0 responses
                                82 views
                                0 likes
                                Last Post NabilKhattabi  
                                Started by Deep42, 03-06-2026, 12:28 AM
                                0 responses
                                54 views
                                0 likes
                                Last Post Deep42
                                by Deep42
                                 
                                Started by TheRealMorford, 03-05-2026, 06:15 PM
                                0 responses
                                72 views
                                0 likes
                                Last Post TheRealMorford  
                                Working...
                                X