Announcement

Collapse
No announcement yet.

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 Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            648 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            369 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            108 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            572 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            574 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X