Login Page - Create Account

Support Board


Date/Time: Thu, 16 Jan 2025 00:19:04 +0000



Post From: Code using UseTool and DRAWING_TEXT not working in 1609 vs 1595

[2017-09-20 05:08:54]
Sierra Chart Engineering - Posts: 104368
This is really not making sense. We do not believe for a second that if we took this code:
s_UseTool displaytext;
displaytext.Clear();
displaytext.ChartNumber = sc.ChartNumber;
displaytext.Region = sc.GraphRegion;
displaytext.DrawingType = DRAWING_TEXT;
displaytext.TextAlignment = DT_CENTER;
displaytext.FontSize = 10;
displaytext.ReverseTextColor = 1;
displaytext.Color = RGB(0,0,255);
displaytext.BeginIndex = sc.Index;

if (sc.Index == sc.ArraySize - 1)
displaytext.AddMethod = UTAM_ADD_OR_ADJUST;
else
displaytext.AddMethod = UTAM_ADD_ALWAYS;

displaytext.BeginValue = sc.High[sc.Index] + (2 * sc.TickSize);

displaytext.Text = "Test";
sc.UseTool(displaytext);

And used it with the Remote Build command in versions 1599 through 1608, that there would be any problem with it executing as designed. There simply is no difference with building between those versions. And there really are not any header file changes. Only new structure members added, if any.

It all of our experience, inconsistencies like you are describing generally are the cause of the study itself causing a memory corruption or doing something incorrectly and therefore having inconsistent behavior.
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: 2017-09-20 05:10:38