C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- 来势线: EMA(CLOSE,7)-EMA(CLOSE,21),COLORYELLOW;
- 福星: EMA(来势线,7), COLORSTICK,COLORRED;
- VAR1:=CLOSE/REF(LLV(LOW,35),5)< 1;
- 决策: IF(VAR1,0.5,0), STICK,COLORBLUE;
- 必买: IF(TROUGHBARS(3,15,1)=0 AND HIGH>LOW+0.01,1,-1),COLORYELLOW ,LINETHICK1 ;
- 必卖: IF(PEAKBARS(3,15,1)=1,1,2),COLORWHITE,LINETHICK1;
- 趋势线: (EMA(WINNER(CLOSE),7)-EMA(WINNER(CLOSE),35))*5,COLORRED;
- 逃顶线: EMA(CLOSE/REF(HHV(CLOSE,7),50),1),COLOR007000 ,LINETHICK1 ;
- AA:0,COLORBROWN;
- DRAWICON(CROSS(趋势线,AA),AA,1);
- DRAWICON(CROSS(逃顶线,趋势线),逃顶线,2);
C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- RSV:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100; GS0:SMA(RSV,3,1),COLORRED,LINETHICK1; GS1:SMA(GS0,3,1),COLORYELLOW,LINETHICK1; RSV1:=(CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*100; GS2:SMA(RSV1,5,1),COLORFF00FF,LINETHICK1; GS3:SMA(GS2,10,1),COLORGREEN,LINETHICK1; 超卖:18,COLORWHITE; 超买:85,COLORBLUE; STICKLINE(GS0>GS1,GS0,GS1,1,0),COLORRED; STICKLINE(GS0<=GS1,GS0,GS1,1,0),COLORYELLOW; STICKLINE(GS2>GS3,GS2,GS3,1,0),COLORFF00FF; STICKLINE(GS2<=GS3,GS2,GS3,1,0),COLORGREEN;
C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- 买线:=EMA(C,2);
- 卖线:=EMA(SLOPE(C,21)*20+C,42);
- BU:=CROSS(买线,卖线);
- SEL:=CROSS(卖线,买线);
- DRAWICON(BU,L-0.1,1);
- DRAWICON(SEL,H+0.1,2);
- DRAWTEXT(SEL,H+0.1,'卖出');
- STICKLINE(买线>=卖线,LOW,HIGH,0.0,1),COLORRED;
- STICKLINE(买线>=卖线,CLOSE,OPEN,2,1),COLORRED;
- STICKLINE(买线<卖线,LOW,HIGH,0.0,1),COLORGREEN;
- STICKLINE(买线<卖线,CLOSE,OPEN,2,1),COLORGREEN;
- STICKLINE(BU,OPEN,CLOSE,2,0),COLORYELLOW;
- STICKLINE(SEL,OPEN,CLOSE,2,0),COLORBLUE;
- 主力:EMA(CLOSE,10),COLORRED;
- 散户:EMA(CLOSE,5),COLORWHITE;
- 绿降:(46.18*EMA(CLOSE,10)-31.82*EMA(CLOSE,4))/14.36,COLORGREEN,LINETHICK1;
- 操盘:MA(CLOSE,9),COLORCYAN,LINETHICK2;
- 界点:MA(CLOSE,20),COLORMAGENTA;
- LC:=REF(CLOSE,1);
- RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3
- ,1)) * 100);
- FF:=EMA(CLOSE,3);
- MA15:=EMA(CLOSE,21);
- DRAWTEXT(CROSS(FF,MA15),(LOW * 0.99),'建仓'),COLORYELLOW;
- AA:=(HHV(HIGH,20) - (2 * ATR));
- BB:=CROSS(CLOSE,REF(HHV(HIGH,55),1));
- SSS:=CROSS(MIN(MA(CLOSE,13),AA),CLOSE);
- BBB:=BARSLAST(BB);
- SSSB:=BARSLAST(SSS);
- B1:=((BBB = 0) AND (REF(SSSB,1) < REF(BBB,1)));
- B1B:=BARSLAST(B1);
- B2:=((((BB = 1) AND (B1B < SSSB)) AND (B1B > 0)) AND (COUNT(BB,SSSB) < 3));
- B2B:=BARSLAST(B2);
- B3:=((((BB = 1) AND (B2B < B1B)) AND (COUNT(BB,SSSB) < 4)) AND (COUNT(BB,SSSB) > 2));
- DRAWTEXT((B1 = 1),(LOW - 0.6),'加仓'),COLORYELLOW;
C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- VAR1:=(2*CLOSE+HIGH+LOW)/4;
- VAR2:=EXPMA(EXPMA(EXPMA(VAR1,4),4),4);
- J:(VAR2-REF(VAR2,1))/REF(VAR2,1)*100, COLORSTICK;
- D:MA(J,3);
- K:MA(J,1);
- DRAWTEXT(CROSS(K,D),K,'买'),COLORRED;
- DRAWTEXT(CROSS(D,K),D,'卖'),COLORGREEN;
C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- 主力持仓:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),COLORFF00FF;
- 指数趋势:EMA(1250*(INDEXC-LLV(INDEXL,34))/HHV(INDEXH,34)-LLV(INDEXL,34),3),COLORYELLOW,NODRAW;
- 主力筹码集中度:WINNER(C)*100,COLORRED;
- 散筹筹码集中度: (WINNER(C*1.1)-WINNER(C*0.9))*100,COLORGREEN;
- 启:(主力持仓+主力筹码集中度+散筹筹码集中度)/2,COLORFF6699;
- 强弱分界:80,COLOR00FFFF;
- 0,;
C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- MA1:MA(CLOSE,5);
- MA2:MA(CLOSE,10);
- MA3:MA(CLOSE,30);
- MA4:MA(CLOSE,60);
-
- VAR3:=LLV(HIGH,240);
- VAR4:=100*(CLOSE-VAR3)/VAR3;
- VAR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100;
- VAR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100;
- VAR7:=0;
- VAR8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;
- VAR9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100;
- VAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+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);
- VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);
- 买1:=VAR10;
- 买2:=(VAR11+VAR13+VAR15+VAR17);
- 卖1:=(VAR12+VAR14+VAR16+VAR18);
- B:IF(买1>0 OR 买2>0,LOW*0.99,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW;
- DRAWTEXT(买1>0 OR 买2>0,LOW*0.99,'买入'),COLORRED;
- S:IF(卖1>0,HIGH*1.01,DRAWNULL),CROSSDOT,LINETHICK3,COLORGREEN;
- DRAWTEXT(卖1>0,HIGH*1.02,'卖出'),COLORGREEN;
- VAR100:=(100 - ((90 * (HHV(HIGH,20) - CLOSE)) / (HHV(HIGH,20) - LLV(LOW,20))));
- VAR200:=(100 - ((90 * (HHV(HIGH,20) - CLOSE)) / (HHV(HIGH,20) - LLV(LOW,20))));
- VAR300:=(100 - MA(((100 * (HHV(HIGH,5) - CLOSE)) / (HHV(HIGH,5) - LLV(LOW,5))),34));
- F:IF(CROSS(VAR200,MA(VAR300,5)),LOW * 0.98,DRAWNULL),CROSSDOT,LINETHICK3,COLOREE00EE;
- 年:MA(CLOSE,22),LINETHICK2,COLORWHITE;