RSV1:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
RSV2:=(CLOSE-LLV(LOW,M))/(HHV(HIGH,M)-LLV(LOW,M))*100;
J1:=3*SMA(RSV1,P,1)-2*SMA(SMA(RSV1,P,1),P,1);
J2:=3*SMA(RSV2,P,1)-2*SMA(SMA(RSV2,P,1),P,1);
支撑位:IF(CROSS(J1,J2),LOW,REF(LOW,BARSLAST(CROSS(J1,J2)))),LINETHICK3,colorFF;
压力位:IF(CROSS(J2,J1),HIGH,REF(HIGH,BARSLAST(CROSS(J2,J1)))),LINETHICK3,colorFF0000;
YC_VAR1:=EMA(CLOSE,5);
YC_VAR2:=EMA(CLOSE,10);
YC_VAR3:=EMA(CLOSE,20);
YC_VAR4:=EMA(CLOSE,30);
YC_VAR5:=(YC_VAR1+YC_VAR2+YC_VAR3+YC_VAR4)/4;
YC_VAR6:=(YC_VAR5-REF(YC_VAR5,15))/REF(YC_VAR5,15)*100;
YC_买进:=((CLOSE-REF(MA(CLOSE,6),1))/6+MA(CLOSE,6))*1.004;
买进条件:=CROSS(CLOSE,YC_买进) AND YC_买进>REF(YC_买进,1);
YC_加仓:=((CLOSE-REF(MA(CLOSE,18),1))/18+MA(CLOSE,18))*1.004;
加仓条件:=CROSS(CLOSE,YC_加仓) AND YC_加仓>REF(YC_加仓,1);
YG_回挡:=SMA(HIGH,21,2)*1.05;
YG_卖出:=CLOSEYG_回挡 AND CLOSE ◆满仓:买进条件 AND 加仓条件,LINETHICK0; DRAWTEXT(加仓条件 AND 买进条件<>1,LOW/1.01,'加
仓'),ALIGN0; DRAWTEXT(加仓条件 AND 买进条件,LOW/1.01,'◆
满
仓'),ALIGN0; MA20:MA(CLOSE,20),LINETHICK0; TJ1:=CLOSE>=MA20; TJ2:=CLOSE STICKLINE(TJ1,LOW,HIGH,0,0),color1122FF; STICKLINE(TJ1,OPEN,CLOSE,7,0),color1122FF; STICKLINE(TJ2,LOW,HIGH,0,0),color22FF55; STICKLINE(TJ2,OPEN,CLOSE,7,0),color22FF55; A1:=AMOUNT/VOL; A2:=LOW
A3:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>1.2; A4:=LOW A5:=VOL FF1:A2 AND A3 AND A4 AND A5,LINETHICK0; DRAWTEXT(FF1,LOW*0.95,'底'),PXUP8,colorFF00; STICKLINE(FF1,HIGH,LOW,0.5,0),colorFF00; STICKLINE(FF1,OPEN,CLOSE,9,6),LINETHICK2,colorFF00; DRAWICON(FF1,LOW,4),PXUP6; A0:=BARSCOUNT(CLOSE); A3:=SYSPARAM(3); A2:=SYSPARAM(2); A4:=SYSPARAM(4); A5:=SYSPARAM(5); NN0:=A3-A2; NN:=A0-A2; HH1:=(A4-A5)/8; HH2:=HH1/4; LL1:=LLV(LOW,NN0); LL2:=LL1[A3]; Y0:=A0>=A2; VV0:=IF(Y0=1 AND SYSPARAM(1)>=A0,VOL,0); C1:=IF(BETWEEN(CLOSE,A4-0*HH1,A4-1*HH1),VV0,0); C2:=IF(BETWEEN(CLOSE,A4-1*HH1,A4-2*HH1),VV0,0); C3:=IF(BETWEEN(CLOSE,A4-2*HH1,A4-3*HH1),VV0,0); C4:=IF(BETWEEN(CLOSE,A4-3*HH1,A4-4*HH1),VV0,0); C5:=IF(BETWEEN(CLOSE,A4-4*HH1,A4-5*HH1),VV0,0); C6:=IF(BETWEEN(CLOSE,A4-5*HH1,A4-6*HH1),VV0,0); C7:=IF(BETWEEN(CLOSE,A4-6*HH1,A4-7*HH1),VV0,0); C8:=IF(BETWEEN(CLOSE,A4-7*HH1,A4-8*HH1),VV0,0); C9:=IF(BETWEEN(CLOSE,A4-8*HH1,A4-9*HH1),VV0,0); C10:=IF(BETWEEN(CLOSE,A4-9*HH1,A4-10*HH1),VV0,0); V1:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C1,NN0),0),2)); V2:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C2,NN0),0),2)); V3:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C3,NN0),0),2)); V4:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C4,NN0),0),2)); V5:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C5,NN0),0),2)); V6:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C6,NN0),0),2)); V7:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C7,NN0),0),2)); V8:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C8,NN0),0),2)); V9:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C9,NN0),0),2)); V10:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C10,NN0),0),2)); AV0:=MAX(V1,MAX(V2,MAX(V3,MAX(V4,MAX(V5,MAX(V6,MAX(V7,MAX(V8,MAX(V9,V10))))))))); X1:=V1/AV0>=NN/NN0 AND NN>=0; X3:=V3/AV0>=NN/NN0 AND NN>=0; X5:=V5/AV0>=NN/NN0 AND NN>=0; X7:=V7/AV0>=NN/NN0 AND NN>=0; FILLRGN(V1/AV0>=NN/NN0 AND NN>=0,A4-0*HH1,A4-1*HH1+HH1*0.5),color666666; FILLRGN(V2/AV0>=NN/NN0 AND NN>=0,A4-1*HH1,A4-2*HH1+HH1*0.5),color666666; FILLRGN(V3/AV0>=NN/NN0 AND NN>=0,A4-2*HH1,A4-3*HH1+HH1*0.5),color666666; FILLRGN(V4/AV0>=NN/NN0 AND NN>=0,A4-3*HH1,A4-4*HH1+HH1*0.5),color666666; FILLRGN(V5/AV0>=NN/NN0 AND NN>=0,A4-4*HH1,A4-5*HH1+HH1*0.5),color666666; FILLRGN(V6/AV0>=NN/NN0 AND NN>=0,A4-5*HH1,A4-6*HH1+HH1*0.5),color666666; FILLRGN(V7/AV0>=NN/NN0 AND NN>=0,A4-6*HH1,A4-7*HH1+HH1*0.5),color666666; FILLRGN(V8/AV0>=NN/NN0 AND NN>=0,A4-7*HH1,A4-8*HH1+HH1*0.5),color666666; A:=BARSCOUNT(CLOSE); AH:=HHV(HIGH,72); AL:=LLV(LOW,72); A0:=(AH-AL)/21; B1:=LOW-A0; STICKLINE((A+0)/13=FLOOR((A+0)/13),B1,B1-3*A0,1,0); DRAWTEXT((A+0)/13=FLOOR((A+0)/13),B1-2.5*A0,'变'),colorFF0000; X1:=(CLOSE+LOW+HIGH)/3; X2:=EMA(X1,6); X3:=EMA(X2,5); GR1:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5)); GR2:=EMA(X1,13)>EMA(X1,21) AND EMA(X1,21)>EMA(X1,34) AND EMA(X1,13)>REF(EMA(X1,13),1); GR3:=COUNT("BIAS.BIAS2"(6,13,24)>10 AND HIGH=HHV(HIGH,GR1),GR1); GR4:=HIGH=HHV(HIGH,GR1);