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 wzgy0920, 04-20-2024, 06:09 PM
    2 responses
    26 views
    0 likes
    Last Post wzgy0920  
    Started by wzgy0920, 02-22-2024, 01:11 AM
    5 responses
    32 views
    0 likes
    Last Post wzgy0920  
    Started by wzgy0920, Yesterday, 09:53 PM
    2 responses
    49 views
    0 likes
    Last Post wzgy0920  
    Started by Kensonprib, 04-28-2021, 10:11 AM
    5 responses
    191 views
    0 likes
    Last Post Hasadafa  
    Started by GussJ, 03-04-2020, 03:11 PM
    11 responses
    3,233 views
    0 likes
    Last Post xiinteractive  
    Working...
    X