Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Order Not Created

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

    Order Not Created

    Code:
    if time = 1500
     and NTFilled(NTEntOrderID) = 1
     and NTFilled(NTStopOrderID) = 0
     and NTOrderStatus(NTStopOrderID) = "Working"
     then begin
     value1 = NTCancel(NTStopOrderID);
     value1 = NTCommand("PLACE",NTAcct,"Sell",NTCon,"Limit",close,0,"Day","",NTExitOrderID,"","");
     end;
    An exit order was placed using the above. You can see the order in the log, but if you look at the orders, it never shows up. I've never had this happen before. I removed my actual account name/number. I've been using code like this for years.
    Attached Files

    #2
    Please disregard this post. I see that my NTChange command is incorrectly formatted. Limit order price is in the stop order position.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by MohammedAmine, Today, 10:44 AM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_Kate  
    Started by Nolyn, Today, 10:59 AM
    0 responses
    3 views
    0 likes
    Last Post Nolyn
    by Nolyn
     
    Started by Gkomi, Today, 10:02 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Jim  
    Started by JTizz, Today, 08:58 AM
    6 responses
    30 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by Bob49, Today, 08:40 AM
    0 responses
    19 views
    0 likes
    Last Post Bob49
    by Bob49
     
    Working...
    X