VR_CCI主升浪副图通达信公式 副图 源码 测试图
N:=26;
M:=6;
TH:=SUM(IF(CLOSE>REF(CLOSE,1),vol,0),N);
TL:=SUM(IF(CLOSE<REF(CLOSE,1),VOL,0),N);
TQ:=SUM(IF(CLOSE=REF(CLOSE,1),VOL,0),N);
VR:100*(TH*2+TQ)/(TL*2+TQ);
MAvr:MA(VR,M);
DRAWBAND(VR,RGB(255,0,0),MAVR,RGB(0,255,0));
CC1:cci(25),COLORSTICK,COLOR40FF00;
DRAWICON(crOSS(200,CCI),250,2);
DRAWICON( CROSS(CCI,-200),-250,1);
转强:CCI>0,COLOR0000D5,NODRAW;
{STICKLINE(CCI>0,0,CCI,2,0),COLOR0000D5;}
弱转强:CROSS(CCI,-200) AND CCI>REF(CCI,1),COLOR00DFDF,NODRAW;
STICKLINE(CROSS(CCI,-200) AND CCI>REF(CCI,1),CCI,0,2,0),COLOR00DFDF;
强转弱:CROSS(200,CCI) AND CCI<REF(CCI,1),COLOR00CA00,NODRAW;
STICKLINE(CROSS(200,CCI) AND CCI<REF(CCI,1),0,CCI,2,0),COLOR00CA00;
生命CCI线:CCI(84),COLORWHITE;{股票指标网}
底部线:-100.00,COLORYELLOW,LINETHICK2;
警戒线:300.00,COLORWHITE,LINETHICK2;
生命线:80.00,COLORRED,LINETHICK2;
轴:0.00,COLORLIBLUE ,LINETHICK2;
DRAWTEXT(CROSS(生命CCI线,底部线),底部线,'主升浪')COLORYELLOW;
DRAWTEXT(CROSS(生命CCI线,警戒线),警戒线,'警惕')COLORYELLOW;
DRAWTEXT(CROSS(生命CCI线,生命线),生命线,'强')COLORYELLOW;
DRAWTEXT(CROSS(生命CCI线,轴),轴,'注')COLORYELLOW;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
N赋值:26
M赋值:6
TH赋值:SUM(IF(收盘价>1日前的收盘价,成交量,0),N)
TL赋值:SUM(IF(收盘价<1日前的收盘价,成交量,0),N)
TQ赋值:SUM(IF(收盘价=1日前的收盘价,成交量,0),N)
输出VR:100*(TH*2+TQ)/(TL*2+TQ)
MA输出VR:VR的M日简单移动平均
DRAWBAND(VR,RGB(255,0,0),MAVR,RGB(0,255,0))
输出CC1:CCI(25),COLORSTICK,COLOR40FF00
DRAWICON(200上穿CCI,250,2)
DRAWICON( CCI上穿-200,-250,1)
输出转强:CCI>0,COLOR0000D5,NODRAW
当满足条件CCI>0时,在0和CCI之间画柱状线
}
弱输出转强:CCI上穿-200 AND CCI>1日前的CCI,COLOR00DFDF,NODRAW
STICKLINE(CCI上穿-200 AND CCI>1日前的CCI,CCI,0,2,0),COLOR00DFDF
输出强转弱:200上穿CCI AND CCI<1日前的CCI,COLOR00CA00,NODRAW
STICKLINE(200上穿CCI AND CCI<1日前的CCI,0,CCI,2,0),COLOR00CA00
输出生命CCI线:CCI(84),画白色
输出{股票指标网}
底部线:-100.00,画黄色,LINETHICK2
输出警戒线:300.00,画白色,LINETHICK2
输出生命线:80.00,画红色,LINETHICK2
输出轴:0.00,COLORLIBLUE ,LINETHICK2
DRAWTEXT(生命CCI线上穿底部线,底部线,'主升浪')画黄色
DRAWTEXT(生命CCI线上穿警戒线,警戒线,'警惕')画黄色
DRAWTEXT(生命CCI线上穿生命线,生命线,'强')画黄色
DRAWTEXT(生命CCI线上穿轴,轴,'注')画黄色