《年线上拐》后的个股都疯狂!(可做主副图代码)
M24:MA(C,24);
M55:MA(C,55);
M76:MA(C,76);
M240:MA(C,240);
DRAWBAND(M24,120,MA(C,55),RGB(35,135,35));
DRAWBAND(M24,60,MA(M24,5),RGB(35,88,35));
STICKLINE(CURRBARSCOUNT<26 AND C>=REF(C,1),H,L,0,1),COLORRED;
STICKLINE(CURRBARSCOUNT<26 AND C>=REF(C,1),C,O,2,1),COLORRED;
STICKLINE(CURRBARSCOUNT<26 AND C<REF(C,1),H,L,0,0),COLORCYAN;
STICKLINE(CURRBARSCOUNT<26 AND C<REF(C,1),C,O,2,0),COLORCYAN;
A1:=IF(C>REF(C,1) AND CROSS(C,MA(C,24)),30,5);
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND A1=30,0.9,0.1,1,'收阳上穿24线'),COLORYELLOW;
A2:=IF(C>REF(C,1) AND CROSS(C,MA(C,60)),30,5);
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND A2=30,0.9,0.2,1,'收阳上穿60线'),COLORYELLOW;
A3:=IF(C>REF(C,1) AND CROSS(C,MA(C,120)),30,5);
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND A3=30,0.9,0.3,1,'收阳上穿120线'),COLORYELLOW;
A4:=IF(C>REF(C,1) AND CROSS(C,MA(C,240)),30,5);
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND A4=30,0.9,0.4,1,'收阳上穿240线'),COLORYELLOW;
A5:=IF(C>REF(C,1) AND MA(C,5)>=MA(C,10),20,5);
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND A5=20,0.9,0.5,1,'收阳5日线大于10日线'),COLORYELLOW;
A6:=MAX(MAX(A1,A2),MAX(A3,A4));
A7:=MAX(A6,A5);
B1:=IF(V/CAPITAL*100>1 AND V/CAPITAL*100<2,20,5);
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND B1=20,0.9,0.6,1,'量一般'),COLORYELLOW;
B2:=IF(V/CAPITAL*100>2 AND V/CAPITAL*100<5,25,5);
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND B2=25,0.9,0.7,1,'量放大'),COLORYELLOW;
B3:=IF(V/CAPITAL*100>5,30,5);
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND B3=30,0.9,0.8,1,'量特大'),COLORYELLOW;
B4:=IF(V/CAPITAL*100<1,-10,5);
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND B4=-10,0.9,0.9,1,'量不足'),COLORGREEN;
B5:=MAX(MAX(B1,B2),MAX(B3,B4));
C1:=IF(DYNAINFO(17)>1.5,20,5);
C2:=IF(DYNAINFO(17)>2,25,5);
C3:=IF(DYNAINFO(17)>5,30,5);
C4:=IF(DYNAINFO(17)<1,-10,5);
C5:=MAX(MAX(C1,C2),MAX(C3,C4));
D1:=IF((DYNAINFO(23)/DYNAINFO(22))>1,5,0);
D2:=IF((DYNAINFO(23)/DYNAINFO(22))>1.2,10,0);
D3:=IF((DYNAINFO(23)/DYNAINFO(22))<1,-5,0);
D4:=MAX(MAX(D1,D2),D3);
E1:=IF(C<REF(C,1) AND CROSS(MA(C,10),MA(C,5)),-20,5);
总分:=A7+B5+C5+D4+E1;
STICKLINE(M240>REF(M240,1),M240,M240*0.98,5,0),COLORRED;
DRAWTEXT(M240>REF(M240,1),M240,'上升'),COLORYELLOW;