Hi there,

I am attempting to get my code to purchase a 100% holding in SPY if the MACD is greater than the Signal and if RSI>30, 

When experimenting, I found if I remove either the RSI or MACD portion, leaving only 1 indicator to activate the algortihim, the code works. 

The problem is related to having mulitple "and" in the last 10 lines or so I think, where the buy and sell logic is coded.

Any ideas to make this work with both RSI and MACD requirements being met?

I plan to utilize more indicators in the future, not sure which ones yet though.

Author