Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

AddOn subscribing to OnPositionUpdate for active strategies

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

    AddOn subscribing to OnPositionUpdate for active strategies

    I am tyring to update data in my addon by subscribing to OnPositionUpdates for active strategies. Is there a trick to being able to subscribe in the Addon to the event being published by the strategies?

    #2
    Hello parkinsonbr,

    You would need to follow the samples from the help guide to subscribe to the event on the account, did you try that and if so what part are you having trouble with?

    If you can provide a sample of what you tried or what you are seeing happen that would be helpful.

    https://ninjatrader.com/support/help...ount_class.htm
    https://ninjatrader.com/support/help...tionupdate.htm

    To subscribe to account positions updates you would need to use the addon account object and subscribe to its OnPositionUpdate event. You wouldn't know which strategy had the update only that there was a position update. There is no way to observe individual strategy OnPositionUpdates from this context just the overall account.


    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by punkiy2111, Today, 05:22 PM
    0 responses
    1 view
    0 likes
    Last Post punkiy2111  
    Started by secrettrader, Today, 03:36 PM
    0 responses
    6 views
    0 likes
    Last Post secrettrader  
    Started by t3chn0, Today, 01:03 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by jleira, Today, 02:27 PM
    0 responses
    22 views
    0 likes
    Last Post jleira
    by jleira
     
    Started by Kreyenhagen, Today, 01:54 PM
    2 responses
    21 views
    0 likes
    Last Post Kreyenhagen  
    Working...
    X