I am having trouble modeling short-selling mechanics in my backtesting system. This is not a real live accounting question, but it is about accounting at its core. So, I think it is appropriate to ask here.
When I sell stock short, I make the following changed to account variables in my...