Available translations

Accessing Runtime Data

Summary: The Trading Bot makes every piece of information processed available to Trading Systems in the data structure of the Trading Engine hierarchy.
To access the value of any of the nodes in the Trading Engine from within conditions and formulas, the syntax follows the ramifications of the data structure, exactly as seen in the visual representation of the hierarchy on the Design Space.
For example, let’s say you wish to access the value of the Begin node under Strategy Open Stage. The path to that node, as denoted by the structure of the hierarchy below, is:
If you wish to go one step lower and access the value of the Target Size under the Stage Quoted Asset, then the path is:
Copy Node Path
For ease of use, you may copy the path of any node that holds a valid value directly from within the node’s menu. Simply use the Copy Node Path button.
Formula Example
Let’s say you wish to set a take profit 3% above the initial target rate you defined in the open stage of your strategy.
That value is stored in the Entry Target Rate node under the Current Position.
So, the formula for the take profit phase is:
 tradingEngine.tradingCurrent.position.entryTargetRate.value * 1.03
Syntax Overview
Accessing Trading System Definitions and Session Parameters