您的位置:查股网 > 查股公式 > 通达信过河潜伏T主图指标公式源码[查股公式]
股票行情消息查询:

通达信过河潜伏T主图指标公式源码[查股公式]

2023/3/16 19:28:05

量能倍数:=2;
N天内现神奇B点:=10;
河面窄幅:=5;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.01,0,HYBLOCK),COLOR0000FF;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.07,0,DYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.13,0,GNBLOCK),COLORFF00FF;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.2,0,FGBLOCK),COLOR0080FF;
DRAWBAND(MA(CLOSE,58),RGB(68,0,0),MA(CLOSE,118),RGB(0,91,0));
DRAWKLINE(H,O,L,C);
MA5:MA(CLOSE,5),COLORWHITE;
MA15:MA(CLOSE,15),COLOR00FFFF;
MAL:MA(CLOSE,58),COLORGREEN;
MAH:MA(CLOSE,118),COLOR004080;
MAM:=MA(CLOSE,200),COLORBLUE;
A:=MAX(MAL,MAH);
D:=MIN(MAL,MAH);
B:=CROSS(C,A) AND C/REF(C,1)>=(1+0.01*2);
MAK:MA(CLOSE,450),COLORFF00FF;
MAQ:MA(CLOSE,550),COLOR0080FF;
神奇线:=MAX(MAK,MAQ);
I:=CROSS(C,神奇线) AND C/REF(C,1)>=(1+0.01*2); {站上神奇均线,涨幅大于2%}
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,20)*20+C,55);
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
牛线:=(16*MID+15*REF(MID,1)+
14*REF(MID,2)+13*REF(MID,3)+12*REF(MID,4)+11*REF(MID,5)+10*REF(MID,6)+9*REF(MID,7)+
8*REF(MID,8)+7*REF(MID,9)+6*REF(MID,10)+5*REF(MID,11)+4*REF(MID,12)+3*REF(MID,13)+
2*REF(MID,14)+REF(MID,15))/135;
马线:=EMA(牛线,5);
水平面:=MA(CLOSE,31);
E:=买线>=卖线 AND C>水平面 AND 牛线>=马线;{添加的附加条件,可选项}
F:=BARSCOUNT(C)+1;
LD:=IF(BARSCOUNT(C)>=10,10,BARSCOUNT(C));
G:=REF(F,5)<=F*1.0025 AND REF(神奇线,5)<=神奇线*1.01 AND 100*(A-D)/D<=河面窄幅
AND B AND E AND MAH>=MAL{最好要求绿色线即58日线在下};
J:=G AND EXIST(I,N天内现神奇B点) AND 100*(C-REF(C,1))/REF(C,1)>=4{涨幅}
AND C>=MA(C,LD){位于黄带区域};
DRAWTEXT(G,L*0.96,'★'),COLOR00FFFF;
DRAWTEXT(G,L*0.945,'潜伏A'),COLORMAGENTA;
STICKLINE(G,H,L,0.1,0),COLORFF8000;
STICKLINE(G,O,C,3,1),LINETHICK2,COLORFF8000;
STICKLINE(J,H,L,0.1,0.1),COLORFF00FF;
STICKLINE(J,C,O,3,0),COLORFF00FF;
A1L:=MA(VOL,5);
A2L:=REF(A1L,1);
K1:=C/A<=1.05 OR O/A<=1.05 OR CROSS(C,A);
T1L:=REF(C,2)<REF(O,2);{二连阴}
T2L:=REF(C,1)<REF(O,1) AND REF(V,1)<REF(A1L,1);
T3L:=C>O AND C>REF(C,1);{今天上涨收阳}
T4L:=(C-REF(C,1))/REF(C,1)*100>=2;
K1L:=COUNT(REF(C,3)>REF(C,4),13)>=8;
XG1:=T1L AND T2L AND T3L AND T4L AND VOL/A2L>量能倍数 AND K1L AND C>=A AND K1;
M1A:=REF(C,3)<REF(O,3);{三连阴}
T1A:=REF(C,2)<REF(O,2);
T2A:=REF(C,1)<REF(O,1) AND REF(V,1)<REF(A1L,1);
T3A:=C>O AND C>REF(C,1);{今天上涨收阳}
T4A:=(C-REF(C,1))/REF(C,1)*100>=2;
K1A:=COUNT(REF(C,4)>REF(C,5),14)>=8;
XG2:=M1A AND T1A AND T2A AND T3A AND T4A AND VOL/A2L>量能倍数 AND K1A AND C>=A AND K1;
M2B:=REF(C,4)<REF(O,4);{四连阴}
M1B:=REF(C,3)<REF(O,3);
T1B:=REF(C,2)<REF(O,2) AND REF(V,2)<REF(A1L,2);
T2B:=REF(C,1)<REF(O,1) AND REF(V,1)<REF(A1L,1);
T3B:=C>O AND C>REF(C,1);{今天上涨收阳}
T4B:=(C-REF(C,1))/REF(C,1)*100>=2;
K1B:=COUNT(REF(C,5)>REF(C,6),15)>=10;
XG3:=M1B AND M2B AND T1B AND T2B AND T3B AND T4B AND VOL/A2L>量能倍数 AND K1B AND C>=A AND K1;
M3C:=REF(C,5)<REF(O,5);{五连阴}
M2C:=REF(C,4)<REF(O,4);
M1C:=REF(C,3)<REF(O,3);
T1C:=REF(C,2)<REF(O,2) AND REF(V,2)<REF(A1L,2);
T2C:=REF(C,1)<REF(O,1) AND REF(V,1)<REF(A1L,1);
T3C:=C>O AND C>REF(C,1);{今天上涨收阳}
T4C:=(C-REF(C,1))/REF(C,1)*100>=2;
K1C:=COUNT(REF(C,6)>REF(C,7),16)>=10;
XG4:=M1C AND M2C AND M3C AND T1C AND T2C AND T3C AND T4C AND VOL/A2L>量能倍数 AND K1C AND C>=A AND K1;
XGK:=XG1 OR XG2 OR XG3 OR XG4;
DRAWTEXT(XGK,L*0.93,'★金坑'),COLOR0000FF;
STICKLINE(XGK,LOW,HIGH,0.0,1),COLOR00FFFF;
STICKLINE(XGK,CLOSE,OPEN,3,0),COLOR00FFFF;
X_1:=MA((-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19);
X_2:=(-100)*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
X_3:=EMA((-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4);
X_4:=X_2+100;
X_5:=IF(CLOSE>REF(CLOSE,1),VOL,0);
X_6:=IF(CLOSE<REF(CLOSE,1),VOL,0);
X_7:=SUM(X_5,13);
X_8:=SUM(X_6,13);
X_9:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
X_10:=MA(X_9,2);
X_11:=X_4<10 OR REF(X_4,1)<10 OR REF(X_4,2)<10 OR REF(X_4,3)<10;
X_12:=X_4<10 OR REF(X_4,1)<10 OR REF(X_4,2)<10 OR REF(X_4,3)<10 AND (X_10<10 OR REF(X_10,1)<10 OR REF(X_10,2)<10 OR REF(X_10,3)<10);
X_13:=(CLOSE+LOW+HIGH)/1.5;
X_14:=EMA(X_13,3);
X_15:=EMA(X_14,2.5);
H1:=EMA(CLOSE,8),COLORWHITE;
H2:=EMA(H1,20),COLORYELLOW;
X_16:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;
X_17:=SMA(X_16,5,1);
X_18:=SMA(X_17,8,1);
X_19:=CROSS(X_17,X_18) AND X_18<20;
X_20:=CLOSE>LLV(CLOSE,60)*1.13 AND X_19;
X_21:=IF(CLOSE>200,X_19,X_20);
AZ1:=C>REF(C,4);
NT:=BARSLASTCOUNT(AZ1);
TJ11:=NT=9;
TJ13:=ISLASTBAR AND BETWEEN(NT,5,8);
AY:=(BACKSET(TJ11>0,9) OR BACKSET(TJ13>0,NT))*NT;
DRAWTEXT(AY>0,H*1.002,VAR2STR(AY,0)),COLORFF00FF;
DRAWTEXT(NT=9,H*1.002,'9'),COLORGREEN;
BZ1:=C<REF(C,4);
NT0:=BARSLASTCOUNT(BZ1);
TJ21:=NT0=9 ;
TJ23:=ISLASTBAR AND BETWEEN(NT0,5,8);
AY1:=(BACKSET(TJ21>0,9) OR BACKSET(TJ23>0,NT0))*NT0;
DRAWTEXT(AY1>0,L*0.998,VAR2STR(AY1,0)),COLORFF00FF;
DRAWTEXT(NT0=9,L*0.998,'9'),COLORGREEN;
MA3:MA(C,60),LINETHICK2,COLORFF00FF;
N1:=3;N2:=5;N3:=8;N4:=13;
RSV:=-(HHV(HIGH,N4)-CLOSE)/(HHV(HIGH,N4)-LLV(LOW,N4))*100;
LWR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A7:=DDX1>DDX2;
Z7:=DDX1<DDX2;
量:=V;
换手:=V/CAPITAL*100;
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买盘1:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
卖盘1:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2));
DLX:=(买盘1-(-卖盘1))/量*换手;
DLX1:=SUM(DLX,6);
DLX2:=MA(DLX1,5);
A8:=DLX1>DLX2;
Z8:=DLX1<DLX2;
VARR1:=(2*CLOSE+HIGH+LOW)/4;
VARR2:=EMA(EMA(EMA(VARR1,4),4),4);
JE:=(VARR2-REF(VARR2,1))/REF(VARR2,1)*100;
DD:=MA(JE,3);
KK:=MA(JE,1);
A9:=KK>DD;
Z9:=KK<DD;
MTR:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),14);
HD :=HIGH-REF(HIGH,1);
LDK :=REF(LOW,1)-LOW;
DMP:=SUM(IF(HD>0&&HD>LDK,HD,0),14);
DMM:=SUM(IF(LDK>0&&LDK>HD,LDK,0),14);
PDI:=DMP*100/MTR;
MDI:=DMM*100/MTR;
A10:=PDI>MDI;
Z10:=PDI<MDI;
T:=(A1 AND A2 AND A3 AND A4 AND A5 AND A6 AND A7 AND A8 AND A9 AND A10);
T1:=T AND REF(T,1)=0;
TT:=Z1 AND Z2 AND Z3 AND Z4 AND Z5 AND Z6 AND Z7 AND Z8 AND Z9 AND Z10;
TT1:=TT AND REF(TT,1)=0;
十指红柱:=IF(T1,10.4,DRAWNULL);
K1K:=IF(CLOSE>=REF(CLOSE,1),HIGH-OPEN+CLOSE-LOW+CLOSE-REF(CLOSE,1),HIGH-OPEN+CLOSE-LOW);
K2K:=IF(CLOSE<=REF(CLOSE,1),OPEN-LOW+HIGH-CLOSE+REF(CLOSE,1)-CLOSE,OPEN-LOW+HIGH-CLOSE);
DT:=VOL*K1K/(K1K+K2K);
KT:=VOL-DT;
买量:=SUM(DT,1);
卖量:=SUM(KT,1);
DDXX:=EMA(买量-卖量,5)*VOL/CAPITAL*100;
DDXX1:=SMA(DDXX,3,1);
DDXX2:=SMA(DDXX1,3,1);
DDXX3:=EMA(DDXX2,5);
大单净量:=DDXX>0 AND MA(V,5)>MA(MA(V,5),5) AND CROSS(DDXX1,DDXX2);
DIFFX:=( EMA(CLOSE,12) - EMA(CLOSE,26))*100;
DEAX:=EMA(DIFFX,9);
MACD:=2*(DIFFX-DEAX);
绿柱消失买入:=STICKLINE(DIFFX<0,0,DIFFX,2,0);
红柱消失卖出:=STICKLINE(DIFFX>=0,0,DIFFX,2,0);
顺势红柱:=IF(DIFFX>DEAX,DIFFX,DRAWNULL);
VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
OBV:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
MAOBV:=MA(OBV,30);
KM:=OBV>MAOBV;
TTA1:=顺势红柱 AND 十指红柱 AND KM;
TTA2:=顺势红柱 AND 大单净量 AND 十指红柱 AND KM;
{STICKLINE(TTA1,H,L,0.1,0),COLORYELLOW;
STICKLINE(TTA1,O,C,3,1),LINETHICK2,COLORYELLOW;
DRAWTEXT(TTA1 OR TTA2,L*0.97,' 共振'),COLORRED;
DRAWICON(TTA1 OR TTA2,L*0.99,11);
STICKLINE(TTA2,O,C,1,0),COLORYELLOW;
STICKLINE(TTA2,O,C,1.2,0),COLORYELLOW;}
X_1S:=POW(10,6)+241230-DATE;
X_2S:=IF(X_1S>0,1,0);
X_3S:=IF(X_1S>0,1,0);
X_4S:=HHV(CLOSE,10);
起爆线:EMA(X_4S,30),COLORMAGENTA,LINETHICK2;
IF(起爆线<=REF(起爆线,1),起爆线,DRAWNULL),COLORCYAN,LINETHICK2;
X_5S:=EMA(X_4S,120);
X_6S:=MA(CLOSE*VOL,20);
X_7S:=MA(CLOSE*VOL,60);
X_8S:=1000*(X_6S-REF(X_6S,1))/REF(X_6S,1)*2;
X_9S:=1000*(X_7S-REF(X_7S,1))/REF(X_7S,1)*2;
X_10S:=(X_8S-X_9S)*VOL*CLOSE/MA(REF(VOL*CLOSE,1),5);
X_11S:=LLV(LOW,200);
X_12S:=EMA((CLOSE-X_11S)/X_11S,30)*100+200;
X_13S:=FILTER(CLOSE>=REF(CLOSE,1)*1.05 AND X_10S>=X_12S/2 AND CLOSE>=OPEN AND (CROSS(CLOSE,起爆线) OR (CLOSE>起爆线 AND REF(LOW,1)<起爆线)),20);
X_14S:=SUMBARS(X_13S,1)*X_2S;
STICKLINE(X_13S,CLOSE,OPEN,2,0),COLORYELLOW;
STICKLINE(X_14S,REF(CLOSE,X_14S-1),REF(CLOSE,X_14S-1),2,0),COLORYELLOW;
STICKLINE(X_14S,REF(CLOSE,X_14S+1),REF(CLOSE,X_14S+1),2,0),COLORCYAN;
STICKLINE(X_13S,LOW-0.46,LOW-0.65,3.8,0),COLORCYAN;
STICKLINE(X_13S,LOW-0.44,LOW-0.65,3.6,0),COLORCYAN;
STICKLINE(X_13S,LOW-0.42,LOW-0.65,3.4,0),COLORCYAN;
STICKLINE(X_13S,LOW-0.4,LOW-0.65,3.2,0),COLOR444444;
STICKLINE(X_13S,LOW-0.38,LOW-0.65,3,0),COLOR555555;
STICKLINE(X_13S,LOW-0.36,LOW-0.65,2.8,0),COLOR666666;
STICKLINE(X_13S,LOW-0.34,LOW-0.65,2.6,0),COLOR777777;
STICKLINE(X_13S,LOW-0.32,LOW-0.65,2.4,0),COLOR888888;
STICKLINE(X_13S,LOW-0.3,LOW-0.65,2.2,0),COLOR999999;
STICKLINE(X_13S,LOW-0.28,LOW-0.55,2,0),COLOR003300;
STICKLINE(X_13S,LOW-0.26,LOW-0.55,1.8,0),COLOR004400;
STICKLINE(X_13S,LOW-0.24,LOW-0.55,1.6,0),COLOR005500;
STICKLINE(X_13S,LOW-0.22,LOW-0.55,1.4,0),COLOR006600;
STICKLINE(X_13S,LOW-0.2,LOW-0.55,1.2,0),COLOR007700;
STICKLINE(X_13S,LOW-0.18,LOW-0.55,1,0),COLOR008800;
STICKLINE(X_13S,LOW-0.16,LOW-0.55,0.8,0),COLOR009900;
STICKLINE(X_13S,LOW-0.14,LOW-0.55,0.6,0),COLOR00BB00;
STICKLINE(X_13S,LOW-0.12,LOW-0.55,0.4,0),COLOR00DD00;
STICKLINE(X_13S,LOW-0.1,LOW-0.55,0.2,0),COLORRED;
STICKLINE(X_13S,LOW-0.48,LOW-0.3,2,0),COLORCYAN;
STICKLINE(X_13S,LOW-0.48,LOW-0.3,1.8,0),COLORCYAN;
STICKLINE(X_13S,LOW-0.48,LOW-0.3,1.6,0),COLOR000055;
STICKLINE(X_13S,LOW-0.48,LOW-0.3,1.4,0),COLOR000066;
STICKLINE(X_13S,LOW-0.48,LOW-0.3,1.2,0),COLOR000077;
STICKLINE(X_13S,LOW-0.48,LOW-0.3,1,0),COLOR000088;
STICKLINE(X_13S,LOW-0.48,LOW-0.3,0.8,0),COLOR000099;
STICKLINE(X_13S,LOW-0.48,LOW-0.3,0.6,0),COLOR0000AA;
STICKLINE(X_13S,LOW-0.48,LOW-0.3,0.4,0),COLOR0000CC;
STICKLINE(X_13S,LOW-0.48,LOW-0.3,0.2,0),COLOR0000EE;
STICKLINE(X_13S,LOW-0.38,LOW-0.3,2,0),COLOR005566;
STICKLINE(X_13S,LOW-0.38,LOW-0.3,1.8,0),COLOR006677;
STICKLINE(X_13S,LOW-0.38,LOW-0.3,1.6,0),COLOR007788;
STICKLINE(X_13S,LOW-0.38,LOW-0.3,1.4,0),COLOR008899;
STICKLINE(X_13S,LOW-0.38,LOW-0.3,1.2,0),COLOR0099AA;
STICKLINE(X_13S,LOW-0.38,LOW-0.3,1,0),COLOR00AABB;
STICKLINE(X_13S,LOW-0.38,LOW-0.3,0.8,0),COLOR00BBCC;
STICKLINE(X_13S,LOW-0.38,LOW-0.3,0.6,0),COLOR00CCDD;
STICKLINE(X_13S,LOW-0.38,LOW-0.3,0.4,0),COLOR00DDEE;
STICKLINE(X_13S,LOW-0.38,LOW-0.3,0.2,0),COLOR00EEFF;
STICKLINE(X_13S,LOW-0.68,LOW-0.75,4,0),COLOR111188;
STICKLINE(X_13S,LOW-0.66,LOW-0.74,3.6,0),COLOR332299;
STICKLINE(X_13S,LOW-0.64,LOW-0.73,3.2,0),COLOR5533AA;
STICKLINE(X_13S,LOW-0.62,LOW-0.72,2.8,0),COLOR8844BB;
STICKLINE(X_13S,LOW-0.6,LOW-0.71,2.4,0),COLORAA55CC;
STICKLINE(X_13S,LOW-0.58,LOW-0.7,2,0),COLORCC66DD;
STICKLINE(X_13S,LOW-0.56,LOW-0.69,1.6,0),COLORYELLOW;
STICKLINE(X_13S,LOW-0.54,LOW-0.68,1.2,0),COLORYELLOW;
MM1:=TTA1 OR TTA2;
STICKLINE(TTA1 AND X_13S,H,L,0.1,0),COLORYELLOW;
STICKLINE(TTA1 AND X_13S,O,C,3,1),LINETHICK2,COLORYELLOW;
DRAWTEXT(MM1 AND X_13S,L*0.97,' 共振'),COLORRED;
DRAWICON(MM1 AND X_13S,L*0.99,11);

相关文章列表
天天查股公式列表

股票公式分类

天天查股:股票行情消息 实时DDX在线 资金流向 千股千评 业绩报告 十大股东 最新消息 超赢数据 大小非解禁 停牌复牌 股票分红查询 股票评级报告
广告客服:315126368   843010021
天天查股网免费查股,本站内容与数据仅供参考,不构成投资建议,据此操作,风险自担,股市有风险,投资需谨慎。 沪ICP备15043930号-29