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 SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    46 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    22 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    14 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    21 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    23 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X