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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 一个不错的副图 (源码 副图 贴图)


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2024-3-10 20:03:36
一个不错的副图 (源码 副图 贴图)介绍

一个不错的副图 (源码 副图 贴图)

源码:

N1:=5;N2:=10;N3:=600;
LC:=REF(CLOSE,1);
A0:=(2*C+H+L)/4;
A1:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*10;
VAR1:=C-REF(C,1);
VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6);
MA5:=EMA(C,5);
MA13:=EMA(C,13);
UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS
(MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS
(MA5,MA13))+1),0),COLOR0000FF;
DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS
(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS
(MA13,MA5))+1),0),COLOR00FF00;
BT:=(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2<0,2) AND CROSS(VAR2,MA(VAR2,2))) AND
REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1);
N:=10;
DIFF:(EMA(DCLOSE,10)-EMA(DCLOSE,21))*N3,COLORCYAN,LINETHICK2;
DEA:EMA(DIFF,8),COLOR1474FF,LINETHICK3;


TJ1:EMA(DEA,3),COLORWHITE,LINETHICK3;
TJ2:EMA(DEA,10),COLORMAGENTA;
F:=CROSS(DIFF,DEA);
G:=CROSS(DEA,DIFF);
DRAWICON(F,DEA-2.6,13);
DRAWICON(G,DEA+1.1,6);

DIFFA := EMA(OSC,12) - EMA(OSC,25);
DEAA := EMA(DIFFA,8);
MACD := 2*(DIFFA-DEAA);

D1:=EMA(DIFF,3)-EMA(DIFF,8);

D2:=EMA(O,3)-EMA(O,8);

D3:=EMA(H,3)-EMA(H,8);

D4:=EMA(L,3)-EMA(L,8);

STICKLINE(DIFF>=DEA,DIFF,DEA,1,0),COLOR0055AA;

STICKLINE(DIFF<=DEA,DIFF,DEA,0.8,0),COLOR006600;

STICKLINE(DIFF>=DEA,DIFF,DEA,0.6,0),COLOR0077CC;

STICKLINE(DIFF>=DEA,DIFF,DEA,0.3,0),COLOR0099DD;

STICKLINE(DIFF>=DEA,D3,D4,0.1,0),COLOR00BBFF;

STICKLINE(DIFF<=DEA,DIFF,DEA,0.8,0),COLOR009900;

STICKLINE(DIFF<=DEA,DIFF,DEA,0.5,0),COLOR00BB00;

STICKLINE(DIFF<=DEA,DIFF,DEA,0.2,0),COLOR00EE00;
Z_F:=IF(C>REF(H,1),EMA(L,5),IF(C<REF(EMA(L,5),1),H,EMA(L,5)));
K_D:=BARSLAST(C<=Z_F);
X_H:=K_D=1 AND BARSLAST(MACD<REF(MACD,1));
{===================== ?a?£°?===================== }

{?ù}
STICKLINE(MACD<REF(MACD,1) AND MACD<0,0,MACD*4,0,0),COLORFFCF78;
STICKLINE(MACD<REF(MACD,1) AND MACD>0,0,MACD*4,0,0),COLORYELLOW;
STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD*4,0,0),COLORMAGENTA;
STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD*4,0,0),COLORRED;

AA2:=REF(L,8)=LLV(L,2*8+1);
BB2:=BACKSET(AA2,8+1);
CC2:=FILTER(BB2,8) AND L=LLV(L,8+1);
STICKLINE(CC2,D1,D2,2.6,0),COLORMAGENTA;
STICKLINE(CC2,D3,D4,0,0),COLORMAGENTA;
AA3:=REF(H,8)=HHV(H,2*8+1),LINETHICK0;
BB3:=BACKSET(AA3,8+1),LINETHICK0;
CC3:=(FILTER(BB3,8) AND H=HHV(H,8+1));
STICKLINE(CC3,D1,D2,2.6,0),COLORGREEN;
STICKLINE(CC3,D3,D4,0,0),COLORGREEN;

DRAWTEXT(CC3,D2*1.03,'?????? '),COLOR00FF00;
DRAWTEXT(CC2,D4-D4*0.02,'?????ò '),COLORMAGENTA;
0,COLORGRAY,LINETHICK1;
 


 




 



gd15235

回复

举报

QQ|

GMT+8, 2024-12-26 01:45

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