发一个自用主图公式
MAA5:MA(C,5),COLORFF00FF,LINETHICK2;MAA10:=MA(C,10){,COLORF96299,LINETHICK2};MAA30:MA(C,30),COLORLIRED,LINETHICK2;KS:IF(MAA10>MAA30,MAA10,MAA30),COLOR977066,LINETHICK2;DRAWICON (CROSS(MAA5,KS),LOW-0.55,13),COLORRED;A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;A4:=SMA(A3,3,1);A5:=SMA(A4,3,1);A6:=3*A4-2*A5;A7:=C-REF(C,1);A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2));
{DRAWTEXT(FILTER(买=1,5),LOW-0.05,"买进"),COLORYELLOW;}
STICKLINE(买,OPEN,CLOSE,2,0),COLORYELLOW;
KK:=V/REF(V,1)>=2.0;YES1:=SUMBARS(KK,1);
AA:STICKLINE(YES1,REF(L,YES1-1)*1.002,REF(L,YES1-1),4,0),COLORWHITE,LINETHICK2;
碰一下:IF(YES1,REF(L,YES1-1)*1.002,REF(L,YES1-1)),COLORYELLOW;
HH0:=MAX(HHV(H,120),HHV(MA(C,120),120));LL0:=MIN(LLV(L,120),LLV(MA(C,120),120));MM0:=CONST((HH0+LL0)*0.5);T1:=IF(CAPITAL>1 AND GNBLOCK,STRCAT("TDX概念:",GNBLOCK),"");T2:=IF(CAPITAL>1,EXTERNSTR(0,2),"");T3:=IF(CAPITAL>1,EXTERNSTR(0,1),"");T4:=IF(CAPITAL>1,EXTERNSTR(0,3),"");T5:=IF(CAPITAL>1,STRCAT("TDX行业:",HYBLOCK),"");
T6:=IF(CAPITAL>1,STRCAT("TDX地域:",DYBLOCK),"");
T7:=IF(CAPITAL>1,EXTERNSTR(0,8),"");
X1:=CONST(IF(REF(MA(C,20),130)>MM0,1.00,-0.04));X2:=CONST(IF(REF(MA(C,20),130)>MM0,-1,1));S0:=IF(1,X1,DRAWNULL);S1:=IF(FINDSTR(T1,"TDX概念"),S0+(0.04*X2),S0);S2:=IF(FINDSTR(T2,"DZH主营"),S1+(0.04*X2),S1);S3:=IF(FINDSTR(T3,"DZH主题"),S2+(0.04*X2),S2);S4:=IF(FINDSTR(T4,"TDX主题"),S3+(0.04*X2),S3);S5:=IF(FINDSTR(T5,"TDX行业"),S4+(0.04*X2),S4);
S6:=IF(FINDSTR(T6,"TDX地域"),S5+(0.04*X2),S5);
S7:=IF(FINDSTR(T7,"年度业绩") ,S6+(0.04*X2),S6);
DRAWTEXT_FIX(1,0,S1,0,T1)COLORFF8800;DRAWTEXT_FIX(1,0,S2,0,T2)COLOR00CC00;DRAWTEXT_FIX(1,0,S3,0,T3)COLOR3060FF;DRAWTEXT_FIX(1,0,S4,0,T4)COLORFF88FF;DRAWTEXT_FIX(1,0,S5,0,T5)COLOR00AAFF;DRAWTEXT_FIX(1,0,S6,0,T6)COLORFFFFFF;DRAWTEXT_FIX(1,0,S7,0,T7)COLORFF00FF;A0:=(L+H+C*2)/4;A1:EMA(A0,14)COLORBLUE,LINETHICK2;A2:=EMA(A0,25)COLORLIBLUE,LINETHICK2;A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;A2X:=(A2-REF(A2,1))/REF(A2,1)*100,NODRAW;看多:IF(A1X>=0 AND BARSLAST(CROSS(A1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(A1X,0))),DRAWNULL),COLORMAGENTA,LINETHICK2;逃顶:IF(A1X<0 and="">0,REF((C+O)/2,BARSLAST(CROSS(0,A1X))),DRAWNULL),COLORCYAN,LINETHICK2;
买入持股:IF(A1X>=0,A1,DRAWNULL)COLORRED,LINETHICK3;
卖出空仓:IF(A1X<0 AND A2X<0,A1,DRAWNULL)COLORGREEN,LINETHICK3;