Available translations
loading results
User Defined Parameters
Users may define parameters to be used within the trading system during the trading session.
Пользователи могут определять параметры, которые будут использоваться в торговой системе во время торговой сессии.
Content
Parameters defined in the configuration file of these node become available to trading systems using the following path:
sessionParameters.userDefinedParameters.config.parameterName
Параметры, определенные в конфигурационном файле этого узла, становятся доступными для торговых систем по следующему пути:
sessionParameters.userDefinedParameters.config.parameterName
These parameters may be useful, for example, when you wish to use a constant multiple times across several nodes in the definition of a strategy. Instead of feeding a constant value to all formulas involved, you may feed the parameter instead. This gives you the added benefit of being able to change the value of such a constant in a single point.
Эти параметры могут быть полезны, например, когда вы хотите использовать константу несколько раз в нескольких узлах при определении стратегии. Вместо того, чтобы указывать постоянное значение для всех задействованных формул, вы можете использовать параметр. Это дает вам дополнительное преимущество, заключающееся в возможности изменять значение такой константы в одной точке.
Configuring
User Defined Parameters Configuration
Конфигурация User Defined Parameters
Properties
Свойства
-
param1Name
is an example of a name. You may change the names of the parameters as required. Values including text strings go between quotation marks, while numeric values, without. You may define as many parameters as you wish; simply separate them with a comma to keep a valid JSON format for the configuration file.
-
param1Name
- это пример названия. При необходимости вы можете изменить названия параметров. Значения, включая текстовые строки, заключаются в кавычки, а числовые значения - без. Вы можете определить столько параметров, сколько захотите; просто разделите их запятой, чтобы сохранить допустимый формат JSON для файла конфигурации.
Initial Values
These are the Initial Values for User Defined Parameters configuration:
{
"param1Name": "A text string value example",
"param2Name": 0
}
Examples
This is a list of properties featured by the User Defined Parameters configuration. Expanding a property shows sample values for the property extracted from the current Workspace.
User Defined Parameters Menu
The User Defined Parameters node has the following Node Menu items:
The Configure menu item has the following properties:
- action: Configure
- label: Configure
- iconPathOn: configuration
- iconPathOff: configuration
- actionFunction:
uiObject.configEditor.activate
The Delete menu item has the following properties:
- action: Delete UI Object
- actionProject: Visual-Scripting
- askConfirmation: true
- confirmationLabel: Confirm to Delete
- label: Delete
- iconPathOn: delete-entity
- iconPathOff: delete-entity
- actionFunction:
payload.executeAction
Tip: When a menu item is grayed out, it means that User Defined Parameters already has the required child type that the menu item may add, and only that child is allowed for that case.
User Defined Parameters Attaching Rules
The following are the Node Attaching Rules that govern the attachment of User Defined Parameters with other nodes:
Compatible Types: