Available translations

Polygon Condition

foundations.png
polygon-condition.png
A polygon condition is a rule that allows establishing when a polygon shall be rendered and when not.
Content
The node is optional. When the node is not present in the definition of the polygon or when the condition validates true, the polygon is rendered on screen. When the condition validates false the polygon is not rendered. As such, the node allows dynamically switching the rendering of the corresponding polygon on and off.
Configuring
Polygon Condition Configuration
Polygon Conditions work pretty much like conditions used on trading systems. The main difference is that the variables available are solely those provided by the bot product definition that reference the corresponding plotter module.
Polygon Condition Menu
The Polygon Condition node has the following Node Menu items:
The Edit menu item has the following properties:
  • action: Edit
  • actionFunction: uiObject.codeEditor.activate
  • label: Edit
  • iconPathOn: javascript-code
  • iconPathOff: javascript-code
The Delete menu item has the following properties:
  • action: Delete UI Object
  • actionProject: Visual-Scripting
  • askConfirmation: true
  • confirmationLabel: Confirm to Delete
  • actionFunction: payload.executeAction
  • label: Delete
  • iconPathOn: delete-entity
  • iconPathOff: delete-entity
Polygon Condition Attaching Rules
The following are the Node Attaching Rules that govern the attachment of Polygon Condition with other nodes:
Compatible Types:
Polygon Condition Code
This section explores Polygon Condition Node Code.
Initial Value
The initial value for Polygon Condition Code is:
 ""
Examples
This is a list of examples used on the Polygon Condition code, collected from this workspace.