日线锁定:=(PERIOD==4);
数量:=23;
DMADIF:=MA(C,10)-MA(C,50);
DMAAMA:=MA(DMADIF,10);
DMAX:=DMADIF>DMAAMA;
P01:=DMAX;
DMITR:=EXPMEMA(MAX(MAX(H-L,ABS(H-REF(C,1))),ABS(REF(C,1)-L)),14);
DMIHD:=H-REF(H,1);
DMILD:=REF(L,1)-L;
DMIDMP:=EXPMEMA(IFF(DMIHD>0 AND DMIHD>DMILD,DMIHD,0),14);
DMIDMM:=EXPMEMA(IFF(DMILD>0 AND DMILD>DMIHD,DMILD,0),14);
DMIPDI:=DMIDMP*100/DMITR;
DMIMDI:=DMIDMM*100/DMITR;
DMIX:=DMIPDI>DMIMDI;
P02:=DMIX;
DPODPO:=C-REF(MA(C,20),20/2+1);
DPOMADPO:=MA(DPODPO,6);
DPOX:=DPODPO>DPOMADPO;
P03:=DPOX;
EMVVOLUME:=MA(V,14)/V;
EMVMID:=100*(H+L-REF(H+L,1))/(H+L);
EMVEMV:=MA(EMVMID*EMVVOLUME*(H-L)/MA(H-L,14),14);
EMVMAEMV:=MA(EMVEMV,9);
EMVX:=EMVEMV>EMVMAEMV;
P04:=EMVX;
MACDDIF:=EMA(C,12)-EMA(C,26);
MACDDEA:=EMA(MACDDIF,9);
MACDX:=MACDDIF>MACDDEA;
P05:=MACDX;
TRIXTR:=EMA(EMA(EMA(C,12),12),12);
TRIXTRIX:=(TRIXTR-REF(TRIXTR,1))/REF(TRIXTR,1)*100;
TRIXMATRIX:=MA(TRIXTRIX,9);
TRIXX:=TRIXTRIX>TRIXMATRIX;
P06:=TRIXX;
WVADWVAD:=SUM((C-O)/(H-L)*V,24)/10000;
WVADMAWVAD:=MA(WVADWVAD,6);
WVADX:=WVADWVAD>WVADMAWVAD;
P08:=WVADX;
JSJS:=100*(C-REF(C,5))/(5*REF(C,5));
JSMAJS1:=MA(JSJS,5);
JSX:=JSJS>JSMAJS1;
P09:=JSX;
CYEMAL:=MA(C,5);
CYEMAS:=MA(MA(C,20),5);
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:=QLSVOL_0-QLSVOL_1;
QLSMA1:=MA(QLSSHORT,10);
SHORTQLX:=QLSSHORT>QLSMA1;
P21:=SHORTQLX;
AMVAMV0:=V*(O+C)/2;
AMVAMV1:=SUM(AMVAMV0,5)/SUM(V,5);
AMVAMV2:=SUM(AMVAMV0,13)/SUM(V,13);
AMVX:=AMVAMV1>AMVAMV2;
P22:=AMVX;
MTMMTM:=C-REF(C,12);
MTMMAMTM:=MA(MTMMTM,6);
MTMX:=MTMMTM>MTMMAMTM;
P23:=MTMX;
ZJTJVAR1:=EMA(EMA(C,9),9);
ZJTJ控盘:=(ZJTJVAR1-REF(ZJTJVAR1,1))/REF(ZJTJVAR1,1)*1000;
YZKPX:=ZJTJ控盘>REF(ZJTJ控盘,1) AND ZJTJ控盘>0;
P24:=YZKPX;
量化趋势:(P01+P02+P03+P04+P05+P06+P08+P09+P10+P11+P12+P13+P14+P15+P16+P17+P18+P19+P20+P21+P22+P23+P24)*(100/数量),NODRAW,COLORRED;
▲35线:35,COLORGREEN;
▲50线:50,COLORYELLOW;
▲80线:80,COLORRED;
STICKLINE(量化趋势>=REF(量化趋势,1),0,量化趋势,3,0),COLORRED;
STICKLINE(量化趋势<REF(量化趋势,1),0,量化趋势,3,0),COLORFFFF00;
STICKLINE(量化趋势>=REF(量化趋势,1),0,量化趋势,3,0),COLOR0000FF;
STICKLINE(量化趋势>=REF(量化趋势,1),0,量化趋势,2.7.5,0),COLOR001BFF;
STICKLINE(量化趋势>=REF(量化趋势,1),0,量化趋势,2.4,0),COLOR0035FF;
STICKLINE(量化趋势>=REF(量化趋势,1),0,量化趋势,2.1,0),COLOR0050FF;
STICKLINE(量化趋势>=REF(量化趋势,1),0,量化趋势,1.8,0),COLOR0062FF;
STICKLINE(量化趋势>=REF(量化趋势,1),0,量化趋势,1.5,0),COLOR007AFF;
STICKLINE(量化趋势>=REF(量化趋势,1),0,量化趋势,1.2,0),COLOR0089FF;
STICKLINE(量化趋势>=REF(量化趋势,1),0,量化趋势,0.9,0),COLOR009CFF;
STICKLINE(量化趋势>=REF(量化趋势,1),0,量化趋势,0.6,0),COLOR00C0FF;
STICKLINE(量化趋势>=REF(量化趋势,1),0,量化趋势,0.3,0),COLOR00EAFF;