C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- MA1:MA(C,6),COLORRED;
- MA2:MA(C,15),COLORYELLOW;
- MA3:MA(C,30),COLORBLUE;
- MA4:MA(C,60),COLORFF00FF;
- MA5:MA(C,250),COLORGREEN;
- DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
- DEA2:=EMA(DIF,3);
- Q1:=IF(DIF>=REF(DIF,1),1,0);
- Q2:=IF(DEA2>REF(DEA2,1),1,0);
- STICKLINE(Q2=0,OPEN,CLOSE,0.8,0),COLORBLUE;
- STICKLINE(Q2=1,OPEN,CLOSE,0.8,0),COLORWHITE;
- A:=C-MA1;
- A1:=CROSS(A,0);
- A2:=CROSS(0,A);
- A3:=0.68*MA(FORCAST(CLOSE,2),40);
- A4:=IF(C<A3 OR L<A3,1,0);
- A5:=CLOSE-OPEN;
- A6:=OPEN-CLOSE;
- A7:=IF(CLOSE>OPEN,A5,A6);
- A8:=IF(OPEN<CLOSE,OPEN,CLOSE);
- DRAWICON(A1 AND REF(A1,1)=0 ,L*0.98,3);
- DRAWICON(A2 AND REF(A2,1)=0 ,H*1.02,6);
- LC:=REF(C,1);
- LD:=IF(C<LC*0.89,1,0);
- LE:=COUNT(LD=1,20);
- LF:=COUNT(LD=1,6);
- LG:=MA1/4.5;
- RSI:SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100,NODRAW,COLORYELLOW;
- EE:=(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100, ;
- AA:=((REF(EE,1)<REF(EE,2) AND EE<-30) AND EE>=REF(EE,1)) OR (REF(CROSS(-30,EE),1) AND CROSS(EE,-30)) OR EE=-30;
- MJ0:=IF(AA AND LE<1,1,0);
- VAR1:=DMA(CLOSE,VOL/MA(VOL,4)/4);
- VAR2:=DMA(CLOSE,VOL/MA(VOL,31)/31);
- VAR3:=(CLOSE-VAR1)/VAR1*100<-10;
- VAR4:=(VAR1-VAR2)/VAR2*100<-16;
- VAR5:=VAR3 AND VAR4;
- VAR6:=VAR5 AND (OPEN>CLOSE OR OPEN<CLOSE) AND (OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0;
- DRAWTEXT(MJ0=1 AND MACD>REF(MACD,1),L*0.95,'极品底'),COLORMAGENTA;
- DRAWTEXT(A<-LG AND LF=0,L*0.96,'下跌过急'),COLORYELLOW;
- STICKLINE(A4=1,A8,A8+A7/2,2.8,0),COLORMAGENTA;
- DRAWICON(VAR6,L*0.96,11);{ 为啥我的理想币那么少,上哪赚的}
-