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 ChainsawDR, Today, 02:40 AM
    0 responses
    37 views
    0 likes
    Last Post ChainsawDR  
    Started by U0000999, Today, 01:30 AM
    0 responses
    46 views
    0 likes
    Last Post U0000999  
    Started by cryfgg, Yesterday, 04:53 PM
    0 responses
    32 views
    0 likes
    Last Post cryfgg
    by cryfgg
     
    Started by nothingbutprofits, Yesterday, 02:14 PM
    2 responses
    40 views
    0 likes
    Last Post nothingbutprofits  
    Started by Doctor JR, Yesterday, 12:34 PM
    3 responses
    49 views
    0 likes
    Last Post Doctor JR  
    Working...
    X