Login Page - Create Account

Support Board


Date/Time: Tue, 26 Nov 2024 04:32:33 +0000



[Programming Help] - Provide a chance for study to execute even if there is no data in the chart.

View Count: 268

[2023-12-27 17:10:48]
FrankUser - Posts: 18
I have created a custom study to auto set contract symbol and "Load Data Limiting Method: Date Range" according to a specified date as parameter. However, if there is no data in the data file of the original symbol, the study has no chance to run and change the contract symbol. Could provide the API to allow the study have a chance to run even if there is no data in the chart?
[2023-12-27 21:23:06]
User61168 - Posts: 403
+1... good feature to have (similar to some platforms that have the capability of running a script manually or on a scheduled timer)

Have you tried Chart > Recalculate or Chart > Reload and Recalculate option to see if your custom study gets triggered?
[2023-12-28 14:03:57]
FrankUser - Posts: 18
The work around is to change "Load Data Limiting Method" to "Use Number of Days to Load". However, it is just a work around. It is better to keep running the custom study if "sc.UpdateAlways" flag is set no matter whether there is data or not.
[2023-12-28 16:24:54]
User61168 - Posts: 403
Interesting! I just posted the 2 things here>>> order quantity in spreadsheet auto trading

I was told by an hired ASCIL expert that it is not possible to auto-switch charts with all the options in the drop-down for bar period and types. Even new bar creation is not possible.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account