Login Page - Create Account

Support Board


Date/Time: Sun, 25 Oct 2026 03:42:59 +0000



Post From: v2960 Cannot set Horizontal Ray TextColor from s_UseTool

[2026-09-28 15:23:42]
John - SC Support - Posts: 48317
We are not seeing an issue with the use of the TextColor member. We did a test to ensure it is working properly in version 2960, and it showed as expected. Here is the code we used (based on your own):

#include "sierrachart.h"

SCDLLName("Drawing Test")

SCSFExport scsf_DrawingTest(SCStudyInterfaceRef sc)
{
  if (sc.SetDefaults)  
  {    
    return;
  }


const int beginIndex = sc.ArraySize - 10;

s_UseTool newRay;
newRay.ChartNumber = sc.ChartNumber;
newRay.DrawingType = DRAWING_HORIZONTAL_RAY;
newRay.LineNumber = 1;
newRay.AddMethod = UTAM_ADD_OR_ADJUST;
newRay.Region = 0;
newRay.BeginIndex = beginIndex;
newRay.BeginValue = sc.Close[beginIndex];
newRay.Color = RGB(255, 0, 0);
newRay.LineWidth = 1;
newRay.Text = "TextColor probe";
newRay.TextColor = RGB(0, 255, 0);
newRay.FontSize = 12;
newRay.TransparentLabelBackground = 1;

sc.UseTool(newRay);

}

And attached is an image of what we see when we add this to the chart.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
imageMESZ26-CME[M] 1 Min #2 2026-09-28 10_23_26.421200.png / V - Attached On 2026-09-28 15:23:38 UTC - Size: 43.24 KB - 43 views