Login Page - Create Account

Support Board


Date/Time: Mon, 24 Feb 2025 22:43:04 +0000



Calculate VWAP at the current bar

View Count: 673

[2021-03-25 21:19:20]
User741184 - Posts: 44
Hi,

I have the chart set to Bar Period Type: Volume per Bar with Setting: 7500. Also the Chart Update Interval is set to 500 milliseconds. The VWAP studies have also been added to the chart for different Time Period Types and Lengths. How can I get the VWAP or its bands' values(SG1 to SG9) at any chart bar?

I have attached the picture where I have highlighted the conditions which I want to check where the chart bar is on the VWAP or any of its bands' lines.
Private File
[2021-03-25 22:05:15]
John - SC Support - Posts: 38148
To see the values of a chart bar and the studies that are on the chart at that bar, use the Crosshair tool with the Tool Values Window. Refer to the following:
Chart Drawing Tools: Chart Values/Crosshair

And the following:
Chart Drawing Tools: Tool Values Window
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2021-03-25 22:21:54]
User741184 - Posts: 44
But that would be through the use of Tools on Sierra Chart, how to do that through the code using ASCIL?
[2021-03-25 22:26:28]
User741184 - Posts: 44
If we can get the current bar of the chart through the sc.ArraySize-1 index into the base data array, how to get the value of VWAP or the value of its bands at that current bar? To identify the conditions where the VWAP lines are on the current chart bar.
[2021-03-26 13:59:49]
John - SC Support - Posts: 38148
Refer to the following:
ACSIL Interface Members - Functions: sc.GetStudyArrayUsingID()
For the most reliable, advanced, and zero cost futures order routing, use 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