Login Page - Create Account

Support Board


Date/Time: Thu, 19 Sep 2024 15:54:13 +0000



Post From: ACSIL: quantity not being set...

[2013-08-07 11:21:20]
hairyMug - Posts: 31
I set the quantity of an order but it does not buy that quantity. Code:

    s_SCNewOrder NewOrder;      
    NewOrder.OrderType = SCT_ORDERTYPE_MARKET;
    NewOrder.OrderQuantity=li_shares;
    NewOrder.TimeInForce = SCT_TIF_GTC;

Even though I set the "li_shares" to 150, It uses a seemingly random number, sometimes close, like 124, and others as low as 5 shares.
This is on SC historical data, daily bars, bar-based backtest and the tick is JNJ, so there is plenty of volume. I get the same results with other tickers...


Thank You!