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 Jonafare, 12-06-2012, 03:48 PM
            5 responses
            3,986 views
            0 likes
            Last Post rene69851  
            Started by Fitspressorest, Today, 01:38 PM
            0 responses
            2 views
            0 likes
            Last Post Fitspressorest  
            Started by Jonker, Today, 01:19 PM
            0 responses
            2 views
            0 likes
            Last Post Jonker
            by Jonker
             
            Started by futtrader, Today, 01:16 PM
            0 responses
            8 views
            0 likes
            Last Post futtrader  
            Started by Segwin, 05-07-2018, 02:15 PM
            14 responses
            1,792 views
            0 likes
            Last Post aligator  
            Working...
            X