This is a two part question.

The first is a simple math question that I'd like to get some input on.

1) What is the lowest common denominator of this formula? Or, how to distill the formula down to the simplest formula without altering the final calculation? Forgive the strange formatting, basically it's a combination of 8 variables (A - H) divided by 20.

X = (

(A + B)/2

+ (C + D)/2

+ (E + F)/2

+ (G + H)/2

+ (A + B)/2

+ (C + D)/2

+ (E + F)/2

+ (G + H)/2

+ (A + D)/2 + (B + C)/2

+ (A + F)/2 + (B + E)/2

+ (A + H)/2 + (B + G)/2

+ (C + F)/2 + (D + E)/2

+ (C + H)/2 + (D + G)/2

)/20

2. I think I have set each subset of the formula between the plus signs independently, however, the MT4 compiler/tester is giving different results for 2 variations of this formula, and I think it shouldn't. What am I not seeing? For example, if I simply alter placement of this one line from last in the formula to this location it gives a slightly different calculation, which unless my math is way off, it should not.

X = (

(A + B)/2

+ (C + D)/2

+ (E + F)/2

+ (G + H)/2

+ (A + B)/2

+ (C + D)/2

+ (E + F)/2

+ (G + H)/2

+ (A + D)/2 + (B + C)/2

+ (A + F)/2 + (B + E)/2

+ (A + H)/2 + (B + G)/2

+ (C + F)/2 + (D + E)/2

+ (C + H)/2 + (D + G)/2

)/20

What am I doing wrong or what is wrong with the compiler/tester?

The first is a simple math question that I'd like to get some input on.

1) What is the lowest common denominator of this formula? Or, how to distill the formula down to the simplest formula without altering the final calculation? Forgive the strange formatting, basically it's a combination of 8 variables (A - H) divided by 20.

X = (

(A + B)/2

+ (C + D)/2

+ (E + F)/2

+ (G + H)/2

+ (A + B)/2

+ (C + D)/2

+ (E + F)/2

+ (G + H)/2

+ (A + D)/2 + (B + C)/2

+ (A + F)/2 + (B + E)/2

+ (A + H)/2 + (B + G)/2

+ (C + F)/2 + (D + E)/2

+ (C + H)/2 + (D + G)/2

**+ (E + H)/2 + (F + G)/2**)/20

2. I think I have set each subset of the formula between the plus signs independently, however, the MT4 compiler/tester is giving different results for 2 variations of this formula, and I think it shouldn't. What am I not seeing? For example, if I simply alter placement of this one line from last in the formula to this location it gives a slightly different calculation, which unless my math is way off, it should not.

X = (

(A + B)/2

+ (C + D)/2

+ (E + F)/2

+ (G + H)/2

+ (A + B)/2

+ (C + D)/2

+ (E + F)/2

+ (G + H)/2

+ (A + D)/2 + (B + C)/2

**+ (E + H)/2 + (F + G)/2**+ (A + F)/2 + (B + E)/2

+ (A + H)/2 + (B + G)/2

+ (C + F)/2 + (D + E)/2

+ (C + H)/2 + (D + G)/2

)/20

What am I doing wrong or what is wrong with the compiler/tester?