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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信正阳风暴主图 指标源码


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2024-6-4 09:11:16
多空:EMA(C,20),CROSSDOT,COLORGREEN,LINETHICK5;
IF(多空>REF(多空,1),多空,DRAWNULL),CROSSDOT,COLORRED,LINETHICK7;
高1:=REF(HHV(H,120),3);
低1:=REF(LLV(L,120),3);
H1:=高1-(高1-低1)*0.2;
H2:=高1-(高1-低1)*0.4;
H3:=高1-(高1-低1)*0.5;
H4:=高1-(高1-低1)*0.6;
H5:=高1-(高1-低1)*0.9;
突破:=REF(EMA(C,14),1);
A1X:=(EMA(C,10)-突破)/突破*100;
基准:=IF(A1X>=0,REF(EMA(C,10),BARSLAST(CROSS(A1X,0))+1),REF(EMA(C,10),BARSLAST(CROSS(0,A1X))+1));
AA:=CROSS(A1X,0),LINETHICK3;
STICKLINE(A1X>=0,C,O,2.7,0),COLOR0011FF;
STICKLINE(A1X>=0,C,O,1.8,0),COLOR0044FF;
STICKLINE(A1X>=0,C,O,0.9,0),COLOR0077FF;
STICKLINE(A1X>=0,C,O,0.1,0),COLOR0099FF;
STICKLINE(A1X>=0,H,L,0,0),COLOR0099FF;
STICKLINE(AA,C,O,2.7,0),COLOR330033;
STICKLINE(AA,C,O,1.8,0),COLOR770077;
STICKLINE(AA,C,O,0.9,0),COLORBB00BB;
STICKLINE(AA,C,O,0.1,0),COLORFF00FF;
STICKLINE(AA,H,L,0,0),COLORFF00FF;
DRAWICON(AA,L*1,9);
DRAWTEXT(AA,L*1,'主力买入'),COLORYELLOW;
BB:=CROSS(0,A1X),LINETHICK5;
STICKLINE(A1X<0,C,O,2.7,0),COLORAAAAAA;
STICKLINE(A1X<0,C,O,1.8,0),COLORCCCCCC;
STICKLINE(A1X<0,C,O,0.9,0),COLORDDDDDD;
STICKLINE(A1X<0,C,O,0.1,0),COLORFFFFFF;
STICKLINE(A1X<0,H,L,0,0),COLORFFFFFF;
STICKLINE(BB,C,O,2.7,0),COLOR333300;
STICKLINE(BB,C,O,1.8,0),COLOR555500;
STICKLINE(BB,C,O,0.9,0),COLOR777700;
STICKLINE(BB,C,O,0.1,0),COLOR999900;
STICKLINE(BB,H,L,0,0),COLOR999900;
DRAWICON(BB,H*1,43);
DRAWTEXT(BB,H*1,'主力卖出'),COLORYELLOW;
AA1:=AMOUNT/V;
BB1:=L<AA1*0.9;
CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;
DD1:=L<MA(C,5)*0.921;
EE1:=V<MA(V,5)*1.5;
VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);
VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.03) AND ((HIGH)/(CLOSE)<1.03) AND (VAR3AA>0),92,0);
DRAWTEXT(FILTER((VAR4AA>90),30),(LOW)*(1),'★加仓'),COLOR00FFFF;
DRAWTEXT(FILTER((VAR4AA>90),10),(LOW)*(1),'★加仓'),COLOR00FFFF;
A1AA:=9;
A2AA:=(REF(CLOSE,A1AA+1)<CLOSE);
VAR6:=REF(C,1);
VAR7:=SMA(MAX(C-VAR6,0),6,1)/SMA(ABS(C-VAR6),6,1)*100;
DRAWTEXT(CROSS(90,VAR7),H*0.99,'★减仓'),COLORYELLOW;
DRAWTEXT_FIX(1,0,0,0,'【行业】:'),COLORWHITE;
DRAWTEXT_FIX(1,0.06,0,0,HYBLOCK),COLORWHITE;{行业}
DRAWTEXT_FIX(1,0,0.05,0,'【概念】:'),COLORYELLOW;
DRAWTEXT_FIX(1,0.06,0.05,0,GNBLOCK),COLORYELLOW;{概念};
假阴真阳:= C>REF(C,1) AND C<O AND PERIOD=5;
STICKLINE(假阴真阳,C,O,-1,0),COLORYELLOW;








回复

举报

QQ|

GMT+8, 2024-11-16 19:24

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