Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

2 long positions unwanted

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

    2 long positions unwanted

    hi
    I wind up with 2 long positions in an automated strategy when I only want one contract at a time. Is this related to "overfill" as I read in another post?
    Would a "check market flat" type of thing prevent this ?

    I dont know how I end up with 2 , sometimes 4 positions. It happens long or short.

    thanks

    shane

    #2
    I think you are going to need to post some code, so we can debug it.

    There is a parameter "EntriesPerDirection" or something, that allows more than 1 "named" entry per direction. I use it to front load a stop1 vs a stop2.

    With your discussion of contracts, it appears you are dealing with futures. Are these limit or market orders?

    Without seeing what the code is doing, we really can have no idea beyond just guessing...



    Originally posted by shanemcdonald View Post
    hi
    I wind up with 2 long positions in an automated strategy when I only want one contract at a time. Is this related to "overfill" as I read in another post?
    Would a "check market flat" type of thing prevent this ?

    I dont know how I end up with 2 , sometimes 4 positions. It happens long or short.

    thanks

    shane

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    61 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    40 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    21 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    23 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    51 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X