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

order rejected - further handling

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

    order rejected - further handling

    Hello,

    I have finished all my scripts and not I´m facing the last problem with executing stops correctly.

    a.) If an order is rejected, eg exitlongstop, because of fast move in market and therefore in my script I do
    "if (order.OrderState == OrderState.Rejected)
    {
    exitOrder(1a) = ExitLong(1,"x1a","1a");
    CancelOrder(stopOrder1a);
    }

    would this be the same action as a market-order?

    b.) I´m looking for how to do a stop as mar****rder (instead of using setstoploss because of handling restrictions). Is there a stop as market-order with exitlong....() to use instead of setstoploss to have it working as stop-market-order?

    Thanks
    Tony

    #2
    Hello Tony,

    A. Yes, ExitLong() is a Market Order.

    B. ExitLongStop() will be a Stop Market Order that you may use.
    JCNinjaTrader Customer Service

    Comment


      #3
      Thank you for your reply.

      A.) OK

      B.) Now I´m totally confused.

      I thought so that ExitLongStop will be a market order but then I got the information from NT-Patrick:

      "Thank you for your response.

      That would not be the same as a Market Order. The Stop Market Order only becomes a Market Order once it's price level has been reached."


      Thats why I had to ask again (and again, and again?)

      So, is ExitLongStop a market order same as Setstoploss or not? You say here it is - thank you for your support by the way - but Patrick says it isn´t.

      Thanks
      Tony

      Originally posted by NinjaTrader_JC View Post
      Hello Tony,

      A. Yes, ExitLong() is a Market Order.

      B. ExitLongStop() will be a Stop Market Order that you may use.

      Comment


        #4
        Originally posted by tonynt View Post
        b.) I´m looking for how to do a stop as mar****rder (instead of using setstoploss because of handling restrictions). Is there a stop as market-order with exitlong....() to use instead of setstoploss to have it working as stop-market-order?
        For question "b" as seen above you asked for an Exit() method that would exit out of a long position using a stop market order. ExitLongStop() will submit a Stop Market Order. SetStopLoss() will also submit a Stop Market Order so they would be basically the same thing, but with the ExitLongStop so you can handle restrictions.

        Please view the following link below that goes over the different types of Orders.
        Investors have several orders options when it comes to buying and selling securities.
        JCNinjaTrader Customer Service

        Comment


          #5
          Originally posted by tonynt View Post
          Thank you for your reply.

          A.) OK

          B.) Now I´m totally confused.

          I thought so that ExitLongStop will be a market order but then I got the information from NT-Patrick:

          "Thank you for your response.

          That would not be the same as a Market Order. The Stop Market Order only becomes a Market Order once it's price level has been reached."

          Thats why I had to ask again (and again, and again?)

          So, is ExitLongStop a market order same as Setstoploss or not? You say here it is - thank you for your support by the way - but Patrick says it isn´t.

          Thanks
          Tony
          Neither is a Market Order. In action, they are equivalent conditional orders. They rest, and each becomes an active Market Order, when and only when the Stop price is reached. It is exactly as NT-Patrick says: "The Stop Market Order only becomes a Market Order once it's price level has been reached." (emphasis mine).

          IOW, you need precision in description. Neither is a Market Order when placed. Once their activation condition is reached (i.e., Stop reached), they then become Market Orders.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by trilliantrader, Today, 08:16 AM
          2 responses
          6 views
          0 likes
          Last Post trilliantrader  
          Started by samish18, Today, 08:31 AM
          1 response
          1 view
          0 likes
          Last Post NinjaTrader_Clayton  
          Started by Creamers, 09-08-2023, 10:26 AM
          6 responses
          157 views
          0 likes
          Last Post JonyGurt  
          Started by funk10101, Today, 08:14 AM
          1 response
          2 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by bill2023, Yesterday, 08:51 AM
          3 responses
          22 views
          0 likes
          Last Post bltdavid  
          Working...
          X