Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

More complicated syntax

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

    More complicated syntax

    When developing a strategy with a purpose of entering and exiting trades and <EnterLong()>(as an example) and SetProfitTarget() are applicable, why would you find it necessary to involve <OnOrderUpdate> and/or <OnExecutionUpdate()>?

    #2
    Hello galsermil,

    That really depends on what your goals are for your strategy. OnOrderUpdate observes updates of order statuses and OnExcutionUpdate is called for executions. If your strategy needed to know when an order filled to do something you would use OnExecutionUpdate. If you needed to work with order objects you can use either OnOrderUpdate or OnExecutionUpdate to collect orders.

    You can see an example of using those overrides here: https://ninjatrader.com/support/help...and_onexec.htm

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    59 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    134 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    75 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    45 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    50 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X