Help and documentation

How TriggerPulse works

Pick a topic below, or follow the setup guide further down: connect a broker, point a TradingView alert at your webhook and watch the order arrive. Signed in? The onboarding wizard walks you through the same steps with your own webhook URL.

Quick start

  1. Create your account

    Sign up and confirm you can open the dashboard.
  2. Connect a broker account

    Add an API key under Broker accounts - start in paper/testnet mode.
  3. Create a strategy

    Under Strategies, create a strategy, select the broker account and copy its webhook URL.
  4. Create a TradingView alert

    Paste the webhook URL and an alert message from the builder below.
  5. Check the trade log

    Every signal appears under Trade logs with status, fill and latency.

Broker API keys

TriggerPulse places orders with an API key on your own account. Keys are encrypted (AES-256-GCM) before they are stored and are never shown again - not even to you.

Give keys trading permission only. Never enable withdrawals or transfers. Start with a paper or testnet account and switch to live only after you have watched a few signals.

Alpaca (stocks, ETFs, crypto)

  1. Sign in at alpaca.markets

    Use the account switcher to select your Paper account first.
  2. Generate API keys

    On the dashboard home, open the API keys panel and generate a new key pair.
  3. Copy both values immediately

    The secret is shown only once. Paper keys usually start with PK.
  4. Add them in TriggerPulse

    Dashboard → Broker accounts → Add account → Alpaca, paste key and secret, keep Paper trading on, then use Test connection.
Alpaca crypto symbols need a slash, e.g. BTC/USD. TradingView's {{ticker}} givesBTCUSD, so set the symbol explicitly for crypto alerts. Live keys come from your live account and require a funded, approved account.

Crypto exchanges (Binance, Bybit, OKX, Kraken …)

  1. Open the exchange's API management

    Usually under your profile → API management. Testnet keys are created on the exchange's separate testnet site.
  2. Create a key with trading permission

    Enable spot (or derivatives) trading only. Leave withdrawals disabled.
  3. IP restriction

    Leave it off: requests come from our cloud infrastructure, whose addresses can change.
  4. Add it in TriggerPulse

    Broker accounts → Crypto exchange (ccxt), enter the exchange id (e.g. binance, bybit, okx), key, secret and - for OKX or KuCoin - the passphrase.

TradingView alerts

TradingView only allows webhooks on paid plans and requires two-factor authentication on your TradingView account.
  1. Copy your webhook URL

    Dashboard → Strategies. Each strategy has its own secret URL like https://api.triggerpulse.io/api/v1/webhook/<token>. Treat it like a password.
  2. Create the alert

    On your chart: Alerts → Create alert, choose the condition (your indicator or strategy).
  3. Message

    Paste the JSON from the builder below into the Message field - nothing else.
  4. Notifications

    Enable Webhook URL and paste your strategy's URL.
  5. Trigger

    For strategies choose Once per bar close to avoid signals from unfinished candles.

Ready-made Pine Script templates for all our bots are in the repository under templates/tradingview/.

Alert message builder

Pick a template, adjust it and copy the JSON into your TradingView alert. TradingView fills in the {{…}} placeholders when the alert fires.

Buy/sell and size come from your Pine Script strategy.

Alert message (JSON)
{
  "ticker": "{{ticker}}",
  "action": "{{strategy.order.action}}",
  "quantity": "{{strategy.order.contracts}}",
  "orderType": "market",
  "price": "{{close}}"
}

Payload reference

FieldRequiredMeaning
ticker / symbolrequiredInstrument as your broker names it: AAPL, SPY, BTC/USD (Alpaca crypto), BTC/USDT (most exchanges).
actionrequiredbuy, sell or exit. exit closes the whole position. From a Pine strategy use {{strategy.order.action}}.
quantity / qtyrequired for buy/sell*Number of shares/coins. *Bot signals may omit it - subscribers then size by their risk %.
orderTypeoptionalmarket (default) or limit.
limitPricefor limitLimit price, e.g. {{close}}.
pricerecommendedReference price, e.g. {{close}}. Used for risk-based sizing and plan volume limits.
stopLossoptionalAbsolute stop price. Also accepted as {"stopPrice": …}. 0 or empty = none.
takeProfitoptionalAbsolute target price. 0 or empty = none.
timeInForceoptionalday, gtc, ioc or fok. If empty, Alpaca uses day for stocks and gtc for crypto; exchanges use their default.
secretbot signals onlyThe bot's signal secret. Never needed for strategy webhooks.

Bot subscriptions

Instead of your own alerts you can subscribe a broker account to a bot under Bots. Every signal of the bot is executed on that account. With a risk % the size follows your equity: with a stop loss in the signal it is the share of equity at risk, without one the share invested. Positions never exceed your equity. Leave it empty to trade the bot's own quantity.

Bot operators send signals to the bot's URL with the bot secret in the message:

Bot signal URL
https://api.triggerpulse.io/api/v1/bot/<bot-slug>/signal

Troubleshooting

Webhook responses

202Accepted - the signal is queued. Check the trade log for the broker result.
400Body is not JSON. Paste only the JSON object into the alert message.
401Bot signal with a wrong or missing secret.
404Unknown or paused strategy/bot - check the webhook URL, it changes when you rotate it.
413Message larger than 16 KB.
422Invalid signal, e.g. missing quantity or a negative price. The response lists the field.
429More than 120 signals per minute for this webhook.
503Queue temporarily unavailable - the signal was not taken and no order was placed.

Trade log statuses

  • submitted - accepted by the broker. Alpaca orders are updated to filled/canceled automatically.
  • filled - executed; the log shows quantity and average price.
  • rejected - not sent or refused (e.g. plan limit, insufficient funds, signal older than 60 s).
  • failed - the broker could not be reached; the order state is unknown, check your broker.
  • canceled - canceled or expired at the broker.

Still stuck? Write to office@triggerpulse.io.