Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NtDirect Order Fail

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

    NtDirect Order Fail

    In the situation where you have consecutive orders and the first one has zero or negative quantity, it seems to nullify the second order. See code below. This does not seem like it should be the appropriate action.



    Code:
    input:
    	StartTime(2400);
    
    
    if getappinfo(airealtimecalc) = 1 then begin
    	
    	if time = StartTime and barstatus(1) = 2 then begin
    		value1 = NTCommand("PLACE","Sim101","Sell",0,"limit",close + 1,0,"Day","","Sell"+numtostr(barnumber,0),"","");
    		value1 = NTCommand("PLACE","Sim101","Buy",10,"limit",close - 1,0,"Day","","Buy"+numtostr(barnumber,0),"","");
    		
    		end;
    		
    	end;

    #2
    Hello,

    Thanks for the forum post.

    NT by itself does not support order QTY of 0. This could cause issues down the line if NT was to ever come across this.

    We do not allow this in our order interfaces, I recommend that you do not allow this in your DLL interface as well.

    Thanks for taking the time to report.

    -Brett

    Comment


      #3
      Thanks Brett. I will review all of my code to make sure there are no circumstances where the quantity can be zero on order placement.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Balage0922, Today, 07:38 AM
      0 responses
      1 view
      0 likes
      Last Post Balage0922  
      Started by JoMoon2024, Today, 06:56 AM
      0 responses
      6 views
      0 likes
      Last Post JoMoon2024  
      Started by Haiasi, 04-25-2024, 06:53 PM
      2 responses
      19 views
      0 likes
      Last Post Massinisa  
      Started by Creamers, Today, 05:32 AM
      0 responses
      6 views
      0 likes
      Last Post Creamers  
      Started by Segwin, 05-07-2018, 02:15 PM
      12 responses
      1,786 views
      0 likes
      Last Post Leafcutter  
      Working...
      X