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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信分时决策指标公式


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

以下是通达信分时决策指标公式

MA1:=EMA(C,30);

MA2:=EMA(C,900);

H1:=MAX(DYNAINFO(3),DYNAINFO(5));

L1:=MIN(DYNAINFO(3),DYNAINFO(6));

P1:=H1-L1;

阻力:L1+P1*7/8,COLOR00DD00;

支撑:L1+P1*0.5/8,COLOR00DD00;

现价:CLOSE,COLORWHITE,LINETHICK0.01;

STICKLINE(CROSS(支撑,现价),支撑,阻力,1,0),COLORYELLOW;

DRAWTEXT(LONGCROSS(支撑,现价,2),支撑*1.001,'低吸'),COLORGREEN;{吸}

DRAWTEXT(LONGCROSS(现价,阻力,2),现价*1,'高抛'),COLORLIMAGENTA;{抛};

止赢:H1,COLORRED,LINETHICK1;

DRAWNUMBER(ISLASTBAR,止赢,止赢),COLORRED;

DRAWTEXT(ISLASTBAR,H1,' 当日止赢价位'),COLORRED,LINETHICK6;

止损:阻力,COLORBLUE,LINETHICK1;

DRAWNUMBER(ISLASTBAR,止损,止损),COLORRED;

DRAWTEXT(ISLASTBAR,阻力,' 高位止损价位'),COLORBLUE,LINETHICK6;

最后止损:支撑,COLORGREEN,LINETHICK1;

DRAWNUMBER(ISLASTBAR,最后止损,最后止损),COLORRED;

DRAWTEXT(ISLASTBAR,支撑,' 低位止损价位'),COLORGREEN,LINETHICK6;

UR:=10;

LR:=10;

中位:(最后止损+止损)/2,COLORFFFFFF,LINETHICK1;

DRAWNUMBER(ISLASTBAR,中位,中位),COLORWHITE;

DRAWTEXT(ISLASTBAR,(最后止损+止损)/2,' 中位'),COLORWHITE;

最新:C,LINETHICK9,COLORFFFF00;

IF(C>=REF(C,1),C,DRAWNULL),LINETHICK9,COLORRED;

AA:=SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C));

BB:=BETWEEN(C/AA,C+H,C-H);

DRAWTEXT( ISLASTBAR AND 最新>REF(最新,1),最新,STRCAT(' 涨▲',CON2STR(最新,2))),COLORMAGENTA;

DRAWTEXT( ISLASTBAR AND 最新<REF(最新,1),最新,STRCAT(' 跌▼',CON2STR(最新,2))),COLOR00FF00;

MD:=EMA(C,1)-EMA(C,5);

STICKLINE(MD>0,DYNAINFO(3),DYNAINFO(3)+MD*2,0,1),COLOR5151A2;

STICKLINE(MD<=0,DYNAINFO(3),DYNAINFO(3)+MD*2,0,1),COLOR74743A;

分时线:CLOSE,COLORCYAN;

上升:IF(CLOSE>=REF(CLOSE,1),CLOSE,DRAWNULL),COLOR0000C6;

N0:=STRCAT(CON2STR(YEAR,0),' 年 ');

Y:=STRCAT(CON2STR(MONTH,0),' 月 ');

R:=STRCAT(CON2STR(DAY,0),' 日 ');

SJ:=STRCAT(STRCAT(N0,Y), R);

A:=O>C AND C>REF(C,1) AND O/REF(C,1)>1.03;

DRAWTEXT(ABS(A)>0,L, '假阴'),COLORYELLOW;

DRAWICON(C<O AND C>REF(C,1),H,6);

均价5:AMOUNT/VOL/100,NODRAW;

DRAWNUMBER(ISLASTBAR,均价5,均价5),COLORYELLOW;

假阴0:=O>C AND 均价5>REF(C,1);

DRAWTEXT(假阴0,L-0.2,'↖假阴真阳'),COLORE8E8E8;

STICKLINE(假阴0,O,C,1,0),COLORRED;

{DRAWTEXT_FIX(C>0,0,0,0,SJ);}

{

DRAWTEXT_FIX(ISLASTBAR,0.5,0.05,0,CODE),COLORYELLOW;

DRAWTEXT_FIX(ISLASTBAR,0.55,0.05,0,STKNAME)COLORYELLOW;

DRAWTEXT_FIX(ISLASTBAR,0.6,0.05,0,HYBLOCK),COLORYELLOW;

DRAWTEXT_FIX(ISLASTBAR,0.6,0,0,DYBLOCK),COLORYELLOW;

DRAWTEXT_FIX(ISLASTBAR,0.55,0.85,0,GNBLOCK),COLORYELLOW;

DRAWTEXT_FIX(ISLASTBAR,0.55,0.90,0,FGBLOCK),COLORYELLOW;

DRAWTEXT_FIX(ISLASTBAR,0.55,0.95,0,ZSBLOCK),COLORYELLOW;

};

括号中的项目,如果有时间,调整好位置,也是能显示出来的,主要是板块等F10资料




回复

举报

QQ|

GMT+8, 2024-11-20 02:47

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