Login Page - Create Account

Support Board


Date/Time: Sat, 18 May 2024 20:43:47 +0000



Displaying output from indicator utilising sc.VolumeAtPriceForBars

View Count: 1236

[2016-02-09 23:24:47]
binaryduke - Posts: 360
Hi SierraChart

I am working on developing an indicator using values contained within the sc.VolumeAtPriceForBars array. Basically for a bar where the close is lower than the previous bar's, I calculate the ratio of the ask volumes between the highest price and the 2nd highest price in the bar, and for a bar where the close is higher than the previous bar's, I calculate the ratio of the bid volumes between the lowest price and the 2nd lowest price in the bar.

This is quite straightforward from the sc.VolumeAtPriceForBars

Where I would appreciate some guidance is on display of this information. Ideally, I would like to display these values above and below (respectively) the relevant bars, ideally with some formatting. Possibly more straightforward is somehow using the Numbers Bars Calculated Values panel.

Can you give me some pointers please for display? I can see how adding a new (user defined) Numbers Bars Calculated Value could be a relatively quick way to accomplish my goal.

Many thanks in anticipation.

Regards

Lee.
[2016-02-09 23:47:35]
Sierra Chart Engineering - Posts: 104368
You can use the Text Drawing Tool:
https://www.sierrachart.com/index.php?page=doc/doc_ACSILDrawingTools.html

Or you could use the Subgraph Draw Styles to display a value at the High or Low of a bar:
https://www.sierrachart.com/index.php?page=doc/doc_ChartStudies.html#DrawStyle
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
[2016-02-09 23:50:35]
binaryduke - Posts: 360
Perfect, thank you.

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

Login

Login Page - Create Account