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.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    52 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    130 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    70 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
    48 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X