Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

very weird automated order occurence (IB)

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

    very weird automated order occurence (IB)

    Let me preface: am running IB paper trader still, versus simulation, because I want to see the interaction between the IB API and Ninjatrader while testing my system w/ orders. I know I've been warned this is unreliable.

    Today I had a position get stopped out, that was entered via a long only strategy. On that strategy, I have contigent trailing stop and profit target orders.

    Upon getting stopped out, I had 5 contracts exit at market with a trigger price. Since it was on the IB paper trader, and there isn't much market depth obviously sent via the API, I had the market order fill at 2 cents below where the market actually was at that moment. I know in real market conditions that order would have filled very close to where the actual trailing stop was (its a very deep market ... natural gas).

    Anyway, not only did the order stop out, but then for some reason an additional sell order entered. And the sell was a quantity of 1, whereas my defaultquantity is 5. Furthermore, I have no shortentry orders in my system. The order that appeared to trigger was from an ExitLong at Market command in my script, but appeared as 1S on my orders page!

    Here's the order history for the entry, the stoploss and the erroneous short entry:

    NG 06-07 Buy 1 8.019 5/17/2007 9:32 NG 06-07/0001f4e5.444e159c.01.01 Entry 5L 1.37E+09 LongHammer 2.74
    NG 06-07 Sell 1 8.037 5/17/2007 9:46 NG 06-07/0001f4e5.444e176b.01.01 Exit 4L 1.37E+09 Trail stop 2.74
    NG 06-07 Sell 1 8.013 5/17/2007 9:46 NG 06-07/0001f4e5.444e176c.01.01 Exit 3L 1.37E+09 Trail stop 2.74
    NG 06-07 Sell 1 8.013 5/17/2007 9:46 NG 06-07/0001f4e5.444e176d.01.01 Exit 2L 1.37E+09 Trail stop 2.74
    NG 06-07 Sell 1 8.013 5/17/2007 9:46 NG 06-07/0001f4e5.444e176e.01.01 Exit 1L 1.37E+09 Trail stop 2.74
    NG 06-07 Sell 1 8.013 5/17/2007 9:46 NG 06-07/0001f4e5.444e1770.01.01 Exit - 1.37E+09 Trail stop 2.74
    NG 06-07 Sell 1 8.038 5/17/2007 9:46 NG 06-07/0001f4e5.444e1771.01.01 Entry 1S 1.37E+09 Boll Violate 2.74


    If you see it shows an 1 exit at market, and then 4 others much lower.
    The last record sells an extra! Not only that, but notice it marks BollViolate as an entry, not an exit, which the strategy actually is !!!

    An ideas?

    By the appearance of this, you would conceive i have a short system in this strategy. but i don't. the trigger 'bollviolate' is a LongExit order, and was triggered at that same bar as the trailing stop.

    This seems to be one of those situations where possibly two exit strategies coincide perfectly in timing (the same bar), and somehow only one contract got thru.

    How to deal with this?
    Last edited by scriabinop23; 05-17-2007, 08:11 PM.

    #2
    As stated before IB paper trade account will not work with NT. I suggest reproducing with NT sim account in IB live account or try with IB demo account.

    Also: I suggest waiting since next NT6R2 (available in a few days), since we fixed some realtime strategy issues.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Waxavi, Today, 02:10 AM
    0 responses
    6 views
    0 likes
    Last Post Waxavi
    by Waxavi
     
    Started by TradeForge, Today, 02:09 AM
    0 responses
    11 views
    0 likes
    Last Post TradeForge  
    Started by Waxavi, Today, 02:00 AM
    0 responses
    2 views
    0 likes
    Last Post Waxavi
    by Waxavi
     
    Started by elirion, Today, 01:36 AM
    0 responses
    4 views
    0 likes
    Last Post elirion
    by elirion
     
    Started by gentlebenthebear, Today, 01:30 AM
    0 responses
    5 views
    0 likes
    Last Post gentlebenthebear  
    Working...
    X