Support Board
Date/Time: Mon, 25 Nov 2024 22:49:58 +0000
[Programming Help] - Programmatically drawing volume profile tool drawings
View Count: 1617
[2022-06-30 19:47:44] |
onnb - Posts: 662 |
Is it supported to programmatically (via ACSIL) draw a volume profile (DRAWING_VOLUME_PROFILE)?
|
[2022-07-01 10:32:36] |
Sierra_Chart Engineering - Posts: 17177 |
Yes by using this function: sc.AddStudyToChart() Let us know how that works or if there are any issues. 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, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2022-07-02 00:34:56] |
onnb - Posts: 662 |
I see What I be doing something like this? 1. Using sc.AddStudyToChart() add it to the chart 2. Set the settings I need for the profile using sc.SetChartStudyInput - "Start Date (In: 37)", "Start Time (In: 39)", "End Date (In: 40)", "End Time (In: 41)" and "Volume Graph Period Type In:33" to "From Start Date-Time to End Date-Time" (does SC have setter for the date and time inputs?) 3. Refresh the chart (I'm assuming I'd need to do this for the inputs setting to kick in?) Is that right? |
[2022-07-02 20:16:27] |
Sierra Chart Engineering - Posts: 104368 |
2. Use this function to set date and time Inputs: sc.SetChartStudyInputFloat() 3. We do not think this would be necessary. Try without doing this. If necessary use this function: sc.RecalculateChart() 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 Date Time Of Last Edit: 2022-07-02 20:16:43
|
[2022-07-05 00:07:36] |
onnb - Posts: 662 |
Just reporting back here that your suggestion works as described and does not require a refresh. The histograms appear on the chart and we are able to manipulate the start and times fine The main difference we see between manually adding a VP using the drawing tool vs. programmatically calling AddStudytoChart is that when you programmatically add the VP study to the chart, you are adding the study and not a drawing. The end result is that the histogram appears on the chart just fine but be aware they are not added as a drawing. This means that none of the drawing related menus work and that you can't move/adjust the histogram by dragging it with the mouse. Just something to be aware of if someone is planning on doing this approach. |
[2022-07-05 04:38:14] |
Sierra Chart Engineering - Posts: 104368 |
Yes this does make sense what you say.
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-07-27 20:05:45] |
User818063 - Posts: 16 |
Hi >1. Using sc.AddStudyToChart() add it to the chart where can I find id of the added study that you need to use in the sc.SetChartStudyInput ? If I am not mistaken, when calling the AddStudyToChart function the study is not really available yet so it does not have an ID. So have can I change its parameters? or do I need to wait for the next call to get its id (for ex using the GetStudyIDByName function...) --W Date Time Of Last Edit: 2022-07-27 20:06:27
|
[2023-08-03 17:10:29] |
JohnR - User831573 - Posts: 306 |
First - If SC prefers this to be moved to a new thread, np. Also, I am interested of others needs/use of VPs - How much of a VP do you need? I'm not looking for any secrets, just trying to see if there is any commonality of need or use. I am starting an effort to programmatically create a volume profile using ACSIL based on definable conditions. I do understand the way it is implemented, but suggest there be a separate tool created I was thinking of a stripped down version of the current Volume Profile study. It could be a development effort, I have no idea the size, to --> clone -> strip or comment code sections -> then reuse remains to fit into template of your tools. I'm not sure what others capabilities of the VP others use, but here are mine, which are minimal - Basic Profile, with ability to extent until intersected for top/bottom of profile, top/bottom of Value Area, and POC - the ability to expand visual wider right than # of bars used for creating VP -- It would be really great, if the user could extend or cut the visual, similar to how other tools do. - the usual transparency & line control-color & width Here are the things I miss by having to use the current implementation. - Ability to directly change 'stuff' like other tools - current is to bring up a study edit window - Ability to 'share' instances on other charts as I do with other tools - Ability to easily delete an instance - other tools - left click , then right double click - Ability to edit anchors or other attributes when clicked on in the tools Mgr window. -- Yes, I can drag the object to change the # of bars used in VP. -- I can delete VPs there, but not actions I can do with other tools listed in the window. Thanks for your time to all willing to contribute. JohnR Date Time Of Last Edit: 2023-08-03 17:14:06
|
[2024-02-03 17:08:48] |
barucho - Posts: 11 |
Could you please clarify how to use the following to set the date and time inputs? Thank you! 2. Use this function to set date and time Inputs:
sc.SetChartStudyInputFloat() Update* Nevermind, I found more details linked in the function reference. Assuming I just set the SCDateTime using this. Thanks Date Time Of Last Edit: 2024-02-03 17:12:07
|
To post a message in this thread, you need to log in with your Sierra Chart account: