Support Board
Date/Time: Fri, 31 Oct 2025 08:53:06 +0000
[Programming Help] - attaching a study to multiply charts but using results form specific chart
View Count: 744
| [2021-05-10 20:58:20] | 
| User61576 - Posts: 453 | 
| is there any way in ACSIL to use the same study on 2 different charts (each has a different timeframe) but to create a chart display based on specific chart #? | 
| [2021-05-10 21:10:38] | 
| Zosimus - Posts: 345 | 
| Hi User61576, Can you be a little bit more specific? Many ACSIL functions can refer to different charts and you can also get values of persistent variables from other charts. Date Time Of Last Edit: 2021-05-10 21:12:15  | 
| [2021-05-10 21:20:41] | 
| User61576 - Posts: 453 | 
| example 1: let's say I have a control panel with "on/off" for the study. i would like to set the on/off for study + chart # which it was added to example 2: using same study on 2 charts of 5K vol and 500 net delta, and use the info generated from chart #2 (500 net delta) into the study in chart #1 which is also using similar calculations so the chart1 activity is based on both calculation on chart 1 and calculation on chart 2 i hope it's better explained now thank! | 
| [2021-05-10 22:54:10] | 
| Zosimus - Posts: 345 | 
| I think that the sc.GetPersistent*FromChartStudy and sc.SetPersistent*ForChartStudy functions may help. Documented here: ACSIL Interface Members - Functions: Chart Study Persistent Variable Functions Date Time Of Last Edit: 2021-05-10 22:55:03  | 
| [2021-05-11 15:21:08] | 
| sushant - Posts: 32 | 
| Using GetPersistentIntFromChartStudy is causing the sierra chart to crash when I apply the study on the chart I made a class and uses the pointer s_sc pointer to access the sc variables. Earlier I had the variable as a class member and it was not crashing but as I replace it with GetPersistentIntFromChartStudy it is crashing as I apply the study on the chart. I am using the code attached below as the base code for my study I have modified it for my study Date Time Of Last Edit: 2021-05-12 10:29:17  | 
|  TradeWindow.cpp - Attached On 2021-05-12 10:27:30 UTC - Size: 7.97 KB - 245 views | 
To post a message in this thread, you need to log in with your Sierra Chart account:
