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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信伏击潜力选股指标公式源码


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

A:=REF(HIGH,9)=HHV(HIGH,2*9+1);
B:=FILTER(A,9);
BU:=vol/REF(VOL,1)>=1.1;
VOP:=LLV(LOW,4)=LLV(LOW,85) AND CLOSE>=OPEN*1.04 AND CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;
DFV:=(CLOSE-LLV(LOW,37))/(HHV(HIGH,37)-LLV(LOW,37))*100;
VAR3:=(2*CLOSE+HIGH+LOW)/4;
VAR4:=LLV(LOW,34);
VAR5:=HHV(HIGH,34);
DIF:=EMA((VAR3-VAR4)/(VAR5-VAR4)*100,13);
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);
VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)< 1.01) AND (VAR3AA>0),91,0);
LBG:=C/REF(C,1)>1 AND C>1.98;
TPQG:=crOSS(FF,MA15) AND (FILTER((VAR4AA>90),45)) AND LBG,COLORYELLOW;
DIFF:=EMA(CLOSE,8)-EMA(CLOSE,13);
DEA:=EMA(DIFF,5);
RSV1:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
K:=SMA(RSV1,3,1);
D:=SMA(K,3,1);
LC:=REF(CLOSE,1);
rsi1:=(SMA(MAX(CLOSE-LC,0),5,1))/(SMA(Abs(CLOSE-LC),5,1))*100;
RSI2:=(SMA(MAX(CLOSE-LC,0),13,1))/(SMA(ABS(CLOSE-LC),13,1))*100;
RSV:=-(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13))*100;
Lwr1:=SMA(RSV,3,1);
LWR2:=SMA(LWR1,3,1);
bbi:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
mtm:=CLOSE-REF(CLOSE,1);
mms:=100*EMA(EMA(MTM,5),3)/EMA(EMA(ABS(MTM),5),3);
MMM:=100*EMA(EMA(MTM,13),8)/EMA(EMA(ABS(MTM),13),8);
MAV:=(C*2+H+L)/4;
SK:=EMA(MAV,13)-EMA(MAV,34);
SD:=EMA(SK,5);
空方主力:=(-2*(SK-SD))*3.8,COLORGREEN;
多方主力:=(2*(SK-SD))*3.8,COLORRED;
MA11:=MA(CLOSE,5);
MA22:=REF(MA(CLOSE,5),1);
GU2:=IF(MONTH< 12,1,1);
GU3:=(2*CLOSE+HIGH+LOW)/4;
GU4:=LLV(LOW,34);
GU5:=HHV(HIGH,34);
主力:=EMA((GU3-GU4)/(GU5-GU4)*100,13)*GU2;
散户:=EMA(0.667*REF(主力,1)+0.333*主力,2);
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA54:=MA(CLOSE,54);
HJ_8:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;
HJ_9:=FILTER(HJ_8,10);
HJ_10:=BARSLAST(HJ_9);
HJ_11:=REF(HIGH,HJ_10+2);
HJ_12:=REF(HIGH,HJ_10+1);
HJ_13:=REF(HIGH,HJ_10);
HJ_14:=MAX(HJ_11,HJ_12);
HJ_15:=MAX(HJ_14,HJ_13);
HJ_16:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>5;
HJ_17:=HJ_10< 150;
HJ_18:=(OPEN-HJ_15)/HJ_15*100< 30;
HJ_19:=(CLOSE-LLV(LOW,HJ_10))/LLV(LOW,HJ_10)*100< 50;
HJ_20:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100< 30;
HJ_21:=VOL/MA(VOL,5)< 3.5;
HJ_22:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100< 80;
HJ_25:=HJ_16 AND HJ_17 AND HJ_18 AND HJ_19 AND HJ_20 AND HJ_21 AND HJ_22;
暴利:=FILTER(HJ_25,15);
PL1:=(((CLOSE-MA54)/MA54)< 0.1);
PL2:=(((CLOSE-MA10)/MA10)< 0.3);
偏离率:=(((PL1=1) AND (PL2=1))*0.2);
平台突破:=((((偏离率=0) AND (REF(偏离率,1)=0.2)) AND (REF((COUNT((偏离率=0.2),10)=10),1)=1))*-0.1);
妖股突破:=平台突破=-0.1;
XDF:=(暴利 OR 妖股突破);
VARAA:=DYNAINFO(7)/(REF(CLOSE,1))>1.028 AND (DYNAINFO(7)/O>1.028);
FLIGA:=(VOL/REF(VOL,1)>1.2 AND COUNT(CLOSE>OPEN,1)) OR (LOW>REF(HIGH,1) AND COUNT(OPEN>CLOSE,1) AND VOL/REF(VOL,1)>1.2);
BYTP:=XDF AND C/REF(C,1)>1.095 AND FLIGA AND VARAA;
X_1:=MA(CLOSE,10);
X_2:=MA(CLOSE,55);
X_3:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;
X_4:=FILTER(X_3,10);
X_5:=BARSLAST(X_4);
X_6:=REF(HIGH,X_5+2);
X_7:=REF(HIGH,X_5+1);
X_8:=REF(HIGH,X_5);
X_9:=MAX(X_6,X_7);
X_10:=MAX(X_9,X_8);
X_11:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>5;
X_12:=X_5< 150;
X_13:=(OPEN-X_10)/X_10*100< 30;
X_14:=(CLOSE-LLV(LOW,X_5))/LLV(LOW,X_5)*100< 50;
X_15:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100< 30;
X_16:=VOL/MA(VOL,5)< 3.5;
X_17:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100< 80;
X_18:=X_11 AND X_12 AND X_13 AND X_14 AND X_15 AND X_16 AND X_17;
X_19:=FILTER(X_18,15);
X_20:=(CLOSE-X_2)/X_2< 0.1;
X_21:=(CLOSE-X_1)/X_1< 0.3;
X_22:=(X_20=1 AND X_21=1)*0.2;
X_23:=(X_22=0 AND REF(X_22,1)=0.2 AND REF(COUNT(X_22=0.2,10)=10,1)=1)*(-0.1);
X_24:=X_23=(-0.1);
X_25:=X_19 OR X_24;
X_26:=CLOSE/REF(CLOSE,1)>1.05 AND CLOSE/OPEN>1.05;
X_27:=VOL/REF(VOL,1)>1.2 AND CLOSE>OPEN OR (LOW>REF(HIGH,1) AND OPEN>CLOSE AND VOL/REF(VOL,1)>1.2);
X_28:=IF(CODELIKE(3) OR (CODELIKE(4)),CLOSE>=ZTPRICE(REF(CLOSE,1),0.2) AND CLOSE=HIGH,CLOSE>=ZTPRICE(REF(CLOSE,1),0.1) AND CLOSE=HIGH);
XO1:=EMA(CLOSE,8)-EMA(CLOSE,13);
XO2:=EMA(XO1,5);
XO5:=(XO1>XO2);
XO7:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
XO8:=SMA(XO7,3,1);
XO9:=SMA(XO8,3,1);
XO10:=(XO8>XO9);
XO12:=REF(CLOSE,1);
XO13:=SMA(MAX(CLOSE-XO12,0),5,1)/SMA(ABS(CLOSE-XO12),5,1)*100;
XO14:=SMA(MAX(CLOSE-XO12,0),13,1)/SMA(ABS(CLOSE-XO12),13,1)*100;
XO15:=(XO13>XO14);
XO17:=(-(HHV(HIGH,13)-CLOSE))/(HHV(HIGH,13)-LLV(LOW,13))*100;
XO18:=SMA(XO17,3,1);
XO19:=SMA(XO18,3,1);
XO20:=XO18>XO19;
XO22:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
XO23:=CLOSE>XO22;
XO26:=CLOSE-REF(CLOSE,1);
XO27:=100*EMA(EMA(XO26,5),3)/EMA(EMA(ABS(XO26),5),3);
XO28:=100*EMA(EMA(XO26,13),8)/EMA(EMA(ABS(XO26),13),8);
XO29:=XO27>XO28;
OPUH:=IF(XO5 AND XO10 AND XO15 AND XO20 AND XO23 AND XO29 AND REF(XO5 AND XO10 AND XO15 AND XO20 AND XO23 AND XO29,1)=0,6,0);
PBR:=(多方主力>空方主力) AND (MA22<=MA11) AND (主力>散户) AND (OPUH>DEA) AND (K>D) AND (RSI1>RSI2) AND (LWR1>LWR2) AND (CLOSE>BBI) AND (MMS>MMM);
XG:(X_25 AND X_26 AND X_27 AND X_28 AND REF(NOT(X_28),1) AND BU AND TPQG AND DFV>88 AND DIF< 55) OR ((X_28 AND OPUH=6) AND REF(PBR,2)=0 AND REF(PBR,1)=0 AND PBR AND BYTP);





回复

举报

QQ|

GMT+8, 2024-11-24 04:40

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