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NL_8:=(3*NL_4+2*NL_5+NL_6+NL_7)/7;
NL_9:=DMA(EMA(NL_4,2),SUM(VOL,1)*NL_8)*IF(CAPITAL,1,0);
NL_10:=EMA(NL_1-NL_9,1);
NL_11:=REF(NL_10,1);
NL_12:=NL_10>=NL_11;
NL_13:=NL_10<=NL_11;
NL_14:=(NL_10-NL_11)*15;
NL_15:=IF(NL_12,NL_14,0);
NL_16:=IF(NL_13,NL_14,0);
NL_17:=(EMA(NL_15+NL_16,13))/1000000;
NL_18:=SMA(NL_17,3,1);
NL_19:=EMA(NL_18,8);
N1:=SYSPARAM(3);
N2:=SYSPARAM(2);
N3:=N1-N2+1;
GH:=HHV(能量B,N3);
GL:=LLV(能量B,N3);
GHH:=GH[N1];
GLL:=GL[N1];
个中:=(GHH+GLL)/2;
JP_1:=EMA(CLOSE,7)-EMA(CLOSE,19);
JP_2:=EMA(JP_1,9);
JP_3:=JP_1<-0.1 AND JP_1>JP_2;
H2:=ValueWhen(NL_18>=NL_19 AND NL_18>REF(NL_19,1),NL_18);
HH2:=NOT(H2>NL_18);
K1:=IF(HH2>0,GLL,IF(HH2=0,GHH,0));
AA:=DMA(CLOSE,VOL/MA(VOL,4)/4);
BB:=DMA(CLOSE,VOL/MA(VOL,33)/33);
CC:=(CLOSE-AA)/AA*100<-11;
DD:=(AA-BB)/BB*100<-22.3;
EE:=CC AND DD;
一剑封喉:=EE AND (OPEN>CLOSE OR OPEN<CLOSE) AND (OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0.07 AND (REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1)) AND (REF(OPEN,2)>REF(CLOSE,2) OR REF(OPEN,2)<REF(CLOSE,2)) AND (REF(OPEN,3)>REF(CLOSE,3) OR REF(OPEN,3)<REF(CLOSE,3)) AND (REF(OPEN,4)>REF(CLOSE,4) OR REF(OPEN,4)<REF(CLOSE,4)) AND (REF(OPEN,5)>REF(CLOSE,5) OR REF(OPEN,5)<REF(CLOSE,5)) AND (REF(OPEN,6)>REF(CLOSE,6) OR REF(OPEN,6)<REF(CLOSE,6)) AND (REF(OPEN,7)>REF(CLOSE,7) OR REF(OPEN,7)<REF(CLOSE,7));
DRAWGBK(DATE>0,COLORRGB(40,40,173),COLORRGB(1,1,14),1);
PARTLINE(CLOSE,界),LINEDOT,colorA6A9;
PARTLINE(CLOSE,均量),colorFF00;
PARTLINE(CLOSE,能量B),color1D78FF;
PARTLINE(CLOSE,能量A),colorFFFF;
PARTLINE(CAPITAL>0,K1),LINEDOT,colorFFFFFF;
PARTLINE(CAPITAL>0 AND K1<0 AND ZJ6>0,K1),LINEDOT,colorFF;
PARTLINE(CAPITAL>0 AND K1>0 AND ZJ6<0,K1),LINEDOT,colorFFC800;
STICKLINE(CAPITAL>0 AND JP_3,GLL*1.1,GLL*1.2,5,0),color808080;
DRAWICON(一剑封喉,GLL*1.1,8),ALIGN0,PXDN16;
|