Login Page - Create Account

Support Board


Date/Time: Mon, 21 Apr 2025 04:41:26 +0000



[Programming Help] - Any way to call sc.GetOrderForSymbolAndAccountByIndex(...) in reverse?

View Count: 64

[2025-03-04 00:34:37]
LTSys - Posts: 68
Been looking for a way to get the results from this function in reverse.

So instead of starting at index zero...


int orderIndex = // some call to get the order count based on symbol and account

while(sc.GetOrderForSymbolAndAccountByIndex(EMPTY_STRING, accountName, orderIndex, order) != SCTRADING_ORDER_ERROR) {

orderIndex--; // reverse index
}

TIA
[2025-03-04 14:19:08]
seandunaway - Posts: 348
Automated Trading From an Advanced Custom Study: sc.GetOrderFillArraySize()
Automated Trading From an Advanced Custom Study: sc.GetOrderFillEntry()
[2025-03-04 14:25:33]
LTSys - Posts: 68
Thanks, I saw that function and passed over it because I was looking for a function that took an account and symbol name parameter.

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

Login

Login Page - Create Account