Calculating Profits and Losses for Algorithmic Trading Strategies: A Short Guide
arXiv:2411.14068
Abstract
We present a series of equations that track the total realized and unrealized profits and losses at any time, incorporating the spread. The resulting formalism is ideally suited to evaluate the performance of trading model algorithms.