Available translations

User Defined Parameters

foundations.png
user-defined-parameters.png
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
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
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.
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
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: