• 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 YevhenShynkarenko, Yesterday, 01:22 AM
    2 responses
    37 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by testingsarasa, 05-20-2018, 02:50 PM
    11 responses
    733 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by martyn73, Today, 05:27 PM
    2 responses
    9 views
    0 likes
    Last Post martyn73  
    Started by MichaelAlexander, 02-22-2017, 05:06 AM
    5 responses
    1,402 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by walter739, Today, 11:56 AM
    3 responses
    11 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X