通达信龙头主图指标公式
A0:=((L+H+C*2)/4);
上:EMA(A0,14)*1.1382,,;
{上B:(上,DATE),,;}
(,上,上),;
中:EMA(A0,14)*1.0618,,;
(,中,中),;
下:EMA(A0,14),,;
(,下,下),;
{A2:=EMA(A0,25),;
A1X:=(下-REF(下,1))/REF(下,1)*100,;
A2X:=(A2-REF(A2,1))/REF(A2,1)*100,;
买:IF(A1X>=0,下,),,;
卖:IF(A1X多空:EMA((EMA(CLOSE,29)+EMA(CLOSE,31)+EMA(CLOSE,33))/3,3),,;
做空:=REF(多空,1),,;
A2:=EMA(多空,25),;
A1X:=(多空-REF(多空,1))/REF(多空,1)*100,;
A2X:=(A2-REF(A2,1))/REF(A2,1)*100,;
买:IF(A1X>=0,多空,),,;
卖:IF(A1X{(做多>做空,做多,做空,3,0),;
(做多GDCS2,0,1);
CC8:=(QY,) AND H=HHV(H,+1);
DDDD8:=(CC8);
GDTS8:=IF(CC8,,0);
:=IF(DDDD8,REF(GDTS8,DDDD8),GDTS8);
GDCS8:=CONST();
:=REF(,DDDD8+1);
GDCS9:=CONST();
高点压力:=(=GDCS2,H,=GDCS1,H,1) ,;
压A:(=GDCS2,H,,REF(H,GDCS2-1),1),,;
压B:(=GDCS1,H,,REF(H,GDCS1-1),1),,;
压A2:=(=GDCS9,H,,REF(H,GDCS9-1),1),,;
压B2:=(=GDCS8,H,,REF(H,GDCS8-1),1),,;
AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);
QY1:=(AA1,LOWN+1);
CC1:=(QY1,LOWN) AND L=LLV(L,LOWN+1);
DD1:=(CC1);
DDTS:=IF(CC1,,0);
YDB:=IF(DD1,REF(L,DD1),L);
DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);
DDCS1:=CONST(DDTS1);
ZDB:=REF(YDB,DD1+1);
DDTS2:=REF(DDTS1,DD1+1);
DDCS2:=CONST(DDTS2);
低点支撑:=(=DDCS2,L,=DDCS1,L,1) ,;
:=(高点压力+低点支撑)/2;
ZGEND:=CONST((高点压力+低点支撑)/2);
:=IF(DDCS2中轨:=(=,,,ZGEND,1),,;
支A:(=DDCS1,L,,REF(L,DDCS1-1),1),;
支B:(=DDCS2,L,,REF(L,DDCS2-1),1),;
{高低连线支撑压力}
A1:=REF(H,8)=HHV(H,2*8+1);
B1:=(A1,8);
C1:=(B1,8+1);
D1:=(C1,8);
R11:=(,(D1)+1); S11:=R11>REF(R11,1);
A2B:=REF(L,8)=LLV(L,2*8+1);
B2:=(A2B,8);
C2:=(B2,8+1);
D2:=(C2,8);
T11:=(,(D2)+1); U11:=T11>REF(T11,1);
M:=(3*8/5);
A12:=REF(H,M)=HHV(H,2*M+1);
B12:=(A12,M);
C12:=(B12,M+1);
D12:=(C12,M);
R112:=(,(D12)+1); S112:=R112>REF(R112,1);
A22:=REF(L,M)=LLV(L,2*M+1);
B22:=(A22,M);
C22:=(B22,M+1);
D22:=(C22,M);{低点}
T112:=(,(D22)+1); U112:=T112>REF(T112,1);
压1:(D1,H,S11,H,1),;
压2:(D12,H,S112,H,1),;
支1:=(D2,L,U11,L,1),;
支2:=(D22,L,U112,L,1),;
{变动支撑压力}
PH:=(2,5,1);
LL:=HHV(H,PH);
TJ1:=LL=HIGH AND LLTS:=(TJ1,2);
TJ:=(2,5,1)=1 AND TS>=PH;
PL:=(TJ);
支C:=IF((TJ1),REF(LOW,(TJ1)),),;
压C:=IF((TJ),REF(HIGH,PL),),;
{涨停表示}
LA:=(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.097 AND C=H,1);
双涨停:=EVERY(C/REF(C,1)>=1.097 AND C=H,2);
三涨停:=EVERY(C/REF(C,1)>=1.097 AND C=H,3) AND H>L;
策略1A:=EXIST((C/REF(C,2)-1)*100>20,2) AND COUNT(LC>LO,3)>=1 AND OO AND C>REF(O,1) AND REF(C,1)>REF(C,2) ;
策略1B:=EXIST(双涨停,3) AND COUNT(LC>LO,4)>=1 AND OO AND C>REF(O,1) AND REF(C,1)>REF(C,2) ;
(策略1A,LOW,'↖①'),;
(策略1B,LOW,'↖①'),;
{策略2:=EXIST(三涨停,5) AND C>中 AND L75 AND C>上 AND C>REF(C,1) AND C>上 ;
突破:=角度>75 AND C>上 AND C>REF(C,1) AND C>上 {AND (H/C)(持有,LOW,'↖龙'),;
(突破,O,C,1,0),;
{涨跌停显示}
涨停:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(O,1)),1,0);
(涨停,O,C,1,0),;
ZDF:=(C-REF(C,1))/REF(C,1)*100;
(ZDF
我来说两句