Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Optimization behaviour I don't understand ....

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

    Optimization behaviour I don't understand ....

    I have attached a simple custom strategy that exhibits some behaviour I don't understand.

    To reproduce what I am seeing:
    1. Import MyCustomTest strategy.
    2. Open StrategyAnalyzer, and set as per the attached screenshot.
    3. Open Output Window.
    4. Open MyCustomTest strategy in NinjaScript Editor, and re-compile.
    5. Run optimization.
    6. “Should_never-appear” appears twice in Output Window!


    The strategy has IsInstantiatedOnEachOptimizationIteration set to false. The strategy is set up to place a long entry order on the 101st bar, and then print something to the Output Window in OnExecutionUpdate() if a certain condition is satisfied.

    By my understanding “Should_never_appear” should not appear in the Output Window in this optimization; it should only be printed if Enums has the value Should_never_appear... but Enums was set to Set_to_this for the optimization.

    Why does the output window show Should_never_appear?
    Attached Files

    #2
    Hello AnotherTrader,

    Thanks for opening the thread.

    I'm seeing the same behavior you are describing and do not expect that output, and when I test the similar case with an integer, I get the expected results. I'm checking into this further with others in the office and will keep you informed as this develops.

    EDIT: This issue was confirmed as a bug and was assigned the ticket ID NTEIGHT-12986. The number for the ticket ID can be found in the Release Notes page of the help guide when a new release of NinjaTrader contains a fix.

    Release Notes - https://ninjatrader.com/support/help...ease_notes.htm

    Thanks for the report!
    Last edited by NinjaTrader_Jim; 08-03-2018, 07:11 AM.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by zstheorist, Today, 07:52 PM
    0 responses
    7 views
    0 likes
    Last Post zstheorist  
    Started by pmachiraju, 11-01-2023, 04:46 AM
    8 responses
    150 views
    0 likes
    Last Post rehmans
    by rehmans
     
    Started by mattbsea, Today, 05:44 PM
    0 responses
    6 views
    0 likes
    Last Post mattbsea  
    Started by RideMe, 04-07-2024, 04:54 PM
    6 responses
    33 views
    0 likes
    Last Post RideMe
    by RideMe
     
    Started by tkaboris, Today, 05:13 PM
    0 responses
    6 views
    0 likes
    Last Post tkaboris  
    Working...
    X