This is an attempt to create a strategy based on the previous post. The strategy, as before, is based on the RSI, which is calculated using linear regression, but with the addition of EMA. The crossing of EMA and RSI is a buy and sell signal. There are also two functions to buy (because I haven't decided which is really better), so please use checkbox to order which one you would like to use.