Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

BuyStopLimit prices

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

    BuyStopLimit prices

    I am getting an error message when I submit a EnterBuyStopLimit() order where the limit price is less than the stop price. I attached the error.

    I want a buy Stop Limit order to trigger and then the limit order to be less than the current price. Why won't it let me do this?

    Thanks!
    Bryan
    Attached Files

    #2
    Hello,

    Thank you for the question.

    The StopLimit orders would not be able to be used this way, the error is exactly what is happening the limit can not be below the stop price.

    You said
    I want a buy Stop Limit order to trigger and then the limit order to be less than the current price. Why won't it let me do this?
    Because you can not use the StopLimit in this way, you could instead watch the price action in a condition and submit a limit at a specific price when your condition occurs.

    I look forward to being of further assistance.

    Comment


      #3
      OK thanks. That seems a strange way to handle buystoplimit orders, because a buy limit order cannot be above the current price or it gets filled immediately. Why would you ever want the limit price above the stop price on a buy order?? That doesn't make sense to me.

      On an unrelated note, could you please tell me how to resolve the attached error without losing all my ATM strategies in the database?

      Thanks!
      Bryan
      Attached Files
      Last edited by cassb; 04-17-2015, 12:00 PM.

      Comment


        #4
        Hello,

        For the attached error, this indicates the database has reached its maximum size or the drive NinjaTrader is installed on has no more free space. Please open your computer in windows explorer and verify there is disk space, more than likely this is not the issue but the message relates to this as well.

        If you are currently in NinjaTrader you can try to do a database repair using the Tools -> Options -> Repair Database. This will attempt to repair and optimize the database, if it can it will correct it. If this does not work, I would recommend writing down the settings to the ATM strategies or taking a screenshot to ensure they are not lost if you have to remove the database.

        If you are unable to repair the database or if that did not resolve the message, in this situation manually renaming the database will allow you to re launch the platform but your ATM strategies would reside in the old database.

        To manually rename the database file, you would need to go into the folder: Documents\NinjaTrader 7\db
        Next rename the NinjaTrader.sdf file to NinjaTrader.Old.sdf and then start the platform.

        Unfortunately if the database can not be opened or repaired or if the platform is not able to open to repair the database this may be the only solution to rename the database and start with a fresh database.

        I look forward to being of further assistance.

        Comment


          #5
          The database size does not reduce after repair. So my only option is to create a new database file and lose all my history and ATM settings?

          Um... is NinjaTrader 8 coming out any time soon? ;-)

          Comment


            #6
            Hello,

            You can also to clear the Sim101 and Replay accounts to see if you can salvage the existing database by going to Tools -> Options -> Simulator and click Reset. Make sure the Clear History box is checked and allow it to run, it may take a few minutes depending on the amount of history.

            After doing this, you can see if you still get the error.

            If you still get the error, unfortunately it looks like you would need to create a new database. Because you still have the platform open and can access the superdom, I would recommend either writing the ATM settings down or taking screenshots to aid in re creating these items.

            To manually rename the database file, you would need to go into the folder: Documents\NinjaTrader 7\db
            Next rename the NinjaTrader.sdf file to NinjaTrader.Old.sdf and then start the platform.

            For the NinjaTrader 8 question, unfortunately we don't have a confirmed date yet. If you have not already and would like to be on the beta list, please send me an email to platform support @ ninjatrader .com and I will add you to it.

            I look forward to being of further assistance.

            Comment


              #7
              Originally posted by cassb View Post
              OK thanks. That seems a strange way to handle buystoplimit orders, because a buy limit order cannot be above the current price or it gets filled immediately. Why would you ever want the limit price above the stop price on a buy order?? That doesn't make sense to me.
              Bryan
              That is not a NinjaTrader issue: the exchange will not allow you to submit orders that way. I know because I already walked that road some years ago; more specifically, 4 years ago.

              ref: http://www.ninjatrader.com/support/f...ad.php?t=44454

              The minimum LimitPrice on a long StopLimit entry is the StopPrice. IOW, you are allowed to submit a LimitOrder at a specified price (or higher), once the specified price is hit. We all want price improvement. The powers that be have decided that we cannot do it in one shot using a single resting order.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              558 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              324 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              101 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              545 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              547 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X