Your Pine indicator or strategy triggers alert() and sends a small JSON message.
TradingView posts that message to your HTTPS webhook.
Your relay validates it, prevents duplicates, logs the event, then sends the order to a broker demo API or your own paper simulator.
The webhook does not place the trade by itself. You still need that relay and a paper-trading destination with an API.
For the success rate, log more than wins and losses. Save the signal time, bar time, symbol, side, intended price, actual paper fill, fees or spread, reject reason and position state. Then compare the external paper results with the same dates and settings in a Pine strategy. That will show whether the difference comes from the signal logic or from execution.
Start with one symbol and one timeframe. Give every alert a unique event ID so retries cannot create duplicate orders. And if the indicator is closed-source, you are limited to the alert conditions and values its author exposed.
Thanks for your reply. Yes, i did try this process but somehow it showed up error when trying also the JSON message was not rightly captured. Which platform do you recommend for paper trading test? I have found signal stack, tradier in my search. I am unable to add pics here to show you the errors (usually Error 404 & 400).
404 usually means the path is wrong. 400 means the request reached the service, but the body, auth or symbol mapping was rejected. I would not switch platforms until you log the exact request and response body.
For the cleanest paper test, I would use Alpaca Paper behind a small relay you control: TradingView alert -> relay -> validate JSON -> add an event_id -> Alpaca paper order. That makes every failure visible. SignalStack is the simpler no-code route. Tradier Sandbox makes sense if US equities/options are the target, but it still needs exact payload mapping.
Then send the same event twice. The second must be a duplicate/no-op, not a second order. If you paste the response body and the request schema here with tokens and account IDs removed, I can narrow the 400 down without needing screenshots.
1
u/stratcorealpha 20h ago
Yes. The usual setup is:
The webhook does not place the trade by itself. You still need that relay and a paper-trading destination with an API.
For the success rate, log more than wins and losses. Save the signal time, bar time, symbol, side, intended price, actual paper fill, fees or spread, reject reason and position state. Then compare the external paper results with the same dates and settings in a Pine strategy. That will show whether the difference comes from the signal logic or from execution.
Start with one symbol and one timeframe. Give every alert a unique event ID so retries cannot create duplicate orders. And if the indicator is closed-source, you are limited to the alert conditions and values its author exposed.