Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Exit with both sides filled

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

    Exit with both sides filled

    So I've been wanting an NT strategy to trade on both sides of the market and I got it running by breaking a whole into two parts, and I launch one strategy for all buy orders and another one simultaneously for all sell orders. It's doing alright throughout the day, but bizarre's happening on market closing.

    Let's say I have 1 position short and 3 positions long, and enough funds for only 2 margin limits, even if I sell that short position. The brokerage sees that I have net 2 positions long and allows me to go on. At ETD NT tries to close all positions in the following fashion:
    (i) cover 1 short
    (ii) cover the resulting 3 long

    Apparently, the order gets rejected because the account value is not enough to hold 3 net positions at a time. So here's the problem - after ETD I'm left in an open position.

    Is there a way to set position closing priorities? Or maybe there's another solution for trading on both sides of the market that avoids it altogether? Your help is much appreciated!

    #2
    I can see that as a problem. For now, you could use the "Time to flatten" with option "Flatten All" enabled.

    RayNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    114 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    160 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    81 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    126 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    80 views
    0 likes
    Last Post PaulMohn  
    Working...
    X