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 cmoran13, Yesterday, 01:02 PM
        0 responses
        31 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        22 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        162 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        95 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        151 views
        2 likes
        Last Post CaptainJack  
        Working...
        X