Sends a buy limit order. A return value of 0 indicates success and -1 indicates an error. Success indicates success in submitting the command NOT that the order was successfully submitted.
1) I'm running this on tradestation.
Here's my code:
if condition1 then
begin
value1 = NTBuyLimit(ACCOUNT_NUM, 100, currentask + .05);
end;
Then... I notice that when there is a buy order tradestation does not recognize than an order was taken place. So in order to keep tradestation up to par with what is going on I write.
if condition1 then
begin
value1 = NTBuyLimit(ACCOUNT_NUM, 100, currentask + .05);
buy this bar 100 shares at currentask + .05 limit;
end;
So now tradestation thinks that it is in the trade and is able to look for exit conditions, however will I get a multiple order? I only want to buy 100 shares, but in order to keep tradestation knowing what the market position is I have to write the code "buy this bar 100 shares ..." in order to get tradestation on the same page as my market position.
So in the second code will get buy 100 or 200 shares?
Comment