MA5:=(((((3 * CLOSE) + OPEN) + LOW) + HIGH) / 6);A:=(((((((((((((((((((((20 * MA5) + (19 * REF(MA5,1))) + (18 * REF(MA5,2))) + (17 * REF(MA5,3))) + (16 * REF(MA5,4))) + (15 * REF(MA5,5))) + (14 * REF(MA5,6))) + (13 * REF(MA5,7))) + (12 * REF(MA5,8))) + (11 * REF(MA5,9))) + (10 * REF(MA5,10))) + (9 * REF(MA5,11))) + (8 * REF(MA5,12))) + (7 * REF(MA5,13))) + (6 * REF(MA5,14))) + (5 * REF(MA5,15))) + (4 * REF(MA5,16))) + (3 * REF(MA5,17))) + (2 * REF(MA5,18))) + REF(MA5,20)) / 210);B:=MA(A,3);B1:=M