If in doubt, please open up the
QuickRef for Position object,
Shares property, and see the remark:
QUOTE:
"In portfolio simulation mode, all trades are pre-executed using 1 share per Position, and then position sizing is applied after the fact. So the Shares property will always return 1 while the Strategy is executing."
You will have access to the actual number of shares in Position Sizers and Visualizers.
P.S. The "
interacting with equity curve" solution allows to extract the number of shares too (see
SystemResults.Positions collection) to some extent but essentially is a workaround that you play with on your own.