input:m(960),p1(5),p2(20),p3(20),p4(30);
DRAWTEXT(SYSPARAM(2)=BARSCOUNT(CLOSE),CLOSE,'所属板块:'+BLKNAME),ALIGN4,colorCCFFFF;
STICKLINE(CLOSE>OPEN,HIGH,LOW,0.8,1),LINETHICK2,color7FFF;
STICKLINE(CLOSE>OPEN,OPEN,CLOSE,8,0),colorFFFF;
STICKLINE(CLOSE>OPEN,OPEN,OPEN+(CLOSE-OPEN)*12/13,8,0),colorE7FF;
STICKLINE(CLOSE>OPEN,OPEN,OPEN+(CLOSE-OPEN)*11/13,8,0),colorD2FF;
STICKLINE(CLOSE>OPEN,OPEN,OPEN+(CLOSE-OPEN)*10/13,8,0),colorBDFF;
STICKLINE(CLOSE>OPEN,OPEN,OPEN+(CLOSE-OPEN)*9/13,8,0),colorA8FF;
STICKLINE(CLOSE>OPEN,OPEN,OPEN+(CLOSE-OPEN)*8/13,8,0),color93FF;
STICKLINE(CLOSE>OPEN,OPEN,OPEN+(CLOSE-OPEN)*7/13,8,0),color7EFF;
STICKLINE(CLOSE>OPEN,OPEN,OPEN+(CLOSE-OPEN)*6/13,8,0),color69FF;
STICKLINE(CLOSE>OPEN,OPEN,OPEN+(CLOSE-OPEN)*5/13,8,0),color54FF;
STICKLINE(CLOSE>OPEN,OPEN,OPEN+(CLOSE-OPEN)*4/13,8,0),color3FFF;
STICKLINE(CLOSE>OPEN,OPEN,OPEN+(CLOSE-OPEN)*3/13,8,0),color2AFF;
STICKLINE(CLOSE>OPEN,OPEN,OPEN+(CLOSE-OPEN)*2/13,8,0),color15FF;
STICKLINE(CLOSE>OPEN,OPEN,OPEN+(CLOSE-OPEN)*1/13,8,0),colorFF;
STICKLINE(CLOSE<OPEN,HIGH,LOW,0.8,1),LINETHICK2,colorFFFF00;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,8,0),colorFF0000;
STICKLINE(CLOSE<OPEN,CLOSE,CLOSE+(OPEN-CLOSE)*12/13,8,0),colorFF1500;
STICKLINE(CLOSE<OPEN,CLOSE,CLOSE+(OPEN-CLOSE)*11/13,8,0),colorFF2A00;
STICKLINE(CLOSE<OPEN,CLOSE,CLOSE+(OPEN-CLOSE)*10/13,8,0),colorFF3F00;
STICKLINE(CLOSE<OPEN,CLOSE,CLOSE+(OPEN-CLOSE)*9/13,8,0),colorFF5400;
STICKLINE(CLOSE<OPEN,CLOSE,CLOSE+(OPEN-CLOSE)*8/13,8,0),colorFF6900;
STICKLINE(CLOSE<OPEN,CLOSE,CLOSE+(OPEN-CLOSE)*7/13,8,0),colorFF7E00;
STICKLINE(CLOSE<OPEN,CLOSE,CLOSE+(OPEN-CLOSE)*6/13,8,0),colorFF9300;
STICKLINE(CLOSE<OPEN,CLOSE,CLOSE+(OPEN-CLOSE)*5/13,8,0),colorFFA800;
STICKLINE(CLOSE<OPEN,CLOSE,CLOSE+(OPEN-CLOSE)*4/13,8,0),colorFFBD00;
STICKLINE(CLOSE<OPEN,CLOSE,CLOSE+(OPEN-CLOSE)*3/13,8,0),colorFFD200;
STICKLINE(CLOSE<OPEN,CLOSE,CLOSE+(OPEN-CLOSE)*2/13,8,0),colorFFE700;
STICKLINE(CLOSE<OPEN,CLOSE,CLOSE+(OPEN-CLOSE)*1/13,8,0),colorFFFF00;
价1:MA(CLOSE,P1);
价2:MA(CLOSE,P2);
价3:MA(CLOSE,P3);
价4:MA(CLOSE,P4);
R0:=M/1000;
R:=(LOW-R0*SYSPARAM(5))/VOL;
R1:=LLV(R,SYSPARAM(3)-SYSPARAM(2));
R2:=R1[DATACOUNT];
R3:=LLV(LOW-R2*VOL,SYSPARAM(3)-SYSPARAM(2));
R4:=R3[SYSPARAM(3)];
R5:=(R2*VOL+R4)*0.995;
STICKLINE(CLOSE>OPEN OR CLOSE=OPEN AND CLOSE>=REF(CLOSE,1),R5,R0*SYSPARAM(5),8,0),colorFF;
STICKLINE(CLOSE>OPEN OR CLOSE=OPEN AND CLOSE>=REF(CLOSE,1),R5,R0*SYSPARAM(5),7.3,0),color15FF;
STICKLINE(CLOSE>OPEN OR CLOSE=OPEN AND CLOSE>=REF(CLOSE,1),R5,R0*SYSPARAM(5),6.7,0),color2AFF;
STICKLINE(CLOSE>OPEN OR CLOSE=OPEN AND CLOSE>=REF(CLOSE,1),R5,R0*SYSPARAM(5),6,0),color3FFF;
STICKLINE(CLOSE>OPEN OR CLOSE=OPEN AND CLOSE>=REF(CLOSE,1),R5,R0*SYSPARAM(5),5.3,0),color54FF;
STICKLINE(CLOSE>OPEN OR CLOSE=OPEN AND CLOSE>=REF(CLOSE,1),R5,R0*SYSPARAM(5),4.7,0),color69FF;
STICKLINE(CLOSE>OPEN OR CLOSE=OPEN AND CLOSE>=REF(CLOSE,1),R5,R0*SYSPARAM(5),4.1,0),color7EFF;
STICKLINE(CLOSE>OPEN OR CLOSE=OPEN AND CLOSE>=REF(CLOSE,1),R5,R0*SYSPARAM(5),3.5,0),color93FF;
STICKLINE(CLOSE>OPEN OR CLOSE=OPEN AND CLOSE>=REF(CLOSE,1),R5,R0*SYSPARAM(5),3,0),colorA8FF;
STICKLINE(CLOSE>OPEN OR CLOSE=OPEN AND CLOSE>=REF(CLOSE,1),R5,R0*SYSPARAM(5),2.3,0),colorBDFF;
STICKLINE(CLOSE>OPEN OR CLOSE=OPEN AND CLOSE>=REF(CLOSE,1),R5,R0*SYSPARAM(5),1.6,0),colorD2FF;
STICKLINE(CLOSE>OPEN OR CLOSE=OPEN AND CLOSE>=REF(CLOSE,1),R5,R0*SYSPARAM(5),1.2,0),colorE7FF;
STICKLINE(CLOSE>OPEN OR CLOSE=OPEN AND CLOSE>=REF(CLOSE,1),R5,R0*SYSPARAM(5),0.9,0),colorEFFFFF;
STICKLINE(CLOSE<OPEN OR CLOSE=OPEN AND CLOSE<REF(CLOSE,1),R5,R0*SYSPARAM(5),8,0),colorFF0000;
STICKLINE(CLOSE<OPEN OR CLOSE=OPEN AND CLOSE<REF(CLOSE,1),R5,R0*SYSPARAM(5),7.3,0),colorFF1500;
STICKLINE(CLOSE<OPEN OR CLOSE=OPEN AND CLOSE<REF(CLOSE,1),R5,R0*SYSPARAM(5),6,0),colorFF2A00;
STICKLINE(CLOSE<OPEN OR CLOSE=OPEN AND CLOSE<REF(CLOSE,1),R5,R0*SYSPARAM(5),5.3,0),colorFF3F00;
STICKLINE(CLOSE<OPEN OR CLOSE=OPEN AND CLOSE<REF(CLOSE,1),R5,R0*SYSPARAM(5),6,0),colorFF5400;
STICKLINE(CLOSE<OPEN OR CLOSE=OPEN AND CLOSE<REF(CLOSE,1),R5,R0*SYSPARAM(5),4.7,0),colorFF6900;
STICKLINE(CLOSE<OPEN OR CLOSE=OPEN AND CLOSE<REF(CLOSE,1),R5,R0*SYSPARAM(5),4.1,0),colorFF7E00;
STICKLINE(CLOSE<OPEN OR CLOSE=OPEN AND CLOSE<REF(CLOSE,1),R5,R0*SYSPARAM(5),3.5,0),colorFF9300;
STICKLINE(CLOSE<OPEN OR CLOSE=OPEN AND CLOSE<REF(CLOSE,1),R5,R0*SYSPARAM(5),3,0),colorFFA800;
STICKLINE(CLOSE<OPEN OR CLOSE=OPEN AND CLOSE<REF(CLOSE,1),R5,R0*SYSPARAM(5),2.3,0),colorFFBD00;
STICKLINE(CLOSE<OPEN OR CLOSE=OPEN AND CLOSE<REF(CLOSE,1),R5,R0*SYSPARAM(5),1.6,0),colorFFD200;
STICKLINE(CLOSE<OPEN OR CLOSE=OPEN AND CLOSE<REF(CLOSE,1),R5,R0*SYSPARAM(5),1.2,0),colorFFE700;
STICKLINE(CLOSE<OPEN OR CLOSE=OPEN AND CLOSE<REF(CLOSE,1),R5,R0*SYSPARAM(5),0.8,0),colorFFFF00;
PARTLINE(VOL>=0,R0*SYSPARAM(5)),colorFFFFFF;
量1:MA(VOL,P1),LINETHICK0,colorFFFFFF;
量2:MA(VOL,P2),LINETHICK0,colorFFFF;
量3:MA(VOL,P3),LINETHICK0,colorFF00FF;
量4:MA(VOL,P4),LINETHICK0,colorFF00;
MA(R5,P1);
MA(R5,P2);
MA(R5,P3);
MA(R5,P4);
VAR1:=HHV(HIGH,9)-LLV(LOW,9);
VAR2:=HHV(HIGH,9)-CLOSE;
VAR3:=CLOSE-LLV(LOW,9);
VAR4:=VAR2/VAR1*100-70;
VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VAR6:=(2*CLOSE+HIGH+LOW)/4;
VAR7:=SMA(VAR3/VAR1*100,3,1);
VAR8:=LLV(LOW,34);
VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);
VAR10:=IF(VAR9>100,VAR9-100,0);
VARA:=HHV(HIGH,34);
防线A:=VAR10*2;
防线B:=EMA((VAR6-VAR8)/(VARA-VAR8)*100,13);
防线C:=SMA(VAR5,20,1);
SS:=防线C-SMA(防线C,5,1);
SA:=SAR(10,2,20);
D:=IF(SS>=0,1,-1);
E:=D=1;
F:=D=-1;
VARQS27:=BARSLAST(E)>BARSLAST(F);
VARQS28:=NOT(VARQS27);
DRAWICON(VARQS27,SA,11),ALIGN5;
DRAWICON(VARQS28,SA,10),ALIGN5; |