Friday, September 7, 2018

MACD with RSI Expecting A Major Market Turn ... Down

Using a simple MACD & RSI scan  against  a couple hundred ETFs  it looks like the overall market is going to go down.   There are a bunch of sell calls (and buy calls for inverse ETFs).    See below.

check bom for possible sell
check ijr for possible sell
check pff for possible sell
check psq for possible buy - inverse etf
check qid for possible buy - inverse etf
check qld for possible sell
check qqq for possible sell
check rew for possible buy - inverse etf
check rwm for possible buy - inverse etf
check smll for possible sell
check spuu for possible sell
check sqqq for possible buy - inverse etf
check srty for possible buy - inverse etf
check tecl for possible sell
check tecs for possible buy - inverse etf
check tqqq for possible sell
check twm for possible buy - inverse etf
check tza for possible buy - inverse etf
check xlk for possible sell


The scan logic  is simple:
   MACD crossing over MACD Signal with a RSI cross under at 30 is a BUY
 while
   MACD crossing under MACD Signal with a RSI cross over at 70 is a SELL



code:
      ix is the current date position.
      delta = 30;
        if (outMACD[ix] > outMACDSignal[ix] & outMACD[ix - 1] < outMACDSignal[ix - 1]) {
            if ((outRSI[ix] > delta & outRSI[ix - 1] < delta) | (outRSI[ix - 1] > delta & outRSI[ix - 2] < delta) | (outRSI[ix - 2] > delta & outRSI[ix - 3] < delta))
                System.out.println("check " + symbol + " for possible buy");
        } else if (outMACD[ix - 1] > outMACDSignal[ix - 1] & outMACD[ix - 2] < outMACDSignal[ix - 2]) {
            if ((outRSI[ix - 1] > delta & outRSI[ix - 2] < delta) | (outRSI[ix - 2] > delta & outRSI[ix - 3] < delta) | (outRSI[ix - 3] > delta & outRSI[ix - 3] < delta))
                System.out.println("check " + symbol + " for possible buy");

        } else if (outMACD[ix] < outMACDSignal[ix] & outMACD[ix - 1] > outMACDSignal[ix - 1]) {
            if ((outRSI[ix] < (100 - delta) & outRSI[ix - 1] > (100 - delta)) | (outRSI[ix - 1] < (100 - delta) & outRSI[ix - 2] > (100 - delta))
                    | (outRSI[ix - 2] < (100 - delta) & outRSI[ix - 3] > (100 - delta)))
                System.out.println("check " + symbol + " for possible sell");

        } else if (outMACD[ix - 1] < outMACDSignal[ix - 1] & outMACD[ix - 2] > outMACDSignal[ix - 2]) {
            if ((outRSI[ix - 1] < (100 - delta) & outRSI[ix - 2] > (100 - delta)) | (outRSI[ix - 2] < (100 - delta) & outRSI[ix - 3] > (100 - delta))
                    | (outRSI[ix - 3] < (100 - delta) & outRSI[ix - 4] > (100 - delta)))
                System.out.println("check " + symbol + " for possible sell");

        }

No comments: