Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Help with strategy plots

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

    Help with strategy plots

    Hello,

    I have a strategy that I am backtesting. however it doesn't seem to be working right. is there a way to run the strategy on like just a day or two and then see the plots for entry and exit visually on the chart?

    Thanks

    David
    Last edited by Paladin22; 10-11-2020, 04:13 PM.

    #2
    Hello David,

    Welcome to the NinjaTrader forums!

    Yes, in the Strategy Analyzer you can set the 'Start date' to yesterday's date (or a date last week while the market was open) and the 'End date' to today's date (or the day after you have chosen for the Start date).


    Yes, orders that have filled in backtest or real-time will appear with markers on the chart as execution plot markers.
    Below is a link to a video on running a backtest.




    If the strategy is applied to a chart, is there data with new bars appearing on the chart the Strategy is applied to?
    Is the strategy showing as enabled on the Strategies tab of the Control Center?
    If the strategy is in the Strategy Analyzer, is there data appearing on the Chart Display of the Strategy Analyzer?
    Are there errors appearing on the Log tab of the Control Center?

    If the strategy is getting data and the strategy is enabled or a backtest is run with no errors in the Log tab of the Control Center, then would likely indicate the logic conditions did not evaluate as true or orders are being ignored or cancelled.

    In order to better understand how the code is working, it will be necessary to use Print and enable TraceOrders to see how the conditions are evaluating and if orders are being submitted, ignored, or cancelled.
    Below is a link to a forum post that demonstrates using prints to understand behavior.
    https://ninjatrader.com/support/foru...121#post791121

    Enable TraceOrders, print the time of the bar and all values used in the conditions that submit entry orders.
    Let me know if you need any assistance creating a print or enabling TraceOrders.
    Save the output from the output window to a text file and provide this with your next post.

    I'll be happy to assist with analyzing the output.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thank you NT_CB, those links helped out to get it working

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      54 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      131 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      73 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      44 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      49 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X