Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Stop order not visible in TWS

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

    Stop order not visible in TWS

    Hi, I've got an automated strategy running and thanks to all the support I've found here it's doing fine. There's one thing I'm concerned about though. When I place a bracket order it does get filled on either side, however in TWS (I'm with IB) I can see only the limit order placed. It's kinda scary if it means that should Internet/TWS/NT freeze the proposed stop won't be executed by the brokerage. Maybe I missed something in configuration?

    Thanks in advance.

    #2
    How are you placing a bracket order?
    RayNinjaTrader Customer Service

    Comment


      #3
      Here's the script sample:

      protected override void Initialize() {
      CalculateOnBarClose = true;
      }

      protected override void OnBarUpdate() {
      ....
      EnterShort( amount, 'sell' );
      SetProfitTarget ( 'sell', CalculationMode.Ticks, 20 );
      SetStopLoss ( 'sell', CalculationMode.Ticks, 60, true );
      }
      Last edited by billitin; 06-25-2008, 09:10 AM.

      Comment


        #4
        Do this:

        EnterShort( amount, 'sell' );
        SetProfitTarget ( 'sell', CalculationMode.Ticks, 20 );
        SetStopLoss ( 'sell', CalculationMode.Ticks, 60, false);
        RayNinjaTrader Customer Service

        Comment


          #5
          hmm but then how do I attach a stop-limit order to my order?

          Comment


            #6
            You can try ExitLongStopLimit()
            RayNinjaTrader Customer Service

            Comment


              #7
              sure, thanks!

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by futtrader, 04-21-2024, 01:50 AM
              4 responses
              41 views
              0 likes
              Last Post futtrader  
              Started by Option Whisperer, Today, 09:55 AM
              1 response
              11 views
              0 likes
              Last Post bltdavid  
              Started by port119, Today, 02:43 PM
              0 responses
              7 views
              0 likes
              Last Post port119
              by port119
               
              Started by Philippe56140, Today, 02:35 PM
              0 responses
              7 views
              0 likes
              Last Post Philippe56140  
              Started by 00nevest, Today, 02:27 PM
              0 responses
              7 views
              0 likes
              Last Post 00nevest  
              Working...
              X