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 kinfxhk, 07-14-2026, 09:39 AM
    0 responses
    90 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 10:18 AM
    0 responses
    92 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 09:50 AM
    0 responses
    70 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 07:21 AM
    0 responses
    87 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-11-2026, 02:11 AM
    0 responses
    64 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X