通达信红绿灯副图/选股指标 源码 贴图

2019-07-01 11:38:00来源:本站整理浏览:588

最近发现有的论坛股友在求解红绿灯副图的选股思路;本人做了一下研究,经过对副图的解读后编了一个选股指标,思路是:1 将红、黄灯后一交易日出现绿灯提示后提炼出来,2 整合四个参数下的红、黄灯变绿灯后作为选股提示条件;3 经过测试后发现,全部符合条件后会以后掉不少走势不错的个股,所以就将最后的选股条件设定为大于等于三个参数,并添加了阳线实体大于上影线部分的限制条件,其目的就是要金莲选出上影线很小或光头阳的个股,这样就过滤掉了不少杂波,本想在附加几个限制条件,但考虑到每个人的反洗研判角度不同,就放弃了。洗完喜欢的坛友自己根据你的喜好来更改,如果你不会那就仅供参考,千万不要盲目的依照指标胡乱操作,有的人就是拿到指标买个股票涨了就开心跌了就埋怨指标不好,说发指标的大骗子,指标只是每个人用来减轻你的选股劳动强度的工具而已。可以作为预警选股使用


选股公式

A:=MAX(MA(C,5),MA(C,10));
B:=MIN(MA(C,5),MA(C,10));
绿:=C>A,COLORGREEN;
红:=C<B,COLORRED;
黄:=C>=B AND C<=A;
XG1:=绿 AND (REF(红,1) OR REF(黄,1));
F30A:=MAX(MA(C,10),MA(C,20));
F30B:=MIN(MA(C,10),MA(C,20));
绿灯F30:=C>F30A,COLORGREEN;
红灯F30:=C<F30B,COLORRED;
黄灯F30:=C>=F30B AND C<=F30A;
XG2:=绿灯F30 AND (REF(红灯F30,1) OR REF(黄灯F30,1));
F60A:=MAX(MA(C,20),MA(C,60));
F60B:=MIN(MA(C,20),MA(C,60));
绿灯行F60:=C>F60A,COLORGREEN;
红灯停F60:=C<F60B,COLORRED;
黄灯观望F60:=C>=F60B AND C<=F60A;
XG3:=绿灯行F60 AND (REF(红灯停F60,1) OR REF(黄灯观望F60,1));
FRA:=MAX(MA(C,60),MA(C,120));
FRB:=MIN(MA(C,60),MA(C,120));
绿灯行FR:=C>FRA,COLORGREEN;
红灯停FR:=C<FRB,COLORRED;
黄灯观望FR:=C>=F30B AND C<=F30A;
XG4:=绿灯行FR AND (REF(红灯停FR,1) OR REF(黄灯观望FR,1));
绿灯行:C-O>(H-C)*4 AND XG1+XG2+XG3+XG4>=3;{这句源码中的参数可以根据自己的喜好改动}





{A:=MAX(MA(C,5),MA(C,10));
B:=MIN(MA(C,5),MA(C,10));
绿:C>A,COLORLIGREEN;
红:C<B,COLORRED;
黄:C>=B AND C<=A,COLORBROWN;
STICKLINE(C>A,3.3,4,8,0),COLORGREEN,LINETHICK2;
STICKLINE(C<B,3.3,4,8,0),COLORRED,LINETHICK2;
STICKLINE(C>=B AND C<=A,3.3,4,8,0),COLORYELLOW,LINETHICK2;
F30A:=MAX(MA(C,10),MA(C,20));
F30B:=MIN(MA(C,10),MA(C,20));
绿灯F30:C>F30A,COLORLIGREEN;
红灯F30:C<F30B,COLORRED;
黄灯F30:C>=F30B AND C<=F30A,COLORBROWN;
STICKLINE(C>F30A,2.3,3,8,0),COLORGREEN,LINETHICK2;
STICKLINE(C<F30B,2.3,3,8,0),COLORRED,LINETHICK2;
STICKLINE(C>=F30B AND C<=F30A,2.3,3,8,0),COLORYELLOW,LINETHICK2;
F60A:=MAX(MA(C,20),MA(C,60));
F60B:=MIN(MA(C,20),MA(C,60));
绿灯行F60:C>F60A,COLORLIGREEN;
红灯停F60:C<F60B,COLORRED;
黄灯观望F60:C>=F60B AND C<=F60A,COLORBROWN;
STICKLINE(C>F60A,1.3,2,8,0),COLORGREEN,LINETHICK2;
STICKLINE(C<F60B,1.3,2,8,0),COLORRED,LINETHICK2;
STICKLINE(C>=F60B AND C<=F60A,1.3,2,8,0),COLORYELLOW,LINETHICK2;
FRA:=MAX(MA(C,60),MA(C,120));{好股票WWW.GOODGUPIAO.COM}
FRB:=MIN(MA(C,60),MA(C,120));
绿灯行FR:C>FRA,COLORLIGREEN;
红灯停FR:C<FRB,COLORRED;
黄灯观望FR:C>=F30B AND C<=F30A,COLORBROWN;
STICKLINE(C>FRA,0,1,8,0),COLORGREEN,LINETHICK2;
STICKLINE(C<FRB,0,1,8,0),COLORRED,LINETHICK2;
STICKLINE(C>=FRB AND C<=FRA,0,1,8,0),COLORYELLOW,LINETHICK2;

XG1:=绿 AND (REF(红,1) OR REF(黄,1));
XG2:=绿灯F30 AND (REF(红灯F30,1) OR REF(黄灯F30,1));
XG3:=绿灯行F60 AND (REF(红灯停F60,1) OR REF(黄灯观望F60,1));
XG4:=绿灯行FR AND (REF(红灯停FR,1) OR REF(黄灯观望FR,1));
绿灯行选股:(XG1+XG2+XG3+XG4)>=3 AND C-O>(H-C)*4;
DRAWICON(绿灯行选股,1,5);
DRAWTEXT(绿灯行选股,1,' 绿灯行'),COLORBLUE;



 

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式