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 habeebft, Today, 07:27 AM
                1 response
                11 views
                0 likes
                Last Post NinjaTrader_ChristopherS  
                Started by AveryFlynn, Today, 04:57 AM
                1 response
                12 views
                0 likes
                Last Post NinjaTrader_Erick  
                Started by Max238, Today, 01:28 AM
                4 responses
                37 views
                0 likes
                Last Post Max238
                by Max238
                 
                Started by r68cervera, Today, 05:29 AM
                1 response
                10 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Started by geddyisodin, Today, 05:20 AM
                1 response
                13 views
                0 likes
                Last Post NinjaTrader_Gaby  
                Working...
                X