Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Order pending sound instead of order filled during strategy run

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

    Order pending sound instead of order filled during strategy run

    Hey guys,

    I wanted to report something strange. When I'm running a Strategy under Market Replay, the buy/sell stop limit order correctly says 'Order Pending'. But when the order is filled, it also says 'Order Pending'.

    However, if I'm not running a Strategy so I'm manually setting a buy/sell stop order, I get the correctly sequence of sounds being 'Order Pending' and then 'Order Filled'.

    #2
    Hello PN720,

    Thanks for writing in.

    Are you using a custom strategy?

    Does this behavior occur when you run the SampleMACrossover strategy?

    I look forward to your reply.
    Alan S.NinjaTrader Customer Service

    Comment


      #3
      Hey guys,

      Yes, this is a custom strategy. The default SMA Crossover strategy does not have the same issue. However, the SMA Crossover uses EnterLong and EnterShort.
      This custom strategy uses a Buy and Sell Limit orders so there's a Pending order, which may or may not fill on the subsequent bar.

      Here's the code for a Long Limit order at the High of the bar:

      EnterLongStopMarket(Convert.ToInt32(DefaultQuantit y), (High[0] + (1 * TickSize)) , "");

      This successfully adds the pending Buy Limit order and I hear 'Order Pending'.

      If the subsequent bar fills the order, I hear 'Order Pending' again instead of 'Order Filled'.

      Comment


        #4
        Order Pending

        Hello,

        Maybe a simple thought.

        Is you strategy placing a Stop... The Pending could be the Stop order going in..

        Greg

        Comment


          #5
          Ah yes, it is. The line right after it.

          SetStopLoss (CalculationMode.Price, Low[0] - ( TickSize));

          I guess NJT can only play one sound at a time, either the order pending for the stop placement or the order filled, then.

          Comment


            #6
            Yes,, it still Freaks me out!

            I did 142 round-turns the other day... Feels like I'm waiting to get Filled... But, the fill was fast!

            Comment


              #7
              Ok, great, thank you for your post as that's likely the issue. I'm not sure why NJT can't play the Order Filled sound too. It seems like a bug to me.

              Comment


                #8
                Hello PN720,

                Thank you for your response.

                The sounds are played with the most recent playing, thus the Order Pending is the new orders submitted.

                Please let me know if you have any questions.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by selu72, Today, 02:01 PM
                1 response
                4 views
                0 likes
                Last Post NinjaTrader_Zachary  
                Started by WHICKED, Today, 02:02 PM
                2 responses
                10 views
                0 likes
                Last Post WHICKED
                by WHICKED
                 
                Started by f.saeidi, Today, 12:14 PM
                8 responses
                21 views
                0 likes
                Last Post f.saeidi  
                Started by Mikey_, 03-23-2024, 05:59 PM
                3 responses
                51 views
                0 likes
                Last Post Sam2515
                by Sam2515
                 
                Started by Russ Moreland, Today, 12:54 PM
                1 response
                8 views
                0 likes
                Last Post NinjaTrader_Erick  
                Working...
                X