Available translations

Procedure Initialization

foundations.png
procedure-initialization.png
The procedure initialization is used to initialize variables used by the procedure loop.
Content
This is an example of a procedure loop code snippet, in particular, the code that initializes the array used in the calculation of the Popular SMAs product of the Simple Moving Average (SMA) indicator.
 / Initialization Code. /
variable.last200 = []
Procedure Initialization Menu
The Procedure Initialization node has the following Node Menu items:
The Add Code menu item has the following properties:
  • action: Add UI Object
  • disableIfPropertyIsDefined: true
  • propertyToCheckFor: procedureJavascriptCode
  • label: Add Code
  • actionFunction: payload.executeAction
  • actionProject: Visual-Scripting
  • relatedUiObjectProject: Foundations
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
Procedure Initialization Children
The Procedure Initialization node has the following childrenNodesProperties:
The Procedure Javascript Code node property features the following properties:
  • name: procedureJavascriptCode
  • type: node
  • autoAdd: true
Procedure Initialization Attaching Rules
The following are the Node Attaching Rules that govern the attachment of Procedure Initialization with other nodes:
Compatible Types: