Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

rejected orders

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

    rejected orders

    Hi,

    I placed orders to long USDCAD at 7:30:03 CDT this morning and all were rejected due to invalid order values. When i look at my broker side (IB), all orders were at API panel with limit price missing. So i guess it might be something to do with the half pip limit price. By the way, i set FX quote options to halfpip per IB connection instructions.

    I pasted the log here:
    11/30/2009 7:30:03 AM|1|32|Order='72d8a2aad7f849eea370d7794eaa1b86/DU74392' Name='News_L1' New State=Accepted Instrument='$USDCAD' Action=Buy Limit price=1.05705 Stop price=1.0568 Quantity=0.05M Type=StopLimit Filled=0 Fill price=0 Error=NoError Native error=''
    11/30/2009 7:30:03 AM|1|32|Order='72d8a2aad7f849eea370d7794eaa1b86/DU74392' Name='News_L1' New State=Rejected Instrument='$USDCAD' Action=Buy Limit price=1.05705 Stop price=1.0568 Quantity=0.05M Type=StopLimit Filled=0 Fill price=0 Error=OrderRejected Native error='You must enter a valid price. (463)'
    11/30/2009 7:30:03 AM|0|32|You must enter a valid price. (463) Affected Order: Buy 50000 StopLimit @ 1.0568 x 1.05705

    Any suggestions are welcome.

    #2
    Which IB TWS version are you on?
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      It is build 898.4.
      I did a test and it looks like the problem is USDCAD specific.
      The same code has no problem on EURUSD, USDJPY, EURJPY. On USDCAD, if the number of ticks between stop and limit is set to odd number, all orders will be rejetced. If set to even number, the orders with half pips will be rejetced and orders without half pips will survice.

      Comment


        #4
        binwang2,

        I suppose a way you can check is to try to submit half pips directly in IB and see what happens on USDCAD.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Just entered an order FOR USDCAD with half pip in IB. It was rejected. The warining message is: 1.05755 does not conform to the minimum price variation of 0.0001 for this contract.
          I checked NT's instrument for USDCAD: the tick size is set at 0.00005. So i assume i can change it to 0.0001. Do you see any issue of that?

          Comment


            #6
            I see no issue.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              I am attempting paperTrade with IB on nT7 got the error below in log USDCAD

              I attempted already in NT7 ran into this error: You must enter a valid price. (463) affected Order:

              Comment


                #8
                To clarify, what did you already try? The suggestion in post #5?
                Josh P.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by usazencort, Today, 01:16 AM
                0 responses
                1 view
                0 likes
                Last Post usazencort  
                Started by kaywai, 09-01-2023, 08:44 PM
                5 responses
                603 views
                0 likes
                Last Post NinjaTrader_Jason  
                Started by xiinteractive, 04-09-2024, 08:08 AM
                6 responses
                22 views
                0 likes
                Last Post xiinteractive  
                Started by Pattontje, Yesterday, 02:10 PM
                2 responses
                21 views
                0 likes
                Last Post Pattontje  
                Started by flybuzz, 04-21-2024, 04:07 PM
                17 responses
                230 views
                0 likes
                Last Post TradingLoss  
                Working...
                X