Skip to content
Algo Trade Analytics Docs

strategy.opentrades.max_drawdown_percent() - Pine Script Function

strategy.opentrades.max_drawdown_percent()

Section titled “strategy.opentrades.max_drawdown_percent()”

Returns the maximum drawdown of the open 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.

strategy.opentrades.max_drawdown_percent(trade_num) → series float
NameTypeDescription
trade_numseries intThe trade number of the closed trade. The number of the first trade is zero.