Skip to content
  • Create a strategy with TrendSpider as its alert source. My strategies, then Create strategy: a strategy name typed in, TrendSpider picked as its alert source, then Next to what it trades, where Stocks is picked.

Alert source · TrendSpider

Automate TrendSpider trading alerts

Nyria reads TrendSpider Alerts and Strategy Bots, in TrendSpider's own variables. Each becomes an order at your broker.

TrendSpider AlertsStrategy BotsStocks, options, cryptoPaper is free
My strategies, then Create strategy: a strategy name typed in, TrendSpider picked as its alert source, then Next to what it trades, where Stocks is picked
Alert sources/TrendSpider

Alerts and bots

Alerts or Strategy Bots

A plain Alert posts from one account-level URL and reaches one strategy. A Strategy Bot posts its own URL and body. Each bot can reach a different strategy.

TrendSpider's own variables

alert_symbol, last_price and bot_symbol take percent signs, not TradingView's curly braces.

One URL per strategy

Each strategy has its own webhook URL with its own token. Keep it private. Rotate it from the strategy's Integration tab if it leaks.

Set it up

Copy the webhook URL
Open the strategy in Nyria, select Integration, and copy its webhook URL.
Set it in TrendSpider
Open Account & Settings, check Webhook, paste the URL. Set the method to POST.
Put the payload in the note
TrendSpider posts each alert's note as the request body. Valid JSON is sent as JSON.
One account URL, one strategy
The account webhook feeds one Nyria strategy. To feed several, use a Strategy Bot per strategy instead.

Code examples

Alert note
{
  "symbol": "%alert_symbol%",
  "action": "buy",
  "price": "%last_price%"
}
Strategy Bot body
{
  "symbol": "%bot_symbol%",
  "action": "sell",
  "price": "%last_price%"
}

TrendSpider's variables

TrendSpider fills these in when a webhook fires. It has no action or quantity variable. Write buy or sell into each alert and leave quantity out. Your Nyria bot sizes the order.

VariableWhereWhat it is
%alert_symbol%AlertThe symbol the alert fired on.
%last_price%BothThe last price when it fired.
%alert_name%AlertThe alert's own name.
%alert_note%AlertThe alert's note text.
%price_action_event%Alerttouch, break_through, bounce, or script_returned_true.
%bot_symbol%Strategy BotThe bot's symbol.
%bot_status%Strategy Botin_position or not_in_position.
%bot_name%Strategy BotThe bot's own name.
%bot_timeframe%Strategy BotThe bot's timeframe.

With Provided in alert, the strategy trades the legs the alert names. Each leg needs a side, strike, expiration and buy or sell action. It refuses an entry missing one. With From my rules, it picks the contract itself.

With the limit set to Alert price, the alert's price is the limit. Otherwise Nyria prices from the live chain. An entry it can't price isn't placed.

Webhook to paper to live: the TrendSpider alerts to your broker guide.

Questions

How do I send TrendSpider alerts to my broker?

Create a strategy with TrendSpider as the source and paste its webhook URL into an Alert or a Strategy Bot. It stays inactive until a test alert reads correctly. Steps per broker: TrendSpider to Schwab, TrendSpider to Alpaca, TrendSpider to tastytrade and TrendSpider to Tradier.

Point TrendSpider at Nyria

Point the account webhook, or one Strategy Bot, at a strategy. No card required.