Support Board
Date/Time: Sun, 23 Feb 2025 09:01:13 +0000
[Programming Help] - error: 'structs_sc' has no member named 'PersistVars'
View Count: 659
[2021-02-11 19:14:22] |
User61576 - Posts: 445 |
I am trying to compile this code here: Delta Divergence Source Code -- Does Not Compile and getting an error: In function 'void scsf_DeltaDivergence(SCStudyInterfaceRef)':
error: 'struct s_sc' has no member named 'PersistVars' and the line is int& inTrade = sc.PersistVars->i1;
as far as I understand (since SC team didn't fix it but only sent the user to an older version) this is a call for the current position is there any other way to call the current position? |
[2021-02-11 20:18:58] |
User907968 - Posts: 832 |
You need to replace sc.PersistVars with sc.GetPersistentInt, https://www.sierrachart.com/index.php?page=doc/ACSIL_Members_Functions.html#scGetPersistentInt.
|
To post a message in this thread, you need to log in with your Sierra Chart account: