I would like to add a "drag" to the returns of my algorithm to account for the fact that there must be so many dollars in trades a month or an inactivity fee is charged and I also would like to "charge" the margin rate against my returns to get more accuracy. Is there any way to do this? Can I subtract cash from my holdings each day to simulate this?