A formula references a name that is not available: either signal. for a missing payload field, or rounding. for an unsupported rounding mode. See invalid-formula-reference in the reference manual.
A formula references a name that cannot be resolved when the expression runs. This usually means one of the following:
Missing payload field (signal.<key>)
signal.entryPrice but only sent closePrice).closePrice) instead of the required signal.<field> form.Formulas only see top-level keys from the same webhook payload. Values from nested objects (other than literals you pass in) are not addressable as signal.something.nested—send the needed number as its own top-level key or compute it in an allowed formula field first.
Unknown rounding mode (rounding.<mode>)
The third argument to round() may use the built-in rounding context, for example rounding.halfEven. Property names are camelCase. Legacy PHP constant-style names (for example rounding.HALF_EVEN) are not supported.
Supported names:
rounding.halfAwayFromZero, rounding.halfTowardsZero, rounding.halfEven, rounding.halfOddrounding.towardsZero, rounding.awayFromZero, rounding.negativeInfinity, rounding.positiveInfinityYou may also pass an integer from 1 to 8 as the third argument to round().
Typical error details (webhook log)
The formula in field
limitPricereferencesentryPrice, which is not present in the payload.
The formula in field
xreferences rounding.unknownMode, which is not a supported rounding mode.
(The field name and the missing identifier are filled in for your request.)
Incorrect (missing payload key)
{
"ticker": "SPY",
"action": "buy",
"closePrice": "450.25",
"limitPrice": "=signal.entryPrice + 0.5"
}
entryPrice was never sent, so the reference cannot resolve.
Incorrect (missing signal. prefix)
{
"ticker": "SPY",
"action": "buy",
"closePrice": "450.25",
"limitPrice": "=closePrice + 0.5"
}
Use signal.closePrice so the expression reads from the payload context.
Incorrect (unknown rounding mode)
{
"ticker": "SPY",
"action": "buy",
"x": "=round(2.5, 0, rounding.HALF_EVEN)"
}
Use rounding.halfEven instead.
Correct
{
"ticker": "SPY",
"action": "buy",
"closePrice": "450.25",
"limitPrice": "=signal.closePrice + 0.5"
}
Related errors
= (chained formulas are not supported). Use a single formula or send a literal value for the intermediate field.round()'s third argument; use a rounding.* name or a valid mode integer.Free 7-day trial
Set-up in 3 minutes
Paper account for testing
Your browser didn't send the information this action needs.
That usually means a privacy tool, ad blocker, or other browser extension changed the page before you clicked. Nothing is wrong with your account.
What to try: allow this site in your ad blocker or privacy extension, use a private window with extensions turned off, or reload the page and try again.
Still stuck? Contact support and we can help.