手机版效果展示:
指标源码:
RSV:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;
RSV1:=(CLOSE-LLV(LOW,52))/(HHV(HIGH,52)-LLV(LOW,52))*100;
RSV2:=(CLOSE-LLV(LOW,108))/(HHV(HIGH,108)-LLV(LOW,108))*100;
K1:=SMA(RSV2,15,1);
D1:=SMA(K1,15,1);
J1:=3*K1-2*D1;
STICKLINE(J1>D1,J1,D1,6,0),COLOR32608E;
STICKLINE(J1<D1,J1,D1,6,0),COLORBLUE;
K2:=SMA(RSV,3,1);
K3:=SMA(RSV1,5,1);
D2:=SMA(K3,10,1);
独立线:SMA(RSV2,5,1),COLORRED;
R1:=100-K3;
日底:=IF(R1-89.5<-3,-3,R1-89.5);
日顶:=IF(R1+80.5>100,100,R1+80.5);
A1:=MIN(100,R1+80.5);
A2:=MAX(-3,R1-89);
STICKLINE(日顶,100,A1,3,0),COLOR16AF36;
STICKLINE(日底,-3,A2,3,0),COLOR00CCFF;
快线:SMA(K2,3,1),COLOR00FF00;
慢线:SMA(RSV1,15,1),LINETHICK1,COLORYELLOW;
AA:=100-D2;
周底:=IF(AA-89.5<-3,-3,AA-89.5);
周顶:=IF(AA+80.5>100,100,AA+80.5);
BB:=MIN(100,AA+80.5);
DD:=MAX(-3,AA-88);
STICKLINE(周顶,100,BB,3,0),COLOR00FF00;
STICKLINE(周底,-3,DD,3,0),COLOR00AA00;
DRAWICON(CROSS(快线,慢线)AND 慢线<40,慢线,1);
DRAWTEXT(CROSS(快线,慢线)AND 慢线<40,慢线,'顶底无极');
一线天一线阴阳法则低吸通达信主图副图选股
主图
X_1:=3;
X_2:=9;
X_3:=X_1;
X_4:=X_1;
X_5:=(CLOSE-LLV(LOW,X_2))/(HHV(HIGH,X_2)-LLV(LOW,X_2))*100;
X_6:=SMA(X_5,X_3,1);
X_7:=SMA(X_6,X_4,1);
X_8:=3*X_6-2*X_7;
X_9:=DATE<=1180630;
X_10:=X_9*SMA(CLOSE,3,1);
X_11:=X_9*SMA(LLV(LOW,9),3,1);
X_12:=X_9*SMA(HHV(LOW,9),3,1);
STICKLINE(CLOSE>X_12 AND X_10>=0.68*(X_12-X_11)+X_11,X_11,X_12,4,0),COLOR000073;
STICKLINE(NOT(CLOSE>X_12 AND X_10>=0.68*(X_12-X_11)+X_11),X_11,X_12,4,0),COLOR444422;
X_10,COLOR40FF00,LINETHICK2;
X_13:=(REF(X_7,1)+(1-X_1)/(X_1+1)*REF(X_6,1))*(X_1+1)/200*(HHV(HIGH,X_2)-LLV(LOW,X_2))+LLV(LOW,X_2);
X_14:=REF(X_8,1)+2*((X_3-1)/(X_3*X_4)*REF(X_6,1)+(X_4-1)/X_4*REF(X_7,1))-3*(X_3-1)/X_3*REF(X_6,1);
X_15:=100*(3/X_3-2/(X_3*X_4))/(HHV(HIGH,X_2)-LLV(LOW,X_2));
X_16:=X_9*(X_14/X_15+LLV(LOW,X_2));
X_17:=X_9*(REF(X_6,1)*(HHV(HIGH,X_2)-LLV(LOW,X_2))/100+LLV(LOW,X_2));
X_18:=(REF(X_7,1)*(X_3*X_4)-(X_3-1)*REF(X_6,1)-(X_4-1)*(X_3*X_4)/X_4*REF(X_7,1))*(HHV(HIGH,X_2)-LLV(LOW,X_2))/100+LLV(LOW,X_2);
X_19:=(X_8+2*(X_4-1)/X_4*REF(X_7,1)-(3*X_4-2)/X_4*(X_3-1)/X_3*REF(X_6,1))/((3*X_4-2)/X_4*1/X_3)*(HHV(HIGH,X_2)-LLV(LOW,X_2))/100+LLV(LOW,X_2);
DRAWBAND(X_16,RGB(205,205,0),X_17,RGB(138,43,226));
STICKLINE(CLOSE>=OPEN,HIGH,LOW,0,0),COLORA87200;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,3,(-1)),COLORA87200;
STICKLINE(CLOSE<OPEN,HIGH,LOW,0,0),COLORA87200;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,3,(-1)),COLORA87200;
STICKLINE(CLOSE>X_12 AND X_10>=0.68*(X_12-X_11)+X_11 AND CLOSE>=OPEN,HIGH,LOW,0,0),COLORRED;
STICKLINE(CLOSE>X_12 AND X_10>=0.68*(X_12-X_11)+X_11 AND CLOSE>=OPEN,CLOSE,OPEN,3,0),COLORRED;
STICKLINE(CLOSE>X_12 AND X_10>=0.68*(X_12-X_11)+X_11 AND CLOSE<OPEN,HIGH,LOW,0,0),COLORCYAN;
STICKLINE(CLOSE>X_12 AND X_10>=0.68*(X_12-X_11)+X_11 AND CLOSE<OPEN,CLOSE,OPEN,3,0),COLORCYAN;
X_20:=CLOSE-MA(CLOSE,7);
X_21:=HHV(X_20,60);
X_22:=LLV(X_20,60);
DOPU:X_9*7/6*X_21*0.9+REF(MA(CLOSE,6),1),DOTLINE,COLORRED;
DOPD:X_9*7/6*X_22*0.9+REF(MA(CLOSE,6),1),DOTLINE,COLORRED;
副图选股
X_1:=SMA(ABS(LOW-REF(LOW,1)),13,1)/SMA(MAX(LOW-REF(LOW,1),0),13,1)*100;
X_2:=EMA(IF(CLOSE*1.2,X_1*13,X_1/13),13);
X_3:=IF(LLV(LOW,56),1,0);
X_4:=EMA(IF(LOW<=LLV(LOW,34),(X_2+HHV(X_2,34)*2)/2,0),3)/618*X_3;
X_5:=X_4>REF(X_4,1);
X_6:=LOW=REFDATE(REF(LLV(LOW,100),3),DATE);
X_7:=X_5 AND X_6;
X_8:=X_7>REF(X_7,1);
X_9:=X_8>REF(X_8,1);
XG:FILTER(X_9,5);