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 Mokaru Zen, Today, 01:20 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_Jason  
    Started by dgee949, Yesterday, 06:26 PM
    1 response
    35 views
    0 likes
    Last Post NinjaTrader_Jason  
    Started by dgee949, Yesterday, 05:58 PM
    1 response
    39 views
    0 likes
    Last Post NinjaTrader_Jason  
    Started by papaoutai, Yesterday, 08:56 AM
    1 response
    41 views
    0 likes
    Last Post NinjaTrader_Jason  
    Started by grzltn, Today, 02:18 AM
    0 responses
    19 views
    0 likes
    Last Post grzltn
    by grzltn
     
    Working...
    X