• 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

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,
        http://ninjatrader.com/support/forum...ead.php?t=3627

        I’ve provided a link to a youtube video which covers an example of using prints to understand behavior:
        https://www.youtube.com/watch?v=K8v_...tu.be&t=48m45s

        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 asmmbillah, Today, 04:53 AM
          0 responses
          1 view
          0 likes
          Last Post asmmbillah  
          Started by davidnorton, Today, 04:29 AM
          0 responses
          2 views
          0 likes
          Last Post davidnorton  
          Started by maggie3, Today, 02:05 AM
          0 responses
          3 views
          0 likes
          Last Post maggie3
          by maggie3
           
          Started by qewcool, Today, 01:14 AM
          0 responses
          3 views
          0 likes
          Last Post qewcool
          by qewcool
           
          Started by fredrikn, 05-08-2019, 04:01 AM
          17 responses
          669 views
          1 like
          Last Post emtrader  
          Working...
          X