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

Create a Form to Display Values from Strategy

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

    Create a Form to Display Values from Strategy

    Hi,

    I have been screening help files to create a form to display values from strategy and to update values whilst the strategy is running. This is to assist in debugging / optimisation of the strategy.

    I am getting more and more confused with every help topic I read. It seems very complicated. Is there a simple way to do this without creating AddOns and Indicators to pass values?

    Additionally, I can't use Print() to debug the AddOn I created. Is this normal, or have I messed something up?

    Thanks

    Ian

    #2
    Hello Ian,

    Manual intervention during a backtest or optimization would be outside of what is supported by NinjaTrader.
    Backtesting/Optimizing is intended to be completely automated using the parameters of the strategy.

    That said, below is a link to an example of passing values to an addon (from an indicator) and back you may find helpful.


    And a link to an example of static objects.


    In an Addon that is outside of the Indicator and Strategy namespaces, instead of Print(), use Output.Process() to write a message.
    Instead of ClearOutputWindow(), use Output.Reset() to clear the output window.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thanks Chelsea.

      The form would be used during forward testing of the strategy when 'unexpected things' happen and to determine what needs to be done to make the strategy work as required.

      Thanks again

      Ian

      Comment


        #4
        Hi Chelsea,

        I get an error Output does not exist in the current context. Any ideas?

        Thanks

        Ian

        Comment


          #5
          Hello Ian,

          Not sure what namespace you are in, but try:

          NinjaTrader.Code.Output.Process()
          Chelsea B.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by kujista, Today, 06:23 AM
          5 responses
          15 views
          0 likes
          Last Post kujista
          by kujista
           
          Started by f.saeidi, Today, 10:19 AM
          0 responses
          4 views
          0 likes
          Last Post f.saeidi  
          Started by traderqz, Yesterday, 09:06 AM
          2 responses
          16 views
          0 likes
          Last Post traderqz  
          Started by traderqz, Today, 12:06 AM
          3 responses
          6 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by RideMe, 04-07-2024, 04:54 PM
          5 responses
          28 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Working...
          X