Hi all, 

I've been trying to play around with the scipi agrelextrema function to find high and lows of a price series. The function seems to be working but I'm not very familiar with how to plot the chart properly. Currently its returning the high and low markers at incorrect positions on the chart itself. Can anyone help? The code can be found in the research notebook of the attached backtest. 

Author