Current Position Information
Returns the number of shares or contracts held in the current position
This element can be referred to as either Shares or Contracts, regardless of the type of instrument being traded.
The number returned is the number of shares (or contracts) held in the current position for the current strategy only.
To get the number of shares of the current symbol held in a different strategy, use Extern(strategy_name, Shares).
To get the number of shares of the current symbol held in all strategies, use Combined(Shares).
Shares is always a positive number, regardless of the side (long vs. short) of the position.
Multiply Shares by Side if you need the sign of the result to reflect the position's side.
To get the net long-short position of the current symbol across all strategies use Combined(Shares * Side).
A common usage of Shares is in Commission calculations such as Max(1.0, 0.005 * Shares).