Support Board
Date/Time: Fri, 14 Mar 2025 22:17:08 +0000
Post From: User/Source code controlled settings
[2022-06-29 14:39:19] |
JohnR - User831573 - Posts: 320 |
Here are a few other things to consider. ACSIL Interface Members - Variables and Arrays: sc.SetDefaults What Should Be Located in the sc.SetDefaults Code Block 2-> Setting of defaults. For example, you will want to set properties of a sc.Subgraph[] like the sc.Subgraph[].DrawStyle and the colors. You will want to set default study Input values with the sc.Input[].Set* functions. Setting of defaults must be done in the sc.SetDefaults code block because otherwise when the settings are changed through the Study Settings window for the study, those changes will get reverted back to what the study function is setting them to if the code to change the sc.Subgraph, sc.Input and other settings is done outside of the sc.SetDefaults code block. 7-> When using ACSIL Functions within the sc.SetDefaults code block and those functions interact with the chart, they will have no effect. They will return and do nothing. There is also a section in the doc describing different conditions of when a study is called. Working with ACSIL Arrays and Understanding Looping: When the Study Function is Called JohnR |