Login Page - Create Account

Support Board


Date/Time: Tue, 14 May 2024 02:43:53 +0000



Post From: ACSIL DRAWING_LINEAR_REGRESSION: ExtendRight

[2021-02-17 20:41:57]
ZenAlchemist - Posts: 23
I am stumped on this. Here is a simple study to test:

SCSFExport scsf_RegressionToolTest(SCStudyInterfaceRef sc) {
s_UseTool Tool;
Tool.Clear();
if (sc.GetUserDrawnChartDrawing(0, DRAWING_LINEAR_REGRESSION, Tool, -1)) {
SCString MessageText;
int iExtend = Tool.ExtendRight;
MessageText.Format("Extend Right %d", iExtend); // Always shows -1 in the log
sc.AddMessageToLog(MessageText, 1);
Tool.ExtendRight = 1;
sc.UseTool(Tool);
}
}

Setting ExtendRight to 1 when it is off does work, but when I read the value it is always -1.

http://www.sierrachart.com/image.php?Image=1613594431746.png

??