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 dward123, 01-02-2024, 09:59 PM
          3 responses
          161 views
          0 likes
          Last Post bjunaid
          by bjunaid
           
          Started by ETFVoyageur, Today, 04:00 PM
          1 response
          7 views
          0 likes
          Last Post ETFVoyageur  
          Started by AaronKTradingForum, Today, 03:44 PM
          1 response
          8 views
          0 likes
          Last Post AaronKTradingForum  
          Started by Felix Reichert, 04-26-2024, 02:12 PM
          11 responses
          77 views
          0 likes
          Last Post Felix Reichert  
          Started by junkone, 04-28-2024, 02:19 PM
          7 responses
          83 views
          1 like
          Last Post junkone
          by junkone
           
          Working...
          X