Skip to content

Free tool

TradingView alert message generator for Hyperliquid

A TradingView alert message is the text TradingView sends to a webhook URL each time an alert fires. For Webhooks for TradingView on a Hypr Markets terminal it is one JSON object with an action, a symbol and a size, such as a buy of $100 of {{ticker}}. The generator below writes messages for all 9 actions and both Pine Script strategy templates, and the checker runs any message through the same parser the webhook receiver uses.

Does the action you choose every time the alert fires.

Leave empty to use the chart's own ticker ({{ticker}}).

Size in

Order

Stop-loss

Take-profit

x

1 to 50. Empty: keep the current leverage.

bps

Market orders. Empty: the webhook's default.

Typed here, it stays in your browser.

Message to paste into TradingView

{
  "id": "{{ticker}}-{{interval}}-{{timenow}}",
  "ts": "{{timenow}}",
  "action": "buy",
  "symbol": "{{ticker}}",
  "size_usd": 100,
  "sl_pct": 2,
  "tp_pct": 4
}

In TradingView: paste it into the alert's Message box, then tick Webhook URL under Notifications and paste the URL from your terminal.

Check a message

Paste any alert message. The receiver's own parser reads it here, in your browser.

Result

Valid message

  • Buy $100 of BTC.
  • Market order: fills at once or not at all.
  • Stop-loss 2% from the entry, reduce-only.
  • Take-profit 4% from the entry, reduce-only.
Action
buy
Hyperliquid market
BTC
Repeat protection
id set
Passphrase
none

Mapped against the main markets that have a page on Hypr Markets; load the live list for every market. Limits, positions and prices are checked only by the Test button in the terminal.

TradingView is a trademark of TradingView, Inc. Hypr Markets is not affiliated with, endorsed or sponsored by TradingView. Automated orders can lose money as fast as manual ones; nothing here is financial advice.

What goes into a TradingView alert message?

An action (buy, sell, close, close_long, close_short, flat, cancel_all, reverse or target), a symbol, usually {{ticker}} so the chart's own ticker arrives with the alert, and for buy and sell exactly one size: size_usd, size_pct or size_coins. Optional fields add a limit price, a stop-loss and take-profit as a price or a percentage, leverage from 1 to 50, a slippage cap, and a passphrase when the webhook has one.

Two more lines are worth keeping in every message: id, which makes a repeated alert with the same id do nothing, and ts set to {{timenow}}, which lets the webhook refuse an alert that arrives too late. The generator adds both unless you switch them off.

Which template should a Pine Script strategy use?

Match the position is the safer choice for a strategy. The message carries {{strategy.market_position}} and {{strategy.position_size}}, and each alert moves the account to that position, so a missed alert is put right by the next one. Follow each order carries {{strategy.order.action}} and {{strategy.order.contracts}} and copies every order, which reads simply in a log but leaves the account out of step if one alert never arrives.

Either way, a TradingView backtest leaves out Hyperliquid's fees, the terminal's trading fee, funding and slippage unless the strategy adds them. Start with small limits on the webhook.

How does the checker test a message?

The checker runs the message through the receiver's own parser in your browser. It reports unknown fields, missing or conflicting sizes, a limit order without a price, a stop or target on a reduce-only order, and placeholders TradingView would not fill. It then maps the ticker to a Hyperliquid market with the receiver's rules and says in plain words what the alert would do.

It cannot see a webhook's limits, the client's position or the live price, so it never says an order would be accepted. The Test button on the TradingView page of the terminal runs that full dry run against the real webhook, and signs nothing.

Why are the placeholders in quotes?

TradingView replaces each placeholder with text before it sends the alert. Quoted placeholders keep the message valid JSON before and after that replacement, and the receiver reads a number written as text, such as "0.25", as a number. A placeholder TradingView cannot fill arrives unchanged and is refused, so a wrong variable can never place an order with a made-up size.

Frequently asked questions

Does this generator place orders?
No. It only writes and checks the message text in your browser and sends nothing anywhere. Orders are placed only when a TradingView alert with the message reaches a webhook created on a terminal that has Webhooks for TradingView switched on.
Can I use these messages with another webhook service?
The format is the message schema of Webhooks for TradingView on Hypr Markets terminals. Other relays use their own formats and field names, so check their documentation before pasting a message there.
Why is my message refused with unknown field?
The receiver refuses any field it does not know, so a typo such as stoploss instead of sl can never place an order without its stop. Use the field names in the generator, or the full list in the alert message reference.
Which tickers work?
TradingView tickers such as BTCUSDT.P, BINANCE:ETHUSDT or 1000PEPEUSDT.P map to Hyperliquid's BTC, ETH and kPEPE, and Hyperliquid names work as they are. HIP-3 markets such as xyz:TSLA are recognised and refused for now. Each webhook can add its own mappings for other tickers.

Read the full guides