Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Memory Issue with OHL?

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

    #16
    Originally posted by koganam View Post
    Looking at the code of the indicator shows that on each BarUpdate, it is running 3 for loops over the entire length of the chart.

    That means NT has to iterate through the domain to find the correct instance of the indicator, then run 3 for loops. If you are using COBC = false, then it must do this for every tick. (Remember the magic wrapper code that NT places at the bottom of the indicators, and warns you not to even glance at?) A nasty "fine how do you do" right there.

    One way to reduce the load, especially if using COBC = false, is to use a named instance of the indicator class. That way, NT knows exactly which code location to call, without having to go look for it.
    Forgive my ignorance in this case, koganam, but can you explain the concept behind the 3 for loops, and in addition, how you have determined this about the code?

    BTW, COBC will be set to true for this strategy, it is not in indicator format, if that makes a difference.

    Thanks in advance for any help,


    Andrew

    Comment


      #17
      Originally posted by alabell View Post
      Forgive my ignorance in this case, koganam, but can you explain the concept behind the 3 for loops, and in addition, how you have determined this about the code?

      BTW, COBC will be set to true for this strategy, it is not in indicator format, if that makes a difference.

      Thanks in advance for any help,


      Andrew
      Just look at the code in the editor, and you will see that there are 3 for loops that loop over the barSeries.Count.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by burtoninlondon, Today, 12:38 AM
      0 responses
      5 views
      0 likes
      Last Post burtoninlondon  
      Started by AaronKoRn, Yesterday, 09:49 PM
      0 responses
      14 views
      0 likes
      Last Post AaronKoRn  
      Started by carnitron, Yesterday, 08:42 PM
      0 responses
      11 views
      0 likes
      Last Post carnitron  
      Started by strategist007, Yesterday, 07:51 PM
      0 responses
      13 views
      0 likes
      Last Post strategist007  
      Started by StockTrader88, 03-06-2021, 08:58 AM
      44 responses
      3,983 views
      3 likes
      Last Post jhudas88  
      Working...
      X