指标源码:
AAA:=(CLOSE-LLV(LOW,4))/(HHV(HIGH,4)-LLV(LOW,4))*100; FASTK:=SMA(AAA,3,1); 小龙:=SMA(FASTK,2,1); 大龙:=SMA(小龙,5,1); DRAWBAND(大龙,RGB(0,104,154),小龙,RGB(255,0,0)); STICKLINE(小龙>=大龙,大龙,小龙,3,0),COLOR000085; STICKLINE(小龙<大龙,大龙,小龙,3,0),COLOR324800; DRAWTEXT(CROSS(大龙,小龙) AND 小龙>70,50,'卖'),COLORGREEN; BBB:=(CLOSE-LLV(LOW,11))/(HHV(HIGH,11)-LLV(LOW,11))*200-60; 小凤:SMA(BBB,3,1),COLORYELLOW; 大凤:=SMA(小凤,3,1),COLORRED; DRAWBAND(大凤,RGB(0,128,0),小凤,RGB(255,97,0)); DRAWTEXT(CROSS(大凤,小凤)AND 小凤>78,小凤,'←快卖'); AAFF:= EMA(CLOSE,12) - EMA(CLOSE,26); DEA:=EMA(AAFF,9); MACD:=1000* (2*(AAFF-DEA))/EMA(C,30); AARA:=EMA(REF(CLOSE,1),4); AAR1:=(SMA(MAX(CLOSE-AARA,0),6,1)/SMA(ABS(CLOSE-AARA),6,1)*100); AAR2:=FILTER(MACD<0 AND MACD>REF(MACD,1) AND AAR1<20,5); AAR3:=CROSS(AAR1,90); 准备:IF(AAR1<3.5,15,0),COLORCYAN,LINETHICK2; DRAWTEXT(AAR1<3.5,7,'准备'),COLORCYAN; 钱进:IF(AAR2,20,0),COLORMAGENTA,LINETHICK3; DRAWTEXT(AAR2,10,'“钱”进'),COLORRED; AAR4:=LLV(LOW,10); AAR5:=HHV(H,25); AAR6:=EMA((C-AAR4)/(AAR5-AAR4)*4,4); DRAWTEXT(CROSS(3.5,AAR6),110,'急卖'); 恭喜:STICKLINE(CROSS(AAR6,0.3),-50,-30,3,0), COLOR00AAFF,LINETHICK1; STICKLINE(CROSS(AAR6,0.3),-40,-30,3,0),COLORRED,LINETHICK1; DRAWTEXT(CROSS(AAR6,0.3),-45,'恭喜'),COLORMAGENTA; 发财:STICKLINE(CROSS(3.5,AAR6),100,120,2,0), COLORRED,LINETHICK2; STICKLINE(CROSS(3.5,AAR6),110,120,2,0),COLORYELLOW,LINETHICK2; DRAWTEXT(CROSS(3.5,AAR6),90,'发财'),COLORYELLOW; 凤影:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1) -2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27) -LLV(LOW,27))*100,5,1),3,1); 龙飞:IF(凤影<=10,-20,-40),COLOR0000FF,LINETHICK2; 红红:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1) -2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27) -LLV(LOW,27))*100,5,1),3,1); 花开:IF(CROSS(红红,2),70,-50),COLORLIMAGENTA,LINETHICK2; DRAWTEXT(CROSS(红红,2),75,'花开'),COLORMAGENTA; IF(CROSS(红红,2),70,DRAWNULL),CROSSDOT,LINETHICK6,COLORFF77FF; IF(CROSS(红红,2),70,DRAWNULL),POINTDOT,LINETHICK4,COLOR00CCFF; BBV1:=(((CLOSE - LLV(LOW,29)) / (HHV(HIGH,29) - LLV(LOW,29))) * 100); KK1:=MA(BBV1,5); DD1:=MA(KK1,2); JJ1:=((3 * KK1) - (2 * DD1)); 明天涨:IF((JJ1 < 5),25,0),COLORRED,LINETHICK2; DRAWTEXT((JJ1 < 5),30,'明天涨'),COLORYELLOW; RR:=RSI; MARR:=MA(RR,3); F:=100*(C-REF(C,1))/REF(C,1); HHH:=EMA(RR,25)+6,COLORBLUE; GAODIAN:=REF(RR,1)>REF(RR,2) AND REF(RR,1)>RR; DIDIAN:=(REF(RR,1)<REF(RR,2) AND REF(RR,1)<RR) OR (REF(RR,1)=REF(RR,2) AND REF(RR,1)<RR AND REF(RR,2)<REF(RR,3)); BIAOJI:=CROSS(HHH,RR); JIN:STICKLINE(REF(RR,2)>REF(RR,3) AND REF(RR,2)>REF(RR,1) AND RR>REF(RR,1) AND MARR>REF(MARR,1)+1 AND REF(MARR,2)-REF(MARR,1)>-1 AND REF(RR,1)<REF(MARR,1) AND REF(RR,2)-REF(MARR,2)>-3 AND REF(RR,1)<38 AND RR<HHH AND F<8,100,120,2,0),COLORRED; DRAWTEXT(JIN,110,'RSI买'),COLORYELLOW; VAR7:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1); VAR8:=EMA(VAR7,5), LINETHICK2,COLOR6600FF; VAR9:=100*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60)),LINETHICK2; STICKLINE(CROSS(VAR8,VAR9),0,20,2,0); DRAWTEXT(CROSS(VAR8,VAR9),20,'追涨'); VOLUME:=VOL/10000,VOLSTICK; MAVOL1:=MA(VOLUME,5)/10000; MAVOL2:=MA(VOLUME,35)/10000; MAVOL3:=MA(VOLUME,135)/10000; 地量:IF(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),-25,-50),COLORMAGENTA,LINETHICK3; DRAWTEXT(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),-29,' 地量'),COLORRED; DRAWTEXT(LAST(MA(C,5)<MA(C,10),5,0) AND "CCI.CCI">REF("CCI.CCI",1) AND CROSS("CCI.CCI",-100),-45,'CCI买点'),COLORYELLOW; A51:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1); LC:=REF(CLOSE,1); RSI2:=((SMA(MAX((CLOSE-LC),0),3,1)/SMA(ABS((CLOSE-LC)),3,1))*100); FF:=EMA(CLOSE,3); MA15:=EMA(CLOSE,21); 出局:IF(CROSS(88,RSI2),100,120),COLORLIGREEN,LINETHICK3; DRAWTEXT(CROSS(88,RSI2),100,'虎'),COLORGREEN; RSV3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100; K:=SMA(RSV3,3,1); D:=SMA(K,3,1); J:=3*K-2*D; X:=LLV(J,2)=LLV(J,8); 进场:IF(CROSS(J,REF(J+0.01,1)) AND X AND J<20,0,-20),COLORYELLOW,LINETHICK2; DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<20,-10,'龙'),COLORYELLOW; WZ:=150=CURRBARSCOUNT;
|