Login Page - Create Account

Support Board


Date/Time: Mon, 21 Apr 2025 17:07:52 +0000



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

[2025-02-26 17:01:18]
LTSys - Posts: 68
edit: oh yeah also make sure your tradeAccount string is null terminated

This was part of the issue as well. Allocating a buffer for tradeAccount and mem setting the buffer to null fixed it.

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

I've now taken an OOP approach and moved all logic into classes. The study is now very minimal with a single global variable pointer that points to a main class. If I put that pointer into a persistent variable it would only be visible to that study instance correct?