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 space_trader, Today, 12:52 AM
    1 response
    18 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by ybhx0315, Yesterday, 09:06 PM
    0 responses
    15 views
    0 likes
    Last Post ybhx0315  
    Started by parkinsonbr, Yesterday, 08:23 PM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by fxRichard, Today, 04:35 AM
    2 responses
    14 views
    0 likes
    Last Post fxRichard  
    Started by fernlicht, Today, 01:59 AM
    12 responses
    61 views
    0 likes
    Last Post NinjaTrader_Jason  
    Working...
    X