TradingView Webhook Execution with Staged and Pullback Exits
Summary
This document describes an execution script that receives TradingView alerts and places or closes futures positions. Alerts use four text commands for opening or closing long and short positions. The configuration covers the trading pair, contract type, leverage, order sizing by margin or quantity, price and amount precision, and a percentage-based stop. It also supports multiple limit take-profit orders and two pullback-based exit mechanisms that can reduce or close a position after a favorable move retraces.
The accompanying parameter list and partial JavaScript source show how the tool is configured and how take-profit orders are placed; the source is incomplete, and no backtest settings or performance results are provided. The notes explain that TradingView stop alerts arrive after a candle closes, while the script's stop is intended to address sharp intrabar price moves. Actual execution therefore depends on webhook setup, exchange behavior, and order handling. This is an execution and position-management reference rather than a documented entry strategy, and it does not establish that the default settings are suitable for any particular market or account.
Key ideas
- TradingView alerts can signal long or short entries and exits through four text commands.
- The script offers position sizing by margin or fixed order quantity, along with leverage and contract precision settings.
- Users can configure several limit take-profit levels and partial position reductions.
- Pullback exit modes are designed to reduce or close positions after profits retrace.
- The partial source and lack of performance results leave execution behavior and strategy effectiveness unverified.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.