Login Page - Create Account

Support Board


Date/Time: Tue, 26 Nov 2024 06:40:56 +0000



Post From: GetPersistentInt() help

[2023-12-31 16:59:42]
User895355 - Posts: 55
I need to get a better handle on using GetPersistentInt(). My Tool autoloops and draws a horizontal line at each of the market sessions. ie: NY 9:30-16:00; LONDON 3:00 - 11:00, etc.
If I just set
sc.GetPersistentInt(1)
it's fine because it will only be the "last" session and none of the historical lines will be drawn. However, I have a flag "ShowHistorical" and if set to "true" ALL the historical lines will be drawn. How do I ensure the GetPersistentInt()'s will be unique then? I've tried several ways of dynamically creating integers for the persistentInts, but none of these are working. Please point me in the right direction.
Date Time Of Last Edit: 2023-12-31 22:48:31