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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信多空逐鹿源码副图


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

以下是通达信多空逐鹿源码副图

VARAC1:=(CLOSE*2+HIGH+LOW)/4;

VARBC1:=EMA(VARAC1,13)-EMA(VARAC1,34);

VARCC1:=EMA(VARBC1,5);

多方主力: 2*(VARBC1-VARCC1)*380,COLORRED,LINETHICK0;

空方主力: (-2)*(VARBC1-VARCC1)*380,COLORGREEN,LINETHICK0;

VAR1:=((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*200-100)/2;

VAR2:=SMA(SMA(VAR1,3,1),3,1);

跟风盘:=MA(EMA(VAR2,3),3),COLORYELLOW,LINETHICK0;

股价:=3*VAR2-2*跟风盘,COLORBLUE,LINETHICK0;

VAR3:=EMA(CLOSE,13)-EMA(CLOSE,26)*100;

VAR4:=EMA(VAR3,3);

多头: 3*(VAR4-VAR3),COLORFF00FF,LINETHICK0;

空头: 2*跟风盘-3*VAR2,COLORBLUE,LINETHICK0;

多差:多方主力-多头,NODRAW;

空差:空头-空方主力,NODRAW;

DRAWBAND(空头,RGB(99,100,500),空方主力,RGB(0,9000,100));

DRAWBAND(多方主力,RGB(200,15,50),多头,RGB(10,250,50));

VARC0:=(2*CLOSE+HIGH+LOW)/4;

VARC1:=(HHV(HIGH,24)-CLOSE)/(HHV(HIGH,24)-LLV(LOW,24))*100;

VARC2:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;

B:=EMA((VARC0-LLV(LOW,26))/(HHV(HIGH,34)-LLV(LOW,26))*100,16);

多方:=SMA(SMA(VARC2,2,1)+3,2,1)-50,COLORRED;

浮筹:=EMA(B,4)-50,LINETHICK1,COLOR545454;

空方:=SMA(VARC1,3,1)-50,COLORBLUE;

DRAWICON(CROSS(多方主力,多头),多头,11);

DRAWICON(CROSS(空头,空方主力),空头,1);

DRAWICON(CROSS(多头,多方主力),多头,12);

DRAWICON(CROSS(空方主力,空头),空头,2);

DRAWICON(多方主力>多头 AND 空头>空方主力 AND CROSS(多方主力,空头),0,14);

STICKLINE(多方主力>多头 AND 空头>空方主力 ,多方主力,空方主力,0,-1),COLOR545454;

DRAWTEXT( 多方主力>REF(多方主力,1) AND REF(REF(多方主力,1),1)>REF(多方主力,1),0,'升');

DRAWTEXT(多方主力<REF(多方主力,1) AND REF(REF(多方主力,1),1)<REF(多方主力,1),0,'降');

VARQQ1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);

VARQQ2:=SMA(ABS(LOW-VARQQ1),13,1)/SMA(MAX(LOW-VARQQ1,0),10,1);

VARQQ3:=EMA(VARQQ2,10);

VARQQ4:=LLV(LOW,33);

VARQQ5:=EMA(IF(LOW<=VARQQ4,VARQQ3,0),3);

主力进场:IF(VARQQ5>REF(VARQQ5,1),VARQQ5,0),LINETHICK0,COLORRED;

STICKLINE(VARQQ5>REF(VARQQ5,1),0,VARQQ5*5,6,0 ),COLORRED;





回复

举报

QQ|

GMT+8, 2024-11-16 23:54

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