AMV0:=vol*(O+C+H+L)/4;
ZS:=WMA(AMV0,21)/WMA(VOL,21),;
IL:=6*HHV(ZS,2)-5*ZS;
ZC:=2*ZS-IL,COLOR0000FF;
LJ:=(3*CLOSE+OPEN+LOW+HIGH)/6;
PJ:=(20*LJ+19*REF(LJ,1)+18*REF(LJ,2)
+17*REF(LJ,3)+16*REF(LJ,4)+15*REF(LJ,5)+14*REF(LJ,6)+13*REF(LJ,7)
+12*REF(LJ,8)+11*REF(LJ,9)+10*REF(LJ,10)+9*REF(LJ,11)
+8*REF(LJ,12)+7*REF(LJ,13)+6*REF(LJ,14)+5*REF(LJ,15)+4*REF(LJ,16)+3*REF(LJ,17)
+2*REF(LJ,18)+REF(LJ,20))/210,COLORF0F000;
VAR1:=MA(PJ,5),COLORBLUE,LINETHICK1;
买点:crOSS(PJ,VAR1) AND PJ>VAR1;