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 argusthome, 03-08-2026, 10:06 AM
    0 responses
    85 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    48 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    29 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
    67 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X