Skip to content
Algo Trade Analytics Docs

strategy.position_size - Pine Script Variable

Direction and size of the current market position. If the value is > 0, the market position is long. If the value is < 0, the market position is short. The absolute value is the number of contracts/shares/lots/units in trade (position size).

float

series