通达信【主升弱转强】副图 红柱出现时提示是一个良好的买入时机 源码
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,LINETHICK1;
DBX:-100.00,COLORYELLOW,LINETHICK2;
JJX:300.00,COLORWHITE,LINETHICK2;
SMX:100.00,COLORRED,LINETHICK2;
NOTEXT1:200,COLORYELLOW,LINETHICK1;
NOTEXT2:-200,COLORMAGENTA,LINETHICK1;
NOTEXT3:100,COLORGREEN,LINETHICK1;
DRAWTEXT(CROSS(生命CCI线,DBX),DBX,'★准备买'),COLORRED;
DRAWTEXT(CROSS(生命CCI线,JJX),JJX,'★风险'),COLORRED;
DRAWTEXT(CROSS(生命CCI线,SMX),SMX,'★强'),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
输出生命CCI线:CCI(84),画白色,LINETHICK1
输出DBX:-100.00,画黄色, 线宽为2
输出JJX:300.00,画白色, 线宽为2
输出SMX:100.00,画红色, 线宽为2
输出NOTEXT1:200,画黄色,LINETHICK1
输出NOTEXT2:-200,画洋红色,LINETHICK1
输出NOTEXT3:100,画绿色,LINETHICK1
DRAWTEXT(生命CCI线上穿DBX,DBX,'★准备买'),画红色
DRAWTEXT(生命CCI线上穿JJX,JJX,'★风险'),画红色
DRAWTEXT(生命CCI线上穿SMX,SMX,'★强'),画洋红色