Strategy Message

Exit Signal No New Position

Cannot enter a new {{ ticker }} position because the signal is an exit only signal.

This message indicates that TradersPost cannot enter a new position for the specified ticker because the received signal is designated as an exit-only signal. This means that the signal is intended solely to close existing positions rather than open new ones.

You can send exit only signals in a few different ways. First, you can use action=exit.

{
    "ticker": "AAPL",
    "action": "exit"
}

Or you can use action=buy or action=sell with sentiment=flat to close a specific bullish or bearish position. Here is an example that would only be allowed to flatten a bearish position:

{
    "ticker": "AAPL",
    "action": "buy",
    "sentiment": "flat"
}

Or if you want to flatten a bullish position:

{
    "ticker": "AAPL",
    "action": "sell",
    "sentiment": "flat"
}

The sentiment field is also useful for compatibility with TradingView strategies so you can use their variable values directly in the webhook message JSON. Here is an example of a webhook JSON message that would close a position based on the TradingView strategy's order action and market position:

{
    "ticker": "{{ticker}}",
    "action": "{{strategy.order.action}}",
    "sentiment": "{{strategy.market_position}}",
}

The variables above are placeholders for the TradingView strategy's order action and market position. The webhook alert message will be replaced by TradingView with the actual values when the alert is triggered:

{
    "ticker": "AAPL",
    "action": "buy",
    "sentiment": "long",
}

Read more about TradingView alert variable values.

Ready to automate your trading? Sign up for free today.