1.����k��ָ�깫ʽԴ��
2.谁有经传慧眼K线 指标公式
����k��ָ�깫ʽԴ��
{ 通达信《慧眼K线》,慧眼慧眼供参考}N1:=6;
重心:(2*C+H+L)/4,线k线选股php现金日记账表源码COLORFFFF,LINETHICK0;
SJ:=WMA((重心-LLV(L,5))/(HHV(H,5)-LLV(L,5))*,2);
ZJ:=WMA(0.*REF(SJ,1)+0.*SJ,2);
DRAWTEXT(CROSS(SJ,ZJ) AND SJ<,L-0.3,'★'),COLORFFFF;
DRAWTEXT(CROSS(ZJ,SJ) AND SJ>,H+0.2,'★'),COLORFFFF;
A1:=EMA(C,),COLORA2A,LINETHICK1;
A1X:=(A1-REF(A1,1))/REF(A1,1)*,NODRAW;
突破:REF(EMA(C,),1),NODRAW;
距离:(C-突破)/突破*,NODRAW;
出击:IF(A1X>=0,REF(EMA(C,),BARSLAST(CROSS(A1X,0))+1),DRAWNULL),COLORBB0,LINETHICK1;
休假:IF(A1X<0,REF(EMA(C,),BARSLAST(CROSS(0,A1X))+1),DRAWNULL),COLORFFFF,LINETHICK1;
涨幅:IF(A1X>=0,(C-出击)/出击*,DRAWNULL)NODRAW;
跌幅:IF(A1X<0,(C-休假)/休假*,DRAWNULL)NODRAW;
♂%:IF(H>=出击*1.1,出击*1.1,DRAWNULL),COLORRED,DOTLINE,LINETHICK1;
♂%:IF(H>=出击*1.2,出击*1.2,DRAWNULL),COLORRED,DOTLINE,LINETHICK1;
♂%:IF(H>=出击*1.3,出击*1.3,DRAWNULL),COLORRED,DOTLINE,LINETHICK1;
♀Ⅰ:IF(L<休假*0.9,休假*0.9,DRAWNULL),COLORGREEN,DOTLINE,LINETHICK1;
♀Ⅱ:IF(L<休假*0.8,休假*0.8,DRAWNULL),COLORGREEN,DOTLINE,LINETHICK1;
♀Ⅲ:IF(L<休假*0.7,休假*0.7,DRAWNULL),COLORGREEN,DOTLINE,LINETHICK1;
STICKLINE(CROSS(A1X,0),C,O,2,0),COLORFFFF;
STICKLINE(CROSS(0,A1X),C,O,2,0),COLOR;
STICKLINE(CROSS(A1X,0)OR CROSS(0,A1X),REF(EMA(C,),1),REF(EMA(C,),1)*0.,3,0),COLOR3C3C3C;
STICKLINE(ISLASTBAR,REF(EMA(C,),1),REF(EMA(C,),1)*0.,3,0),COLORFFFF;
A:DRAWLINE(HIGH>=HHV(HIGH,5),HIGH,LOW<=LLV(LOW,5),LOW,0),COLORA2A;
B1:DRAWLINE(LOW<=LLV(LOW,5),LOW,HIGH>=HHV(HIGH,5),HIGH,0),COLORFF;
A2:DRAWLINE(HIGH>=HHV(HIGH,),HIGH,LOW<=LLV(LOW,),LOW,0),COLORA2A;
B2:DRAWLINE(LOW<=LLV(LOW,),LOW,HIGH>=HHV(HIGH,),HIGH,0),COLORFF;
A3:DRAWLINE(HIGH>=HHV(HIGH,),HIGH,LOW<=LLV(LOW,),LOW,0),COLORA2A;
B3:DRAWLINE(LOW<=LLV(LOW,),LOW,HIGH>=HHV(HIGH,),HIGH,0),COLORFF;
A4:DRAWLINE(HIGH>=HHV(HIGH,),HIGH,LOW<=LLV(LOW,),LOW,0),COLORA2A;
B4:DRAWLINE(LOW<=LLV(LOW,),LOW,HIGH>=HHV(HIGH,),HIGH,0),COLORFF;
MTM:=C-REF(C,1);
ZLGJ:=*EMA(EMA(MTM,N1),N1)/EMA(EMA(ABS(MTM),N1),N1);
买1:=IF(LLV(ZLGJ,2)=LLV(ZLGJ,7) AND COUNT(ZLGJ<0,2) AND CROSS(ZLGJ,MA(ZLGJ,2)),1,0);
卖1:=IF(HHV(ZLGJ,2)=HHV(ZLGJ,7) AND COUNT(ZLGJ>,2) AND CROSS(MA(ZLGJ,2),ZLGJ),1,0);
DRAWICON(FILTER(买1=1,5),LOW*0.,),COLORRED;
STICKLINE(FILTER(买1=1,5),C,O,1,0),COLORRED;
DRAWICON(FILTER(卖1=1,1),H*1.,),COLOR;
STICKLINE(FILTER(卖1=1,1),C,O,1,0),COLOR;
RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
BDGD:=HHV(J,2)=HHV(J,8) AND J>;
注意:=IF(CROSS(REF(J-0.,1),J) AND REF(BDGD,1),1,0);
DRAWTEXT(注意 AND 卖1<1,HIGH*1.,'★'),COLORFFFF,LINETHICK3;
STICKLINE(注意 AND 卖1<1,O,CLOSE,1,0),COLOR,LINETHICK2;
谁有经传慧眼K线 指标公式
{ 经传软件---慧眼K线主图}MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
牛线:=(*MID+*REF(MID,1)+*REF(MID,2)+*REF(MID,3)+*REF(MID,4)+*REF(MID,5)+*REF(MID,6)+*REF(MID,7)+*REF(MID,8)+*REF(MID,9)+*REF(MID,)+9*REF(MID,)+8*REF(MID,)+7*REF(MID,)+6*REF(MID,)+5*REF(MID,)+4*REF(MID,)+3*REF(MID,)+2*REF(MID,)+REF(MID,))/;
马线:=MA(牛线,5);
买卖线:=MA(牛线,2);
STICKLINE(牛线>=买卖线 AND C<O,C,O,2.8,0),COLORRED;
STICKLINE(牛线>=买卖线 AND C>O,C,O,2.8,1),COLORRED;
STICKLINE(牛线>=买卖线,H,MAX(C,O),0,0),COLORRED;
STICKLINE(牛线>=买卖线,L,MIN(C,O),0,0),COLORRED;
STICKLINE(牛线<买卖线 AND C<O,C,O,2.8,0),COLORCYAN;
STICKLINE(牛线<买卖线 AND C>O,C,O,2.8,1),COLORCYAN;
STICKLINE(牛线<买卖线,H,MAX(C,O),0,0),COLORCYAN;
STICKLINE(牛线<买卖线,L,MIN(C,O),0,0),COLORCYAN;
DRAWICON(CROSS(牛线,买卖线),L*0.,7);
DRAWICON(CROSS(买卖线,牛线),H*1.,8);
主力成本线:牛线,COLORYELLOW;
资金生命线:马线,COLORRED;
水平面:MA(C,),COLORGREEN;