Back to Webhook Messages
Webhook Messages

Invalid Formula Operator

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

  • Arithmetic: +, -, *, /, % (modulo).
  • Comparison: ==, !=, <, >, <=, >=.
  • Logical: and, or, not (and the equivalent &&, || where applicable).
  • Ternary: ?:.
  • String concatenation: ~.
  • Containment: in, not in.
  • References: payload values are read only as signal.<topLevelKey> (for example signal.limitPrice). Nested takeProfit / stopLoss sub-fields use the same expression language with the same operator set.
  • Rounding modes: the optional third argument to 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.

Start trading at scale today. Sign up for free.

Free 7-day trial

Set-up in 3 minutes

Paper account for testing

TradersPost operates as a non-custodial automated trading platform, enabling users to connect alerts from their preferred trading platforms to their selected brokerage or exchange accounts. It abstains from the transmission, custody, or management of customer funds, covering both traditional and cryptocurrency assets. Typically, registration requirements set by regulatory entities such as the SEC, FINRA, or FinCEN apply to entities that hold or transmit customer funds. To ensure ongoing compliance, TradersPost regularly engages with regulatory authorities to confirm its adherence to all relevant local and federal laws.

TradersPost does not provide alerts, signals, research, analysis, or trading advice of any kind. It is designed to assist traders and investors in making their own trading decisions based on their alerts. The platform does not offer recommendations regarding securities to buy or sell, nor does it provide trading or investing advice. The platform and its features, capabilities, and tools are provided 'as-is' without any warranty.

Risk Disclosure: The use of automated trading systems involves inherent risks, including the potential for significant financial loss. These systems operate based on predetermined algorithms that may not fully adapt to changing market conditions, possibly making them unsuitable for some investors. Individuals are advised to thoroughly assess their financial situation and risk tolerance before using this platform.

Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.

© 2026 TradersPost, Inc. All rights reserved.