Expression Builder is an advanced Automate node for conditions that depend on calculations, relationships between values, or data from one or more sources. Its data and calculations are evaluated again whenever its parent condition checks.
Use it when the condition must remain live rather than capture one fixed value.
Use Expression Builder when your strategy needs to:
Examples include:
Use a normal node when it directly supports the exact condition you want.
For example:
“Alert when RELIANCE LTP is above ₹3,000.”
A normal price check can handle this fixed threshold. Expression Builder is not required.
Use Expression Builder when the condition itself requires a calculation or relationship that a standard node does not directly represent.
Expression Builder keeps its data source values, selections, and calculations live.
For example, if you use the previous 20 candles, that window can move as new completed candles become available and the condition is checked again.
“Every five minutes, check whether the current volume is more than twice the average of the previous 20 candles.”
Because both the candle window and current volume need to remain current, Expression Builder is the appropriate choice.
| Scenario | What to do |
|---|---|
| What if the calculated value must stay fixed after it is captured? | Use Declare Variable instead. |
| What if I need to compare a saved starting value with a live value? | Use Declare Variable for the saved value and Expression Builder for the live comparison. |
| What if two separate conditions must both be true? | Use separate Expression Builders under And rather than trying to place logical AND inside one expression. |
| What if I need the symbol belonging to the highest value in a series? | Use Position_of_highest, then use that position with Symbol_at_position. |