Login Page - Create Account

Support Board


Date/Time: Sun, 24 Nov 2024 17:45:18 +0000



[Programming Help] - PositionData doesnt show Sell/Short orders?

View Count: 176

[2024-05-13 00:09:15]
KylieV1618 - Posts: 67
Im using
int workingOrderCount = PositionData.AllWorkingSellOrdersQuantity + PositionData.AllWorkingBuyOrdersQuantity;
this to get the number of working orders, and then if its greater than 0, displaying a label to show the order.

It works fine if I place a buy order, but if I place a sell order above the price, it is always 0. How do I access Sell orders??

I tried also...

PositionData.PositionQuantityWithAllWorkingOrders

But it suffers the same issue. Only displays the order/label, when its a buy order. Otherwise nothing :(

Please let me know the correct way to do this.



Thanks
Date Time Of Last Edit: 2024-05-13 00:17:42
attachment2024-05-12 17-15-26.mp4 - Attached On 2024-05-13 00:17:32 UTC - Size: 532.97 KB - 250 views
[2024-05-17 19:26:00]
KylieV1618 - Posts: 67
Also, how do I get the daily profit, per account, regardless of what Symbol it is?
Im trying to display account data on a chart, but have it be global, not based on just that chart.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account