Login Page - Create Account

Support Board


Date/Time: Mon, 02 Mar 2026 02:43:37 +0000



Trying to color text(values) based on value ranges

View Count: 7

[2026-03-01 21:55:40]
cmack1011 - Posts: 188
Subject: DRAWING_TEXT tool.Color not applying — all text renders black

I have an ACSIL study that draws multiple DRAWING_TEXT tools on the chart using sc.UseTool(). Each tool has a different tool.Color set via RGB(), but all text renders as black regardless of the Color value.

Here is a minimal example of what I'm doing:

s_UseTool tool;
memset(&tool, 0, sizeof(tool));
tool.ChartNumber = sc.ChartNumber;
tool.DrawingType = DRAWING_TEXT;
tool.LineNumber = 87600;
tool.AddMethod = UTAM_ADD_OR_ADJUST;
tool.BeginIndex = someBarIndex;
tool.BeginValue = somePrice;
tool.Color = RGB(0, 200, 0); // green
tool.FontBackColor = RGB(255, 255, 255); // white background
tool.FontSize = 10;
tool.FontBold = 1;
tool.Text = "=== FAST Inference ===";
tool.UseRelativeVerticalValues = 0;
sc.UseTool(tool);

I draw 9 separate DRAWING_TEXT tools at different BeginValue positions. Some should be green (RGB(0,200,0)), some yellow (RGB(255,220,0)), and some black (RGB(0,0,0)). However, every tool renders with black text on the chart regardless of what I set tool.Color to.

My questions:

1. Is there a Global Setting or Tool Settings > Text configuration that overrides the tool.Color for DRAWING_TEXT tools added via ACSIL? If so, which setting controls this?

2. Does tool.Color set the text color for DRAWING_TEXT, or is there a different member I should be using for text color specifically?

3. Is there any interaction between FontBackColor and Color that could cause the text color to be ignored?

I am on Sierra Chart version 2812. Thank you for your help.

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

Login

Login Page - Create Account