0_1571086650684_6e0ad3a7-0da2-4f66-ba03-9304d1d21d33-image.png

Dotted red: 144-MA
Red lines: envelopes of 144-MA with 0.1 deviation
Blue: 5-MA
Green: 13-MA

Rule: Open buy when blue is below lower envelope AND crosses above green.
Project: https://fxdreema.com/shared/WKQyhyvec

This is not a good trading strategy, though.
I can tell that you don't actually want to specify a distance between moving averages - what you actually want is to find volatility. This is done via RSI or some combination of ATR and standard deviation, for example.