Support Board
Date/Time: Mon, 03 Feb 2025 12:58:10 +0000
Post From: how to avoid closing a user's already-opened chart
[2019-11-04 23:29:54] |
jsoctus - Posts: 3 |
Hello, I am trying to programmatically reference the daily chart timeframe from other timeframes (e.g. the Daily from 5 min, 2 min, 30 min, weekly, etc.). The sc.OpenChartOrGetChartReference function allows opening another chart to access the daily timeframe. I can get my data, then close the chart so the user doesn't have a lot of charts they must manually close. How can I be sure that the chart I close isn't one that the user had already opened? I believe that could happen if I use the sc.OpenChartOrGetChartReference and the user already has a daily chart open. Can I force sc.OpenChartOrGetChartReference to open a new chart that I can close without risking closing a user's needed chart? John |