Login Page - Create Account

Support Board


Date/Time: Sat, 11 Jan 2025 17:38:38 +0000



Post From: RFE: ACSIL function to apply Study Collection to an ACSIL opened chart.

[2016-12-13 09:25:37]
bjohnson777 (Brett Johnson) - Posts: 284
In talking with Avi about my Custom Stock Index Creator, we've discovered it should be possible to extend it into a simple stock screener.

The missing piece is to automatically have ACSIL add studies to the newly opened charts. Getting individual studies set up by ACSIL is problematic and tedious, but having the end user saving a Study Collection that ACSIL can then apply to a chart number should be easy.

I'm aware you guys are overloaded, so I'm just suggesting exporting to ACSIL what's already available in the regular GUI will little or no changes.

There will need to be an SCInputRef that lists the same Study Collections under the Analysis menu so the user can choose the desired one.

Inside ACSIL, the quickest way to get this working is to provide the same Study Collections menu list as an array of read only strings or SCString's. Keep the strings the same as the Analysis menu order so array index 0 applies to the first Study Collection, and so on. If there are no Study Collections, return -1 for error or NULL if a pointer is used to the menu string array.

From there I could search the string list on my own and find its index number. Applying the Study Collection to a chart would probably look something like this:
sc.ApplyStudyCollectionToChart(ChartNumber, StudyCollectionIndexNumber);

I'm aware the Study Collection list isn't sorted in the Analysis menu. Passing an array of strings back to be manually searched means that y'all don't have to come up with any fancy ways of trying to come up with permanent index numbers.

I think I can use the recent sc.GetStudyNameFromChart() to fill in the rest of the blanks in my program.

Is all this possible to do?

Thanks