HLA:=100*(WINNER(C*1.1)-WINNER(C*0.9));
HLB:=100*WINNER(C)-HLA;
CC:=(H+L+2*C)/4;
NX:=MA(C,100);
NOTEXTHLP:IF(HLB =0,NX*0.96,NX),COLORYELLOW,LINETHICK2;
牛熊:NX,COLORFFFF00,LINETHICK2;
E01:=EMA((EMA((H+C)/2,1)+EMA(CC,2))/2,3);
E02:=EMA((EMA(CC,1)+EMA(CC,3)+EMA(CC,5))/3,3);
E03:=EMA((EMA(CC,3)+EMA(CC,5)+EMA(CC,7))/3,3);
E04:=EMA((EMA(CC,5)+EMA(CC,7)+EMA(CC,9))/3,3);
E05:=EMA((EMA(CC,7)+EMA(CC,9)+EMA(CC,11))/3,3);
E06:=EMA((EMA(CC,9)+EMA(CC,11)+EMA(CC,13))/3,3);
E07:=EMA((EMA(CC,11)+EMA(CC,13)+EMA(CC,15))/3,3);
E08:=EMA((EMA(CC,13)+EMA(CC,15)+EMA(CC,17))/3,3);
E09:=EMA((EMA(CC,15)+EMA(CC,17)+EMA(CC,19))/3,3);
E10:=EMA((EMA(CC,17)+EMA(CC,19)+EMA(CC,21))/3,3);
E11:=EMA((EMA(CC,19)+EMA(CC,21)+EMA(CC,23))/3,3);
ZNA:=EMA(HIGH+LOW+2*CLOSE/4,21)*10-EMA(HIGH+LOW+2*CLOSE/4,88)*10;
ZNB:=SMA(ZNA,5,1);
ZN1:=(E11-NX)/NX*100;
ZN2:=MA(C,13)+MA(C,13)-REF(MA(C,13),1);
ZN3:=IF(MA(C,17) ZN2,ZN2,MA(C,17));
ZN4:=ZN3-(EMA(C,3)-ZN3);{www.9m8.cn 九毛八公式指标网}
JK1:=E02 NX AND E06 NX AND E08 NX AND E11 NX AND E02 E11 AND E06 E11 AND E08 E11 AND
E02 E08 AND E06 E08 AND ZN1 14 AND ZNA ZNB AND ZNA
JK2:=IF(JK1 AND ZN4 E11,E11,DRAWNULL);
JK3:=IF(JK1 AND ZN4 E08,E11,DRAWNULL);
A10:=IF(E11 E10,E11,E10);
A09:=IF(A10 E09,A10,E09);
A08:=IF(A09 E08,A09,E08);
A07:=IF(A08 E07,A08,E07);
A06:=IF(A07 E06,A07,E06);
A05:=IF(A06 E05,A06,E05);
A04:=IF(A05 E04,A05,E04);
A03:=IF(A04 E03,A04,E03);
A02:=IF(A03 E02,A03,E02);
A01:=IF(A02 E01,A02,E01);
NOTEXT11:E11,COLORFF00FF;
NOTEXT10:A10,COLOR00FF00;
NOTEXT09:A09,COLOR00FF00;
NOTEXT08:A08,COLOR00FF00;
NOTEXT07:A07,COLOR0080DD;
NOTEXT06:A06,COLOR0080DD;
NOTEXT05:A05,COLOR0080DD;
NOTEXT04:A04,COLOR0000FF;
NOTEXT03:A03,COLOR0000FF;
NOTEXT02:A02,COLOR0000FF;
NOTEXT01:A01,COLOR0000FF;
DRAWBAND(E05,RGB(250,0,0),JK2,0);
DRAWBAND(E05,RGB(250,250,0),JK3,0);
DRAWKLINE(H,O,L,C);