Login Page - Create Account

Support Board


Date/Time: Sat, 23 Nov 2024 02:37:11 +0000



Displaying average value per bar

View Count: 680

[2023-04-02 21:56:10]
JuggingTicks - Posts: 5
Is there a method to display the average value per bar of a given data point? I am looking to recreate a feature from a Tradovate indicator to display the average delta per bar and adjust in real time in the numbers bars calculated values study. See attached screenshot - average delta per bar is calculated and displayed as the session progresses and a % value is printed once the current bar breaches greater than 100% of the current average. Is there an existing feature that can do this? Any advice is greatly appreciated.
imageimage.png / V - Attached On 2023-04-02 21:54:37 UTC - Size: 26.57 KB - 125 views
[2023-04-03 09:45:25]
Sierra_Chart Engineering - Posts: 17145
Yes this value can be seen in the Tool Values Window when using the Chart Values tool:
Chart Drawing Tools: Chart Values (Global Settings >> Tool Settings >> General)

The price average is the HL Average value. And you will also see all other study values. So you can add whatever other studies you need to calculate what you want.

Also refer to:
Using the Basic Arithmetic Studies
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
Date Time Of Last Edit: 2023-04-03 09:48:04
[2023-04-03 23:53:42]
JuggingTicks - Posts: 5
Thank you, I have found what you referenced and have a really good start. The only problem is the Study Subgraphs Average study is just calculating the average of the current bar which is really just total volume. I would like it to calculate the average volume per bar across all available chart data or a set session time. (cumulative Bid+Ask Vol)/(# of bars present)=Avg Vol per bar. Possibly a Study Subgraphs Divide study if I can somehow reference the number of bars loaded? The goal is to display the average volume per bar so I can see if the current or recent bars were above/below average volume. I would use relative volume, but I am using this on a non time based 8 range bar chart.
[2023-04-04 16:58:53]
John - SC Support - Posts: 36238
The number of bars can be found by using the Bar Numbering study. Refer to the information here:
Bar Numbering
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2024-09-20 02:45:20]
Gtrader510 - Posts: 72
I also have same question how can I find average volume for bars?
[2024-09-20 13:59:56]
John - SC Support - Posts: 36238
To find the Average volume over some number of bars, use the "Moving Average - Simple" study and set the "Input Data" to be "Volume" and set the number of bars for which you want the average determined. Refer to the following:
Moving Average - Simple
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