Hello. Trying to get this to work. I don't know how to write code. I have been using the "edit studies" tab to try to set this up. Failing for hours lol... This is the strategy: Is SPY above the 66 day SMA? NO=do nothing, if YES, then is todays closing price the lowest in 3 days? NO=do nothing, if YES, then BUY SPY. Selling is dependent on the closing price of SPY being the highest over the past 19 days. NO=do nothing, if YES, then SELL spy. That's it. Thank you for any suggestions.