Login Page - Create Account

Support Board


Date/Time: Sat, 04 May 2024 06:36:54 +0000



suggestion about sc.AddAndManageSingleTextUserDrawnDrawingForStudy()

View Count: 205

[2023-03-17 06:31:49]
Tony - Posts: 460
Hi,

Is it possible to add an option, so we can use Index and Chart Value, as well as X,Y relative positions?

Thanks!
[2023-03-17 08:29:56]
Sierra_Chart Engineering - Posts: 14207
Modify the code to meet your requirements.

The source code is contained within the SierraChart.h file.
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
[2024-04-11 01:42:57]
@sstfrederik - Posts: 403
For what its worth. Just checked the source of this study, and I guess the below code as added very recently as this functionality stopped working as expected for some of my studies.

Adding this CreateNeeded does not make a lot of sense as it prevents a redraw when new values are used for the positioning when a drawing was already there. It should always create.


bool CreateNeeded = r_DrawingTextLineNumber == 0;

if (CreateNeeded)
{
  Tool.BeginDateTime = HorizontalPosition;
  Tool.BeginValue = static_cast<float>(VerticalPosition);
}

Date Time Of Last Edit: 2024-04-11 01:43:29

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

Login

Login Page - Create Account