Would it be possible to create a algorithm that enters a long trade when the closing price of a selected future is greater than the high of the past 55 days and a short if the closing price is less than the low of the past 55 days. Then if the position crosses the mean of the past 55 days exit the position?