指标源码: MA13:=EMA(C,13),COLORWHITE; MA21:=EMA(C,21),COLORYELLOW; MA34:=EMA(C,34),COLORFF00FF; MA60:=MA(C,60),COLORFFCC66; AR2:=(2*CLOSE+HIGH+LOW)/4; AR3:=IF(YEAR>=2099 AND MONTH>2,0,1); AR4:=LLV(LOW,5); AR5:=HHV(HIGH,4); 散户:=EMA((AR2-AR4)/(AR5-AR4)*100,4)*AR3; 庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*AR3; DRAWTEXT(CROSS(庄家,散户) AND 散户>70,H+0.05,'←高抛'),COLORGREEN; DRAWICON(CROSS(散户,庄家) AND 散户<30,L-0.05,1); DRAWICON(CROSS(庄家,散户) AND 散户>70,H+0.05,2); AR9:=CLOSE-REF(CLOSE,5); ARA:=EMA(EMA(AR9,5),5)/EMA(EMA(ABS(AR9),5),5); ARC:=EMA(EMA(AR9,20),20)/EMA(EMA(ABS(AR9),20),20); 卖出:=IF(ARA>0 AND CROSS(ARC,ARA),90,100); DRAWICON(卖出<0,H+0.05,2); 买线:=EMA(CLOSE,2); 卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42); BB1:IF(CROSS(买线,卖线),L-0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORMAGENTA; SS1:IF(CROSS(80,RSI)*30,H+0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW; VVC:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA (CLOSE,32))/MA(CLOSE,32)*100)/3; S2:=IF(VVC>20 AND FILTER(VVC< REF(VVC,1),5),H+0.02,DRAWNULL),CIRCLEDOT,LINETHICK3,COLORGREEN; AA0:=(L+H+C*2)/4; AA1:EMA(AA0,14)COLORBLUE,LINETHICK2; AA2:=EMA(AA0,25)COLORLIBLUE,LINETHICK2; AA1X:=(AA1-REF(AA1,1))/REF(AA1,1)*100,NODRAW; AA2X:=(AA2-REF(AA2,1))/REF(AA2,1)*100,NODRAW; 看多:IF(AA1X>=0 AND BARSLAST(CROSS(AA1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(AA1X,0))),DRAWNULL),COLORMAGENTA{,LINETHICK2}; 看空:IF(AA1X<0 AND BARSLAST(CROSS(0,AA1X))>0,REF((C+O)/2,BARSLAST(CROSS(0,AA1X))),DRAWNULL),COLORCYAN,{LINETHICK2}; 做多:IF(AA1X>=0,AA1,DRAWNULL)COLORRED,LINETHICK3; 做空:IF(AA1X<0 AND AA2X<0,AA1,DRAWNULL)COLORGREEN,LINETHICK3; STICKLINE(CROSS(AA1X,0),H,L,0,0 ),COLOR9933FF; STICKLINE(CROSS(AA1X,0),C,O,3,0 ),COLOR0000CC; STICKLINE(CROSS(AA1X,0),C,O,1,0 ),COLOR0033FF; STICKLINE(CROSS(0,AA1X),L,H,0,0 ),COLOR66CC33;
|