I am plotting my equity as a line chart, and i would like to annotate it so I can see exactly where trades took place. 

It seems possible with Quantbooks, according to this post, but I'd like to do this in my algo's backtest. How would one go about doing this?