• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 JellyRoll, Yesterday, 06:57 PM
    1 response
    17 views
    0 likes
    Last Post bltdavid  
    Started by Dan_D_Trader, Yesterday, 06:22 PM
    1 response
    3 views
    0 likes
    Last Post Emma1
    by Emma1
     
    Started by gemini42, Yesterday, 01:53 AM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Started by asmmbillah, Yesterday, 04:42 PM
    4 responses
    29 views
    0 likes
    Last Post asmmbillah  
    Started by JAtrades, Yesterday, 02:44 PM
    3 responses
    18 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Working...
    X