「翔博精选指标」顾比均线+支撑压力组合(通达信公式 主图 源码
2022-03-22原创 编 辑:翔博软件
顾比均线+支撑压力组合
盈市率17:FINANCE(33)/C*100,NODRAW,COLORRED;
MA1:MA(C,1),COLORBLUE;
MA3:MA(C,3),COLORBLUE;
MA5:MA(C,5),COLORBLUE;
MA8:MA(C,8),COLORBLUE;
MA10:MA(C,10),COLORBLUE;
MA12:MA(C,12),COLORBLUE;
MA15:MA(C,15),COLORBLUE;
MA30:MA(C,30),COLORYELLOW,COLORRED;
MA35:MA(C,35),COLORYELLOW;
MA40:MA(C,40),COLORYELLOW;
MA45:MA(C,45),COLORYELLOW;
MA50:MA(C,50),COLORYELLOW;
MA55:MA(C,55),COLORWHITE,LINETHICK2;
TY:=C;
A1:=REF(TY,10)=HHV(TY,2*10+1);
B1:=FILTER(A1,10);
C1:=BACKSET(B1,10+1);
HD:=FILTER(C1,10);
A2:=REF(TY,10)=LLV(TY,2*10+1);
B2:=FILTER(A2,10);
C22:=BACKSET(B2,10+1);
LD:=FILTER(C22,10);
A:=REF(C,BARSLAST(HD));
B:=REF(L,BARSLAST(LD));
T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;
T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);
顶:IF(T1,A,A),COLORGREEN,POINTDOT,LINETHICK4;
{ 底:IF(T2,B,B),COLORMAGENTA,POINTDOT,LINETHICK4;}
BU:=CROSS(HIGH,SAR(3,1,20));
SEL:=CROSS(SAR(3,1,20),LOW);
DRAWTEXT(BU,LOW,'B'),COLORYELLOW,LINETHICK2;
DRAWTEXT(SEL,1.01*HIGH,'S'),COLORGREEN,LINETHICK2;
{显示板块属性}
Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLORRED;