通达信【游资启动】副图/【游资启动+游资起爆】选股 源码分享
DIF:EMA(CLOSE,9)-EMA(CLOSE,150),NODRAW;
ABC:EMA(DIF,12),NODRAW;
VAR1:2*(DIF-ABC),COLORSTICK;
DIK:4*DIF-3*ABC,COLORYELLOW;
ABC6:=EMA(DIK,1),COLORGREEN;
IF(C>ABC6,ABC6,DRAWNULL),COLORRED,LINETHICK3;
IF(ABC6<=REF(ABC6,1),ABC6,DRAWNULL),COLORGREEN,LINETHICK3;
启动点:=VAR1< 0 AND VAR1>REF(VAR1 ,1) AND REF(VAR1 ,1)< REF(VAR1 ,2) AND REF(VAR1 ,2)< REF(VAR1 ,3) AND REF(VAR1 ,3)< REF(VAR1 ,4);
ABC_16:=IF(CLOSE>REF(CLOSE,1),88,0);
ABC_17:=IF(CLOSE/REF(CLOSE,1)>1.05 AND HIGH/CLOSE< 1.01 AND ABC_16>0,91,0);
龙头启动:=FILTER(ABC_17>90,45)=1,COLORMAGENTA NODRAW;
STICKLINE(龙头启动,6,VAR1,2,0),COLORMAGENTA;
STICKLINE(龙头启动,6,VAR1,0.1,0),COLORRED;
分界线:0,COLORFF00FF;
STICKLINE(VAR1>REF(VAR1,1) AND VAR1>0,0,2,1.8,0),COLOR000055;
STICKLINE(VAR1>REF(VAR1,1) AND VAR1>0,0,2,1.1,0),COLOR000099;
STICKLINE(VAR1>REF(VAR1,1) AND VAR1>0,0,2,0.6,0),COLOR0000BB;
STICKLINE(VAR1<=REF(VAR1,1) AND VAR1>0,0,2,1.8,1),COLOR40FF00;
STICKLINE(VAR1<=REF(VAR1,1) AND VAR1>0,0,2,1.1,1),COLOR40FF00;
STICKLINE(VAR1<=REF(VAR1,1) AND VAR1>0,0,2,0.6,1),COLOR40FF00;
STICKLINE(VAR1>REF(VAR1,1) AND VAR1< 0,0,VAR1,1.8,0),COLOR000055;
STICKLINE(VAR1>REF(VAR1,1) AND VAR1< 0,0,VAR1,1.1,0),COLOR000099;
STICKLINE(VAR1>REF(VAR1,1) AND VAR1< 0,0,VAR1,0.6,0),COLOR0000BB;
STICKLINE(VAR1<=REF(VAR1,1) AND VAR1< 0,0,VAR1,1.8,0),COLORBLUE;
STICKLINE(VAR1<=REF(VAR1,1) AND VAR1< 0,0,VAR1,1.1,0),COLORBLUE;
STICKLINE(VAR1<=REF(VAR1,1) AND VAR1< 0,0,VAR1,0.6,0),COLORBLUE;
DRAWICON(龙头启动,6,9);
来函数检测结果如下:
该公式没有未来函数
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
输出DIF:收盘价的9日指数移动平均-收盘价的150日指数移动平均,NODRAW
输出ABC:DIF的12日指数移动平均,NODRAW
输出VAR1:2*(DIF-ABC),COLORSTICK
输出DIK:4*DIF-3*ABC,画黄色
ABC6:=DIK的1日指数移动平均,画绿色
如果C>ABC6返回ABC6否则返回DRAWNULL
IF(ABC6<=1日前的ABC6,ABC6,DRAWNULL),画绿色, 线宽为3
启动点赋值:VAR1< 0 AND VAR1>1日前的VAR1 AND 1日前的VAR1 < 2日前的VAR1 AND 2日前的VAR1 < 3日前的VAR1 AND 3日前的VAR1 < 4日前的VAR1
ABC_16:=IF(收盘价>1日前的收盘价,88,0)
ABC_17:=IF(收盘价/1日前的收盘价>1.05 AND 最高价/收盘价< 1.01 AND ABC_16>0,91,0)
龙头启动赋值:ABC_17>90的45过滤=1,画洋红色 NODRAW
当满足条件龙头启动时,在6和VAR1之间画柱状线
当满足条件龙头启动时,在6和VAR1之间画柱状线
输出分界线:0,COLORFF00FF
STICKLINE(VAR1>1日前的VAR1 AND VAR1>0,0,2,1.8,0),COLOR000055
STICKLINE(VAR1>1日前的VAR1 AND VAR1>0,0,2,1.1,0),COLOR000099
STICKLINE(VAR1>1日前的VAR1 AND VAR1>0,0,2,0.6,0),COLOR0000BB
STICKLINE(VAR1<=1日前的VAR1 AND VAR1>0,0,2,1.8,1),COLOR40FF00
STICKLINE(VAR1<=1日前的VAR1 AND VAR1>0,0,2,1.1,1),COLOR40FF00
STICKLINE(VAR1<=1日前的VAR1 AND VAR1>0,0,2,0.6,1),COLOR40FF00
STICKLINE(VAR1>1日前的VAR1 AND VAR1< 0,0,VAR1,1.8,0),COLOR000055
STICKLINE(VAR1>1日前的VAR1 AND VAR1< 0,0,VAR1,1.1,0),COLOR000099
STICKLINE(VAR1>1日前的VAR1 AND VAR1< 0,0,VAR1,0.6,0),COLOR0000BB
STICKLINE(VAR1<=1日前的VAR1 AND VAR1< 0,0,VAR1,1.8,0), 画蓝色
STICKLINE(VAR1<=1日前的VAR1 AND VAR1< 0,0,VAR1,1.1,0), 画蓝色
STICKLINE(VAR1<=1日前的VAR1 AND VAR1< 0,0,VAR1,0.6,0), 画蓝色
当满足条件龙头启动时,在6和9之间画图标