通达信自用简单实用指标主图副图源码
C/C++ www.gszb.com 股票公式指标网提供 Code复制以下内容到公式管理器
- CC:=ABS ((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
- DD:=DMA(CLOSE,CC);
- 通道3:=(1+7/100)*DD;
- 通道4:=(1-7/100)*DD;
- 股价:=(H+L+C)/3;
- 股价运动:=股价,LINETHICK2,COLORBLUE;
- M5:MA(C,5);
- LL:MA(C,10),LINETHICK2,COLORRED;
- 高险区1:LL*1.1,COLORLICYAN;高风区2:LL*1.125,COLORLICYAN;高风区3:LL*1.15,COLORLICYAN;
- 良机区1:LL*0.9,COLORLIBLUE;良机区2:LL*0.875,COLORLIBLUE;良机区3:LL*0.85,COLORLIBLUE;
- QM:=((C-LL)/LL*100>10 AND C>通道3) OR ((H-LL)/LL*100>10 AND H>通道3 ) OR ((O-LL)/LL*100>10 AND O>通道3);
- DRAWICON(QM AND FILTER(QM,3),H+0.01,6);
- WM:=((C-LL)/LL*100<-10 AND C<通道4) OR ((O-LL)/LL*100<-10 AND O<通道4 ) OR((L-LL)/LL*100<-10 AND L<通道4);
- QW1:=LL>REF(LL,1);
- DRAWICON(WM AND QW1 AND FILTER(WM,3),L-0.01,5);
- QW2:=((C-LL)/LL*100<-15 AND C<通道4) OR ((O-LL)/LL*100<-15 AND O<通道4 ) OR((L-LL)/LL*100<-15 AND L<通道4);
- DRAWICON(QW2 AND FILTER(QW2,3),L-0.03,9);
- WSR1:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;
- WSR2:=CROSS(WSR1,5);
- WSR3:=CROSS(8,WSR1);
- WSR4:=CROSS(WSR1,-5);
- WSR5:=CROSS(WSR1,-8);
- WSR6:=WSR3;
- WSR7:=WSR4 OR WSR5;
- WSR8:=WSR7 AND FILTER(WSR7,5);
- WSR10:DRAWICON(WSR8,L-0.01,1);
- WSR9:=WSR6 AND FILTER(WSR6,5);
- WSR11:DRAWICON(WSR9,H+0.01,2);
{牛牛公式指标网提供:www.tdx001.com}
4F9178979.png
059178675.png
FE9178981.png
副图指标
C/C++ www.gszb.com 股票公式指标网提供 Code复制以下内容到公式管理器
- A:EMA((CLOSE-REF(C,1))/REF(C,1)*10-(INDEXC-REF(INDEXC,1))/REF(INDEXC,1)
- *10,5),LINETHICK1,COLORRED;
- STICKLINE(A>0,0,A,1,2),COLORRED;
- STICKLINE(A<0,0,A,1,2),COLORGREEN;
- HSNP1:=CLOSE-REF(CLOSE,1);
- HSNP2:=IF(CLOSE-REF(CLOSE,1)>=0,HSNP1,0);
- HSNP3:=REF(CLOSE,1)-CLOSE;
- HSNP4:=IF(CLOSE-REF(CLOSE,1)<=0,HSNP3,0);
- HSNP5:=SUM(HSNP2,90)/SUM(HSNP4,90);
- HSNP6:=100-100/(1+HSNP5);
- HSNP7:=EMA(HSNP6,21);
- HSNP8:=EMA(HSNP7,5);
- HSNP:=EMA(HSNP7,3);
- NP:=(HSNP7-HSNP);
- NL:=(HSNP-HSNP7);
- STICKLINE(NL<0,0,NL,1,2),COLOR0B0B77;
- STICKLINE(NP<0,0,NP,1,2),COLOR666666;
- JJ :=(C*2+H+L)/4;
- SK := EMA(JJ,13) - EMA(JJ,21);
- SD := EMA(SK,3);
- SP := EMA(SK,10);
- 长线1:IF(SD>=SP,SD,SP),LINETHICK1,COLORFFFFAA;
- 长线2:IF(SP-SD,SP,SD),LINETHICK1,COLORWHITE;
- A1:=EMA(CLOSE,7)-EMA(CLOSE,21);
- B1:=EMA((0.668*REF(A1,1)+0.333*A1),1);
- 做多:IF(A1>=B1,A1,B1),LINETHICK1,COLORRED;
- 做空:IF(B1-A1,B1,A1),LINETHICK1,COLORGREEN;
BA9178829.png
|