Code required for PI
Buy signal when there is RSI divergence with price (RSI increasing and price decreasing) and MACD divergence with price (MACD increasing and price decreasing)
Sell signal when there is RSI divergence with price (RSI decreasing and price increasing) and MACD divergence with price (MACD decreasing and price increasing)