以下是通达信龙启动主图指标公式源码和截图
通达信龙启动主图指标公式源码:
白龙:=MA(CLOSE,125),;
黄龙:=白龙+2*STD(CLOSE,170);
紫龙:=白龙-2*STD(CLOSE,145);
青龙:=SAR(125,1,7){,LINESTICK},;
VAR2:=HHV(HIGH,70);
VAR3:=HHV(HIGH,20);
红龙:=VAR2*0.83,;
蓝龙:=VAR3*0.91,;
CRSV:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
CK0:=SMA(CRSV,3,1);
CK:=CK0;CD:=SMA(CK0,2,1);
CJ1:=(3*CK0-2*CD),;
CJ2:=MA(CJ1,2),;
去除ST:=IF(NAMELIKE(‘ST’),0,1)ANDIF(NAMELIKE(‘*ST’),0,1);
去除停牌:=DYNAINFO(4)>0;
XG:=去除STAND去除停牌;
X1:=CROSS(蓝龙,红龙)OR(CROSS(蓝龙,青龙)AND蓝龙>REF(蓝龙,1));
工作线:=MA(“KDJ.J#WEEK”(9,3,3),5),;
工作:=工作线>5;
前引线:=”PAVE.CV”,;
引导线:=”PAVE.MCV”,;
主导线:=”PAVE.DIFF”,;
主线:=ABS(主导线-前引线);
AA:=(CLOSE-LLV(LOW,43))/(HHV(HIGH,43)-LLV(LOW,43))*100;
能量:=SMA(AA,32,8),;
BB:=IF(能量>REF(能量,1),能量-能量*1/100,能量+能量*1/100);
趋势线:=SMA(BB,19,6),;
差值:=能量-趋势线,;
主线A:=主线<REF(主线,1)ANDABS(主导线-前引线)<35;
X2:X1ANDCAPITAL<20000000ANDC<=15AND黄龙>REF(黄龙,1)ANDC>青龙ANDC>蓝龙AND白龙>REF(白龙,1)AND紫龙>REF(紫龙,1)ANDC>REF(C,1)
AND蓝龙>青龙ANDXGANDCJ1>REF(CJ1,1)ANDCJ1>CJ2AND工作AND工作线>REF(工作线,1)AND青龙>REF(青龙,1)AND(主线<=20OR主线A)AND趋势线>=20AND趋势线>REF(趋势线,1);
A:=(3*CLOSE+LOW+OPEN+HIGH)/6;
HJX21:=(21*A+20*REF(A,1)+19*REF(A,2)+18*REF(A,3)+17*REF(A,4)+16*REF(A,5)+
15*REF(A,6)+14*REF(A,7)+13*REF(A,8)+12*REF(A,9)+11*REF(A,10)+
10*REF(A,11)+9*REF(A,12)+8*REF(A,13)+7*REF(A,14)+6*REF(A,15)+
5*REF(A,16)+4*REF(A,17)+3*REF(A,18)+2*REF(A,19)+
REF(A,21))/231;
HJX3:=(3*A+2*REF(A,1)+REF(A,2))/6;
DC1:EMA(HJX3,4),COLORLIMAGENTA;
DC2:EMA(DC1,3),COLORRED;
DC3:EMA(DC1,7),COLORRED;
K1:=BACKSET(DC1<REF(DC1,1),2);
IF(K1,DC1,DRAWNULL)COLORRED,LINETHICK2;
K2:=BACKSET(DC2<REF(DC2,1),2);
IF(K2,DC2,DRAWNULL)COLORRED,LINETHICK2;
K3:=BACKSET(DC3<REF(DC3,1),2);
IF(K3,DC3,DRAWNULL)COLORRED,LINETHICK2;
DC4:EMA(HJX21,6),COLORYELLOW,LINETHICK2;
DC5:EMA(HJX21,16),COLORGREEN,LINETHICK2;
DC6:EMA(HJX21,34),COLORBLUE,LINETHICK2;
RSV:=(CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
YX2:=D>REF(D,1);
YX3:=DC4>DC6ANDDC5>DC6;
YX4:=CLOSE>DC4ANDCLOSE/DC4<1.1;
YX5:=DC1>DC2ANDDC2>DC3;
XG:=YX2ANDYX3ANDYX4;
神彩飞扬培训:=XGANDCOUNT(XG,10)=1ANDCOUNT(YX5,10)<5;
DRAWTEXT(神彩飞扬培训,LOW*0.98,’神彩’),COLORFFFFFF;
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
XG0:=CROSS(MACD,0);
XG1:=CROSS(CLOSE,DC1)ANDCROSS(CLOSE,DC2)ANDCROSS(CLOSE,DC3)ANDBARSLAST(XG0)<=5
ANDCLOSE<DC4;
DRAWTEXT(XG1,LOW*0.98,’叠彩’),COLORFF00FF;
HJX:=EMA(HJX21,12);
ZF:=100*(CLOSE-REF(CLOSE,1))/REF(CLOSE,1);
TTUP:=HJX+2*STD(CLOSE,20);
TTDOWN:=HJX-2*STD(CLOSE,20);
HUP:=EMA(TTUP,3);
HDOWN:=EMA(TTDOWN,3);
LBRISE:=HUP/REF(HUP,1)>1.0035;
MIDRISE:=HJX>REF(HJX,1);
LBDOWN:=HDOWN<REF(HDOWN,1);
CLB1:=LOW/HUP<1.01ANDCLOSE/HUP>0.99AND(OPEN+LOW)/2.1<HUP;
KXT:=CLOSE>OPENAND((HIGH-CLOSE)+(OPEN-LOW))/(CLOSE-OPEN)<1.2ANDHIGH/CLOSE<1.035;
TDKD:=100*(HUP-HDOWN)/HJX;
TDXT:=TDKD<15ANDLLV(TDKD,8)<10;
XGG:=LBRISEANDMIDRISEANDCLB1ANDKXTANDTDXT;
CXG:=COUNT(XGG,20);
喇叭开口:=XGGANDCXG=1ANDCOUNT(LBRISE,10)<10ANDHIGH/HHV(HIGH,5)>0.98;
DRAWTEXT(喇叭开口,LOW*0.99,’喇叭’),COLORFFFF00;
DRAWICON(CROSS(DC1,DC2),LOW*0.99,5);
DRAWICON(神彩飞扬培训,LOW*0.970,9);
DRAWICON(喇叭开口,LOW,2),COLORFFFF00;
VAR3:=LLV(HIGH,240);
VAR4:=100*(CLOSE-VAR3)/VAR3;
VAR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100;
VAR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100;
VAR7:=0;
VAR8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;
VAR9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100;
VAR10:=IF(TROUGHBARS(3,16,1)=0ANDHIGH>LOW+0.04,4,0);
VAR11:=ZIG(3,6)>REF(ZIG(3,6),1)ANDREF(ZIG(3,6),1)<=REF(ZIG(3,6),2)ANDREF(ZIG(3,6),2)<=REF(ZIG(3,6),3);
VAR12:=ZIG(3,6)<REF(ZIG(3,6),1)ANDREF(ZIG(3,6),1)>=REF(ZIG(3,6),2)ANDREF(ZIG(3,6),2)>=REF(ZIG(3,6),3);
VAR13:=ZIG(3,22)>REF(ZIG(3,22),1)ANDREF(ZIG(3,22),1)<=REF(ZIG(3,22),2)ANDREF(ZIG(3,22),2)<=REF(ZIG(3,22),3);
VAR14:=ZIG(3,22)<REF(ZIG(3,22),1)ANDREF(ZIG(3,22),1)>=REF(ZIG(3,22),2)ANDREF(ZIG(3,22),2)>=REF(ZIG(3,22),3);
VAR15:=ZIG(3,51)>REF(ZIG(3,51),1)ANDREF(ZIG(3,51),1)<=REF(ZIG(3,51),2)ANDREF(ZIG(3,51),2)<=REF(ZIG(3,51),3);
VAR16:=ZIG(3,51)<REF(ZIG(3,51),1)ANDREF(ZIG(3,51),1)>=REF(ZIG(3,51),2)ANDREF(ZIG(3,51),2)>=REF(ZIG(3,51),3);
VAR17:=ZIG(3,72)>REF(ZIG(3,72),1)ANDREF(ZIG(3,72),1)<=REF(ZIG(3,72),2)ANDREF(ZIG(3,72),2)<=REF(ZIG(3,72),3);
VAR18:=ZIG(3,72)<REF(ZIG(3,72),1)ANDREF(ZIG(3,72),1)>=REF(ZIG(3,72),2)ANDREF(ZIG(3,72),2)>=REF(ZIG(3,72),3);
VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);
买1:=VAR10;
买2:=(VAR11+VAR13+VAR15+VAR17);
卖1:=(VAR12+VAR14+VAR16+VAR18);
B:IF(买1>0OR买2>0,LOW*0.99,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW;
DRAWTEXT(买1>0OR买2>0,LOW*0.99,’小仓位买入’),COLORRED;
S:IF(卖1>0,HIGH*1.01,DRAWNULL),CROSSDOT,LINETHICK3,COLORGREEN;
DRAWTEXT(卖1>0,HIGH*1.02,’庄家出货’),COLORGREEN;
{涨跌停显示}
涨停:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(O,1)),1,0);
STICKLINE(涨停,O,C,1,0),COLORYELLOW;
ZDF:=(C-REF(C,1))/REF(C,1)*100;
STICKLINE(ZDF<-9.9,O,C,1,0),COLORBLUE;
AQ1:=REF(V,1);AQ2:=DVOL;AQ3:=AQ2/AQ1;
LNX:=AQ3-REF(AQ3,1);
E1:=REF(C,1);E2:=DCLOSE;E3:=(E2-E1)/E1*100;
QMX:=E3-REF(E3,1);
XXG:=CROSS(LNX,500)ANDCROSS(QMX,10);
DRAWTEXT(XXG=1,L*0.955,’–龙启动’),,COLORMAGENTA;
DRAWICON(XXG=1,L*0.993,25);
A0:=((L+H+C*2)/4);
{涨停表示}
LA:=BARSLAST(C>REF(C,1)*1.098);
LC:=REF(CLOSE,LA);
LO:=REF(OPEN,LA);
LAL:=REF(L,LA);
LAH:=REF(H,LA);
一涨停:=EVERY(C/REF(C,1)>=1.097ANDC=H,1);
双涨停:=EVERY(C/REF(C,1)>=1.097ANDC=H,2);
三涨停:=EVERY(C/REF(C,1)>=1.097ANDC=H,3)ANDH>L;
策略1A:=EXIST((C/REF(C,2)-1)*100>20,2)ANDCOUNT(LC>LO,3)>=1ANDO<REF(C,1)ANDC<REF(C,1)ANDC>OANDC>REF(O,1)ANDREF(C,1)>REF(C,2);
策略1B:=EXIST(双涨停,3)ANDCOUNT(LC>LO,4)>=1ANDO<REF(C,1)ANDC<REF(C,1)ANDC>OANDC>REF(O,1)ANDREF(C,1)>REF(C,2);
DRAWTEXT(策略1A,LOW,’①’),COLORYELLOW;
DRAWTEXT(策略1B,LOW,’①’),COLORYELLOW;
{策略2:=EXIST(三涨停,5)ANDC>中ANDL<中*1.01618ANDC/REF(C,1)<1.05ANDHHV(H,5)/C>1.14;
DRAWTEXT(策略2,LOW,’②’),COLORYELLOW;}
角度:=ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*57.3;
持有:=EXIST(一涨停,5)AND角度>75ANDC>REF(C,1);
突破:=角度>75ANDC>REF(C,1){AND(H/C)<1.038};
DRAWTEXT(持有,LOW,’龙’),COLORYELLOW;
STICKLINE(突破,O,C,1,0),COLORMAGENTA;
N:=5;
D3×3:MA(C,3),shift3,COLORC08000,LINETHICK1;
D25×5:MA(C,25),shift5,COLORRED;
A1:=if(high>PEAK(1,n,1),HHV(HIGH,21),PEAK(1,n,1));
A2:=if(low<TROUGH(2,n,1),llV(low,21),TROUGH(2,n,1));
A3:=(A1-A2)*0.618+A2;
A4:=(A1-A2)*0.5+A2;
A5:=(A1-A2)*0.382+A2;
PD:=ISLASTBAR;
最高:A1,COLORFF8080,LINETHICK1;
最低:A2,COLORFF8080,LINETHICK1;
F3:A5,COLOR808080,LINETHICK1;
F4:A4,COLOR808080,LINEDOT;
F5:A3,COLOR808080,LINETHICK1;
DRAWNUMBER(PD,最高,最高,2),COLORFF8080,ALIGN1;
DRAWNUMBER(PD,最低,最低,2),COLORFF8080,ALIGN1;
DRAWNUMBER(PD,F3,F3,2),COLOR808080,ALIGN1;
DRAWNUMBER(PD,F4,F4,2),COLOR808080,ALIGN1;
DRAWNUMBER(PD,F5,F5,2),COLOR808080,ALIGN1;
通达信龙启动主图指标公式截图
评论(0)