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


                  #9
                  Originally posted by greg500 View Post
                  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!
                  But you can switch on the sequential sound play to hear all the sounds in there!! See the attached screen shot please.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by argusthome, 03-08-2026, 10:06 AM
                  0 responses
                  63 views
                  0 likes
                  Last Post argusthome  
                  Started by NabilKhattabi, 03-06-2026, 11:18 AM
                  0 responses
                  40 views
                  0 likes
                  Last Post NabilKhattabi  
                  Started by Deep42, 03-06-2026, 12:28 AM
                  0 responses
                  21 views
                  0 likes
                  Last Post Deep42
                  by Deep42
                   
                  Started by TheRealMorford, 03-05-2026, 06:15 PM
                  0 responses
                  25 views
                  0 likes
                  Last Post TheRealMorford  
                  Started by Mindset, 02-28-2026, 06:16 AM
                  0 responses
                  51 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Working...
                  X