Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error after installing NT6.5.1000.15

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

    Error after installing NT6.5.1000.15

    I installed NT 6.5.1000.15 and then encountered the following problem:

    Type\PHCommon.cs,
    'NinjaTrader.Strategy.Strategy' does not contain a definition for 'LastPerformanceValue',CS0117 - click for info,858,54,

    I then deleted PHcommon and PHgenetic - downloaded PHgeneticV1.09 again - and when I try to import it is says that the files that I am trying to import has a programing error.

    I hope somene can help me with this proplem since I am stuck - and use PHgenetic as my optimizer

    Verge

    PS - the code specifically reads:

    #if NT7
    RunIteration (child.OnIterationComplete, null);
    #else
    this.Strategy.RunIteration ();
    // record the strategy's performance
    child.Performance = NinjaTrader.Strategy.Strategy.LastPerformanceValue ;
    #endif

    ALSO - why did this work in 1000.14 - and stopped working in 1000.15 - did the use of "LastPerformanceValue" change?

    #2
    Hello verge,

    Can you please follow the instructions below to see which NinjaScript file on your end contains an error. This will allow you to debug the indicator/strategy or remove it from your PC that contains the error. If you’re wondering why you receive an error when compiling only one indicator or strategy, it is because NinjaTrader compiles all indicators and strategies. Not just one.

    1) Open NinjaTrader
    2) From the Control Center -> Tools -> Edit NinjaScript -> Indicator
    3) Select an indicator and double click on it.
    4) A new window will appear and you will need to right click and compile the indicator.
    5) At the bottom of the window a new section will appear were you can find the error locations. Double click the error and you will be directed to the location of the error.
    6) From there you have the option to remove the indicator or debug it. You can delete NinjaScript files via Tools-->Edit NinjaScript-->Indicator/Strategy, highlight it and select Delete

    You can find general debug information at the link below.


    Once you solved the error and all NinjaScript files compile successful, please re-import the PHgeneticV1.09.

    Unfortunately, I am not sure why you experience this error in version 6.5.1000.15. "LastPerformanceValue" did not change as per version 6.5.1000.15.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    86 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    48 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    29 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    32 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    67 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X