AMOEBA ยท Questions
How do I send a JSON webhook message from Pine Script?
To send a webhook from a Pine Script alert, build a message that is valid AMOEBA JSON when delivered. Include exactly lowercase action and a symbol string, with an optional positive unquoted numeric qty. Keep the private webhook URL in the alert destination rather than inside the script's message.
How should I handle quote characters?
JSON strings use double quotes around field names and text values. When embedding that JSON inside a script string, escape the inner quotes as required by the surrounding string so they remain part of the delivered JSON. Validate the resulting message separately from the script source; extra string quotes around qty turn a number into an invalid quantity string.
Who chooses the event and frequency?
TradingView's Pine alerts documentation says alert() supports dynamic messages and the programmer sets its frequency (checked November 27, 2026); check the current page.
Keep event selection deliberate. Sending a different action changes the order instruction, not merely the wording in Activity. A useful setup check is to compare the final JSON with the action and symbol you intended before using the private destination.
Example JSON alert message
{"action":"buy","symbol":"MNQ","qty":1,"strategy":"my-script"}Related questions and answers
Can alert() carry a JSON string?
TradingView's Pine alerts documentation says alert() works in both indicators and strategies and supports dynamic messages (checked November 27, 2026); check the current page.
Does writing Pine code create the chart alert?
TradingView's Pine alerts documentation says code creates alert events but the user must still create the alert in the chart UI (checked November 27, 2026); check the current page.
Why should qty be outside JSON string quotes?
AMOEBA accepts positive JSON numbers for qty. A delivered value such as "qty":"1" is a string and is rejected, even when the script displays the same digit.
What is the smallest useful example?
Start with action and symbol, then add a numeric quantity if you want an explicit size. The example shown here demonstrates message syntax, not a suggested trading action.
Official sources
TradingView's Pine alerts documentation says the user creates the alert in the chart UI after defining the script's alert events (checked November 27, 2026); check the current page.
Automated trading involves substantial risk of loss. AMOEBA is an execution tool, not investment advice. You are responsible for your strategy, settings and account permissions.