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 geddyisodin, Yesterday, 05:20 AM
          9 responses
          50 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by George21, Today, 10:07 AM
          1 response
          11 views
          0 likes
          Last Post NinjaTrader_ChristopherJ  
          Started by DayTradingDEMON, Today, 09:28 AM
          4 responses
          20 views
          0 likes
          Last Post DayTradingDEMON  
          Started by Stanfillirenfro, Today, 07:23 AM
          9 responses
          23 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by navyguy06, Today, 09:28 AM
          1 response
          9 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Working...
          X