I'm currently developing an add-on that uses the AccountItemUpdate event to manage trading restrictions based on unrealized PnL changes. I've subscribed to the AccountItemUpdate event as follows:
account.AccountItemUpdate += (sender, e) => eventHandlers.OnAccountItemUpdate(sender, e);
Here’s what I am observing:
- When a significant price movement occurs, the corresponding update to unrealized PnL seems delayed or does not occur as frequently as I would expect based on the price volatility at the time.
- This delay affects the responsiveness of my trading restrictions, potentially impacting the effectiveness of the strategy, especially in fast-moving markets.
I'm curious if anyone else has encountered similar issues or if there are known limitations or settings within NinjaTrader that might affect the frequency and timing of these updates. Any insights into how unrealized PnL calculations are triggered and whether there are ways to optimize or better synchronize this with real-time market data would be greatly appreciated.
Thank you in advance for your help and suggestions!
Comment