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 kujista, Today, 05:44 AM
            0 responses
            5 views
            0 likes
            Last Post kujista
            by kujista
             
            Started by ZenCortexCLICK, Today, 04:58 AM
            0 responses
            5 views
            0 likes
            Last Post ZenCortexCLICK  
            Started by sidlercom80, 10-28-2023, 08:49 AM
            172 responses
            2,281 views
            0 likes
            Last Post sidlercom80  
            Started by Irukandji, Yesterday, 02:53 AM
            2 responses
            18 views
            0 likes
            Last Post Irukandji  
            Started by adeelshahzad, Today, 03:54 AM
            0 responses
            8 views
            0 likes
            Last Post adeelshahzad  
            Working...
            X