Announcement

Collapse
No announcement yet.

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.

    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.

        Comment


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

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          574 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          332 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
          552 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          551 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X