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 Behungr101, Today, 10:17 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_JustinD  
    Started by ezrollin, Today, 10:11 AM
    2 responses
    6 views
    0 likes
    Last Post ezrollin  
    Started by xmess777, Yesterday, 07:16 PM
    1 response
    25 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by 8033075, Yesterday, 08:13 PM
    1 response
    34 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by futurenow, Yesterday, 06:13 PM
    1 response
    24 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Working...
    X