通达信转债分时主图指标公式

MZ0:=(BARSLAST(((HOUR=9) AND (MINUTE=31)))+1);
上穿:IF(((SETCODE<2) AND (CONST(MZ0)<241)),CONST(IF((TIME<1000),HHV(CLOSE,0),SUM((IF((TIME=1000),1,0)*HHV(CLOSE,0)),0))),DRAWNULL),LINETHICK1,COLORLIBLUE,POINTDOT;
底支:IF(((SETCODE<2) AND (CONST(MZ0)<241)),CONST(IF((TIME<1000),HHV(CLOSE,0),SUM((IF((TIME=1000),1,0)*LLV(CLOSE,0)),0))),DRAWNULL),LINETHICK1,COLORBROWN,POINTDOT;
{全现价}
MA30:=EMA(CLOSE,3);
强弱:=EMA(CLOSE,618);
STICKLINE((MA30>强弱),MA30,强弱,1,0),COLOR000099;
STICKLINE((MA30<强弱),MA30,强弱,1,0),COLOR017700;
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
阻力:L1+P1*7/8,COLORGREEN;
支撑:L1+P1*0.75/8,COLORRED;
中:(支撑+阻力)/2,COLORLIGRAY,DOTLINE;
obv01:= (expma(CLOSE,500)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1)*100, COLORSTICK;
DRAWICON(crOSS(EXPMA(OBV01,120)-0.0004,EXPMA(OBV01,200)),中,13);
分时高:REF(HHV(HIGH,240),1),DOTLINE,COLORLIGRAY;
分时低:=REF(LLV(LOW,240),1),DOTLINE,COLORLIGRAY;
现价:C,COLORWHITE,LINETHICK2;
STICKLINE({TIME=931 OR }TIME=1000 OR TIME=1030 OR TIME=1301 OR{ TIME=1400 OR }TIME=1431,阻力,支撑,0,-1),COLORLIGRAY;
分时上突:=CROSS(C,上穿);
上突:=C<上穿 AND 上穿>底支;
买点:(L1+P1*2/9),COLORLIRED;
均价线:SUM(C*V,240)/SUM(V,240),COLORYELLOW,LINETHICK1;
昨日收盘价:DYNAINFO(3),COLORWHITE;
顶:= (L1+P1*8.5/9),COLORLIBLUE;
底:L1+P1*0.15/8,COLORRED;
加强:(H1+L1+昨日收盘价*2)/4,COLORMAGENTA,LINETHICK1;
超准:=EMA(C,28);
超级趋势线:IF(MA(C,2)>=超准,超准,DRAWNULL),COLORRED,LINETHICK1;
超准趋势线:IF(MA(C,2)<超准,超准,DRAWNULL),COLORGREEN,LINETHICK1;
TT1:=BARSCOUNT(C);
均价黄:=SUM(C*V,TT1)/SUM(V,TT1);
量两步:=MA(V,5)>REF(MA(V,5),1) AND REF(MA(V,5),1)>REF(MA(V,5),2);
价两步:= C>=REF(C,1) AND REF(C,1)>REF(C,2);
价上岗量破5:=C>均价黄 AND V>MA(V,5);
量起爆:=V>=REF(V,1)*1;
价创新高:=C>=HHV(C,0);
量创新高:=V>=HHV(V,0);
对昨日涨幅:=(C/DYNAINFO(3)-1)*100<=2.50;{涨幅控制2个点以内}
每日一点:=量两步 AND 价两步 AND 价上岗量破5 AND 量起爆 AND 价创新高 AND 量创新高 AND 对昨日涨幅;
VV:=BARSSINCE(每日一点)+1;
首次起爆价:=REF(C,VV-1),NODRAW;
起爆收益:=(DYNAINFO(7)-首次起爆价)/首次起爆价*100,NODRAW;
起爆时间:=REF(TIME/10000,VV),NODRAW;
已爆分钟:=VV-1,NODRAW;
STICKLINE(每日一点,买点,底,1,0),COLORMAGENTA;
DRAWTEXT(每日一点,C,'*'),COLORMAGENTA;
DRAWTEXT(每日一点,顶,'▼'),COLORMAGENTA;
{牛熊线}
NX:=MA(((SLOPE(C,20)*5)+C),10);
DIF1:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA1:=EMA(DIF1,9);
macd10:=(DIF1-DEA1)*2;
{捉牛信号}
AA0:=MACD10>00 AND DIF1>0 AND DEA1>0;
A100:=HOUR=10 AND MINUTE=0;
A20:=HHV(H,30);
A30:=BARSLAST(A100);
A40:=REF(A20,A30);
A50:=CONST(A40);
A80:=CLOSE>A50 AND REF(C<=A50,1) AND CLOSE>NX;
AB:=FILTER(A80,100);
A90:=DYNAINFO(3);
AC:=CLOSE<=A90*1.04 AND CLOSE>A90;
量比:=V/REF(MA(V,5),1);
XG6:=AA0 AND AB AND AC AND A40>A90 AND 量比>=1;
DRAWICON(XG6,底*0.995,38);
STICKLINE(CROSS(现价,阻力),阻力,顶,1,0),COLORGREEN;
STICKLINE(CROSS(现价,支撑),支撑,底,1,0),COLORRED;
STICKLINE(CROSS(现价,顶),顶,阻力,1,0),COLORLIBLUE;
STICKLINE(分时上突,支撑,底,1,0),COLORBROWN;
{九转}
AH:=HHV(H,60);
AL:=LLV(L,60);
A0:=(AH-AL)/21;
A11:=C>REF(C,4);
NT:=BARSLASTCOUNT(A11);
TJ11:=NT=9;
TJ13:=ISLASTBAR AND BETWEEN(NT,5,8);
AY:=(BACKSET(TJ11>0,9) OR BACKSET(TJ13>0,NT))*NT;
DRAWTEXT(NT=9,H+1.1*A0,'9'),COLORGREEN;
DRAWTEXT(NT=18,H+1.1*A0,'18'),COLORCYAN;
B11:=C<REF(C,4);
NT0:=BARSLASTCOUNT(B11);
TJ21:=NT0=9 ;
TJ23:=ISLASTBAR AND BETWEEN(NT0,5,8);
AY1:=(BACKSET(TJ21>0,9) OR BACKSET(TJ23>0,NT0))*NT0;
DRAWTEXT(NT0=9,L-1.1*A0,'9'),COLORRED;
DRAWTEXT(NT0=18,L-1.1*A0,'18'),COLORMAGENTA;
日:=500;
昨前:=60;
高:=REF(HHV(H,日),昨前);
低:=REF(LLV(L,日),昨前);
H01:=高-(高-低)*1;
H02:=高-(高-低)*0.91;
H03:=高-(高-低)*0.85;
H04:=高-(高-低)*0.809;
H05:=高-(高-低)*0.777;
H06:=高-(高-低)*0.707;
H07:=高-(高-低)*0.666;
H08:=高-(高-低)*0.618;
H09:=高-(高-低)*0.563;
H010:=高-(高-低)*0.5;
H011:=高-(高-低)*0.424;
H012:=高-(高-低)*0.382;
H013:=高-(高-低)*0.309;
H014:=高-(高-低)*0.25;
H015:=高-(高-低)*0.191;
H016:=高-(高-低)*0.1375;
H017:=高-(高-低)*0.0807;
一:=REFDATE(H02,DATE)POINTDOT,COLORLIRED;
二:=REFDATE(H03,DATE),COLORYELLOW;
三:=REFDATE(H04,DATE),COLORLIBLUE;四:=REFDATE(H05,DATE),COLORLIRED;五:=REFDATE(H06,DATE),COLORYELLOW;六:=REFDATE(H07,DATE),COLORLIBLUE;七:=REFDATE(H08,DATE),COLORLIRED;
八:=REFDATE(H09,DATE),COLORYELLOW;九:=REFDATE(H010,DATE),COLORLIBLUE;十:=REFDATE(H011,DATE),COLORLIRED;
十一:=REFDATE(H012,DATE),COLORYELLOW;十二:=REFDATE(H013,DATE),COLORLIBLUE;
十三:=REFDATE(H014,DATE),COLORLIRED;
十四:=REFDATE(H015,DATE),COLORYELLOW;十五:=REFDATE(H016,DATE),COLORLIBLUE;
十六:=REFDATE(H017,DATE)POINTDOT,COLOR00FF00;
底1:=REFDATE(H01,DATE)DOTLINE,COLOR3A3A3A;
顶1:=REFDATE(高,DATE)DOTLINE,COLOR3A3A3A;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
买1:=CROSS(C,一);
卖1:=CROSS(十六,C);
{DRAWICON(买1,底*0.999,1);
DRAWICON(卖1,顶*1.001,2);}
STICKLINE(买1,底,支撑,1,0),COLORRED;
STICKLINE(卖1,顶,阻力,1,0),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=40,昨日收盘价,STRCAT('',CON2STR(昨日收盘价,2))),COLORWHITE;
DRAWTEXT_FIX(加强>昨日收盘价,0,1,0,STRCAT('均:',CON2STR(均价线,2))),COLORYELLOW;
DRAWTEXT_FIX(加强>昨日收盘价,0.3,1,0,STRCAT('买:',CON2STR(买点,2))),COLORLIRED;
DRAWTEXT_FIX(加强>昨日收盘价,0.5,1,0,STRCAT('强:',CON2STR(加强,2))),COLORMAGENTA;
DRAWTEXT_FIX(加强>昨日收盘价,0.7,1,0,STRCAT('阻:',CON2STR(阻力,2))),COLORGREEN;
DRAWTEXT_FIX(加强>昨日收盘价,1,1,0,STRCAT('支:',CON2STR(支撑,2))),COLORRED;
DRAWTEXT_FIX(加强<昨日收盘价,0,0,0,STRCAT('均:',CON2STR(均价线,2))),COLORYELLOW;
DRAWTEXT_FIX(加强<昨日收盘价,0.3,0,0,STRCAT('买:',CON2STR(买点,2))),COLORLIRED;
DRAWTEXT_FIX(加强<昨日收盘价,0.5,0,0,STRCAT('强:',CON2STR(加强,2))),COLORMAGENTA;
DRAWTEXT_FIX(加强<昨日收盘价,0.7,0,0,STRCAT('阻:',CON2STR(阻力,2))),COLORGREEN;
DRAWTEXT_FIX(加强<昨日收盘价,1,0,0,STRCAT('支:',CON2STR(支撑,2))),COLORRED;
{分时突破}
均价11:SUM(C*V,240)/SUM(V,240),NODRAW;
TT:=BARSCOUNT(C);
前高:=REF(HHV(H,TT),1);
突破:=CROSS(C,REF(HHV(H,TT),1)) AND C/均价11<1.09 AND TT>1 AND TT<240;
主力扫盘:=COUNT(突破,13)>=3 AND CROSS(C,REF(HHV(H,TT),1));
{DRAWTEXT(主力扫盘,前高, '扫盘'),COLORYELLOW;}
STICKLINE(主力扫盘,买点,支撑,1,0),COLORLIRED;
已主力扫盘:=BARSLAST(主力扫盘)<13;
全仓买进:=CROSS(C,REF(HHV(H,TT),1)) AND HHVBARS(vol,TT)=0 AND C/均价11<1.09 AND TT>1 AND TT<240 AND BARSLAST(主力扫盘)>=20;
{DRAWTEXT(全仓买进 ,前高, '全仓'),COLORCYAN;}
STICKLINE(全仓买进,买点,支撑,1,0),COLORRED;
{加仓}
XX:=SUM(AMOUNT,BARSCOUNT(CLOSE))/SUM(V*100,BARSCOUNT(CLOSE));
主攻:=EXPMA(CLOSE/XX,20);
大户:=EXPMA(CLOSE/XX,60);
散户:=EXPMA(CLOSE/XX,120);
高1:=1.03,NODRAW;
AAB:=主攻>大户 AND 主攻>1.003 AND 大户>散户 AND C>EXPMA(C,20) AND EXPMA(C,10)>EXPMA(C,20) AND EXPMA(C,20)>EXPMA(C,60);
DRAWTEXT(主攻>大户 AND 大户>散户 AND C>EXPMA(C,20) AND EXPMA(C,10)>EXPMA(C,20) AND EXPMA(C,20)>EXPMA(C,60) AND 主攻=HHV(主攻,30) AND CROSS(主攻,1.003),C*0.998,'+'),COLORYELLOW;
{芥}
AAC:=C/DYNAINFO(3);
单笔换手:=V/CAPITAL*100;
XX1:=BARSSINCE(V>0)+1;
均线:=SUM(C*V,XX1)/SUM(V,XX1);
限制:=AAC>1.01 AND AAC<1.04;
X1:=单笔换手>0.08 AND CROSS(C,均线) AND 限制;
LT:=(CAPITAL/100)/10000<=10;
JD:=ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*57.3;
V8V:=V>1999;
PX:=JD>30;
ZZ:=EMA(CLOSE,5)+EMA(CLOSE,60);
ZQ:=EMA(ZZ,30);
Z2:=REF(AAC,1)<1.025 AND AAC>1.025 AND AAC<1.04;
TJ:=ZZ/ZQ>0.99 AND ZZ/ZQ<1.015;
X82:=LT AND (Z2 AND V8V AND PX AND TJ);
预警:=X1 OR X82;
DRAWICON(预警,C,36);
{底钱袋}
VARJ1:=EMA(EMA(CLOSE,13),13);
控盘2:=(VARJ1-REF(VARJ1,1))/REF(VARJ1,1)*1000;
STJ01:=控盘2<REF(控盘2,1) AND 控盘2>0.5;
STJ02:=控盘2>0;
BTJ2:=控盘2>REF(控盘2,1) AND 控盘2<-0.2;
BTJ22:=控盘2>REF(控盘2,1) AND 控盘2<0 ;
JJ:=DYNAINFO(11);
P:=55;S:=8;M1:=3;
能量:=(EMA(CLOSE,S)-EMA(C,P))*10;
空头:=EMA(能量,M1),COLOR00FF00;
BTJ1:=(CLOSE-JJ)/JJ<-0.005;
BTJ11:=(CLOSE-JJ)/JJ<-0.03;
BTJ12:=COUNT(JJ>=REF(JJ,1),5)>=4 AND (CLOSE-JJ)/JJ<0.005;
STJ1:=(C-JJ)/JJ>0.005;
BTJ3:=CROSS(能量,空头) AND 能量<-0.3;
BTJ32:=CROSS(能量,空头) AND 能量<-0.1;
STJ31:=CROSS(空头,能量);
STJ32:=CROSS(空头,能量) AND 能量>1.618;
A:=8;
BTJ81:=FILTER(BTJ1 AND BTJ2 AND BTJ3,A);
BTJ811:=FILTER(BTJ11 AND BTJ2 AND BTJ3,A);
BTJ82:=FILTER(BTJ12 AND BTJ22 AND BTJ32,A);
时长:=IF(HOUR>=9 AND HOUR<14 ,1,0);
捡钱:=BTJ811 AND TIME>15 AND 时长;
DRAWICON(捡钱,阻力,9);
{庄现黄柱}
GUA6:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
GUA7:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
GUA8:=GUA6<REF(GUA7,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
STICKLINE(GUA8 AND COUNT(GUA8,30)=1,支撑,底,1,0),COLORYELLOW,LINETHICK1;
{私募套利}
VAR01:=(CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100;
VAR02:=SMA(VAR01,4,1);
VAR03:=SMA(VAR02,2,1);
主力建仓:=(VAR03<8.5 AND VAR02<11),COLORYELLOW;
STICKLINE(主力建仓,底,底-(支撑-底)/2,2,0),COLORYELLOW;
NN:=MA(CLOSE,1);
MM:=(LOW+HIGH+CLOSE)/3;
KK01:= MA(MM,5);
PP01:= HHV(KK01,10);
急卖:IF(HHV((NN<PP01),5),顶,阻力),LINETHICK2,COLORYELLOW;
短卖:IF(HHV((NN<PP01),10),顶,阻力),LINETHICK2,COLOR00FF00;
DD:= MA(MM,5);
买卖:=LLV(DD,10);
急买:IF(LLV((NN<买卖),5),支撑,底),LINETHICK2,COLORLIRED;
短买:IF(LLV((NN<买卖),10),支撑,底),LINETHICK2,COLORLIGRAY;
{波段买}
QVAR1A:=((HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21)))*(100)-10;
QVAR1B:=((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21)))*(100);
QVAR1C:=SMA(QVAR1B,13,8);
QVAR1D:=SMA(QVAR1A,21,8);
机会来临:=SMA(QVAR1C,13,8),COLORRED;
AAS:=FILTER((COUNT((机会来临-QVAR1D<(-65)),3)=3),34);
波段买点:=IF(AAS,15,0),COLORYELLOW,STICK,LINETHICK1;
STICKLINE(波段买点,支撑,底,1,0),COLORRED,LINETHICK1;
{抄底}
线1:=100*(HHV(HIGH,30)-CLOSE)/(HHV(HIGH,30)-LLV(LOW,30)),COLORGREEN;
RSV:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,50))*100;
K:=SMA(RSV,5,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
线2:=EMA(J,6),COLORYELLOW;
AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
AA5:=SMA(AA4,13,8);势:=CEILING(SMA(AA5,13,8)),COLORRED,LINETHICK2;
XG:=CROSS(线2,线1) AND 势>线2,COLOR0099FF,NODRAW;
RSVV:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
GS0:=SMA(RSVV,3,1),COLORRED,LINETHICK1;
GS1:=SMA(GS0,3,1),COLORYELLOW,LINETHICK1;
RSV1:=(CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*100;
GS2:=SMA(RSV1,5,1),COLORFF00FF,LINETHICK1;
GS3:=SMA(GS2,10,1),COLORGREEN,LINETHICK1;
STICKLINE(CROSS(线2,线1) AND 势>线2 AND GS2>GS3,底,支撑,1,0),COLOR0099FF;
X_1:=30;
X_2:=10;
X_3:=VOL/10000*CLOSE/100;
X_4:=REF(CLOSE,1);
X_5:=SUM(VOL,2)/((HHV(HIGH,2)-LLV(LOW,2))*100);
X_6:=(CLOSE-X_4)*X_5;
X_7:=SUM(X_6,0);
X_8:=X_7/200;
X_9:=MA(X_8,X_1);
X_10:=REF(X_8,X_2)=HHV(X_8,2*X_2+1);
X_11:=FILTER(X_10,X_2);
X_12:=BACKSET(X_11,X_2+1);
X_13:=FILTER(X_12,X_2);
T线:=REF(X_8,BARSLAST(X_13)),NODRAW,COLORMAGENTA;
JZOBV:=X_8,COLORWHITE;
上穿T:=DRAWICON(CROSS(JZOBV,T线),T线*0.99,1);
STICKLINE(上穿T,支撑,底,1,0),COLORMAGENTA;
{庄家进场}
BU:=BARSLAST(CLOSE=HHV(CLOSE,60));
SE:=BARSLAST(CLOSE=LLV(CLOSE,60));
KK1:=SE;
KK2:=BU;
LM1:=SE;
LM2:=BU;
OK:=KK1>KK2 AND LM1>LM2;
OK1:=KK1>KK2 AND LM1<LM2;
NOK:=KK2>KK1 AND LM2>LM1;
NOK1:=KK2>KK1 AND LM2<LM1;
DRAWICON(FILTER(CROSS(KK1,KK2),60),底*0.995,11);



未来函数检测结果如下:
该公式包含未来函数:BACKSET
该公式包含未来函数:CAPITAL
该公式包含未来函数:DYNAINFO
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图