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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    81 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    64 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    66 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X