Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Assigning Execution Priorities to Different Charts/Strategies?

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

    Assigning Execution Priorities to Different Charts/Strategies?

    I am trying out various feature so NT and have recently signed up for DTN.IQ feed.

    Today I had multiple charts open including range charts, and tick charts for CL. CL had a big burst around 12:47PM, a nice breakout worth 100+ ticks in a few minutes. The price moved 25 ticks in a single second 12:47:48PM resulting in almost 50-60 new single range bars in a second.

    I noticed that during the spike up, the charts on NT could not keep up with the speed at which the price was changing. At times the delay was up to a few seconds! The range charts were creating multiple new bars and the PC could not keep up.

    The problem this creates is that if you write a custom trading strategy, you will get screwed since your limit orders to enter will be well away from the market, and your stop-limit orders to enter will be rejected for the same reason.

    A part of the problem is the DTN feed which sends every tick and hence triggers the OnBarUpdate methods. I have tried to use a combination of CalculateOnBarClose = false and IsFirstTickOfBar to limit computation but am still fine tuning how it works. Even that would not helped with the range bars.

    I was wondering if NT can assign different priorities to different charts, based on whether they are running a live strategy or not or some user defined input. Internally it will mean that you maintain a high priority queue and a low priority queue of data-consumers and do not make calls to the On[Functions] for the lower priority strategies/indicators if the higher priority indicator/strategy is still processing data.

    Alternatively, NT can defer the chart updates (plotting) while continuing to pump data into the indicators and strategies so that the strategy calculations and order processing continue while plotting is deferred.

    I am using NT6.5 for this. Perhaps NT7 will be faster, but even there I doubt it can process so much information and do so much drawing at the same time.

    #2
    You cannot assign chart "priorities". In 7 we have improved bar management significantly so it should be better than 6.5. You also have the option of adjusting your chart refresh update intervals. Set that to something higher will save CPU cycles in such a fast spike. Note that setting this option is display only so it will not influence your strategy logic in any way. It will just save you CPU spikes and allow it to just draw it once after the spike. To get to the option, bring up the Chart Properties for the chart and set it to a higher value.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Thanks Josh.
      I will try this out tomorrow when CL moves after the Oil report.

      BTW, can I run NT7 and NT6.5 simultaneously on the same computer?

      Comment


        #4
        You will not be able to run both at the same time on the same computer.
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by alifarahani, Today, 09:40 AM
        6 responses
        36 views
        0 likes
        Last Post alifarahani  
        Started by Waxavi, Today, 02:10 AM
        1 response
        17 views
        0 likes
        Last Post NinjaTrader_LuisH  
        Started by Kaledus, Today, 01:29 PM
        5 responses
        14 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by Waxavi, Today, 02:00 AM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_LuisH  
        Started by gentlebenthebear, Today, 01:30 AM
        3 responses
        17 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X