The line 1 - , 7 periods, W1-timeframe
The line 2 - , 7 periods chosen timeframe (use D1)
If the price of closing of a candle is higher than both lines - to open a long position
If the price of closing of a candle is lower than any of two lines - to close a position
Short positions aren't used.