当前位置:→ 公式网 > 通达信公式 > 正文 ℃ 公式解密、改选股等业务 联系点击查看详情...
以下是买卖决策2,无未来函数(无源码的请下载附件导入)
C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- Q:=(2*CLOSE+HIGH+LOW)/4;
- A1:=LLV(LOW,34);
- A2:=HHV(HIGH,34);
- A:EMA((Q-A1)/(A2-A1)*100,13),COLORRED,LINETHICK0;
- B:EMA(0.667*REF(A,1)+0.333*A,3),COLOR00FF00,LINETHICK0;
- 买: IF(CROSS(A,B) AND A<=13,25,0),COLORRED;
- 低: IF(CROSS(A,B) AND A>13 AND A<15,20,0),COLORYELLOW;
- 高: IF(CROSS(B,A) AND A>=85,70,85),COLORGREEN;
- 卖: IF(CROSS(B,A) AND A>75 AND A<85,65,85),COLORWHITE;
- STICKLINE(A-B>=0,A,B,4,0),COLOR4B0097;
- STICKLINE(A-B>=0,A,B,3.5,0),COLOR5500AA;
- STICKLINE(A-B>=0,A,B,3,0),COLOR5E00BB;
- STICKLINE(A-B>=0,A,B,2.5,0),COLOR6900D2;
- STICKLINE(A-B>=0,A,B,2,0),COLOR6F00DD;
- STICKLINE(A-B>=0,A,B,1.5,0),COLOR7600EC;
- STICKLINE(A-B>=0,A,B,1,0),COLOR8306FF;
- STICKLINE(A-B>=0,A,B,0.5,0),COLOR8C1AFF;
- STICKLINE(A-B<0,A,B,4,0),COLOR979700;
- STICKLINE(A-B<0,A,B,3.5,0),COLORAEAE00;
- STICKLINE(A-B<0,A,B,3,0),COLORC4C400;
- STICKLINE(A-B<0,A,B,2.5,0),COLORDBDB00;
- STICKLINE(A-B<0,A,B,2,0),COLORECEC00;
- STICKLINE(A-B<0,A,B,1.5,0),COLORFFFF06;
- STICKLINE(A-B<0,A,B,1,0),COLORFFFF1A;
- STICKLINE(A-B<0,A,B,0.5,0),COLORFFFF3E;
- DRAWTEXT(CROSS(B,A) AND A>85,A,'高'),COLOR00FF00;
- DRAWTEXT(CROSS(A,B) AND A<15,A,'低'),COLORWHITE;