Login Page - Create Account

Support Board


Date/Time: Mon, 16 Jun 2025 00:06:33 +0000



Post From: protect built-in studies

[2025-05-19 22:14:11]
User380582 - Posts: 10
Ok I understand. Is there no posiblity of having these feartures for built in studies without source code in the future:
After using AddStudyToChart() to add the study to chart one could hide the data from study by two steps:
1. Setting custom inputs with ACSIL
2. Protecting the study with password through ACSIL

The DLL with the above steps would be included in the Sierra Chart Custom Studies Access Control Panel,
The DLL woud also be using the permission check at the beginning of the study:
// ── Permission check ─────────────────────────────────────────────────────────
if (!sc.IsUserAllowedForSCDLLName)
{
if (sc.Index == 0)
sc.AddMessageToLog("You are not allowed to use this study", 1);

// remove LVTI only once on full recalculation when unauthorized
if (sc.IsFullRecalculation && sc.Index == 0)
{
int existingID = sc.GetStudyIDByName(sc.ChartNumber, "Large Volume Trade Indicator", 0);
if (existingID > 0)
{
sc.RemoveStudyFromChart(sc.ChartNumber, existingID);
//sc.AddMessageToLog("removing LVTI ind", 1);
}
}
return;
}

So if user is not in the control panel, it would remove the study. If user is in the control panel,
the study would first check if study is already on the chart, if no it would add the study to
chart, set inputs and protected it with password.

Thanks for the answers. This was my last question
Date Time Of Last Edit: 2025-05-19 22:19:14