As to the second question, check if the price history covers the dates until the end of the simulated trades. Otherwise the plot ends with the end of the history. I can't answer the first question immediately, but I'll look into it.