strategy.closedtrades.max_drawdown_percent() - Pine Script Function
strategy.closedtrades.max_drawdown_percent()
Section titled “strategy.closedtrades.max_drawdown_percent()”Overview
Section titled “Overview”Returns the maximum drawdown of the closed trade, i.e., the maximum possible loss during the trade, expressed as a percentage and calculated by formula: Lowest Value During Trade / (Entry Price x Quantity) * 100.
Syntax
Section titled “Syntax”strategy.closedtrades.max_drawdown_percent(trade_num) → series floatParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| trade_num | series int | The trade number of the closed trade. The number of the first trade is zero. |