Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Identical optimizer results

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

    Identical optimizer results

    Hi, I'm trying to optimize time scale of my indicators, so I vary bar period as a parameter:

    public int period = 1;
    ...

    protected override void Initialize() {
    Add( PeriodType.Minute, period );
    CalculateOnBarClose = true;
    }

    .....

    protected override void OnBarUpdate() {
    if( 1 == BarsInProgress ) {
    // check indicator signal and place a trade here
    }
    }

    When I look at the Chart output of strategy analyzer, trades at each period are displayed on it correctly, and Graphs tab shows different account value evolution, Trades shows different data, too. However, the top Optimizer section shows testing results for all time frames to be the same (net profit, # trades, etc.)! The only thing that's different between the lines is the value of the Period parameter that I vary. Is this an NT bug or I did something wrong?..

    By the way I'm curious if not erasing added data series creates a memory leak while the optimizer is running. Does the strategy class gets destroyed and re-initialized clean every time strategy strats off with a different parameter set?

    #2
    Optimization on time frame is not supported. It will not work. This will be supported in NT7.
    RayNinjaTrader Customer Service

    Comment


      #3
      Now there's some room for improvement... may I ask how soon v7 is coming out?

      Comment


        #4
        NT7 beta is slotted for end of year time frame.
        Josh P.NinjaTrader Customer Service

        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