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 charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        52 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        142 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        160 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        96 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        276 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X