Support Board
Date/Time: Tue, 04 Nov 2025 01:28:01 +0000
Post From: Few problems in the Sierra Chart Custom Study
|   [2021-04-25 09:26:49]     |  
| User741184 - Posts: 44 | 
| 
                I have encountered few problems in my Sierra Chart Custom Study. I create a Window in it using the WinAPI. Now the problems are, 1. When the custom study is added to the Chart, and when I remove that study from the Chart, that Window does not get destroyed although in sc.LastCallToFunction call I am destroying the window. What is the reason behind it and how to handle this? if (sc.LastCallToFunction) 
{ DestroyWindow(hwnd); return; } 2. When the custom study is added to the chart and then ChartBook is closed without saving it, the Window gets destroyed. Now when I open the ChartBook again and add the custom study to the Chart, that Window does not appear. What is the reason behind this issue. Urgent help is needed. Thanks.  | 
        
