C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- Var3:=LLV(H,240);
- Var4:=100*(C-Var3)/Var3;
- Var5:=(C-LLV(L,528))/(HHV(H,528)-LLV(L,528))*100;
- Var6:=(C-LLV(C,530))/(HHV(C,530)-LLV(C,530))*100;
- {Var7:=0;}
- Var8:=MA(HHV(C-REF(C,1),0),34)/MA(ABS(C-REF(C,1)),7)*100;
- Var9:=MA(HHV(C-REF(C,1),0),13)/MA(ABS(C-REF(C,1)),13)*100;
- VarA:=BARSCOUNT(C);
- VarB:=Var8<20 AND Var9<23 AND VarA>35;
- VarC:=VarB AND COUNT(VarB,1)=1;
- VarD:=EMA(C,21)-EMA(C,8);
- VarE:=EMA(VarD,5);
- VarF:=TROUGH(3,6,1)<4 AND CROSS(VarD,VarE);
- Var10:=IF(TROUGH(3,16,1)=0 AND H>L+0.04,4,0);
- Var11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);
- Var12:=ZIG(3,6)<REF(ZIG(3,6),1)AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);
- Var13:=ZIG(3,22)>REF(ZIG(3,22),1)AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2)AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);
- Var14:=ZIG(3,22)<REF(ZIG(3,22),1)AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2)AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);
- Var15:=ZIG(3,51)>REF(ZIG(3,51),1)AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);
- Var16:=ZIG(3,51)<REF(ZIG(3,51),1)AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2)AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);
- Var17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2)AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);
- Var18:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2)AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);
-
- 买点1:=Var10;
- 买点2:=(Var11+Var13+Var15+Var17);
- 卖点1:=(Var12+Var14+Var16+Var18);
-
- DRAWTEXT(买点1>0,L-0.15,'B'),LINETHICK4,ALIGN1,colorred;{B}
- DRAWTEXT(买点2>0,L-0.25,{'B'}'★'),LINETHICK4,ALIGN1,COLORyellow;{B}
- DRAWTEXT(卖点1>0,H+0.95,{'S'}'▼'),LINETHICK4,ALIGN1,COLORgreen;{S}
-
-
-
-
-
- JJ:=(CLOSE+HIGH+LOW)/3;
- A:=EMA(JJ,10);
- B:=REF(A,1);
- STICKLINE(A>B,A,B,5,0),COLORYELLOW;
- STICKLINE(A<B,A,B,5,0),COLORBLUE;
- M1:EMA(CLOSE,3);
- M2:EMA(CLOSE,8);
- M3:EMA(M2,13);
- M4:EMA(M2,55);
- VAR1:=EMA(M3,55);
- M5:EMA(M4,81), COLORRED,LINETHICK2;
- VAR2:=(REF(HIGH,1)+REF(LOW,1))/2;
- VAR23:=MA(CLOSE,21)+2*STD(CLOSE,21);
- DRAWICON(CROSS(VAR2,VAR23),HIGH*1.035,2);
- DRAWTEXT(CROSS(VAR2,VAR23),HIGH*1.02,'卖出'), COLORGREEN;
- VAR24:=REF(CLOSE,1);
- VAR25:=SMA(MAX(CLOSE-VAR24,0),7,1)/SMA(ABS(CLOSE-VAR24),7,1)*100;
- VAR26:=CROSS(79,VAR25);
- VAR27:=FILTER(VAR26,4);
- DRAWICON(VAR27,HIGH*1.035,2);
- DRAWTEXT(VAR27,HIGH*1.02,'卖出'), COLORGREEN;
- A7:=(2*C+H+L)/4;
- VAR30:=LLV(LOW,34);
- VAR31:=HHV(HIGH,34);
- SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7);
- SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);
- DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>6/10 AND VOL>=1.5*MA(VOL,5) AND
- COUNT(SK>=SD,3) AND REF(LOW,1)=LLV(LOW,120),1,0),LOW,'●买进') ,COLORRED;
- DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),13)/13>6/10 AND
- COUNT(SK>SD,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE>=OPEN,4) AND
- REF(CLOSE>OPEN,3) AND REF(CLOSE>OPEN,2) AND REF(OPEN>CLOSE,1) AND
- OPEN>REF(CLOSE,1),1,0),LOW,'●买进'), COLORRED;
- D:=MA(CLOSE,80)-MA(CLOSE,10)/3;
- DRAWTEXT(IF(CLOSE<D AND VOL/240>MA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08
- AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW,'●抄底'),COLORRED;
-
-
-
-
- DRAWTEXTABS(2,5,'所属板块:'+BKNAME),COLORFF50FF,linethick1;
- 流通盘大小:=FINANCE2(37)/1000000*100;
- DRAWTEXTABS(2,20,'流通盘大小:'+NUMTOSTRN(流通盘大小,2)+'亿'+' 好好'),LINETHICK1,COLORRED;
- 每股收益:=FINANCE2(3);
- 每股市盈率:=DYNAINFO(39);
- 每股净资产:=FINANCE2(4);
- 销售毛利率:=FINANCE2(12);
- 主营收入同比:=FINANCE2(11);
- 净利润同比增长:=FINANCE2(10);
- DRAWTEXTABS(160,35,'每股收益:'+NUMTOSTRN(每股收益,2)+'元'),COLOR00FF00;
- DRAWTEXTABS(160,50,'每股市盈率:'+NUMTOSTRN(每股市盈率,1)+'倍'),COLORRED;
- DRAWTEXTABS(160,65,'每股净资产:'+NUMTOSTRN(每股净资产,2)+'元'),COLORRED;
- DRAWTEXTABS(2,35,'销售毛利率:'+NUMTOSTRN(销售毛利率,2)+'%'),LINETHICK1,COLOR00FF00;
- DRAWTEXTABS(2,50,'主营收入同比增长:'+NUMTOSTRN(主营收入同比,2)+'%'),LINETHICK1,ColorYELLOW;
- DRAWTEXTABS(2,65,'净利润同比增长:'+NUMTOSTRN(净利润同比增长,2)+'%'),LINETHICK1,COLOR00FF00;
- DRAWTEXTABS(3,80,'历史最高价:'+HHV(HIGH,0)),Colorred;
- DRAWTEXTABS(3,95,'历史最低价:'+LLV(LOW,0)),ColorAFFF00;
-
-
- 今日换手率:=sum(100*v/capital,1);
- DRAWTEXTABS(2,118,'今日换手:'+NUMTOSTRN(今日换手率,2)+'%'),Coloryellow,LINETHICK1;
- 五日换手率:=sum(100*v/capital,5);
- DRAWTEXTABS(110,118,'5日: '+NUMTOSTRN(五日换手率,2)+'%'),Colorred,LINETHICK1;
- 十日换手率:=SUM(VOL,10)*100/CAPITAL;
- DRAWTEXTABS(200,118,'10日: '+NUMTOSTRN(十日换手率,2)+'%'),Coloryellow,LINETHICK1;