Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Strategy error when run through Analyzer with historical data

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

    Strategy error when run through Analyzer with historical data

    I am connected to CQG live (Amp Futures), running Strategy Analyzer with Backtest option.
    1. MACrossOver runs fine
    2. My strategy was ignoring historical data cause was I was testing mine against playback data
    3. I realized all the data from backtest is coming in as historical, so I removed the historical data check
    4. Now I get the following error when I run the backtest " Error on calling 'OnBarUpdate' method on bar 2: 'GetAtmStrategyUniqueId' method can only be called in state 'Realtime'

    I am able to test mine against playback data, however need to run Strategy Analyzer so I can tweak parameters and analyze.

    #2
    Hello higher.high,

    Thanks for the post.

    Based on the error and method being reported I would take a guess that you are creating a strategy that uses ATM's is that correct? If so those type of strategies can only be used in Realtime data. The ATM strategy system is a realtime tool and would not be something which you can use the backtesting tools for. You could forward test through playback data or use the simulated data feed to trend for testing.

    The historical tools would use the managed or unmanaged order handling to report orders in the Strategies performance. When using ATM's that is a separate strategy which you start and its performance is not directly related to the strategy that started it.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Brevo, Today, 01:45 AM
    0 responses
    3 views
    0 likes
    Last Post Brevo
    by Brevo
     
    Started by aussugardefender, Today, 01:07 AM
    0 responses
    3 views
    0 likes
    Last Post aussugardefender  
    Started by pvincent, 06-23-2022, 12:53 PM
    14 responses
    239 views
    0 likes
    Last Post Nyman
    by Nyman
     
    Started by TraderG23, 12-08-2023, 07:56 AM
    9 responses
    384 views
    1 like
    Last Post Gavini
    by Gavini
     
    Started by oviejo, Today, 12:28 AM
    0 responses
    6 views
    0 likes
    Last Post oviejo
    by oviejo
     
    Working...
    X