Support Board
Date/Time: Thu, 09 Jan 2025 08:42:18 +0000
[Programming Help] - Display Inputs With Color
View Count: 852
[2016-08-05 17:54:21] |
ManFromTanna - Posts: 6 |
Hi All, There doesn't seem to be a way to display a system's inputs with color. So below was a bit of a workaround. Only problem is I can't figure out how to get rid of ": 0.0". Any suggestions? Thanks. SCSubgraphRef LongLabel = sc.Subgraph[1];
SCInputRef Long = sc.Input[1]; Long.Name = "Long"; Long.SetCustomInputStrings("Long;No"); Long.SetCustomInputIndex(0); if (sc.SetDefaults) { if(Long.IntValue == 0) { LongLabel.Name = "Long"; LongLabel.PrimaryColor = RGB(0,255,0); } else { LongLabel.Name = "No"; LongLabel.PrimaryColor = RGB(255,255,255); } |
Input Display.PNG / V - Attached On 2016-08-05 17:54:00 UTC - Size: 589 B - 229 views |
[2016-08-05 18:50:53] |
Sierra Chart Engineering - Posts: 104368 |
This will not completely solve it but you can set sc.ValueFormat=0 in the sc.SetDefaults code block.
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 Date Time Of Last Edit: 2016-08-05 18:51:16
|
[2016-08-05 19:23:48] |
ManFromTanna - Posts: 6 |
Like you said, tried your suggestion and it didn't change the label. So where is the ": 0.0" being pulled from in the study? I am supposing if that value could be isolated then maybe I could force it to be blank.
|
[2016-08-05 19:26:13] |
Sierra Chart Engineering - Posts: 104368 |
Provide a complete image of the chart following these instructions: https://www.sierrachart.com/index.php?page=PostingInformation.php#Image 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-08-05 21:19:58] |
ManFromTanna - Posts: 6 |
http://www.sierrachart.com/image.php?Image=1470431947601.png Please see the "Long: 0" |
To post a message in this thread, you need to log in with your Sierra Chart account: