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

What's the purpose of MaximumBarsLookBack?

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

    #16
    Hello,

    The log file would only be a problem if its size was large, your log file is not that large so this shouldn't be a problem.

    I think you have some major issue if you are seeing OnTermination() run on every tick. NinjaTrader would only call OnTermination() when the strategy is disabled. Can you please confirm this is what you are seeing via a Print().

    You can dispose items manually for example ADX(12).Dispose() however it is unsupported.

    Only last idea I have is that you can send me the code to support at ninjatrader dot com ATTN: Brett and I can take a couple minutes and see if I can spot the problem.

    Furthermore you are not overriding Dispose() correct as this can be bad.


    -Brett

    Comment


      #17
      HI Brett,

      I added print statements and confirmed that you are correct - OnTermination only works when the program is terminated. I have seen quite a few threads on memory leaks and a common response is to put in an OnTermination section to get rid of memory leaks - why would they even recommend this? The memory leak (if it is that) is happening when the program is running.

      I'm sending you a copy of the program now and would appreciate any comments or suggestions. Thank you for your help.

      Comment


        #18
        Hello,

        I got the program I will be checking it out either today or at the latest on Monday and get back to you via email.

        -Brett

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by EliIsrael, Today, 08:15 AM
        1 response
        4 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by cshox, Yesterday, 11:11 AM
        4 responses
        23 views
        0 likes
        Last Post cshox
        by cshox
         
        Started by ETFVoyageur, Today, 02:15 AM
        1 response
        16 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by lorem, 04-25-2024, 09:18 AM
        21 responses
        90 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by mlprice12, 12-21-2021, 04:55 PM
        5 responses
        309 views
        0 likes
        Last Post paypachaysa  
        Working...
        X