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 ScottW, Today, 06:09 PM
              1 response
              4 views
              0 likes
              Last Post NinjaTrader_Manfred  
              Started by ScottWalsh, Today, 06:52 PM
              0 responses
              4 views
              0 likes
              Last Post ScottWalsh  
              Started by ftsc2022, 10-25-2022, 12:03 PM
              5 responses
              256 views
              0 likes
              Last Post KeyonMatthews  
              Started by Board game geek, 10-29-2023, 12:00 PM
              14 responses
              244 views
              0 likes
              Last Post DJ888
              by DJ888
               
              Started by Waxavi, 04-19-2024, 02:10 AM
              4 responses
              56 views
              0 likes
              Last Post sonia0101  
              Working...
              X