Login Page - Create Account

Support Board


Date/Time: Fri, 04 Jul 2025 20:54:29 +0000



where can i get a cop of the sierra chart VWAP study coding

View Count: 207

[2025-06-27 00:09:14]
coachted - Posts: 421
where can i get a cop of the sierra chart VWAP study coding to use as a framework for coding i want to do
[2025-06-27 01:05:32]
cmet - Posts: 708
ACS_Source/studies6.cpp
[2025-06-27 01:10:47]
coachted - Posts: 421
thank you
[2025-06-27 14:06:42]
coachted - Posts: 421
so i did a ctl find on all the code in studies6.cpp and could not rind any reference to volume weighted average price..would you happen to know where in study 6 it is..sorry to be an idiot
[2025-06-27 14:10:30]
User431178 - Posts: 732
ACS_Source/studies3.cpp line 592
[2025-06-27 14:13:32]
coachted - Posts: 421
awsome thank you i got it now
[2025-06-28 00:17:50]
ForgivingComputers.com - Posts: 1076
so i did a ctl find on all the code in studies6.cpp and could not rind any reference to volume weighted average price..would you happen to know where in study 6 it is..sorry to be an idiot

FAQ: How to find the source code for any study that has it available.

1. Check the Study Settings window for the study. At the bottom left, if there is a box labeled DLLName.FunctionName, then the source code is available.
2. Copy the text beginning with scsf following the dot (e.g. "scsf_VolumeWeightedAveragePrice")
3. In Notepad++ open the Find All (Ctrl-Shift-F)
4. In Find What: Paste the scsf function name
5. In Filters: *.cpp
6. Directory: c:\sierrachart\acs_source
7. Click Find All

The CPP file and the location of the function will result.
Search "scsf_VolumeWeightedAveragePrice" (1 hit in 1 file of 450 searched) [Extended: Case]
c:\sierrachart\acs_source\Studies3.cpp (1 hit)
  Line 592: SCSFExport scsf_VolumeWeightedAveragePrice(SCStudyInterfaceRef sc)

The entire function can then be copied, pasted, and edited in your CPP. It will not compile by itself; it needs the other stuff found in a custom study.
[2025-06-28 17:41:04]
coachted - Posts: 421
great info thanks
[2025-07-01 14:38:38]
coachted - Posts: 421
is there a place to find the code for the Tools>Extended Rectangle...i want to use it as a base for a custom tool
[2025-07-01 15:25:19]
ForgivingComputers.com - Posts: 1076
is there a place to find the code for the Tools>Extended Rectangle...i want to use it as a base for a custom tool

Not exactly. Tools do not have their source code available, but you can create a custom tool based on the existing tools:
Using Drawing Tools From an Advanced Custom Study

Your custom tool will not be on the Tools menu. You will need to create your own interaction with it. (Chart menu, keyboard shortcut, etc.)
[2025-07-01 15:53:28]
coachted - Posts: 421
ok so i assume this would be a custom study that i would have to create a interaction for?
[2025-07-01 17:28:38]
ForgivingComputers.com - Posts: 1076
ok so i assume this would be a custom study that i would have to create a interaction for?

Correct.
[2025-07-01 17:36:00]
coachted - Posts: 421
so currenlty i use a lot of tool bars with custom tools on them ...is it possible to make a button on the toolbar that could be used as an interaction? Or another question will ACSIL allows me to modify native drawing tool properties dialogs. So if I wanted to add a user defined option in the Extended Rectangles Properties window would this be something that could be down?
Date Time Of Last Edit: 2025-07-01 17:52:38
[2025-07-01 17:56:16]
ForgivingComputers.com - Posts: 1076
ACSIL will let you use a Control Bar Button to enable a custom tool, which can modify the properties of any existing tool type. Study settings can allow a user to customize the tool.

Using Drawing Tools From an Advanced Custom Study
[2025-07-01 18:33:25]
coachted - Posts: 421
Thank you for providing this...this really helps me understand what i can do thanks again
Date Time Of Last Edit: 2025-07-01 18:33:47

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

Login

Login Page - Create Account