Support Board
Date/Time: Sun, 24 Nov 2024 07:21:35 +0000
Post From: Issue: Custom study having custom object does not update once been added to the chart.
[2013-09-27 19:52:18] |
SherKhan - Posts: 19 |
Hello, I've built a custom class, which is declared in my custom study. If I declare the instance of the class inside the scsf_MainFunction(), the values calculated within the classs dont persist and the study does not display any results. If I declare the instance outside of the scsf_MainFunction() the study works fine and displays results. However, it works only when the study is added to the chart or chart values are recalculated (cntrl+insert). The values with in the class persist during this initial cycle. Any further updates to the chart such as new bars being added, the custom object does not persist any values and is not even initialized. I haved referenced Dynamic Memory allocation example given in the help section but that did not help (Study did not display at all). I have tried setting Free DLL = 0 as well but no luck. Is there any particular function/method I need follow ? Thank you! |