Higher Highs, Lower Lows, and Calculating Price Trends in Python

Find peaks and troughs in price action

--

What happens if the price direction disagrees with your model? For example, the price may be increasing, but your RSI — a derivative of price — is decreasing. Should you trade this if you get a signal? Or could you use this disagreement itself as a signal?

--

--