Have you tried to run your strat & test self.position.size / price ?
Maybe you should take more time to read the documentation, as you have very relevant info in it : https://www.backtrader.com/docu/concepts/
like in Accessing lines in Data Feeds