Available translations

Condition

foundations.png
condition.png
Conditions are rules within a situation. When all conditions under a situation validate true, then the situation gets validated as well, and the associated event is triggered.
Content
Therefore, conditions are used to mathematically describe what needs to happen with the market for a certain action to be taken.
For example:
Situation 1
  • Condition A: chart.at01hs.candle.close > chart.at01hs.bollingerBand.MovingAverage
  • Condition B: chart.at01hs.candle.previous.max > chart.at01hs.bollingerBand.previous.MovingAverage
In the example above, conditions A and B are comparison statements that may evaluate either true or false. In the case both would evaluate true then Situation 1 would be true as well.
Condition Menu
The Condition node has the following Node Menu items:
The Edit menu item has the following properties:
  • action: Edit
  • actionFunction: uiObject.conditionEditor.activate
  • label: Edit
  • relatedUiObject: Condition
  • relatedUiObjectProject: Foundations
The Add Code menu item has the following properties:
  • action: Add UI Object
  • disableIfPropertyIsDefined: true
  • propertyToCheckFor: javascriptCode
  • label: Add Code
  • actionFunction: payload.executeAction
  • actionProject: Visual-Scripting
  • relatedUiObjectProject: Foundations
The Fetch from Javascript Code menu item has the following properties:
  • label: Fetch from Javascript Code
  • actionFunction: payload.executeAction
  • relatedUiObjectProject: Foundations
The Push to Javascript Code menu item has the following properties:
  • label: Push to Javascript Code
  • actionFunction: payload.executeAction
  • 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
Condition Children
The Condition node has the following childrenNodesProperties:
The Javascript Code node property features the following properties:
  • name: javascriptCode
  • type: node
  • autoAdd: true
Condition Attaching Rules
The following are the Node Attaching Rules that govern the attachment of Condition with other nodes:
Compatible Types: