Guide
How do I set buy or sell in a TrendSpider alert for Nyria?
TrendSpider has no variable for the trade direction or the quantity, so you type them in. Write buy as the action in the note of an entry alert and sell as the action in the note of an exit alert. Leave quantity out and your Nyria bot sizes the order. TrendSpider fills in the symbol and last price when the alert fires.
Official documentation
Write the buy and sell payloads in TrendSpider
- 1
Open the alert
In TrendSpider, open the alert you want to send to Nyria.
- 2
Paste the entry payload
In the note, paste symbol, action buy and price, using TrendSpider's own variables.
- 3
Make the exit alert
Copy the alert, then change the action from buy to sell.
- 4
Leave quantity out
Your Nyria bot sizes the order from its own settings.
- 5
Send a test
Select Send Test Alert and read how Nyria parsed it in the Logs tab.
What TrendSpider fills in
- The alert symbol, the last price, the alert name and the note text.
- On a Strategy Bot, the bot symbol and whether the bot is in a position.
- It does not fill in a direction or a quantity.
What you type
- buy on entry alerts and sell on exit alerts.
- entry, exit, open and close also work.
- Nothing for quantity, so the bot's own size is used.
Limit orders
- Add order_type limit and a price.
- The price field takes TrendSpider's last-trade price.
- A limit order needs a price.
Questions
- Why does the note have to be valid JSON?
- TrendSpider sends the note as application/json only when it is valid JSON.
- Does a sell alert open a short?
- That depends on the strategy's trading behavior, which sets how exits pair with entries.
- Can I set the size in the alert?
- Leave it out. Your Nyria bot sizes every order from its own settings.
- Where do I see what Nyria read?
- On the strategy's Logs tab, which shows each alert and how it was read.
Next
- Paste an alert into the alert tester to see how Nyria reads it.
- Step by step for one account: how to automate TrendSpider to Nyria Paper.
- Step by step for one account: how to automate TrendSpider to Alpaca.
- Alert tester.
Guides
How do I send TrendSpider alerts to my broker?
How a TrendSpider webhook reaches Nyria, what the message must say and which brokers fit. Paper first.
Read guideWhy does my TradingView alert place duplicate orders?
TradingView fired twice. Nyria drops a repeat body, and skips a second entry when multiple entries are off.
Read guideWhy do all my TrendSpider alerts hit one Nyria strategy?
Plain Alerts share one URL. Use Strategy Bots for several strategies.
Read guideWhy did my TrendSpider test alert not trade in Nyria?
Read the response code, then the strategy's Logs tab.
Read guideTry a paper bot first
No card required. Paper is free. Live trading from $15 a month.