Capture Value

The Capture Value rule takes a snapshot of a numeric value at the moment it is executed and stores that value for later use by other rules in your strategy. This is essential for remembering a specific price, indicator reading, or calculated value at a particular point in time.

How It Works

When the Capture Value rule executes, it reads the current value of its numeric input and preserves it as a stored output. This captured value remains constant and accessible to downstream rules until the rule is executed again, at which point it captures a new value. Unlike most rules that continuously update their outputs, Capture Value freezes a value at a specific moment.

This behaviour is particularly useful for recording the entry price at the time a trade is opened, storing a reference indicator level when a condition is first met, or preserving a calculated risk value that should remain fixed throughout the life of a position. Other rules can reference the captured value as a stable anchor point even as live market data continues to change.

Inputs

Input Type Required Description
Value Number Yes The numeric value to capture and store. This can be a price, indicator reading, or any numeric output from another rule on the canvas.

Outputs

Output Type Description
Captured Value Number The stored numeric value from the moment the rule was last executed. This value persists until the rule is triggered again.

Tips

Capture Value is ideal for recording the price at the time of entry so you can calculate profit, loss, or distance from entry later in your strategy. Connect it to fire when your entry condition triggers, and then use the captured output as a reference in your exit or risk management rules. You can also use multiple Capture Value rules to store different reference points at different stages of your strategy.

Was this helpful? Let us know