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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信操盘力道指标公式源码


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

X_1:=(CLOSE-LLV(LOW,24))/(HHV(HIGH,24)-LLV(LOW,24))*2000;
买卖力道:SMA(X_1,3,1),COLORLIGRAY;
X_2:=vol/((HIGH-LOW)*2-Abs(CLOSE-OPEN));
X_3:=IF(CLOSE>OPEN,X_2*(HIGH-LOW),IF(CLOSE<OPEN,X_2*(HIGH-OPEN+CLOSE-LOW),VOL/2))/(IF(CLOSE>OPEN,0-X_2*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-X_2*(HIGH-LOW),0-VOL/2))*(-1))-IF(CLOSE>OPEN,0-X_2*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-X_2*(HIGH-LOW),0-VOL/2))*(-1)/IF(CLOSE>OPEN,X_2*(HIGH-LOW),IF(CLOSE<OPEN,X_2*(HIGH-OPEN+CLOSE-LOW),VOL/2));
X_4:=AMOUNT/(100*VOL);
X_5:=MA(X_4,40);
X_6:=100*(CLOSE-X_5)/X_5;
X_7:=IF(X_3>0 AND X_6<(-12) AND CLOSE/OPEN>1.08,300,200);
STICKLINE(X_3>0 AND X_6<(-12) AND CLOSE/OPEN>1.08,1200,200,10,0),COLORGREEN;
X_8:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
X_9:=SMA(X_8,3,1);
X_10:=SMA(X_9,3,1);
D:SMA(X_10,5,1)*20,COLORCYAN;
X_11:=3*SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,5,1),3,1);
X_12:=EMA(X_11,3);
X_13:=(X_12-REF(X_12,1))/REF(X_12,1)*100;
BB:X_12<=13 AND X_13>13 AND FILTER(X_12<=13 AND X_13>13,10);
X_14:=X_12<=13 AND X_13>13;
X_15:=X_12>=90 AND X_13 AND FILTER(X_12>=90 AND X_13,10);
X_16:=FILTER(X_12>=90 AND X_13 AND crOSS(D,买卖力道),5);
卖出区:X_16+1800,COLORYELLOW;
中:(0+卖出区)/2,COLORGREEN;
STICKLINE(买卖力道>=中 AND 买卖力道>=REF(买卖力道,1),中,买卖力道+中/10,0,0),COLORMAGENTA;
STICKLINE(买卖力道>=中 AND 买卖力道<REF(买卖力道,1),中,买卖力道+中/10,0,0),COLORBROWN;
STICKLINE(买卖力道<中 AND 买卖力道>=REF(买卖力道,1),中,买卖力道-中/10,0,0),COLORGREEN;
STICKLINE(买卖力道<中 AND 买卖力道<REF(买卖力道,1),中,买卖力道-中/10,0,0),COLORBLUE;
DRAWICON(X_14,中,15);
DRAWTEXT(BB,0,48),COLORYELLOW;
DRAWTEXT(X_16,买卖力道,49),COLORYELLOW;
STICKLINE(X_16,买卖力道,买卖力道+0.01,2,0),COLORBLUE;
DRAWICON(CROSS(D,中),中,13);
DRAWICON(CROSS(中,买卖力道),买卖力道,2);
X_17:=EMA(CLOSE,13)-EMA(CLOSE,24);
X_18:=EMA(X_17,6);
X_19:=(X_17-X_18)*3;
X_20:=IF(X_19>=0 AND X_19>REF(X_19,1),中,DRAWNULL);
X_21:=IF(X_19>=0 AND X_19<REF(X_19,1),中,DRAWNULL);
X_22:=IF(X_19<0 AND X_19>=REF(X_19,1),中,DRAWNULL);
X_23:=IF(X_19<0 AND X_19<REF(X_19,1),中,DRAWNULL);
STICKLINE(X_20,200,250,1,0),COLORRED;
STICKLINE(X_21,200,250,1,0),COLORCYAN;
STICKLINE(X_22,200,250,1,0),COLORMAGENTA;
STICKLINE(X_23,200,250,1,0),COLORBLUE;





回复

举报

QQ|

GMT+8, 2024-11-17 00:31

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