This script is necessary for training, but not for trade. It isn't recommended to trade using this strategy.
The line 1 - SMA, 7 periods, W1-timeframe
The line 2 - SMA, 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.
The line 1 - SMA, 7 periods, W1-timeframe
The line 2 - SMA, 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.