Support Board
Date/Time: Wed, 12 Feb 2025 18:14:24 +0000
Post From: Stationary Text from ACSIL
[2017-11-03 01:59:56] |
|
We do not see any problem. The Text remains stationary. Here is example code you can use: /*==========================================================================*/
SCSFExport scsf_UseToolExampleStationaryText(SCStudyInterfaceRef sc) { // Set configuration variables if (sc.SetDefaults) { sc.GraphName = "UseTool Example: Stationary Text"; sc.GraphRegion = 0; sc.FreeDLL = 0; sc.AutoLoop = 0; //No automatic looping return; } int &TextDrawingLineNumber = sc.GetPersistentInt(1); if (sc.LastCallToFunction) { if (TextDrawingLineNumber != 0) { // Be sure to remove the Text drawing added as a user drawn drawing sc.DeleteUserDrawnACSDrawing(sc.ChartNumber, TextDrawingLineNumber); } return; } s_UseTool TextDrawing; TextDrawing.Clear();//Not necessary but good practice TextDrawing.ChartNumber = sc.ChartNumber; TextDrawing.DrawingType = DRAWING_STATIONARY_TEXT; if (TextDrawingLineNumber != 0) TextDrawing.LineNumber = TextDrawingLineNumber; TextDrawing.AddAsUserDrawnDrawing = 1; TextDrawing.UseRelativeVerticalValues = 1; TextDrawing.BeginDateTime = 50; TextDrawing.BeginValue = 50; TextDrawing.Color = COLOR_KHAKI; TextDrawing.Text = "Stationary Text Example"; TextDrawing.FontSize = 18; // do not keep adjusting TextDrawing.AddMethod = UTAM_ADD_ONLY_IF_NEW; sc.UseTool(TextDrawing); //Remember the line number which has been automatically assigned TextDrawingLineNumber = TextDrawing.LineNumber; } 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-11-03 02:10:50
|