Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Testing Order rejection

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

    Testing Order rejection

    Hi, I want to simulate an order rejection in order to test if my strategy is handling this correctly. In order to simulate this on FOREX I reset the simulation account SIM101 (account connected to my strategy) and put the initail cash on 1 and the margin on 1 as well (jn the tab 'accounts' the buying power is 1 so the reset is executed well). I expect that an order will be rejected because of margin/ not enough cash. But if I enable the strategy an order is still filled on SIM101? Is that because it is a FOREX order? How could I simulate an order rejection?

    Kind regards,
    Rene

    #2
    Renejm, what order size do you then try to submit with? Easiest probably for forex would be trying a 'marketable' limit order that should be rejected as not allowed there compared to futures.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      I have submitted a market order of 20.000 for $AUDUSD. The order is submitted and filled despite a balance of $1.

      Comment


        #4
        Thanks, can you try running with a higher size, for example 200k?

        There are some limitations you into here on the simulator, our next major platform update will introduce a changed and improved logic here.
        BertrandNinjaTrader Customer Service

        Comment


          #5
          I have solved the issue. By default for currency pairs the margin to be calculated as defined in the instrument manager is set to 0. If increased margin is calculated and the order is rejected as expected. So issue solved. Thansk for your help.

          Comment


            #6
            Originally posted by Renejm View Post
            I have submitted a market order of 20.000 for $AUDUSD. The order is submitted and filled despite a balance of $1.
            Try submitting a Buy Stop entry below the market, or a Sell Stop entry above the market. That is the best way to guarantee a rejection.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by chbruno, 04-24-2024, 04:10 PM
            4 responses
            50 views
            0 likes
            Last Post chbruno
            by chbruno
             
            Started by TraderG23, 12-08-2023, 07:56 AM
            10 responses
            398 views
            1 like
            Last Post beobast
            by beobast
             
            Started by lorem, Yesterday, 09:18 AM
            5 responses
            20 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by WHICKED, Today, 12:56 PM
            2 responses
            15 views
            0 likes
            Last Post WHICKED
            by WHICKED
             
            Started by Felix Reichert, Today, 02:12 PM
            0 responses
            4 views
            0 likes
            Last Post Felix Reichert  
            Working...
            X