NN:=(3*CLOSE+OPEN+LOW+HIGH)/6;
MM:=(20*NN+19*REF(NN,1)+18*REF(NN,2)+17*REF(NN,3)+16*REF(NN,4)+15*REF(NN,5)+14*REF(NN,6)
+13*REF(NN,7)+12*REF(NN,8)+11*REF(NN,9)+10*REF(NN,10)+9*REF(NN,11)+8*REF(NN,12)
+7*REF(NN,13)+6*REF(NN,14)+5*REF(NN,15)+4*REF(NN,16)+3*REF(NN,17)+2*REF(NN,18)+
REF(NN,20))/210;
CC:=MA(MM,5);
RU:CROSS(MM,CC);