How to apply python coded strategy to charts for backtesting.?

  1. Can anyone suggest ways to apply python-coded trading strategies to charts so that I can easily spot buy and sell positions?

  2. Are there any APIs for incorporating buy and sell positions on the charts?

  3. Or if I have a CSV file with buy and sell dates and prices, can I incorporate it in charts?