Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Handling Rejected Orders with TradeStation 8.3 EL strategy, using NT

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

    Handling Rejected Orders with TradeStation 8.3 EL strategy, using NT

    Hello,

    I wish to use the DLL method for NT to send orders from TRadeStation 8.3 (build 1631) to MF Global futures broker (Chicago office).

    My question is whether I can within the TradeStation 8.3 EasyLanguage program itself, call whether the order submitted by NT was in fact filled completely, filled partially or rejected by the broker i use, using the available NT DLL functions for TradeStation -- using something like GetOrderStatus() ?

    I am assuming that once NT sends the order to the futures broker that after say 1-2 seconds, NT receives from the broker some sort of order confirmation regarding whether the order was accepted or rejected, or partially filled, etc. ? (and this order confirmation can be seen somewhere in the main NT platform window).

    Once NT receives order confirmation from broker, i would then like for TradeStation to be able to call the order status from the NT platform. TradeStation would call the order status from within the TS easylanguage strategy code, using something like GetOrderStatus() ?

    Is this possible to do?

    As if tradestation asks NT to buy 10 contracts for Corn at market price, and then NT sends this order to our futures broker (MF Global / Man) but the broker rejects the order for some reason, i would like to send the order again within the tradestation EasyLanguage strategy code.

    in the EL code i would see something like:

    if condition 1 = true then placeBuyOrderNT(10, corn, accountID) ;
    if order is Rejected then send order again ;
    if order is accepted then do nothing ;

    the above code is just a basic example of the trust of what i want to do, and not the actual syntax i would use.

    Thanks in advance for your help and reply. Much appreciated.

    Regards

    Rod

    #2
    Most if not all of our question are covered by our help guide:http://www.ninjatrader-support.com/H...helpguide.html

    Automated Trading->Automated Trading Interface->TradeStation integration->DLL based integration

    Comment


      #3
      hi dierk, thank you for your reply. i read this section in help guide and it mentions function called OrderStatus() but it does not mention what values this function returns if called? can you please tell me this? thanks in advance. regards rod.

      Comment


        #4

        Comment


          #5
          hi dierk, thanks for that info, i now got that issue sorted out. thanks again. regards rod

          Comment


            #6
            Glad it's resolved for you.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            77 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            45 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            27 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            32 views
            0 likes
            Last Post TheRealMorford  
            Started by Mindset, 02-28-2026, 06:16 AM
            0 responses
            62 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X