指标源码: A13:=EMA(C,13),COLORWHITE; A21:=EMA(C,21),COLORYELLOW; A34:=EMA(C,34),COLORFF00FF; A60:=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 散户<30,L-0.05,'←低吸'),COLORLIRED; 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); AA1:IF(CROSS(买线,卖线),L-0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORMAGENTA; AA2:IF(CROSS(80,RSI)*30,H+0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW; AAA:=((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; B2:=IF(AAA>20 AND FILTER(AAA< REF(AAA,1),5),H+0.02,DRAWNULL),CIRCLEDOT,LINETHICK3,COLORGREEN; B0:=(L+H+C*2)/4; B1A:EMA(B0,14)COLORBLUE,LINETHICK2; B2A:=EMA(B0,25)COLORLIBLUE,LINETHICK2; B1X:=(B1A-REF(B1A,1))/REF(B1A,1)*100,NODRAW; B2X:=(B2A-REF(B2A,1))/REF(B2A,1)*100,NODRAW; 看多:IF(B1X>=0 AND BARSLAST(CROSS(B1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(B1X,0))),DRAWNULL),COLORMAGENTA{,LINETHICK2}; 逃顶:IF(B1X<0 AND BARSLAST(CROSS(0,B1X))>0,REF((C+O)/2,BARSLAST(CROSS(0,B1X))),DRAWNULL),COLORCYAN,{LINETHICK2}; 买入持股:IF(B1X>=0,B1A,DRAWNULL)COLORRED,LINETHICK3; 卖出空仓:IF(B1X<0 AND B2X<0,B1A,DRAWNULL)COLORGREEN,LINETHICK3;
选股源码:
A13:=EMA(C,13),COLORWHITE; A21:=EMA(C,21),COLORYELLOW; A34:=EMA(C,34),COLORFF00FF; A60:=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; DRAWICON(CROSS(散户,庄家) AND 散户<30,L-0.05,1);
|