Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy on chart

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

    Strategy on chart

    Hi,
    When applying a strategy on a new chart with the selected instrument nothing happens. On the log window, the strategy is listed but it looks like no trade is triggered. However, when I call the strategy on the same instrument via STrategy analyzer everything works fine. What am I doing wrong?

    Thank you

    Petr
    Attached Files

    #2
    Hello Domek_69,

    Thank you for your note.

    If you check, enabled at the right hand side of the strategy listed in the control center, does the strategy run as you'd expect?

    I look forward to your reply.
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      Hello Alan,
      good point - I did not have the strategy "enabled" in the control center. When enabled I get a message "Although you have order confirmation enabled, orders generated by a strategy will be submitted without confirmation", and after clicking OK it shows some entries.

      However, the result is not the same. See the image - comparing the same strategy run in chart window and run in strategy analyzer.

      Petr
      Attached Files

      Comment


        #4
        Hello Domek_69,

        I would check your BarsRequiredToTrade for the strategy and make sure the strategy running on the chart has enough bars.

        Check the log tab of the control center for errors.

        Historical trades from a back-test are not going to show up in the trace files however a useful debugging tool would be to set TraceOrders=True, and use the NinjaScript Output window to trace orders placed, amended, and canceled. See the following forum post,


        I’ve provided a link to a youtube video which covers an example of using prints to understand behavior:
        Dive into manipulating C# code from within an unlocked NinjaScript strategy using the NinjaScript Editor.NinjaTrader 7 is an award winning end to end online ...


        I’ve provided a link covering debugging which you may find helpful.
        Debugging: http://ninjatrader.com/support/forum...ead.php?t=3418

        Please let us know if you need further assistance.
        Alan P.NinjaTrader Customer Service

        Comment


          #5
          Thank you for your tips. Latest run actually showed the same results so I am OK with now. But I look at the TraceOrders functionality.

          Petr

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Option Whisperer, Today, 09:55 AM
          1 response
          11 views
          0 likes
          Last Post bltdavid  
          Started by port119, Today, 02:43 PM
          0 responses
          1 view
          0 likes
          Last Post port119
          by port119
           
          Started by Philippe56140, Today, 02:35 PM
          0 responses
          3 views
          0 likes
          Last Post Philippe56140  
          Started by 00nevest, Today, 02:27 PM
          0 responses
          2 views
          0 likes
          Last Post 00nevest  
          Started by Jonafare, 12-06-2012, 03:48 PM
          5 responses
          3,986 views
          0 likes
          Last Post rene69851  
          Working...
          X