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

Problems with Add Plots automaticaly

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

    Problems with Add Plots automaticaly

    Hello,

    I need to add user-defined in parametres number of plots to my indicator.

    And I found out 2 problems:
    • indicator add more plots, than I set (please, look at 1st screenshot);
    • all unwanted plots block more and more of memory after each open "Indicators" dialog (look at others screenshots);


    From time to time part of memory, blocked by NT plots, become free. But some times I got system error "Run out of memory" (I use Win8 x64, RAM 6Gb).
    Attached Files
    Last edited by fx.practic; 10-20-2013, 08:34 AM.
    fx.practic
    NinjaTrader Ecosystem Vendor - fx.practic

    #2
    Hello fx.pratic,

    Thank you for your post.

    Every time you compile it will add to the memory load, have you tried restarting NinjaTrader after compiling?

    I look forward to your response.

    Comment


      #3
      Restaring NT. of course, free all memory.

      If to wait some time (espesialy if to manipulate with NT - for example compile indicator or put indicator on chart) memory usage reduced by itself, but not completely.

      After restart NT, it use less than 150 Mb of RAM (screenshot #1).
      If I put some times successively that indicator, memory usage increasing and decreasing, but never reduced to 150 Mb in same workspace.

      Memory usage depends most of all from number of bars on chart (look, please, at sacreenshots #2 and #3) - and that is logical.
      Attached Files
      fx.practic
      NinjaTrader Ecosystem Vendor - fx.practic

      Comment


        #4
        Hello fx.practic,

        Thank you for your response.

        Initialize() will be called on each opening of the Indicators menu, there is no method around this. You may wish to use OnStartUp() instead: http://www.ninjatrader.com/support/h.../onstartup.htm

        Please let me know if you have any questions.

        Comment


          #5
          Ok, thanks - I'll do some tests.
          fx.practic
          NinjaTrader Ecosystem Vendor - fx.practic

          Comment


            #6
            I made test. 'Add' method only can be called from within 'Initialize' method".

            I think decision is just to set plots quantity zero by default.
            Attached Files
            fx.practic
            NinjaTrader Ecosystem Vendor - fx.practic

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by LiamTwine, Today, 08:10 AM
            0 responses
            2 views
            0 likes
            Last Post LiamTwine  
            Started by Balage0922, Today, 07:38 AM
            0 responses
            5 views
            0 likes
            Last Post Balage0922  
            Started by JoMoon2024, Today, 06:56 AM
            0 responses
            6 views
            0 likes
            Last Post JoMoon2024  
            Started by Haiasi, 04-25-2024, 06:53 PM
            2 responses
            19 views
            0 likes
            Last Post Massinisa  
            Started by Creamers, Today, 05:32 AM
            0 responses
            6 views
            0 likes
            Last Post Creamers  
            Working...
            X