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 NullPointStrategies, Yesterday, 05:17 AM
              0 responses
              79 views
              0 likes
              Last Post NullPointStrategies  
              Started by argusthome, 03-08-2026, 10:06 AM
              0 responses
              148 views
              0 likes
              Last Post argusthome  
              Started by NabilKhattabi, 03-06-2026, 11:18 AM
              0 responses
              79 views
              0 likes
              Last Post NabilKhattabi  
              Started by Deep42, 03-06-2026, 12:28 AM
              0 responses
              52 views
              0 likes
              Last Post Deep42
              by Deep42
               
              Started by TheRealMorford, 03-05-2026, 06:15 PM
              0 responses
              58 views
              0 likes
              Last Post TheRealMorford  
              Working...
              X