股资源-股票学习站-学炒股-股票课程-炒股教程-分析选股指标-入门基础知识

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[指标编写] 看牛股基因之选股指标公式


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2024-5-11 17:39:01

HHH:=NAMEINCLUDE('S');
W:=IF(NAMELIKE('W') OR NAMELIKE('*W'),0.05,0.1);
DTR:=(REF(C,1)/C-1>=W-0.01/REF(C,1) AND L=C AND PERIOD=5) OR C=DTPRICE(REF(C,1),IF(HHH,0.05,0.1));
DTO:=REF(C,1)/L-1>=W-0.01/REF(C,1) AND L<C AND PERIOD=5;
连阴:=COUNT((C<REF(C,1) OR L<REF(L,1)),10)>=5;
卧龙柱:=REF(连阴,1) AND (DTR OR DTO);
距今:=BARSLAST(卧龙柱);
再龙根:=COUNT(crOSS(C,REF((C+O)/2,距今)),距今)=2 AND CROSS(C,REF((C+O)/2,距今)),COLORLIRED;
警示:=NAMEINCLUDE('S');
WU:=IF(NAMELIKE('W') OR NAMELIKE('*W'),0.05,0.1);
DT:=(REF(C,1)/C-1>=WU-0.01/REF(C,1) AND L=C AND PERIOD=5) OR C=DTPRICE(REF(C,1),IF(警示,0.05,0.1));
DT1:=REF(C,1)/L-1>=WU-0.01/REF(C,1) AND L<C AND PERIOD=5;
连阴2:=COUNT((C<REF(C,1) OR L<REF(L,1)),10)>=5;
卧龙柱5:=REF(连阴2,1) AND (DT OR DT1);
距今2:=BARSLAST(卧龙柱5);
卧龙湾:=HHV(C,距今2)<REF((C+O)/2,距今2) AND 距今2<15 ;
假阳:=REF(C<=O,1) AND H<REF(O,1) AND C<(REF(O-C,1))/3+REF(C,1) AND AMOUNT/V/100<REF(C,1) AND C>O;
黄金阳:=REF(DT OR DT1,1) AND 假阳;
阳距:=BARSLAST(黄金阳);
黄金坑:=HHV(C,阳距)<REF((C+O)/2,阳距+1) AND 阳距<15 ;
卧龙潜:=黄金坑 OR 卧龙湾,COLORWHITE;
SY:=H/MAX(C,O);
XY:=MIN(C,O)/L;
卧龙深潜:=卧龙潜 AND C>O AND XY>1.02 AND SY<1.015,COLORGREEN;
牙齿:=REF(MA(CLOSE,8),5);
R2:=牙齿;
KU1:=IF(HIGH=HHV(HIGH,3),1,0);
UL:=IF(REF(KU1,2)=1 AND REF(KU1,1)=0 AND KU1=0,REF(HIGH,3),REF(HIGH,2+BARSLAST(REF(KU1,2)=1 AND REF(KU1,1)=0 AND KU1=0)));
上分形:=IF(HIGH>=R2,UL,REF(UL,BARSLAST(HIGH>=R2)));
红箭头:=HIGH>上分形 AND REF(HIGH,1)<REF(上分形,1),COLORLIMAGENTA;
RSV14:=(CLOSE - LLV(LOW,14))/(HHV(HIGH,14) - LLV(LOW,14))-0.5;
K14:=EMA(RSV14,3);
D14:=EMA(K14,3);
J14:=3*K14-2*D14;
kdjXG:=REF(COUNT(J14<REF(J14,1),5)>=3,1) AND REF(J14,1)<-0.4 AND J14>REF(J14,1);
海德:=FILTER(kdJXG,3),COLORB8B8DC;
V5:=EMA(CLOSE,1);
AE:=EMA(V5,5) ;
AB:=EMA(HHV(AE,5),1);
AJ:=EMA(HHV(AB,17),1);
WJ:=EMA(HHV(AJ,17),2);
AF:=EMA(HHV(WJ,17),3);
三线:=AF;
HHD:=CROSS(AJ,三线) OR (EVERY(REF(三线,1)=REF(AJ,1),2) AND EXIST(AJ>三线,2) ) ;
牛起步:=HHD=1,COLORYELLOW;
AD:=SMA((((CLOSE-LLV(LOW,33))/(HHV(HIGH,33)-LLV(LOW,33)))*100),7,1);
三角:=CROSS(AD,23),COLORLIBLUE;
主线:=18;
主差:=2;
起初:=1;
主:=EMA(C,起初);
前N:=0;
B1:=1;
B20:=主差*19+1;
S1:=EMA(B1,主线);
S20:=EMA(B20,主线);
NOTETEXT1:=REF(HHV(主,S1),前N);
NOTETEXT20:=REF(HHV(主,S20),前N);
红加号:=FILTER(NOTETEXT1=NOTETEXT20,25),COLORLIRED;
LOWV:=EMA(LLV(LOW,34),3);
HIGHV:=EMA(HHV(HIGH,34),3);
RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);
K:=SMA(RSV,8,1);
D:=SMA(K,6,1);
J:=3*K-2*D;
J1:=MA(J,3);
A1:=BARSLAST(REF(CROSS(J,J1),1));
YUI:=REF(CLOSE,A1+1)>CLOSE AND J>REF(J,A1+1) AND CROSS(J,J1) AND J<20;
底背离:=YUI>0,COLORLIBLUE;
选股数101:=IF(再龙根,1,0);
选股数102:=IF(卧龙深潜,1,0);
选股数103:=IF(红箭头,1,0);
选股数104:=IF(海德,1,0);
选股数105:=IF(牛起步,1,0);
选股数106:=IF(三角,1,0);
选股数107:=IF(红加号,1,0);
选股数108:=IF(底背离,1,0);
总选股101:=选股数101;
总选股102:=总选股101+选股数102;
总选股103:=总选股102+选股数103;
总选股104:=总选股103+选股数104;
总选股105:=总选股104+选股数105;
总选股106:=总选股105+选股数106;
总选股107:=总选股106+选股数107;
总选股108:=总选股107+选股数108;
总指标数0:=0;
AA11:=11;
BB11:=9;
CC11:=9;
信号数:=再龙根+卧龙深潜+红箭头+海德+牛起步+三角+红加号+底背离,COLORLIMAGENTA;
XG:信号数>=3,COLORWHITE;





回复

举报

QQ|

GMT+8, 2024-11-16 21:02

快速回复 返回顶部 返回列表