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 op1031, Yesterday, 05:16 PM
    1 response
    8 views
    0 likes
    Last Post NT-Roland  
    Started by sinpeople, Today, 07:20 AM
    1 response
    3 views
    0 likes
    Last Post NT-Roland  
    Started by Frank1000, Today, 03:05 AM
    1 response
    8 views
    0 likes
    Last Post NT-Roland  
    Started by ntdev, Today, 01:14 AM
    4 responses
    16 views
    0 likes
    Last Post ntdev
    by ntdev
     
    Started by ct, Today, 02:22 AM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Jason  
    Working...
    X