Skip to content
Algo Trade Analytics Docs

strategy.closedtrades.profit_percent() - Pine Script Function

Returns the profit/loss value of the closed trade, expressed as a percentage. Losses are expressed as negative values.

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