Support Board
Date/Time: Fri, 07 Feb 2025 19:45:39 +0000
Post From: ACSIL - Can't find the doc for NewOrder.OrderQuantity for managing size
[2020-06-09 18:24:38] |
MattK - Posts: 42 |
Hi, I can't find the doc or any example on OrderQuantity where the size is above 1. I'm trying to create a simple if else statement where the quantity is 1 or 2 but it says that the allowed quantity has been reached even with: sc.MaximumPositionAllowed = 5; Here is my code (it's just a simple test to see if it works): if(Hour < 7)
{ NewOrder.OrderQuantity = 2; NewOrder.OCOGroup1Quantity = 2; } if(Hour >= 7) { NewOrder.OrderQuantity = 1; NewOrder.OCOGroup1Quantity = 1; } If you could just point me to the documentation or let me know what I'm doing wrong I would appreciate. Thanks in advance. Best regards |