The 5,13 pair is tracking the short-term momentum, when 5 crosses over 13 up or down, the script will develop a "fast pivot" point or "FP", which can be used as the first entry of a position.
The 13, 34 pair is tracking the mid-term trend, when the 13 crosses over 34 up or down, the script will develop a "slow pivot" point or "SP", which can be used as the second entry of a position.
And the exit would be when a "Slow Pivot" is created.
Note that the basic assumption of trend following is that you should trade with the trend, not against the trend. Thus I added the 50, 60 MA pair, as well as 200, 220 MA pair for long-term trend reference, which is an idea that I learned from the Vegas Tunneling Trading System.