Support Board
Date/Time: Fri, 07 Feb 2025 20:32:35 +0000
ACSIL - Can't find the doc for NewOrder.OrderQuantity for managing size
View Count: 619
[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 |
[2020-06-10 10:47:19] |
|
Review the documentation for MaximumPositionAllowed for a better understanding of how that works: Automated Trading Management: MaximumPositionAllowed 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 |
To post a message in this thread, you need to log in with your Sierra Chart account: