Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Unable to get Backtest to work

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

    Unable to get Backtest to work

    Good morning

    I am trying to backtest a strategy and no trades are showing up on the chart and no trades are listed when I open up historical performance. I just downloaded the latest update to NT8 but that didn't help.


    #2
    Hello rexsole,

    Thanks for your post.

    Does your strategy skip historical processing? For example, are you checking if (State == State.Realtime) before calling your order entry methods? Or, are you calling if (State == State.Historical) return; within your strategy?

    If so, this would prevent the strategy from being able to be used in the Strategy Analyzer since historical processing is skipped.

    If this is not the case, please test running a backtest on the SampleMACrossOver strategy that comes default with NinjaTrader in the Strategy Analyzer.

    If you see no issues when running the SampleMACrossOver strategy, it is likely that there is an issue with the code of your strategy that is preventing orders from being placed. Debugging using prints would need to be done to determine what exactly in your strategy is causing the issue.

    Below is a link to a forum post that demonstrates how to use prints to understand behavior.
    https://ninjatrader.com/support/foru...121#post791121

    Let us know if we may assist further.
    Brandon H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by cmtjoancolmenero, Yesterday, 03:58 PM
    9 responses
    36 views
    0 likes
    Last Post cmtjoancolmenero  
    Started by DayTradingDEMON, Today, 09:28 AM
    4 responses
    24 views
    0 likes
    Last Post DayTradingDEMON  
    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
    15 views
    0 likes
    Last Post NinjaTrader_ChristopherJ  
    Started by Stanfillirenfro, Today, 07:23 AM
    9 responses
    24 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X