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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信域分布分析源码


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

以下是通达信域分布分析源码

NK:=34;MK:=3;
28,COLORFFFFFF;
STICKLINE(C>0,0,2,5,0),COLOR00008A;
STICKLINE(C>0,2,5,5,0),COLOR85008A;
STICKLINE(C>0,5,10,5,0),COLOR657600;
STICKLINE(C>0,10,21.5,5,0),COLOR690079;
STICKLINE(C>0,21.5,28,5,0),COLOR79B715;
VAR1K:=EMA(100*(CLOSE-LLV(LOW,NK))/(HHV(HIGH,NK)-LLV(LOW,NK)),MK)/4,COLORFFFF00,LINETHICK2;
开始冲顶:IF(VAR1K>23.16,VAR1K,0),COLOR00FFFF,LINETHICK1;
BB:IF(VAR1K<2,6,0),COLOR00FFFF,LINETHICK4;
DD:IF(VAR1K>21.5,25.5,28),COLOR0000FF,LINETHICK4;
AA:IF(VAR1K>23.16,24.5,28),COLORRED,LINETHICK4;
DRAWBAND(BB,RGB(190,0,100),0,RGB(0,0,0));
DRAWBAND(开始冲顶,RGB(250,250,0),0,RGB(0,0,0));
DRAWBAND(28,RGB(210,210,210),DD,RGB(0,0,0));
DRAWBAND(28,RGB(250,250,0),AA,RGB(0,0,0));
STICKLINE(C>0,2,2,2,0),COLORFF00FF;
STICKLINE(C>0,5,5,2,0),COLOR00FFFF;
STICKLINE(C>0,23.16,23.16,2,0),COLORFF0000;
顶底线:VAR1K,,COLORFFFF00,LINETHICK2;
DRAWICON(CROSS(顶底线,2),2,23);
DRAWICON(CROSS(顶底线,5),5,34);
DRAWICON(CROSS(21.5,顶底线),21.5,35);
DRAWICON(CROSS(23.16,顶底线),23.16,35);
DRAWTEXT(CURRBARSCOUNT=38,1,'底部区'),COLOR00FFFF;
DRAWTEXT(CURRBARSCOUNT=38,3.5,'介入区'),COLOR00FFFF;
DRAWTEXT(CURRBARSCOUNT=38,7.5,'加仓区'),COLOR00FFFF;
DRAWTEXT(CURRBARSCOUNT=38,16,'安全区'),COLOR00FFFF;
DRAWTEXT(CURRBARSCOUNT=38,22,'风险区'),COLOR0000FF;
DRAWTEXT(CURRBARSCOUNT=38,25.5,'逃顶区'),COLORFF00FF;

{RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*10;
K:SMA(RSV,3,1),COLORWHITE,LINETHICK0;
D:SMA(K,3,1),COLORYELLOW,LINETHICK0;
J:3*K-2*D,COLORYELLOW,LINETHICK0;
IF(K<REF(K,1),K,DRAWNULL),COLORGREEN,LINETHICK0;
IF(D<REF(D,1),D,DRAWNULL),COLORGREEN,LINETHICK0;
IF(J<REF(J,1),J,DRAWNULL),COLORFFFF00,LINETHICK0;
IF(K>REF(K,1),K,DRAWNULL),COLORRED,LINETHICK0;
IF(D>REF(D,1),D,DRAWNULL),COLORRED,LINETHICK0;
IF(J>REF(J,1),J,DRAWNULL),COLORFF00FF,LINETHICK0;
探针1:=0.01*MA(AMOUNT,13)/MA(VOL,13);
探针2:(CLOSE-探针1)/探针1*80,COLORRED,LINETHICK0;
DRAWTEXT("ZXNH.ZXNH"=1 AND 探针2<=-2,探针2,'买'),COLORMAGENTA;
DRAWTEXT("ZXNH.ZXNH"=1 AND 探针2>2,探针2,'卖'),COLORGREEN;};





回复

举报

QQ|

GMT+8, 2024-11-17 01:52

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