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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[指标编写] 通达信趋势波段雷达指标公式源码


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

VAR1:=(CLOSE*2+HIGH+LOW)/4;
VAR2:=EMA(VAR1,13)-EMA(VAR1,34);
VAR3:=EMA(CLOSE,12)-EMA(CLOSE,26);
VAR4:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR5:=SMA(SMA(VAR4,3,1),3,1);
VAR6:=3*SMA(VAR4,3,1)-2*VAR5;
VAR7:=(HIGH+LOW+CLOSE)/3;
VAR8:=(VAR7-MA(VAR7,14))/(0.015*AVEDEV(VAR7,14));
VAR9:=crOSS(VAR8,-100);
VAR10:=(SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(Abs(CLOSE-REF(CLOSE,1)),6,1)*100);
VAR11:=SMA(VAR4,3,1)>REF(SMA(VAR4,3,1),1);
VAR12:=SMA(VAR4,3,1)>VAR5 AND VAR11 AND VAR3>EMA(VAR3,9);
VAR13:=VAR12 AND VAR3>REF(VAR3,1) AND VAR10>50;
VAR14:=VAR13 AND VAR10>REF(VAR10,1);
VAR15:=VAR14 AND CLOSE>bbi AND BBI>REF(BBI,1);
VAR16:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),14);
VAR17:=HIGH-REF(HIGH,1);
VAR18:=REF(LOW,1)-LOW;
VAR19:=EXPMEMA(IF(VAR17>0 AND VAR17>VAR18,VAR17,0),14);
VAR20:=EXPMEMA(IF(VAR18>0 AND VAR18>VAR17,VAR18,0),14);
VAR21:=VAR19*100/VAR16;
VAR22:=VAR20*100/VAR16;
VAR23:=EXPMEMA(ABS(VAR22-VAR21)/(VAR22+VAR21)*100,6);
VAR24:=EXPMEMA(VAR23,6);
VAR25:=IF(FINANCE(33)>0,DYNAINFO(39),0)*0.35;
VAR26:=IF(FINANCE(33)>0.01,FINANCE(33)*0.65,0);
VAR27:=SMA(VAR4,3,1)>VAR5 AND SMA(VAR4,3,1)>REF(SMA(VAR4,3,1),1);
VAR28:=VAR27 AND VAR3>EMA(VAR3,9) AND VAR3>REF(VAR3,1);
VAR29:=VAR28 AND VAR10>50 AND VAR10>REF(VAR10,1) AND VAR9;
VAR30:=SMA(VAR4,3,1)>VAR5 AND VAR3>EMA(VAR3,9);
VAR38:=(3*REF(VAR5,1)-2*REF(SMA(VAR4,3,1),1));
VAR39:=VAR30 AND VAR10>50 AND C>BBI,COLORMAGENTA,DOTLINE;
雷达:2*(VAR2-EMA(VAR2,5))*3.8,COLORSTICK;
STICKLINE(雷达>REF(雷达,1),HHV(雷达,3),LLV(雷达,3),0,0),COLOR000088;
STICKLINE(雷达>REF(雷达,1),雷达,REF(雷达,1),3,0),COLOR0000AA;
STICKLINE(雷达>REF(雷达,1),雷达,REF(雷达,1),1.5,0),COLOR0000CC;
STICKLINE(雷达>REF(雷达,1),雷达,REF(雷达,1),0,0),COLOR0000EE;
STICKLINE(雷达<REF(雷达,1),HHV(雷达,3),LLV(雷达,3),0,0),COLORFFAA00;
STICKLINE(雷达<REF(雷达,1),雷达,REF(雷达,1),3,0),COLORFF4400;
STICKLINE(雷达<REF(雷达,1),雷达,REF(雷达,1),1.5,0),COLORFF8800;
STICKLINE(雷达<REF(雷达,1),雷达,REF(雷达,1),0,0),COLORFFAA00;
DRAWTEXT(VAR3>EMA(VAR3,9),-0.2,'★'),COLOR00FFFF;
PEG:(C/FINANCE(33))/(FINANCE(21)/FINANCE(20)+0.038)/100,NODRAW;
DRAWTEXT(VAR6>VAR5,-0.3,'★'),COLORRED;
DRAWICON(VAR9,雷达-0.1,26);
IF(VAR10>50 AND VAR10<100,0,DRAWNULL),COLORYELLOW,LINETHICK5,NODRAW;
IF(VAR15,雷达/3,DRAWNULL),COLORFFFF00,LINETHICK8;
IF(VAR23>=VAR24,0,DRAWNULL),COLORMAGENTA,LINETHICK6,NODRAW;
IF(VAR21>=VAR22,0,DRAWNULL)COLORRED,CIRCLEDOT,LINETHICK2;
最新价:C,NODRAW;
参考定价:VAR26*VAR25*4,NODRAW;
买点:VAR29 AND 雷达>REF(雷达,1),COLORYELLOW,LINETHICK2;
M交叉临界:351/28*(EMA(VAR3,9)-11/13*EMA(C,12)+25/27*EMA(C,26)),COLORLIBLUE,NODRAW;
K交叉点:VAR38/100*(HHV(H,9)-LLV(L,9))+LLV(L,9),COLORYELLOW,NODRAW;
IF(VAR39,雷达/2,DRAWNULL),COLORMAGENTA,LINETHICK5;





回复

举报

QQ|

GMT+8, 2024-11-27 20:58

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