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 Skifree, Today, 03:41 AM
    3 responses
    12 views
    0 likes
    Last Post Skifree
    by Skifree
     
    Started by traderqz, Yesterday, 09:06 AM
    5 responses
    32 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by guillembm, Today, 11:25 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by owensd, 04-21-2024, 11:34 PM
    9 responses
    34 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by trilliantrader, 04-10-2024, 09:33 PM
    7 responses
    25 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Working...
    X