A TradingView alert can be a source: when it fires, HydraSync copies the trade to every account linked to it, with each link's own lot mode, filters, limits and protection rules. Beta.
Webhooks are a TradingView feature of its paid plans, and TradingView asks for two-factor authentication on your TradingView account before it sends them.
The URL contains a secret key: anyone who has it can send trades to your accounts. Do not share it. If it leaks, delete the source and create a new one.
JSON is the most reliable. {{ticker}} and {{close}} are TradingView placeholders, filled in when the alert fires.
{"action": "buy", "symbol": "{{ticker}}", "price": {{close}}}
buy, sell, close, close_all, or a pending order buy_limit, sell_limit, buy_stop, sell_stop (these need a price).EURUSD; TradingView's OANDA:EURUSD works too (the exchange prefix is dropped). Map different broker names in Symbols."tp": [1.0850, 1.0900]): several targets. One position opens per target, and each account's lot is shared between them. A close or a modify reaches all of them (or all of those under the same id).{"action": "close", "id": "..."} closes only the copies opened under that name. Without an id, close closes every copy of this source on the symbol.close, the share to close (50 = half).{"action": "modify", "symbol": "{{ticker}}", "sl": 1.0790, "tp": 1.0950} moves the stop and/or target of this source's copies still open on the symbol (or under an id). Nothing opens if no copy is open.{"action": "breakeven", "symbol": "{{ticker}}"} puts each copy's stop at its own entry price.Plain text works too, written like a Telegram signal: BUY EURUSD SL 1.0750 TP 1.0900, SELL LIMIT XAUUSD 2400 SL 2410, CLOSE EURUSD, CLOSE ALL, CLOSE HALF EURUSD, CLOSE 50% EURUSD, EURUSD NEW SL 1.0790, BREAKEVEN EURUSD.
If you leave TradingView's own default message on a strategy alert (… order buy @ 2 filled on BTCUSD. New strategy position is 2), it is read as a strategy alert too: entries, partial exits, reversals and exits are told apart from the position it gives. The JSON message under Strategy alerts stays the better choice: it also carries the price and the order's name.
Other field names are read the same way, so an alert written for another copier works unchanged: signal_id or message_id for id, volume for lots, entry for price, {"action": "open", "order_type": "BUY LIMIT"}, {"action": "close half"}, {"action": "move SL to breakeven"}.
Under each source, Source settings is for alerts that give no stop or target:
2 = a 1:2 ratio).The SL and TP written in the alert always come first.
For a Pine Script strategy, one alert can carry every order the strategy places:
{"action": "{{strategy.order.action}}", "symbol": "{{ticker}}", "price": {{strategy.order.price}}, "id": "{{strategy.order.id}}", "market_position": "{{strategy.market_position}}", "position_size": {{strategy.position_size}}, "prev_position_size": {{strategy.prev_market_position_size}}}
With market_position:
flat: the strategy closed its position, so the copies on that symbol are closed.buy while copies are short): the opposite copies are closed first, then the new one opens.sell that leaves the strategy long (a partial exit): the same share of the long copies is closed, computed from position_size and prev_position_size. Without them, the copies are closed in full.Step by step, with sizing and what to check before going live: How to automate a Pine Script strategy.
buy_limit …) becomes a real order on destinations whose link copies pending orders (see Copy settings); elsewhere it opens at market.The TradingView links are affiliate links: HydraSync FX may earn a commission, at no extra cost to you.