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

Strategy Analyzer Add-On Idea

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

    Strategy Analyzer Add-On Idea

    Hi NT Support,

    I have an idea for an add-on that I'd like a feasibility check on.

    Current Experience
    Whenever I run a backtest or optimization in the strategy analyzer, I like to take notes about what I expect to happen. I throw these notes in Evernote and it has been working out.

    Desired Experience
    However, I'm wondering if it's possible to extend the Strategy Analyzer so that whenever I run an optimization, a text entry dialog appears and upon saving the entry, the text gets put into the notes for this specific run.

    I'm a software engineer, and believe that anything's possible. But want to know if there's a pattern for doing these type of extensions. Because easier is better than harder

    Thanks,
    Wayne

    #2
    Hello wadams,

    Thanks for opening the thread.

    We do get asked every now and then if optimization results could be fetched by NinjaScript. It would certainly be possible as it is now to have a strategy create an AddOn window with with a text dialog that integrates with another application, but there currently is not a way a strategy can report optimization results because the strategy itself is being iterated by the optimizer.

    As far as feasibility goes: Yes, the Strategy Analyzer would need to be extended to support this kind of behavior.

    EDITED: See post 3 for details.

    I bring up the idea of having the strategy call the AddOn window that accomplishes the rest of this task since extending the Strategy Analyzer (by our development team) to offer optimization results is a feature request we are tracking interest in and would likely be your best way to accomplish your goal. This ticket ID is SFT-1610, and I have added a vote on your behalf.

    Feature request interest is aggregated before it is determined if the feature is worth the time invested to implement for the reward, so we can't offer an ETA. If you have any thoughts on what you would need to meet your goal taking this approach, I'll happily note the detail with the feature request.

    For context of creating an AddOn window from another NinjaScript, I'd like to point out an example indicator created by my colleague Chelsea: https://ninjatrader.com/support/foru...86&postcount=8

    If there is anything else I can do to assist, please let me know.
    Last edited by NinjaTrader_Jim; 05-18-2018, 09:45 AM.
    JimNinjaTrader Customer Service

    Comment


      #3
      Ah, so it seems I've got to find a context that gets initiated by the Strategy Analyzer but isn't iterated/ re-initialized.

      Thanks for the code example!

      Comment


        #4
        Hello wadams,

        I'm bumping this thread since you may be able to accomplish your goal by taking the following approach:
        • Creating your own Optimizer and AddOn with static methods/variables to hold the information you would like to output.
        • Having your strategy write performance results and other information to those static variables
        • Having your Optimizer trigger your AddOn window that would pull in the information from the AddOn with static variables and interact with Evernote. This could be triggered when the index in Iterate() reaches NumberOfIterations.


        Some further direction for this approach can be taken referencing the items below.

        Thread discussing AddOns with static methods/variables - https://ninjatrader.com/support/foru...ad.php?t=81647

        Optimizer documentation - https://ninjatrader.com/support/help.../optimizer.htm
        JimNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by ScottWalsh, Today, 04:29 PM
        0 responses
        4 views
        0 likes
        Last Post ScottWalsh  
        Started by rtwave, 04-12-2024, 09:30 AM
        2 responses
        21 views
        0 likes
        Last Post rtwave
        by rtwave
         
        Started by tsantospinto, 04-12-2024, 07:04 PM
        5 responses
        69 views
        0 likes
        Last Post tsantospinto  
        Started by cre8able, Today, 03:20 PM
        0 responses
        7 views
        0 likes
        Last Post cre8able  
        Started by Fran888, 02-16-2024, 10:48 AM
        3 responses
        49 views
        0 likes
        Last Post Sam2515
        by Sam2515
         
        Working...
        X