• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

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.
    http://ninjatrader.com/support/forum...686#post492686

    And a link to an example of static objects.
    https://ninjatrader.com/support/foru...245#post712245

    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.
    https://ninjatrader.com/support/help...g_concepts.htm
    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 ntbone, Yesterday, 08:10 PM
          0 responses
          7 views
          0 likes
          Last Post ntbone
          by ntbone
           
          Started by chrislou, 08-28-2015, 03:27 AM
          14 responses
          2,881 views
          0 likes
          Last Post nkhoi
          by nkhoi
           
          Started by outofstock, Yesterday, 06:40 PM
          2 responses
          8 views
          0 likes
          Last Post outofstock  
          Started by saeed, Yesterday, 12:32 PM
          3 responses
          40 views
          0 likes
          Last Post NinjaTrader_PatrickG  
          Started by motog4, Yesterday, 11:42 AM
          3 responses
          21 views
          0 likes
          Last Post NinjaTrader_PatrickG  
          Working...
          X