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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信牛魔出山副图指标


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

以下是通达信牛魔出山副图指标

通达信牛魔出山副图指标

源码

V0:=ZIG(3,10);V1:=MA(V0,2);V3:=CONST(HHV(V1,200));V4:=CONST(0);
V6:=IF((V0>REF(V0,1)),0,C);V7:=IF(FILTER(V6,120),1,0);
V5:=REF(V6,1)=0 AND V6>0 AND V7=0;
V8:=NOT((H<=HHV(H,20) AND H>=HHV(H,20)*0.99) OR H
V9:=IF(FILTER(IF((V0>REF(V0,1)),0,C),120),1,0);
DDD:=IF(V5,0,1);
FFF:=IF(V1>REF(V1,1) AND DDD AND V9=0 AND IF(CLOSE<0,0,V8),1,0);
{FFF:=1;}
H1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
H2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
H3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
H4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
A1:=BARSLAST(CROSS(30,H1))<2 AND BARSLAST(CROSS(H1,50))<2;
B1:=BARSLAST(CROSS(H4,H1))<2 AND H1>H4;
E1:=H1>60 AND H4>70;
牛魔出山:IF(A1 AND B1 AND E1 AND FFF,10,0),COLORRED;
A2:=BARSLAST(CROSS(50,H1))<3 AND BARSLAST(CROSS(H1,50))<3;
B2:=BARSLAST(CROSS(H4,H1))<2 AND H1>H4;
疯牛越栏:IF(A2 AND B2 AND FFF,9,0),COLORLIRED;
A21:=BARSLAST(CROSS(H4,H1))<5 AND H1>H4;
牛心不改:IF(COUNT(A21,3)=1 AND A21 AND FFF,8,0),COLORYELLOW;
A3:=BARSLAST(CROSS(H4,H1))>3 AND BARSLAST(CROSS(H1,H4))<3;
B3:=BARSLAST(CROSS(H4,H2));
E3:=BARSLAST(CROSS(H4,H3))>3 AND BARSLAST(CROSS(H1,H4))<3;
{B31:=A>0 AND REF(A,1)=0 AND REF(A,2)>0; }
牛动震仓:IF(A3 AND B3 AND E3 AND H2 AND H3 AND FFF,7,0),COLOR0088CC;
{短线追涨 (高位横盘突破)}
H40:=BARSLAST(CROSS(97,H1))<=1 AND BARSLAST(CROSS(H1,85))<=1;
H41:=BARSLAST(CROSS(97,H2))<=1 AND BARSLAST(CROSS(H2,85))<=1;
H42:=BARSLAST(CROSS(97,H1))<=2 AND BARSLAST(CROSS(H1,85))<=1;
H43:=BARSLAST(CROSS(97,H2))<=2 AND BARSLAST(CROSS(H2,85))<=1;
H44:=H40 AND H41;
H45:=H42 AND H43 ;
H46:=BARSLAST(CROSS(97,H1))<=3 AND BARSLAST(CROSS(H1,85))<=1;
H47:=BARSLAST(CROSS(97,H2))<=3 AND BARSLAST(CROSS(H2,85))<=1;
H48:=H46 AND H47;
{H490:=REF(H44,1);H491:=REF(H45,1);H492:=REF(H48,1);}
Y41:=H1=100 AND H2=100 AND H44 ;
Y42:=H1=100 AND H2=100 AND H45 ;
Y43:=H1=100 AND H2=100 AND H48 ;
栏牛顶角:IF((Y41 OR Y42 OR Y43) AND FFF,6,0),COLORMAGENTA;
{波段启动前兆}
A6:=H3=100;
B6:=H4<90;
牛蹄初步:IF(COUNT(A6,2)=2 AND B6 AND FFF,5,0),COLORGREEN;
{捉中线牛股起涨点}
A7:=H1=H2 AND H2=H3 AND H1=100 AND H4>96;
B7:=COUNT(A7,2)=1;
D7:=H1;
YH:=INDEXC/REF(INDEXC,1)*REF(C,1);
YH1:=REF(C,1)+C-INDEXC/REF(INDEXC,1)*REF(C,1);
X71:=EMA(YH1,7);
X72:=EMA(YH1,14);
X73:=EMA(X71,14);
E7:=X71>X72 AND X72>X73;
T44:=IF(B7 AND D7 AND E7 AND FFF,4,0),COLOR6600FF;
{精确定位起涨第一日}
A5:=BARSLAST(CROSS(95,H1))<=2;
B5:=BARSLAST(CROSS(95,H2))<=2;
E5:=H4;
F5:=H2>50 AND H3>50;
G5:=H1=100 AND H2=100;
T5:=COUNT(G5,2)=1;
T55:=IF(A5 AND B5 AND E5 AND F5 AND T5 AND FFF,3,0),COLORFFAA55;
T66:=IF((H1=100 AND REF(H1,2)=100 AND REF(H1,1)=100 AND
H2=100 AND H3=100 AND H4=100 AND REF(H2,2)<100 AND
REF(H3,2)<100 AND REF(H4,2)<100) OR (H1=100 AND
REF(H1,3)=100 AND REF(H1,2)=100 AND REF(H1,1)=100 AND
H2=100 AND H3=100 AND H4=100 AND REF(H2,3)<100 AND
REF(H3,3)<100 AND REF(H4,3)<100) AND FFF,2,0),COLOR448822;
牛性顿起:IF(T44 OR T66 AND FFF,4,0),COLORFFAA55;
牛气阵阵:IF(T55 AND FFF,2.5,0),COLORLIGRAY;
选牛:IF(牛魔出山 OR 疯牛越栏 OR 牛心不改 OR 牛动震仓 OR 栏牛顶角 OR
牛蹄初步 OR 牛性顿起 OR 牛气阵阵,1,0),COLORRED,NODRAW;





回复

举报

QQ|

GMT+8, 2024-11-18 07:46

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