Login Page - Create Account

Support Board


Date/Time: Tue, 26 Nov 2024 04:16:50 +0000



Text display for study

View Count: 199

[2024-01-07 20:44:30]
User585104 - Posts: 142
Hi,

Using this study is there a way to make the box turn red/green depending on whether figure is positive or negative? Or better yet, how do I make a box with no text in it turn green or red when figure is positive or negative? Like a traffic light. I have tried the based on slope and based on +/- but that doesn't seem to do it.

Thank you
[2024-01-08 17:09:33]
John - SC Support - Posts: 36286
You can not change the color of the "Text Display for Study" based on any conditions, unless you modify the code for your purposes. The code is available in the Studies3.cpp file under 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

You can create the Traffic Light option in a separate Region by using the "Study Subgraph Reference" and setting the Subgraph "Draw Style" to one of the Marker type displays such as "Star" or "Point". Just be sure to also set the "Size/Width" to be large enough to be able to be seen - such as a size of 10 to start. You can then use the "Auto-Coloring" options to color these.

The only other thing you will want to do is to expand the Scaling for that region such that the data appears in a single line.

Refer to the following for this:
Study Subgraph Reference

Chart Studies: Subgraphs Tab >> Draw Style

Chart Studies: Subgraphs Tab >> Line Width
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