Update After looking over the code again this evening, I seem to have fixed the position-sizing issue, though I would still appreciate some clarity on the problem - I'm not exactly sure how I fixed it. However, I'm now having trouble plotting entry, profit, and loss lines to the chart as they were ...