Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Order Not Created

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

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

    Leave a comment:


  • Atomic
    started a topic Order Not Created

    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

Latest Posts

Collapse

Topics Statistics Last Post
Started by ezrollin, Yesterday, 08:51 PM
1 response
32 views
0 likes
Last Post bltdavid  
Started by Rubix, Yesterday, 09:31 PM
0 responses
18 views
0 likes
Last Post Rubix
by Rubix
 
Started by ark321, Yesterday, 05:12 PM
1 response
27 views
0 likes
Last Post NinjaTrader_EricB  
Started by futurenow, Yesterday, 09:08 PM
0 responses
5 views
0 likes
Last Post futurenow  
Started by fafafdenis, Yesterday, 04:56 PM
1 response
8 views
0 likes
Last Post NinjaTrader_EricB  
Working...
X