Skip to content
Algo Trade Analytics Docs

strategy.closedtrades.first_index - Pine Script Variable

The index, or trade number, of the first (oldest) trade listed in the List of Trades. This number is usually zero. If more trades than the allowed limit have been closed, the oldest trades are removed, and this number is the index of the oldest remaining trade.

int

series