VAR1:=IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1));
VAR2:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,VAR1)));
VAR3:=IF(MOD(FROMOPEN,VAR2)<0.5,VAR2,MOD(FROMOPEN,VAR2));
VAR4:=IF((CURRBARSCOUNT=1 AND DYNAINFO(8)>1),V*(VAR2+3)/(VAR3+3),V);
VAR5:=IF(FINANCE(3)=2,0.3,IF((FINANCE(3)=3 OR FINANCE(3)=4 OR FINANCE(3)=6),0.2,0.1));
VAR6:=ZTPRICE(REF(C,1),IF(NAMEINCLUDE('ST'),0.05,VAR5));
VAR7:=DTPRICE(REF(C,1),IF(NAMEINCLUDE('ST'),0.05,VAR5));
VAR8:=C>=ZTPRICE(REF(C,1),IF(NAMEINCLUDE('ST'),0.05,VAR5)) AND H!=L AND H>0;
VAR9:=C>=ZTPRICE(REF(C,1),IF(NAMEINCLUDE('ST'),0.05,VAR5)) AND H=L AND H>0;
VAR23:=REF(VAR8 OR VAR9,1) AND C<O;
VAR24:=VAR23 AND (V>=REF(V,1)*1.9 OR AMOUNT>=REF(AMOUNT,1)*1.9);
VAR25:=BARSLAST(VAR24);
VAR26:=H=C OR (O>=REF(H,1) AND C>O);
VAR27:=H-MAX(O,C)<MAX(O,C)-MIN(O,C);
VAR28:=MAX(O,C)-MIN(O,C)>(H-MAX(O,C))*1.38;
VAR29:=MAX(O,C)-MIN(O,C)>MIN(O,C)-L AND MAX(O,C)-MIN(O,C)>H-MAX(O,C);
VAR30:=IF(VAR26,1,IF(L=O,VAR27,IF(H-MAX(O,C)>MIN(O,C)-L,VAR28,IF(L<O AND H>C,VAR29,DRAWNULL))));破倍阴高:=REF(C,1)<=REF(REF(H,VAR25),1) AND C>REF(REF(H,VAR25),1) AND VAR30,COLORMAGENTA;
红钻:破倍阴高 AND EMA(C,5)>=REF(EMA(C,5),1) AND C>EMA(C,5) AND REF(COUNT(破倍阴高,VAR25),1)<=2;