AMOEBA ยท Questions

How do I close a position from a TradingView alert?

To close a position from a TradingView alert, send JSON with action set to exactly lowercase close and the intended symbol. AMOEBA asks the broker to close the whole position for that symbol on the selected account, ignoring alert qty for sizing. The kill switch still blocks this request.

Why is sell not another word for close?

A sell is an ordinary directional order. It can have a different effect depending on the existing position, requested size and broker. Likewise, buying while short is not automatically converted into a full-position close. Use the explicit close action when the instruction is to close the actual selected symbol position rather than send a sized buy or sell.

Which control permits the exit?

Per-automation Pause blocks buy and sell while allowing explicit close, and the optional per-automation daily realized-loss, trades-per-day and trading-hours limits exempt explicit close. The owner-level kill switch is different: it blocks every order, including close. Neither Pause nor the kill switch automatically flattens an existing position. A paused copier blocks closes too.

Example JSON alert message

{"action":"close","symbol":"MNQ"}

Related questions and answers

What does flattening mean for this message?

Here it means requesting closure of the whole position for one symbol on the selected account. It is not a request to close every symbol or every connected account.

Does qty control the close size?

No. An explicit close uses the actual position for that symbol and account; alert qty is ignored for closing size.

Will a strategy exit fill send close automatically?

No. A strategy exit fill reports buy or sell. Arrange an explicit close message, for example through alert_message, when you want the full-position close instruction.

Should I turn on the kill switch to close a position?

No. The kill switch blocks close as well as buy and sell, and it does not itself flatten positions. Do not confuse blocking future orders with submitting a closing request.

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.