Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OnAccountItemUpdate does not fire with Strategy Backtest

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

    OnAccountItemUpdate does not fire with Strategy Backtest

    Hello Support

    I've uploaded an exported strategy modeled after SampleMACrossOver.

    I'm trying to get Account info while the strategy is running. But the event never fires.

    Can you please have a look and tell me why the event never fires.

    Thank you
    Attached Files

    #2
    Hello rayko,

    Thanks for opening the thread.

    The method will not fire in the Strategy Analyzer because AccountItem's are only modified by real time data and are not modified by historical data which the Strategy Analyzer uses.

    While it is mentioned in the documentation that the method will be called continuously during realtime, this is not explicitly stated that it will not fire for historical trades. I will request that the help guide gets amended to mention this.

    Any AccountItem management in backtesting would have to be managed through your own variables.

    OnAccountItemUpdate() documentation - https://ninjatrader.com/support/help...itemupdate.htm

    If you have any additional questions, please don't hesitate to ask.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by RookieKiwi, Today, 06:53 PM
    0 responses
    2 views
    0 likes
    Last Post RookieKiwi  
    Started by kazisl, Today, 05:52 PM
    0 responses
    4 views
    0 likes
    Last Post kazisl
    by kazisl
     
    Started by andrewjoseph939, Today, 02:39 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Jim  
    Started by trader252, Today, 02:09 PM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by mballagan, Today, 01:19 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Working...
    X