Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Entry Short/Long when StopLong/StopShort is filled

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

    Entry Short/Long when StopLong/StopShort is filled

    Dear all.

    I would like to introduce an order based on the stoploss order filled.

    For example:

    If the stoploss("name1") is filled. Inmediatly entry a Long position

    If the stoploss("name2") is filled. Inmediatly entry a Short position.

    How i could program this executions in ninja trader

    Best regards

    #2
    Hello,

    Thank you for the post.

    We have a short example that demonstrates using the OnExecutionUpdate override to control logic, this is likely what you would need to use as well.

    Determining when an order fills using OnExecutionUpdate could be used to further submit orders or do other logic.

    You can find the sample here: https://ninjatrader.com/support/foru...ead.php?t=7499

    In the sample, it specifically uses the OnExecutionUpdate to submit protective orders, you could instead use this override to look for your filled protective orders and then submit any other order based on what had filled.


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

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by DTSSTS, Yesterday, 07:11 PM
    2 responses
    32 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by ntbone, Yesterday, 11:42 PM
    1 response
    13 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by mr_trade, 11-26-2020, 05:01 PM
    5 responses
    59 views
    0 likes
    Last Post mr_trade  
    Started by evanp90, 01-14-2021, 07:03 PM
    4 responses
    33 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by fernlicht, Today, 04:01 AM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Jason  
    Working...
    X