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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信玩转脑指标源码副图


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

以下是通达信玩转脑指标源码副图

{玩转脑指标}

MA1:MA(CLOSE,5);

MA2:MA(CLOSE,10);

MA3:MA(CLOSE,20);

MA4:MA(CLOSE,60);

VAR1:(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25),LINETHICK2,COLORGREEN;

VAR2:XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1,LINETHICK2,COLORRED;

VAR3:EMA(VAR2,25),LINETHICK2;

STICKLINE(VAR2>LOW AND VAR2<HIGH,VAR2,MIN(MIN(OPEN,CLOSE),VAR2),4,0),COLORYELLOW;

STICKLINE(VAR2>MIN(C,O) AND VAR2<MAX(C,O),VAR2,MIN(OPEN,CLOSE),4,0),COLORYELLOW;

STICKLINE(VAR2>HIGH,OPEN,CLOSE,4,0),COLORYELLOW;

STICKLINE(VAR2>HIGH,HIGH,LOW,0,0),COLORYELLOW;

VAR23:=100*XMA(XMA((C-REF(C,1)),6),6)/XMA(XMA(ABS((C-REF(C,1))),6),6);

VAR4:=LLV(VAR23,2)==LLV(VAR23,7) AND COUNT(VAR23<0,2) AND CROSS(VAR23,MA(VAR23,2));

XG:=VAR2>HIGH AND VAR4 AND L<=VAR2;

DRAWTEXT(XG,L,'▲介入'),COLORRED;

JJ:=(HIGH+LOW+CLOSE)/3;

QJ0:=VOL/IFF(HIGH==LOW,4,HIGH-LOW);

QJ1:=IFF(CAPITAL==0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IFF(HIGH==LOW,1,(MIN(OPEN,CLOSE)-LOW)));

QJ2:=IFF(CAPITAL==0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IFF(HIGH==LOW,1,(JJ-MIN(CLOSE,OPEN))));

QJ3:=IFF(CAPITAL==0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IFF(HIGH==LOW,1,(HIGH-MAX(OPEN,CLOSE))));

QJ4:=IFF(CAPITAL==0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IFF(HIGH==LOW,1,(MAX(CLOSE,OPEN)-JJ)));

DDX:=((QJ1+QJ2)-(QJ3+QJ4))/IFF(CAPITAL==0,10000,10000),COLOR00AAAA,LINETHICK1;

V2:=SMA(IFF(C>=REF(C,1),DDX,-DDX/100),2,1);

V5:=SMA(V2*120/FROMOPEN*5,2,1);

V10:=SMA(V5,5,1);

V20:=SMA(V10,5,1);

DY:=ISLASTBAR==1 AND C<REF(C,1);

DY2:=REF(V2,1)-DY;

XG2:=C>O AND DY2<0.02 AND MA(C,5)>MA(C,60) AND C/REF(C,1)>=1.02 AND H<VAR1;

DRAWTEXT(XG2 AND L<VAR2,L,'涨'),COLORRED;

黄金坑:IFF(LOW<VAR2,1,0),NODRAW,COLORYELLOW;

介入:IFF(XG,1,0),NODRAW,COLORRED;

涨:IFF(XG2 AND L<VAR2,1,0),NODRAW,COLORRED;






回复

举报

QQ|

GMT+8, 2024-11-17 09:28

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