I'm experiencing issues with the Equity plot showed when pressing "Result" when also using plotTradeProfile(). When plotTradeProfile is used, the equity curve produced covers a very short time period, like if I had set PlotBars = 100 or similar.

The attached image shows two plots.
They are both produced by pressing the "Result" button, and the ONLY difference between the runs of the script is that for the bottom one, I've commented out
Code:
//plotTradeProfile(-50);


Plotbars is not used in this script at all

Attached Files Screen Shot 2017-10-12 at 11.11.26.png