Support Board
Date/Time: Sun, 22 Dec 2024 13:06:18 +0000
Post From: How to reference Persistent Variables from a different chart.
[2015-04-20 05:29:34] |
CustomIndicators - Posts: 126 |
Thank you for documenting this code. I feel that it will help me greatly. Now, I have a couple questions about that code, as it doesn't seem completely clear to me. Lets say I have a study on chart 1, where I need to retrieve the double persistent variable called peakOne, on a study called MyIndicator. Do I have to use peakOne as the variable name on the study that is asking about the other chart? For instance: float & peakOne = sc.GetStudyPersistentFloatFromChart(1, MyIndicator, key); Also, what exactly does the Key value refer to? I'm trying to retrieve a value, not set one. |