Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Ok. Did you check those values? Apparently the formulae are correct, but I find it weird substracting a MA value to the ask price. Is that what you really need or maybe you are looking for the distance in pips between those two values?