Back to Webhook Messages
Webhook Messages

Invalid Formula Syntax

A formula value (leading "=") could not be parsed. Use only supported operators and reference top-level payload fields as signal.. Allowed functions: abs, ceil, floor, max, min, round. See invalid-formula-syntax in the reference manual.

TradersPost could not parse the text after the leading = in one of your JSON fields. The substring after = must be a valid formula using only the supported operators (see invalid formula operator for the full list), and property access must use the signal.<topLevelKey> form.

Where formulas are supported

  • Top-level keys other than ticker, action, test, and cancel—those four must always be sent as literal JSON values (no leading =).
  • Inside takeProfit and stopLoss only, on sub-fields that accept formulas the same way (values starting with =).

For any other nested object or array path, send literals only, or compute the value in an allowed location and reference it with signal.<key>.

Allowed functions

Only these may be called in a formula: abs, ceil, floor, max, min, round. Calling any other function (for example sqrt()) produces an error such as:

The formula in field x calls "sqrt()", which is not a supported function. Allowed functions are: abs, ceil, floor, max, min, round.

Common causes

  • Empty formula — the value is exactly = with nothing after it.
  • Tokens outside the supported set — stray characters, mismatched parentheses, or operators not listed under invalid formula operator.
  • Wrong reference shape — use signal.limitPrice, not limitPrice alone (a parse or variable error may surface as this code or as invalid formula reference, depending on the expression).
  • Unknown function — only the six math functions above are registered.

Typical error details (webhook log)

The formula in field limitPrice is empty.

The formula in field limitPrice has invalid syntax. Check that the expression uses valid operators and references only existing payload fields.

The formula in field x calls "sqrt()", which is not a supported function. Allowed functions are: abs, ceil, floor, max, min, round.

Example — incomplete formula

{
  "ticker": "SPY",
  "action": "buy",
  "closePrice": "450.25",
  "limitPrice": "="
}

Example — incomplete expression

{
  "ticker": "SPY",
  "action": "buy",
  "limitPrice": "=signal.closePrice +"
}

Correct

{
  "ticker": "SPY",
  "action": "buy",
  "closePrice": "450.25",
  "limitPrice": "=signal.closePrice + 0.5"
}

Supported operators (summary)

Arithmetic (+, -, *, /, %), comparison (==, !=, <, >, <=, >=), logical (and, or, not), ternary (?:), string concatenation (~), and containment (in, not in). The complete picture is under invalid formula operator.

Fix the expression, resend the webhook, and check the detailed line in the request log if the error persists.

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.