A formula includes an operator outside the supported set. Use arithmetic (+, -, *, /, %), comparison (==, !=, , =), logical (and, or, not), ternary (?:), string concatenation (~), containment (in, not in), and signal. for payload values. See invalid-formula-operator in the reference manual.
This error appears when the expression after = does not match the supported operator set for TradersPost formulas. The sections below are the authoritative definition of what you may write.
Supported operators and syntax
+, -, *, /, % (modulo).==, !=, <, >, <=, >=.and, or, not (and the equivalent &&, || where applicable).?:.~.in, not in.signal.<topLevelKey> (for example signal.limitPrice). Nested takeProfit / stopLoss sub-fields use the same expression language with the same operator set.round() may use rounding.<mode> (for example rounding.halfEven). See invalid formula reference.Expressions are limited in length (see invalid formula length). Results must be a single scalar (see invalid formula result).
Typical error detail (webhook log)
The log names the field and repeats the supported operator summary so you can align your formula with it.
Examples using only supported operators
Prefix-style check with comparison and literals:
{
"ticker": "SPY",
"action": "buy",
"x": "=signal.ticker == \"SPY\""
}
Numeric result from arithmetic on payload numbers:
{
"ticker": "SPY",
"action": "buy",
"closePrice": "450.25",
"limitPrice": "=signal.closePrice + 0.5"
}
Large power expressed with multiplication (same operator set, repeated *):
{
"ticker": "SPY",
"action": "buy",
"x": "=2*2*2*2*2*2*2*2*2*2*2*2*2*2*2*2"
}
Membership check with in:
{
"ticker": "SPY",
"action": "buy",
"venue": "NYSE",
"x": "=signal.venue in [\"NYSE\", \"AMEX\"]"
}
For a full overview of where = is permitted on the payload, see invalid formula syntax.
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.