Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Problem with buy stop order

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

    Problem with buy stop order

    Hello,

    When my strategy send a order of type "Buy Stop", there are situations that the market price is above the Stop Price for Entry (because the price has rised very quickly). And then my stratety is cancelled. How can I solve this problem?

    Thanks in advance.

    #2
    soyjesus, you would need to check against the inside market (bid / ask) before submitting the order to ensure it's a valid one.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Ok, but is there any function in Ninja for check against the inside market (bid / ask)?

      Thanks.

      Comment


        #4
        No, you would just check against the GetCurrentBid & GetCurrentAsk and place the order only if the BuyStop price is higher than the ask for example, otherwise not a valid order.
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Ok, thank you very much for your help, Bertrand.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by samish18, 04-17-2024, 08:57 AM
          17 responses
          64 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Started by rocketman7, Today, 02:12 AM
          2 responses
          16 views
          0 likes
          Last Post rocketman7  
          Started by briansaul, Today, 05:31 AM
          1 response
          12 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by PaulMohn, Today, 03:49 AM
          1 response
          12 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Started by frslvr, 04-11-2024, 07:26 AM
          6 responses
          106 views
          1 like
          Last Post NinjaTrader_BrandonH  
          Working...
          X