strategy.closedtrades.max_runup_percent() - Pine Script Function
strategy.closedtrades.max_runup_percent()
Section titled “strategy.closedtrades.max_runup_percent()”Overview
Section titled “Overview”Returns the maximum run-up of the closed trade, i.e., the maximum possible profit during the trade, expressed as a percentage and calculated by formula: Highest Value During Trade / (Entry Price x Quantity) * 100.
Syntax
Section titled “Syntax”strategy.closedtrades.max_runup_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. |