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 futtrader, 04-21-2024, 01:50 AM
            4 responses
            41 views
            0 likes
            Last Post futtrader  
            Started by Option Whisperer, Today, 09:55 AM
            1 response
            11 views
            0 likes
            Last Post bltdavid  
            Started by port119, Today, 02:43 PM
            0 responses
            3 views
            0 likes
            Last Post port119
            by port119
             
            Started by Philippe56140, Today, 02:35 PM
            0 responses
            4 views
            0 likes
            Last Post Philippe56140  
            Started by 00nevest, Today, 02:27 PM
            0 responses
            2 views
            0 likes
            Last Post 00nevest  
            Working...
            X