Login Page - Create Account

Support Board


Date/Time: Sat, 01 Jun 2024 22:03:07 +0000



Adding text boxes to the top of a chart with price data of previous candles.

View Count: 264

[2023-08-18 18:27:06]
User584005 - Posts: 27
Is it possible to add text boxes to the top of the charts that show the previous candles highs and lows similar to the attached screenshot?
Attachment Deleted.
imageScreenshot 2023-08-18 142431.png / V - Attached On 2023-08-18 18:25:48 UTC - Size: 34.24 KB - 61 views
[2023-08-18 22:51:48]
User584005 - Posts: 27
I think i have an idea on how to do this but im not sure if there's a better way. I basically just made 5 spreadsheet formula studies with the formula being H[-1] H[-2] etc. and then 5 corresponding Text Display for Study

Im now trying to figure out if i can change the color of the Text display for study boxes based on the previous values. Ie if the high is higher, then green if not then red.
[2023-08-21 14:32:21]
John - SC Support - Posts: 31946
You do not need the "Spreadsheet Formula" studies, but it was a good idea.

On the Text Display for Study study, there is an Input for "Subgraph Columns Back", that allows you to define the offset from the main bar. Entering a value of 1 will give you 1 bar back, etc.

There is not a way to color the "Text Display for Study" based on a value and since this is using a Drawing Tool, you can not use the Color Bar Based on Alert Condition study either.

The only way you will be able to color the "boxes" the way you want is create a custom study that does the drawing for you. Or you can modify the "Text Display for Study" to do what you want - the code for this is in the file 'Studies3.cpp' located in the ACS_Source folder under your main Sierra Chart installation folder. Refer to the following:
How to Build an Advanced Custom Study from Source Code
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2023-08-21 14:52:17]
User584005 - Posts: 27
Amazing! Thank you!

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

Login

Login Page - Create Account