Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ProfitTarget as stop order

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

    ProfitTarget as stop order

    Hello,

    is there a way to generate profit target as stop order instead of limit using SetProfitTarget() method or do I need to make my own order (ExitLongStop() for example)?

    Thank you.

    #2
    Hi Dukecz,

    To use an order that is different that is set by SetStopLoss would need to be an ExitLongStop or ExitLongStopLimit. Or for SetProfitTarget ExitLongLimit.

    The issue is the placement on the side of the market. If you are in an a long position you will need to sell with an exit order.

    A buy stop or stop limit must be placed above the market. A sell stop or stop limit must be placed below the market.

    Because of this, you would not be able to place a stop or stop limit at the same price on the same side of the market as a limit.

    So no, it would not be possible to submit a stop or stop limit in place of a profit target generated by SetProfitTarget.

    However, you could write into the script to submit a market order when a price gets hit. The order would not be working on the exchange but the logic would exit with a market at the desired price.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    596 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    343 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    556 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    554 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X