通达信VR和CCI指标公式
2019-04-27 作者:股匠网整理 来源:本站整理
N:=26;
M:=6;
TH:=SUM(IF(CLOSE>REF(CLOSE1)VOL0)N);
TL:=SUM(IF(CLOSE<REF(CLOSE1)VOL0)N);
TQ:=SUM(IF(CLOSE=REF(CLOSE1)VOL0)N);
VR:100*(TH*2+TQ)/(TL*2+TQ);
MAVR:MA(VRM);
DRAWBAND(VRRGB(25500)MAVRRGB(02550));
CC1:CCI(25)COLORSTICKCOLOR40FF00;
DRAWICON(CROSS(200CCI)2502);
DRAWICON( CROSS(CCI-200)-2501);
转强:CCI>0COLOR0000D5NODRAW;
{STICKLINE(CCI>00CCI20)COLOR0000D5;}
弱转强:CROSS(CCI-200) AND CCI>REF(CCI1)COLOR00DFDFNODRAW;
STICKLINE(CROSS(CCI-200) AND CCI>REF(CCI1)CCI020)COLOR00DFDF;
强转弱:CROSS(200CCI) AND CCI<REF(CCI1)COLOR00CA00NODRAW;
STICKLINE(CROSS(200CCI) AND CCI<REF(CCI1)0CCI20)COLOR00CA00;
生命CCI线:CCI(84)COLORWHITE;
底部线:-100.00COLORYELLOWLINETHICK2;
警戒线:300.00COLORWHITELINETHICK2;
生命线:80.00COLORREDLINETHICK2;
轴:0.00COLORLIBLUE LINETHICK2;
DRAWTEXT(CROSS(生命CCI线底部线)底部线'主升浪')COLORYELLOW;
DRAWTEXT(CROSS(生命CCI线警戒线)警戒线'警惕')COLORYELLOW;
DRAWTEXT(CROSS(生命CCI线生命线)生命线'强')COLORYELLOW;
DRAWTEXT(CROSS(生命CCI线轴)轴'注')COLORYELLOW;
上一篇: 通达信未来买卖点主图指标公式
下一篇: 通达信私募游资主图指标公式