• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Needs an event for account info update(profit or loss)

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

    Needs an event for account info update(profit or loss)

    Hi,

    I need an event to get notified when account profit data is changed.
    Actually , I am iterating on SystemPerformance.AllTrades in OnBarUpdate to get all profit and loss but if I ExitLong or ExitShort ,account seems to be updated in next bar change(that is thing ,I don't want )

    #2
    Hello bosajin,

    Thanks for your question.

    For strategy performance with SystemPerformance, I suggest checking OnExecutionUpdate or OnPositionUpdate.

    For account Items, I suggest using OnAccountItmeUpdate.

    OnExecutionUpdate - https://ninjatrader.com/support/help...tionupdate.htm

    OnPositionUpdate - https://ninjatrader.com/support/help...tionupdate.htm

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

    We look forward to assisting.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by bosajin, Yesterday, 05:37 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by brunoviveiros, 08-04-2020, 09:36 AM
    3 responses
    36 views
    0 likes
    Last Post ATMtrader0001  
    Started by DieSlower, Yesterday, 09:46 PM
    1 response
    17 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by orenytz, Today, 06:10 AM
    0 responses
    3 views
    0 likes
    Last Post orenytz
    by orenytz
     
    Started by ATMtrader0001, Today, 05:05 AM
    0 responses
    4 views
    0 likes
    Last Post ATMtrader0001  
    Working...
    X