Login Page - Create Account

Support Board


Date/Time: Sun, 24 Nov 2024 00:57:55 +0000



Post From: Buttons for the Spreadsheet System for Trading Buy Exit Sell Exit formulas

[2024-07-16 02:03:27]
User130696 - Posts: 88
Hello,

Let's suppose I want to access the current value of ID32.SG1 and assign this to Stop Price in the OCO Group 1; what code should I write so that it keeps the stop price and ID32.SG1 is in sync all the time, waiting for the order trigger.

The documentation below does not tell me or is hard to understand.


ACSIL Programming Concepts: Unique Study Instance Identifiers

This identifier can be accessed through ACSIL with the sc.StudyGraphInstanceID variable. This identifier is for the instance of the study that is accessing this value directly

The proper way to obtain this unique study instance identifier for a particular study, from another study is through the sc.Input[].SetStudyID() and sc.Input[].GetStudyID() Input functions or other Input functions which create a study Input and allow getting of a study identifier. sc.Input[].SetStudyID() creates a study Input with a list of studies on a chart and allow selecting one of them.

Also refer to sc.Input[].SetChartStudyValues(), sc.Input[].GetChartNumber() and sc.Input[].GetStudyID() Input functions.
Date Time Of Last Edit: 2024-07-16 02:04:51