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

Draw Region Freezing NT8

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

    Draw Region Freezing NT8

    Hi, I am having a problem with Draw Region completely freezing the platform when I try to scroll back on a chart. It only has 2 days of data that it's pulling up but it still requires me to completely shut down NT8 and restart in order to use the chart again. It's strange though because I can't move the window, or exit out of it or scroll back once it freezes but price still moves on the chart.

    Has anyone else been having an issue with it?

    I shouldn't have performance issues as it's only 2 lines of code in the indicator testing it and I'm running an i7 with 24 gigs of ram.

    #2
    Hello clubfoot, and thank you for your question. It is very easy to create very computationally intensive indicators and strategies using the Draw.Region method, enough to overwhelm even a system with a lot of RAM and a fast processor. I would like to advise you to use a second data series that triggers draws, so that you can use your more granular data series to define draw regions, and then fill them in sporadically. I have included a code example where I have done so, intended to run on 10 minute bars. Please let us know if there are any other ways we can help.
    Attached Files
    Jessica P.NinjaTrader Customer Service

    Comment


      #3
      Thanks Jessica! Sadly that will not work for it though as I need it to update using 1 minute bars. Would it be possible to have this update purely on close vs on every tick of every bar? I think that may be what is slowing it down.

      Comment


        #4
        Updating on bar close, rather than on every tick, will definitely speed up your strategy. If your CalculationMode is OnEachTick, you may accomplish this by changing this to OnBarClose.
        Jessica P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by f.saeidi, Today, 11:02 AM
        1 response
        1 view
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by geotrades1, Today, 10:02 AM
        4 responses
        12 views
        0 likes
        Last Post geotrades1  
        Started by rajendrasubedi2023, Today, 09:50 AM
        3 responses
        15 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by lorem, Today, 09:18 AM
        2 responses
        11 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by geddyisodin, Today, 05:20 AM
        4 responses
        30 views
        0 likes
        Last Post geddyisodin  
        Working...
        X