Login Page - Create Account

Support Board


Date/Time: Fri, 29 Mar 2024 14:35:30 +0000



Remove or Delete Study From Chart ACSIL Function

View Count: 1051

[2020-10-09 08:36:18]
kas64h - Posts: 87
I see the sc.AddStudyToChart ACSIL function has been added in release 2177.

Is there an 'equivalent' sc.RemoveStudyFromChart or sc.DeleteStudyFromChart ACSIL function, or can one be introduced?

Thank you.
[2020-10-09 19:04:43]
Sierra Chart Engineering - Posts: 104368
No this is not supported. We will have to see about that later on.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2021-03-02 11:04:43]
Marmany - Posts: 301
I would also find it useful to be able to remove a study using ACSIL
[2022-04-16 11:44:31]
kas64h - Posts: 87
I see you've been steadily upgrading many of the Sierra Chart Forms, the latest being Chart Settings.
I'm assuming you'll very soon upgrade the Chart Studies Form, which is going to create a major issue for me.

As part of a Study, I coded some functionality that with a single mouse click Removes/Deletes a Volume By Price Study previously drawn using Draw Volume Profile.
A specific VbP Study can be chosen for deletion from an on-screen grid (generated via the sc.p_GDIFunction function), which is extremely useful when Volume Profiles are very close together (as is often the case).
The problem is in order to achieve this I've had to synthesize a series of keystrokes (using SendInput etc.), which automatically opens the Chart Studies Form, tabs to the specific VbP Study, removes it and then closes the Form.
From a coding perspective, it's a downright horrible and 'dirty' method of doing it, but it's effective and it works (in Windows).
Obviously, this method relies upon the Form layout and its Tab Stops etc., and simply will not work when the Form is upgraded to the new style.
If helpful, I am more than happy to create and upload a short video demonstrating this functionality in operation, but don't want to take up anymore of your time than is necessary.

Obviously I don't want to lose this extremely useful and often used functionality.
The simple and best solution would be to use an 'opposite' function to the existing sc.AddStudyToChart function - i.e. something like sc.RemoveStudyFromChart or sc.DeleteStudyFromChart, which I've enquired about previously (see first post above).

Would it be possible to introduce such a function either before or at the time of the Chart Studies Form upgrade?

Thank you for your time.
[2022-04-18 19:44:15]
Sierra Chart Engineering - Posts: 104368
We will add this:
sc.RemoveStudyFromChart
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2022-04-22 13:10:44]
Sierra Chart Engineering - Posts: 104368
This ACSIL function is in the latest release:
sc.RemoveStudyFromChart
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2022-04-27 18:26:38]
Marmany - Posts: 301
Not able to find details of this new function in the online manual.
Please advise
[2022-04-27 18:43:23]
kas64h - Posts: 87
You don't really need the online manual, it's dead easy.

The signature is: void (SCDLLCALL* RemoveStudyFromChart)(const int ChartNumber, const int StudyID);

In other words in code just use something like sc.RemoveStudyFromChart(ChartNumber, StudyID);

It's a void function so there's no return value to worry about.

Tried it, and it works well!
[2022-06-26 19:58:23]
awakef - Posts: 53
Hi kas64h can you send me the code to remove or delete the volume by price study?
[2022-06-26 22:50:09]
Sierra Chart Engineering - Posts: 104368
We will make sure that function is documented.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing

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

Login

Login Page - Create Account