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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信主力量能副图指标公式源码


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2024-5-11 18:41:32
{}
N:=30;
M:=60;
散户线: 100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M))*10000,COLORGREEN;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,5,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
主力线:EMA(J,6)*10000,COLORRED;


N2:=5;
K1:=IF(CLOSE>=REF(CLOSE,1),HIGH-OPEN+CLOSE-LOW+CLOSE-REF(CLOSE,1),HIGH-OPEN+CLOSE-LOW);
K2:=IF(CLOSE<=REF(CLOSE,1),OPEN-LOW+HIGH-CLOSE+REF(CLOSE,1)-CLOSE,OPEN-LOW+HIGH-CLOSE);
DT:=VOL*K1/(K1+K2);
KT:=VOL-DT;
进出量:SUM(DT,N)+SUM(KT,N2),POINTDOT,COLOR00FFFF;
STICKLINE(进出量>=0,0,进出量,6/3,1),COLOR0000FF;
STICKLINE(进出量<0,0,进出量,6/3,1),COLORFFFF00;
黄蓝为成交量:0,COLORYELLOW;
量:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买量:=IF(CLOSE>OPEN,量*(HIGH-LOW),IF(CLOSE<OPEN,量*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
卖量:=(IF(CLOSE>OPEN,0-量*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-量*(HIGH-LOW),0-VOL/2)))*-1;
净量:=买量-卖量>0;
STICKLINE(买量,0,VOL,3/3,0),COLORBLUE;
STICKLINE(净量,0,VOL,3/3,0),COLORYELLOW;
ZZ:=IF(REF(C,1)>REF(O,1) AND O>REF(C,1)*1.014 AND C<O*1.02,1,3);
V5:=MA(V,5);
V12:=MA(V,12);
V34:=MA(V,34);
C6:=MA(C,6);
DRAWTEXT (VOL>MA(VOL,5)*2 AND V>V34*3 AND C<REF(C,1)*1.05,V,'天'),COLORWHITE;
DRAWTEXT (VOL<MA(VOL,5)/2 AND V<V12/2,(V5+V)/0.7,'地'),COLORWHITE;
DRAWTEXT (CROSS(C,C6) AND V>V5*1.2 AND V>V12*1.2 AND ZZ>2 AND C>H*0.975,V,'吸'),COLORWHITE;
DRAWTEXT (CROSS(C6,C) AND V>V5*1.2 AND V>V12*1.2,V,'出'),COLORWHITE;
VAR19:=(HIGH - LOW);
VAR13:=ABS((OPEN - CLOSE));
VAR14:=(HIGH - IF((CLOSE > OPEN),CLOSE,OPEN));
VAR15:=(IF((CLOSE > OPEN),OPEN,CLOSE) - LOW);
VAR16:=((VAR13 / VAR19) * VOL);
VAR17:=((VAR14 / VAR19) * VOL);
VAR18:=((VAR15 / VAR19) * VOL);
VARA:=(((CLOSE - MA(CLOSE,5)) / MA(CLOSE,5)) * 100);
高:DRAWTEXT(((((((((VAR17 > VAR16) AND (VARA > 2)) AND (VAR17 > VAR18)) AND (CLOSE > MA(CLOSE,5))) AND (CLOSE > MA(CLOSE,30))) AND (HIGH > MA(CLOSE,60))) AND (VOL > MA(VOL,5))) AND (VAR17 >= MA(VOL,5))),VOL,'高'),COLORGREEN;








回复

举报

QQ|

GMT+8, 2024-11-16 22:35

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