Login Page - Create Account

Support Board


Date/Time: Mon, 21 Apr 2025 16:24:21 +0000



Post From: SOLVED Issue with function sc.GetOrderForSymbolAndAccountByIndex(...)

[2025-02-25 13:56:36]
seandunaway - Posts: 348
sounds like your running off the stack frame or static space in your code

my guess is you're using globals instead of persistent variables and different instances of the code are overwriting the values

globals are shared across every instance of your study which is rarely a good idea

are you doing any weird pointer arithmetic (like tradeAccount++) or have dangling pointers?

edit: oh yeah also make sure your tradeAccount string is null terminated
Date Time Of Last Edit: 2025-02-25 14:31:11