OPEN-SOURCE SCRIPT
Updated

partial close sample

22
added remarks


Release Notes
Sample Strategy for Partial Close

Scenario: Close 30% of total lots at the first take profit or stop loss, then close all remaining lots when the second take profit or stop loss is reached.

Setup Alert Message: Use the following format, adjusting the symbol (e.g., US500) and quantity of lots (q) to fit your strategy:

Webhook Password
{{strategy.order.alert_message}} US500 q=11 cq={{strategy.order.comment}}%

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.