• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

strategy analyzer backtest - cut down memory consumption

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

    strategy analyzer backtest - cut down memory consumption

    Hi,

    Having troubles with the strategy analyzer backtest type optimization eating up all my memory, often stalling at 99% physical memory, and not releasing RAM once reached the upper 90% memory level.

    One way to partly work around this issue is deactivating parts of the code not required for optimization purposes, but required for live trading and the backtest type standard mode. These are among others:

    - AddChartIndicator()
    - Draw.Text()
    - ChartIndicators[0].Plots[0].Brush

    Is there a way to detect (like if (State == State.Configure) if the strategy is running in live trading, backtest Standard or backtest Optimization mode, to switch parts of the code on or off?

    #2
    Try the following bool:
    IsInStrategyAnalyzer

    Comment


      #3
      gregid is correct, IsInStrategyAnalyzer will be able to assist you. While this is an undocumented feature and we can therefore only provide limited support, you can see many other boolean switches available by typing out Is in the editor and reviewing the IntelliSense output. I have attached an example. Please don't hesitate to reach out if there are any other questions we may answer.
      Attached Files
      Jessica P.NinjaTrader Customer Service

      Comment


        #4
        Thanks,

        This information pointed me in the right direction.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by faisamtrader, Today, 10:03 PM
        0 responses
        1 view
        0 likes
        Last Post faisamtrader  
        Started by johnnybegoode, Today, 08:11 PM
        0 responses
        2 views
        0 likes
        Last Post johnnybegoode  
        Started by Bionian, Today, 02:47 PM
        2 responses
        19 views
        0 likes
        Last Post Bionian
        by Bionian
         
        Started by RickB60, Today, 01:55 PM
        1 response
        11 views
        0 likes
        Last Post NinjaTrader_PaulH  
        Started by filopearson, Today, 01:18 PM
        6 responses
        11 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X