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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信上涨筹码积累指标公式源码


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

DRAWGBK(OPEN>CLOSE,RGB(57,35,146),RGB(0,0,0),0,125,0);
X_1:=(HIGH+LOW+CLOSE)/3;
X_2:=AMOUNT/IF(HIGH=LOW,4,HIGH-LOW);
X_3:=Abs(X_2*(X_1-MIN(CLOSE,OPEN)));
X_4:=X_2*(MIN(OPEN,CLOSE)-LOW);
X_5:=X_2*(HIGH-MAX(OPEN,CLOSE));
X_6:=ABS(X_2*(MAX(CLOSE,OPEN)-X_1));
X_7:=X_3-X_4;
X_8:=X_5-X_6;
X_9:=EMA(HHV(X_3,30),1);
X_10:=AMOUNT=LLV(AMOUNT,5);
X_11:=AMOUNT=LLV(AMOUNT,10);
X_12:=AMOUNT=LLV(AMOUNT,20);
X_13:=crOSS(ZIG(3,5),REF(ZIG(3,5),1));
X_14:=CROSS(REF(ZIG(3,5),1),ZIG(3,5));
STICKLINE(X_13>=X_14 AND ZIG(3,5)>REF(ZIG(3,5),1),0,X_9,5,0),COLOR004500;
STICKLINE(X_13<X_14 OR ZIG(3,5)<REF(ZIG(3,5),1),0,X_9,5,0),COLORGRAY;
STICKLINE(CLOSE>MA(CLOSE,30),0,vol,3,1),COLORRED;
STICKLINE(CLOSE<MA(CLOSE,30),0,VOL,3,1),COLORFF937F;
CONST(REF(X_10,0)),COLORYELLOW,LINETHICK2;
CONST(REF(X_11,0)),COLORBLUE,LINETHICK2;
CONST(REF(X_12,0)),COLORMAGENTA,LINETHICK2;
成交额:AMOUNT,NODRAW;
STICKLINE(成交额,成交额,0,2.5,1),COLORGRAY;
STICKLINE(X_7>=0,0,X_7,2,0),COLORRED;
STICKLINE(X_7<0,0,X_7,2,0),COLORLIBLUE;
今天资金进出:X_3+X_5-(X_4+X_6),COLORWHITE,LINETHICK0;
STICKLINE(X_5-X_6>0 AND X_7>0,X_5-X_6+X_7,X_7,2,0),COLORLIRED;
STICKLINE(X_5-X_6>0 AND X_7<0,X_5-X_6,0,2,0),COLORLIRED;
STICKLINE(X_5-X_6<0 AND X_7<0,X_5-X_6+X_7,X_7,2,0),COLORLIGRAY;
STICKLINE(X_5-X_6<0 AND X_7>0,X_5-X_6,0,2,0),COLORLIGRAY;
STICKLINE(今天资金进出>0,今天资金进出*1.003,今天资金进出,2.5,0),COLORYELLOW;
STICKLINE(今天资金进出<0,今天资金进出*0.98,今天资金进出,2.5,0),COLORBLUE;
X_15:=VOL*100/CAPITAL;
X_16:=MA(X_15,4);
X_17:=MA(X_15,9);
X_18:=MA(X_15,17);
X_19:=MA(X_15,34);
X_20:=(X_16+X_17+X_18+X_19)/4;
主力能量:1000*(X_16-X_20),NODRAW,COLORMAGENTA;
X_21:=X_17-X_20;
X_22:=X_18-X_20;
X_23:=X_19-X_20;
X_24:=REFDATE(HHV(X_23,108),DATE)*1.02-REFDATE(LLV(X_22,108),DATE);
X_25:=(X_24+REFDATE(HHV(X_22,108),DATE))*1.02-REFDATE(LLV(X_21,108),DATE);
X_26:=(X_25+REFDATE(HHV(X_21,108),DATE))*1.02-REFDATE(LLV(主力能量,108),DATE);
机构操盘:STICKLINE(主力能量>=0 AND 主力能量>=REF(主力能量,1),1.5*X_9,1.8*X_9+X_26*5+主力能量*2,0.5,0),COLORYELLOW;
机构减仓:STICKLINE(主力能量>=0 AND 主力能量<REF(主力能量,1),1.5*X_9,1.8*X_9+X_26*5+主力能量*2,0.5,1),COLORRED;
机构反弹:STICKLINE(主力能量<0 AND 主力能量>=REF(主力能量,1),1.5*X_9,1.8*X_9-X_26*5-主力能量*5,0.5,1),COLORGREEN;
机构寻底:STICKLINE(主力能量<0 AND 主力能量<REF(主力能量,1),1.5*X_9,1.8*X_9-X_26*5-主力能量*5,0.5,1),COLORGREEN;
{DRAWTEXT(ISLASTBAR=1,IF(主力能量>=0,1.5*X_9,1.5*X_9),'126'),COLORMAGENTA;}
X_27:=LLV(VOL,30);
X_28:=LLV(VOL,120);
X_29:=HHV(VOL,60);
X_30:=HHV(VOL,250);
量能饱和:AMOUNT/CLOSE/HHV(AMOUNT/CLOSE,26)*100,NODRAW,COLORLIBLUE;
十日换手:SUM(VOL/CAPITAL*100,10),COLORGRAY;
X_31:=REF(CLOSE,1);
X_32:=(OPEN-CLOSE)/X_31;
X_33:=HHV(CLOSE,20);
X_34:=(X_33-OPEN)/X_33;
X_35:=IF(X_32>0.05 AND X_34<0.05 AND VOL>2.2*MA(CLOSE,60),1,0);
X_36:=COUNT(VOL=X_28,7);
STICKLINE(VOL=X_27,VOL,0,(-2),0),COLORMAGENTA;
STICKLINE(VOL=X_28,VOL,0,(-1),0),COLORBLUE;
STICKLINE(VOL=X_29,0,VOL,(-1),0),COLORLIRED;
STICKLINE(VOL=X_30,0,VOL,(-1),0),COLORYELLOW;
STICKLINE(X_35,VOL,VOL*0.4,(-1),0),COLORGREEN;
STICKLINE(X_36>0 AND CROSS(CLOSE,MA(CLOSE,6)),VOL,0,(-1),0),COLORRED;
X_37:=(20*HIGH+19*REF(HIGH,1)+18*REF(HIGH,2)+17*REF(HIGH,3)+16*REF(HIGH,4)+15*REF(HIGH,5)+14*REF(HIGH,6)+13*REF(HIGH,7)+12*REF(HIGH,8)+11*REF(HIGH,9)+10*REF(HIGH,10)+9*REF(HIGH,11)+8*REF(HIGH,12)+7*REF(HIGH,13)+6*REF(HIGH,14)+5*REF(HIGH,15)+4*REF(HIGH,16)+3*REF(HIGH,17)+2*REF(HIGH,18)+REF(HIGH,20))/210;
X_38:=12000*VOL/X_37;
X_39:=12000*ACTINVOL/X_37;
X_40:=12000*ACTOUTVOL/X_37;
X_41:=X_39-X_40;
X_42:=MA(X_41,5);
X_43:=MA(X_41,13);
X_44:=MA(X_41,30);
X_45:=MA(X_41,100);
X_46:=LARGETRDINNUM;
X_47:=LARGETRDOUTNUM;
X_48:=BIDORDERVOL;
X_49:=OFFERORDERVOL;
X_50:=AVGOFFERPX;
X_51:=ISBUYORDER;
X_52:=DYNAINFO(51);
X_53:=DYNAINFO(60);
X_54:=DYNAINFO(61);
DRAWTEXT_FIX(1,0,0.01,0,STRCAT(127,VAR2STR(X_46,0))),COLORYELLOW;
DRAWTEXT_FIX(1,0.25,0.01,0,STRCAT(128,VAR2STR(X_47,0))),COLORYELLOW;
DRAWTEXT_FIX(1,0.55,0.01,0,STRCAT(129,VAR2STR(X_53,0))),COLORYELLOW;
{DRAWTEXT_FIX(1,0,0.1,0,'130'),COLORCYAN;}
DRAWNUMBER_FIX(1,0.12,0.1,0,X_50),COLORMAGENTA;
DRAWTEXT_FIX(1,0.25,0.1,0,STRCAT(131,VAR2STR(X_51,0))),COLORCYAN;
DRAWTEXT_FIX(1,0.55,0.1,0,STRCAT(132,VAR2STR(X_54,0))),COLORCYAN;
{DRAWTEXT_FIX(1,0,0.2,0,'133'),COLORGREEN;}
DRAWNUMBER_FIX(1,0.08,0.2,0,X_52),COLORMAGENTA;
正成交量:EMA(IF((CLOSE+HIGH)/2>OPEN,AMOUNT,0),5)*1.5,COLORRED;
负成交量:EMA(IF((CLOSE+LOW)/2<OPEN,AMOUNT,0),5)*1.3,COLORLIBLUE;
IF(正成交量<=REF(正成交量,1),正成交量,DRAWNULL),COLORYELLOW;
X_55:=VOL/CAPITAL;
X_56:=(X_55-REF(X_55,5))/REF(X_55,5);
X_57:=(CLOSE-REF(CLOSE,5))/REF(CLOSE,5);
AA4:MA(X_56,10);
AA5:MA(X_57,10)*200,COLORSTICK;
X_58:=MA(AA5,3);
AA7:MA(AA5,5);
X_59:=CROSS(AA5,AA7);
X_60:=X_59 AND AA5<AA4;
STICKLINE(X_60>0,0,成交额/2,0.1,0),COLORWHITE;
X_61:=SUM(成交额,120)/120;
X_62:=CONST(REF(HHV(SUM(成交额,120)/120,120),239));
X_63:=CONST(REF(HHV(X_61,30),0));
今均量最大值:IF(CURRBARSCOUNT<=120,X_63,DRAWNULL),COLORYELLOW;
最值比:今均量最大值/X_62,NODRAW,COLOR0080FF;
X_64:=LLV(VOL,10);
地量选:DRAWICON(EMA(VOL,5)<EMA(VOL,35) AND VOL=X_64,VOL*1.1,29);





回复

举报

QQ|

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

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