Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Remove s time frame

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

    Remove s time frame

    Can I remove a time frame in a strategy I added using the ADD() function?

    Scenario:

    I have a strategy that adds multiple time frames. I would like the strategy to scan multiple instruments searching for my setup. They are rare but good when found. To keep Ninja from crashing I need to remove the instruments for one instrument before I add the ones for the next. The thinking is I can use an instrument list for the instruments to scan. (Reference http://www.ninjatrader.com/support/f...nstrument+list)

    I am now modifying the strategy to be an indicator so I can use Market Analyzer but I think it will crash it if I add many instruments. I have also heard through the grape vine that there are some issues with multiple time frames on indicators.It has been bullet proof as a strategy. I am still using 32 bit ninja. Will the 64 bit version increase the maximum memory usage size for a ninja strategy or market analyzer?

    I didn't want to have a chart open all the time for each instrument I want to watch. My strategies do not place orders they just point out possible setups or entries.

    Suggestions?

    #2
    Hello ct,

    Unfortunately there is no removal code available that allows you to remove a series that has been added.

    Since you plan on working with the market analyzer, you may be able to remove the Add statements completely. Market analyzer allows you to add a single indicator to the list of instruments that are on that particular market analyzer window.

    64 bit architecture has higher memory limits per application than 32 bit but not by that much more:
    Describes the memory limits for supported Windows and Windows Server releases and provides lists of memory limits.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Ryan

      Thanks.

      Can I call or execute a strategy from within indicator?

      Comment


        #4
        No, indicators wont be able to do order placement like a strategy, nor can they call a strategy that can do this.

        The indicator can be used to show you all instruments that meet a condition on the market analyzer. From there you can manually apply an automated strategy to an instrument or manually place the trades.
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          thinking out the box

          Ryan

          What if I used a windows macro recorder/player to select the instruments via the chart instrument drop down list? It could then select the instrument, have a delay and then go to the next instrument.

          This is what I do manually today but it gets a little mundane after a few hours. Also this method would only fire the strategy one at a time per instrument. Sequential instead of parallel. The market analyzer would fire all instruments at the same time unless I built a delay timer into the indicator. Firing all of the instruments at same time could freeze the pc or at least slow it down to a crawl for a period. Neither being good.

          Comment?

          Comment


            #6
            Hi ct

            If you are only getting warned of signals and not placing auto trades you can put all your logic in an indicator and get the indicator to email you or trigger an alert. You can then add the indicator in the Market Analyzer.

            Cheers

            Mike

            Comment


              #7
              Ryan

              If I call an Indiacator from an indicator, will it remove all the added time frames on exit and free any program memory of the called indicator or will it keep the added time frames open? I want to reduce the program memory exection size. The thinking was to stagger their execution via program logic so not every instrument would fire my indicator at the same time.

              Comment


                #8
                If the indicator is in use, then it won't automatically remove the added series. There is resource management that takes place only when the indicator is no longer used.
                Ryan M.NinjaTrader Customer Service

                Comment


                  #9
                  Ryan

                  Can you force garbage collection by setting your objects to null when you are done with them.

                  By "in use" do you mean in use or active by any instrument in Market Analyzer? So if no instrument is executing the indicator the resources will be reclaimed? I just want to be clear about what "in use" means. Sorry to be so thick.

                  Comment


                    #10
                    There may be a way to force garbage collection but unfortunately it's outside our scope of support.

                    In use means that it's applied or called somewhere. If you have the indicator on a market analyzer, chart, or strategy it's in use. There's no shortcut available even if you call from another indicator.
                    Ryan M.NinjaTrader Customer Service

                    Comment


                      #11
                      Ryan

                      Thanks for the replies, you knew where I was heading.

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                      0 responses
                      633 views
                      0 likes
                      Last Post Geovanny Suaza  
                      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                      0 responses
                      364 views
                      1 like
                      Last Post Geovanny Suaza  
                      Started by Mindset, 02-09-2026, 11:44 AM
                      0 responses
                      105 views
                      0 likes
                      Last Post Mindset
                      by Mindset
                       
                      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                      0 responses
                      567 views
                      1 like
                      Last Post Geovanny Suaza  
                      Started by RFrosty, 01-28-2026, 06:49 PM
                      0 responses
                      568 views
                      1 like
                      Last Post RFrosty
                      by RFrosty
                       
                      Working...
                      X