C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- DRAWTEXTABS(30,30,'最高支撑不破持有,破支撑卖掉。压力冲不过,往下找支撑,突破压力就有上下两种分化。' ),colorFFDD00;
-
-
- 十天买卖:ema(REF(CLOSE,1),2),COLORFFCC00,LINETHICK1;
- PARTLINE(十天买卖,CLOSE>=十天买卖,RGB(255,0,0)),LINETHICK4;
- 十天压力:HHV(十天买卖,13),COLOR00FF00,LINETHICK1;
- PARTLINE(十天压力,十天买卖=十天压力,RGB(255,255,0)),LINETHICK3;
- 十天支撑:LLV(十天买卖,13),Color00FFFF,LINETHICK1;
- PARTLINE(十天支撑,十天买卖=十天支撑,RGB(0,0,255)),LINETHICK3;
-
-
-
-
- V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
- V2:=(1-7/100)*(DMA(CLOSE,V1));
- V3:=(1+7/100)*(DMA(CLOSE,V1));
- V5:=MA((LOW+HIGH+CLOSE)/3,5);
- 支撑:REF(V2,0),POINTDOT,LINETHICK1,COLORCC66FF;
- 阻力:REF(V3,0),POINTDOT,LINETHICK1,COLORGREEN;
- MA1:=EMA(CLOSE,5);
- MA2:=ATAN((MA1/REF(MA1,1)-1)*100)*180/3.1416;
- MA3:=IF(MA2>0,MA2,MA2);
- 生命线: EMA(CLOSE,30),COLORWHITE,linethick2;
-
-
-
-
- VAR1:=CLOSE=HHV(C,4) AND (REF(C,1)>=REF(C,2) OR REF(C,1)>=REF(C,3)) OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2)=HHV(C,4) AND REF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3)=HHV(C,4) AND C>=REF(C,1) AND C>=REF(C,2);
- VAR2:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);
- VAR3:=CLOSE=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3)) OR REF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)=HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) AND C<REF(C,1) AND C<REF(C,2);
- VAR4:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);
- VAR5:=REF(C,1)=HHV(C,4) AND C<REF(C,2) OR (REF(C,2)=HHV(C,4) AND REF(C,1)>REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF(C,2)) AND REF(C,2)>=REF(C,4) AND C<REF(C,1);
- VAR6:=V5>REF(V5,1) AND REF(V5,1)<REF(V5,2);
- VAR7:=LOW<HHV(V5,13) AND HIGH>HHV(V5,13) AND CLOSE>REF(C,1) AND CLOSE>OPEN;
- VAR8:=VAR7 AND COUNT(VAR6,2);
- VAR9:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6);
- VAR10:=EMA(MA(C,30),30);
- VAR11:=FILTER((LLV(VAR9,2)=LLV(VAR9,7) AND COUNT(VAR9<0,2) AND CROSS(VAR9,MA(VAR9,2)))=1,5);
- VAR12:=FILTER((HHV(VAR9,2)=HHV(VAR9,7) AND COUNT(VAR9>50,2) AND CROSS(MA(VAR9,2),VAR9))=1,1);
- VAR13:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;
- VAR14:=FILTER(((CROSS(VAR13,0) OR CROSS(C,VAR10)) AND VAR11)=1,3);
- VAR15:=MA(C,18)>=REF(MA(C,18),3) AND CROSS(C,MA(C,18));
- VAR16:=VAR8 AND NOT(REF(VAR8,1));
- PARTLINE(生命线,MA3>REF(MA3,1) AND MA3>=0),COLORYELLOW,LINETHICK2;
- PARTLINE(生命线,MA3<REF(MA3,1) AND MA3>0),COLORGREEN,LINETHICK2;
- {KDJ}
- RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
- K:=SMA(RSV,3,1);
- D:=SMA(K,3,1);
- J:=3*K-2*D;
- 金叉:=CROSS(J,D);
- 死叉:=CROSS(D,J);
- 买1:=(VAR14 OR VAR15) AND VAR11;
- 买2:=(VAR14 OR VAR15) AND VAR4;
- 买3:=(VAR14 OR VAR15) AND VAR2;
- 买4:=(VAR2 AND VAR11) OR (VAR4 AND VAR11);
- 买5:=(金叉 AND VAR4) OR (金叉 AND VAR2) OR (金叉 AND VAR11);
- {涨停}
- STICKLINE(CLOSE>REF(CLOSE,1)*1.0985 AND CLOSE=HIGH,CLOSE,OPEN,8.5,-1),COLOR00FFFF;
- {跌停}
- STICKLINE(CLOSE<REF(CLOSE,1)*0.9015 AND CLOSE=LOW,CLOSE,OPEN,8.5,-1),COLORGREEN;
- STICKLINE(CLOSE>OPEN,OPEN,LOW,0.5,0 ),COLOR0000FF;
- STICKLINE(CLOSE>OPEN,CLOSE,HIGH,0.5 ,0 ),COLOR0000FF;
- STICKLINE(OPEN>=CLOSE,CLOSE,LOW,0.5 ,0 ),COLOR00FF00;
- STICKLINE(OPEN>=CLOSE,OPEN,HIGH,0.5 ,0 ),COLOR00FF00;
- {蓝}
- STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,8,0),COLORFF7700;
- STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,6,0),COLORFF9900;
- STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,4,0),COLORFFBB00;
- STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2,0),COLORff0000;
- {红}
- STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0),COLOR000099;
- STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0),COLOR0000CC;
- STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0),COLOR0000FF;
- STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0),COLORCC66FF;
- {绿}
- STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,8,0),COLOR009900;
- STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,6,0),COLOR00BB00;
- STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,4,0),COLOR00DD00;
- STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,2,0),COLOR00FF00;
- {灰}
- STICKLINE(VAR4,OPEN,(OPEN+CLOSE)/2,8,0),COLOR999999;
- STICKLINE(VAR4,OPEN,(OPEN+CLOSE)/2,6,0),COLORBBBBBB;
- STICKLINE(VAR4,OPEN,(OPEN+CLOSE)/2,4,0),COLORDDDDDD;
- STICKLINE(VAR4,OPEN,(OPEN+CLOSE)/2,2,0),COLORFFFFFF;
- STICKLINE(金叉,OPEN,CLOSE,2,0),COLORYELLOW;
- STICKLINE(死叉,OPEN,CLOSE,2,0),COLOR000099;
- DRAWICON(VAR16,LOW-0.01,1),ALIGN1;
- DRAWICON(买1 OR 买2 OR 买3 OR 买4 OR 买5,LOW-0.01,7),ALIGN1;
- DRAWICON(死叉 OR VAR12 OR CROSS(40,VAR9),HIGH+0.12,8),ALIGN1;