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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信果断买入(主图 副图选股源码)


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

以下是通达信果断买入(主图 副图选股源码)

{追买主图叠加}
M5:MA(CLOSE,5)COLORWHITE;
M10:MA(CLOSE,10)COLORYELLOW;
A1:=C-REF(C,1);
A2:=100*EMA(EMA(A1,6),6)/EMA(EMA(ABS(A1),6),6);
AA:=LLV(A2,2)=LLV(A2,7) AND COUNT(A2<0,2) AND CROSS(A2,MA(A2,2));
VAR1:=(CLOSE*2+HIGH+LOW)/4*10;
VAR2:=EMA(VAR1,13)-EMA(VAR1,34);
VAR3:=EMA(VAR2,5);
VAR4:=2*(VAR2-VAR3)*5.5;
ZLC:=IF(VAR4<=0,VAR4,0);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
XG:DRAWTEXT(FILTER(AA=1,5) AND BARSLASTCOUNT(DEA<REF(DEA,1))<4 AND
CROSS(A2,MA(A2,2)) AND AA AND ZLC>REF(ZLC,1),LOW-0.3,'★果断买入'),COLORYELLOW;

{追买副图}
M5:=MA(CLOSE,5)COLORWHITE;
M10:=MA(CLOSE,10)COLORYELLOW;
A1:=C-REF(C,1);
A2:=100*EMA(EMA(A1,6),6)/EMA(EMA(ABS(A1),6),6);
AA:=LLV(A2,2)=LLV(A2,7) AND COUNT(A2<0,2) AND CROSS(A2,MA(A2,2));
VAR1:=(CLOSE*2+HIGH+LOW)/4*10;
VAR2:=EMA(VAR1,13)-EMA(VAR1,34);
VAR3:=EMA(VAR2,5);
VAR4:=2*(VAR2-VAR3)*5.5;
ZLC:=IF(VAR4<=0,VAR4,0);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
XG:=DRAWTEXT(FILTER(AA=1,5) AND BARSLASTCOUNT(DEA<REF(DEA,1))<4 AND
CROSS(A2,MA(A2,2)) AND AA AND ZLC>REF(ZLC,1),LOW-0.3,'★果断买入'),COLORYELLOW;
STICKLINE(XG,0,19,1.5,0),COLORRED;

{追买选股}
A1:=C-REF(C,1);
A2:=100*EMA(EMA(A1,6),6)/EMA(EMA(ABS(A1),6),6);
AA:=LLV(A2,2)=LLV(A2,7) AND COUNT(A2<0,2) AND CROSS(A2,MA(A2,2));
VAR1:=(CLOSE*2+HIGH+LOW)/4*10;
VAR2:=EMA(VAR1,13)-EMA(VAR1,34);
VAR3:=EMA(VAR2,5);
VAR4:=2*(VAR2-VAR3)*5.5;
ZLC:=IF(VAR4<=0,VAR4,0);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
DRAWTEXT(FILTER(AA=1,5) AND BARSLASTCOUNT(DEA<REF(DEA,1))<4 AND
CROSS(A2,MA(A2,2)) AND AA AND ZLC>REF(ZLC,1),LOW-0.3,'★果断买入');





回复

举报

QQ|

GMT+8, 2024-11-17 21:19

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