Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Direct event handling

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

    Direct event handling

    Helo.
    Is there an ability for direct event handling in NT?
    For example, i need to process order execution events from outside of the main class( inherited from Strategy).
    Can i use constructions like:
    public void Method(Strategy strategy)
    {
    strategy.OnExecutionEvent += () => { .. } //OnExecutionEvent is only for example
    }
    or i need to call all methods that i need from OnExecution(IExecution execution) method of the main class?

    Please show me the right way :-)

    Thanls for your help.

    #2
    forregg, welcome to our forums here - unfortunately those advanced event concepts would not be supported by us. I would suggest working directly from OnExecution() and our documented approaches found in the helpguide (press F1 in NT to bring it up) or in those reference samples:

    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by rocketman7, Today, 01:00 AM
    0 responses
    1 view
    0 likes
    Last Post rocketman7  
    Started by wzgy0920, 04-20-2024, 06:09 PM
    2 responses
    27 views
    0 likes
    Last Post wzgy0920  
    Started by wzgy0920, 02-22-2024, 01:11 AM
    5 responses
    32 views
    0 likes
    Last Post wzgy0920  
    Started by wzgy0920, 04-23-2024, 09:53 PM
    2 responses
    74 views
    0 likes
    Last Post wzgy0920  
    Started by Kensonprib, 04-28-2021, 10:11 AM
    5 responses
    193 views
    0 likes
    Last Post Hasadafa  
    Working...
    X