Back to Webhook Messages
Webhook Messages

Invalid Formula Operator

A formula uses a disallowed operator. Exponentiation (**), ranges (..), and regex matching (matches) are not allowed. Use arithmetic (+, -, *, /, %), comparison (==, !=, , =), logical (and, or, not), ternary (?:), string concatenation (~), containment (in, not in), and signal. for payload values.

This message appears when a formula (a value that starts with =) uses an operator TradersPost explicitly disallows:

  • ** — exponentiation (use repeated * instead if you need a power)
  • .. — ranges
  • matches — regular-expression matching

Those three operators are rejected for this error. Prefer these operators instead:

  • Arithmetic: +, -, *, /, % (modulo)
  • Comparison: ==, !=, <, >, <=, >=
  • Logical: and, or, not (and && / || where applicable)
  • Ternary: ?:
  • String concatenation: ~
  • Containment: in, not in
  • References: payload values as signal.<topLevelKey> (for example signal.limitPrice)

Other expression forms may still parse without triggering this message. Syntax and reference problems use different codes (see invalid formula syntax and invalid formula reference).

Invalid examples (these use a disallowed operator):

{
  "ticker": "SPY",
  "action": "buy",
  "x": "=2 ** 10"
}
{
  "ticker": "SPY",
  "action": "buy",
  "x": "=1..5"
}
{
  "ticker": "SPY",
  "action": "buy",
  "symbol": "SPY",
  "x": "=signal.symbol matches \"/SPY/\""
}

Valid examples using allowed operators:

{
  "ticker": "SPY",
  "action": "buy",
  "x": "=signal.ticker == \"SPY\""
}
{
  "ticker": "SPY",
  "action": "buy",
  "closePrice": "450.25",
  "limitPrice": "=signal.closePrice + 0.5"
}
{
  "ticker": "SPY",
  "action": "buy",
  "venue": "NYSE",
  "x": "=signal.venue in [\"NYSE\", \"AMEX\"]"
}

For 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.