Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Adding a second contract with trailing stop

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

    Adding a second contract with trailing stop

    I'm new to NT8 and trying to learn to build strategies. I have a basic strategy built that is working with 1 contract, and a simple profit target and stop in place.

    I would like to know where I can find information on how, if my strategy is set to trade 2 contracts per execution, the stop moves to break even after the first profit target is filled, and then trails the second contract by (x) number of ticks until either second profit target is hit, or the stop is triggered.

    Any direction is appreciated.

    Bullywig

    #2
    Hello Bullywig,

    Would this be created using the Builder or manually coded?

    In the case of manually coding, likely the best starting place would be the following examples. Using the OnExecutionUpdate override would allow you to track when specific orders fill to complete logic like a breakeven.

    The OnOrderUpdate() and OnExecution() methods are reserved for experienced programmers. Instead of using Set() methods to submit stop-loss and profit target orders, you can submit and update them manually through the use of IOrder and IExecution objects in the OnOrderUpdate() and OnExecution() methods. The OnOrderUpdate()



    If this is the Builder this would require further review to see what would be required for this type of logic.

    I look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    90 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    137 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    120 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    72 views
    0 likes
    Last Post PaulMohn  
    Working...
    X