Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SetStopLimit interferes with first profit targets

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

    SetStopLimit interferes with first profit targets

    I have a three contract strategy written in NinjaScript which takes off two contracts at a fixed profit level (4-10 tics set when strategy is placed on chart) and lets a third contract run until a negative crossover occurs. It also moves the stop to BE after the first two contracts are taken off, and trails up (for long) based on whichever is higher, the breakeven, or the low of the last bar. When I add a SetStopLoss command to protect the position when it first is entered, my first profit limit order stops working. I'm also getting problems with the stop being set above the market in the case of a short or below in the case of a long. Why does the stop interfere with my first profit target, and is there an alternative way of protecting the positon with a fixed stop until I get past my first profit target? This is easy to do using an ATM strategy, but essentially not backtestable once that tack is taken.
    DaveN

    #2
    Hello,

    You will need to scale in to scale out. You need to submit 3 separate orders with different signal names, then scale out as needed.

    This link will help:
    DenNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    74 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    45 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    26 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    32 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    62 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X