Support Board
Date/Time: Sat, 23 Nov 2024 18:30:58 +0000
ACSIL: quantity not being set...
View Count: 1500
[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! |
[2013-08-07 16:37:34] |
Sierra Chart Engineering - Posts: 104368 |
Use this instead and let us know what happens: NewOrder.OrderQuantity=100; We see no reason why the quantity would be wrong. We have never had a problem with that. Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
[2013-08-07 21:50:42] |
hairyMug - Posts: 31 |
My Bad... (egg on my face) All OK... Thanks! |
To post a message in this thread, you need to log in with your Sierra Chart account: