Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Problems trading CL in TWS

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

    Problems trading CL in TWS

    Hello,

    I am encountering trouble trading CL in IB via TWS with automated strategies. Some orders are not executed correctly.

    I attach the log and trace files corresponding to 07-12-2011. At 20.30, a strategy that was long CL should have entered short but only closed the long position. Hope you can spot some explanation for this behaviour.

    Another question: In the instrument definition, the IB symbol is CL||||1. Is that correct.

    Thanks for the help.

    Regards,
    Juan
    Attached Files

    #2
    Hi Juan, can you please also attach the strategy so we can analyze what could have happened there as well?
    AustinNinjaTrader Customer Service

    Comment


      #3
      Hello,

      I cannot send it over because it uses a lot of custom indicators as filters.

      However, the entries are based on MA crossovers.

      So, it was long, the MA crossed and the method used is EnterShort, but it did not, it just crossed the long position.

      Hope you can find something in the logs.

      Thanks
      Juan

      Comment


        #4
        Juan, according to the trace file, both orders were filled. The close position order was filled in the 2011-12-07 20:30:01:018 series of events and the sell short order was filled in the 2011-12-07 20:30:01:112 series of events.

        I believe the CL|||1 mapping is correct, but I will have a coworker get back to you on Monday with confirmation.
        AustinNinjaTrader Customer Service

        Comment


          #5
          Hello Austin,

          You are right. The problem was not that execution but a previous one.

          Thanks for the help.

          Juan

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by maybeimnotrader, Today, 05:46 PM
          0 responses
          6 views
          0 likes
          Last Post maybeimnotrader  
          Started by quantismo, Today, 05:13 PM
          0 responses
          6 views
          0 likes
          Last Post quantismo  
          Started by AttiM, 02-14-2024, 05:20 PM
          8 responses
          167 views
          0 likes
          Last Post jeronymite  
          Started by cre8able, Today, 04:22 PM
          0 responses
          8 views
          0 likes
          Last Post cre8able  
          Started by RichStudent, Today, 04:21 PM
          0 responses
          5 views
          0 likes
          Last Post RichStudent  
          Working...
          X