I've been trying to code a MACD, RSI strat using IBridgePy and Interactive Broker's API system, however my backtesting is yielding no results as no trades are put through, i believe it's due to my if statement logic. The first part of the code I've written is below, could anyone have any ideas as to why this is?