Login Page - Create Account

Support Board


Date/Time: Sat, 15 Mar 2025 14:36:34 +0000



AddAndManageSingleTextDrawingForStudy documentation suggestion

View Count: 43

[2025-03-13 20:23:58]
User719512 - Posts: 303
I believe this is the only SC API that uses a Persistent Variable.
For completeness, might be a good idea to make note of this.

Granted, it is very unlikely someone will use both AddAndManageSingleTextDrawingForStudy() and a persistent int with key 11110000 in their own study and cause a conflict.

Perhaps the optimal solution would be to declare the function as:

void AddAndManageSingleTextDrawingForStudy(
SCStudyInterfaceRef &sc,
bool DisplayInFillSpace,
int HorizontalPosition,
int VerticalPosition,
SCSubgraphRef Subgraph,
int TransparentLabelBackground,
SCString& TextToDisplay,
int DrawAboveMainPriceGraph,
int BoldFont = 1,
int PersistentKey = 11110000
)
{
int& r_DrawingTextLineNumber = sc.GetPersistentInt(PersistentKey);

ACSIL Interface Members - Functions: sc.AddAndManageSingleTextUserDrawnDrawingForStudy()
[2025-03-13 23:02:40]
Sierra_Chart Engineering - Posts: 18789
We are updating the documentation regarding this.
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, use the Teton service:
Sierra Chart Teton Futures Order Routing

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

Login

Login Page - Create Account