同花顺生命强弱CCI线副图指标 对于买进卖出有极高的整合判断价值 源码附图
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;
TYP := (IF(ISNULL(HIGH),CLOSE,HIGH) + IF(ISNULL(LOW),CLOSE,LOW) + CLOSE)/3;
生命CCI线:(TYP-MA(TYP,84))/(0.015*AVEDEV(TYP,84));
底部线:-100.00,coloryellow,LINETHICK2;
警戒线:300.00,colorwhite,LINETHICK2;
生命线:100.00,colorred,LINETHICK2;
警戒:=500.00,;
DRAWTEXT(CROSS(生命CCI线,底部线),底部线,'★主升'),colorred;
DRAWTEXT(CROSS(生命CCI线,警戒线),警戒线,'★警惕'),colorred;
DRAWTEXT(CROSS(生命CCI线,警戒),警戒,'★极高点'),coloryellow;
DRAWTEXT(CROSS(生命CCI线,生命线),生命线,'★强'),colormagenta;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
输出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
TYP := (IF(ISNULL(最高价),收盘价,最高价) + IF(ISNULL(最低价),收盘价,最低价) + 收盘价)/3
输出生命CCI线:(TYP-TYP的84日简单移动平均)/(0.015*AVEDEV(TYP,84))
输出底部线:-100.00,画黄色, 线宽为2
输出警戒线:300.00,画白色, 线宽为2
输出生命线:100.00,画红色, 线宽为2
警戒赋值:500.00,
DRAWTEXT(生命CCI线上穿底部线,底部线,'★主升'),画红色
DRAWTEXT(生命CCI线上穿警戒线,警戒线,'★警惕'),画红色
DRAWTEXT(生命CCI线上穿警戒,警戒,'★极高点'),画黄色
DRAWTEXT(生命CCI线上穿生命线,生命线,'★强'),画洋红色