RSV1:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*10000;
RSV2:=(CLOSE-LLV(LOW,37))/(HHV(HIGH,37)-LLV(LOW,37))*10000;
短线:=SMA(SMA(RSV1,3,1),3,1)+3*STD(CLOSE,21),COLOR00FF00;
中线:=SMA(RSV2,5,1)+2*STD(CLOSE,37),COLORRED;
RSV3:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*10000;
长线:=SMA(RSV3,5,1),COLORYELLOW;
黄金坑:=短线<2000 AND 中线<2000 AND 长线<2000;
短期:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),COLORWHITE;
中期:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)),COLORYELLOW;
中长期:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)),COLORMAGENTA;
长期:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),COLORRED,LINETHICK2;
强市线:=80,POINTDOT;
弱市线:=20,POINTDOT;
分水岭:=50,POINTDOT;
多空:=长期<10;
JJZ:=(HIGH+LOW+CLOSE)/3;QJ0Z:=AMOUNT/IF(HIGH=LOW,4,HIGH-LOW);
买1:=QJ0Z*(MIN(OPEN,CLOSE)-LOW);
买2:=QJ0Z*(JJZ-MIN(CLOSE,OPEN));
卖1:=QJ0Z*(MAX(CLOSE,OPEN)-JJZ);
卖2:=QJ0Z*(HIGH-MAX(OPEN,CLOSE));
DTZ:=((买1+买2)-(卖1+卖2))/10000;
主力持仓:=SUM(DTZ,66),COLORWHITE,LINETHICK1;
JJ:=(HIGH+LOW+CLOSE)/3;QJ0:=AMOUNT/IF(HIGH=LOW,4,HIGH-LOW);
TD1:=QJ0*(MIN(OPEN,CLOSE)-LOW);
DD1:=QJ0*(JJ-MIN(CLOSE,OPEN));
DD2:=QJ0*(HIGH-MAX(OPEN,CLOSE));
TD2:=QJ0*(MAX(CLOSE,OPEN)-JJ);
TD:=TD1-TD2;DA:=DD1-DD2;
XD1:=1-(TD1+DD1);XD2:=1-(TD2+DD2);
TZ:=V/SUM(V,60)*100;
DT:=((XD1-XD2)/10000)/TZ;
散户持仓:=SUM(DT,22),COLOR888888,LINETHICK1;
主散:=主力持仓>散户持仓;
换手:=VOL/CAPITAL*100;
百日换手:=SUM(换手,100)>100;
N:=5;
N1:=1;
M1:=22;
P:=19;
SJV:=C/FINANCE(34)<N;
FZL:=FINANCE(11)/FINANCE(15)>N1;
XG:=SJV AND FZL;
D:=FINANCE(34)>0;
A:=FINANCE(34);
B:=CLOSE;
T1:IF(((B/A<3) AND D AND 黄金坑 AND 多空 AND XG),1,0);