指标源码: AA:=55; BB:=34; CC:=21; DD:=REVERSE(CC); EE:=REF(MA(C,1),10)>REF(MA(C,60),10); LC:=REF(CLOSE,1); RSI:=((SMA(MAX((CLOSE-LC),0),3,1)/SMA(ABS((CLOSE-LC)),3,1))*100); 买点:CROSS(C,DD) AND EE; FF:=EMA(CLOSE,3); MA15:=EMA(CLOSE,21); STICKLINE(买点,0,30,1,0),COLORBLUE; STICKLINE(买点,30,60,1,0),COLORWHITE; V1:=IF(YEAR>=2038 AND MONTH>=1,0,1); STICKLINE(买点,60,80,1,0),COLORYELLOW; DRAWTEXT(买点,70,'庄家出现'),COLORRED; V2:=REF(LOW,1)*V1; V3:=SMA(ABS(LOW-V2),3,1)/SMA(MAX(LOW-V2,0),3,1)*100*V1; VQ1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1); VQ2:=SMA(ABS(LOW-VQ1),13,1)/SMA(MAX(LOW-VQ1,0),10,1); V4:=EMA(IF(CLOSE*1.3,V3*10,V3/10),3)*V1; V5:=LLV(LOW,30)*V1; VQ3:=EMA(VQ2,10); VQ4:=LLV(LOW,33); V6:=HHV(V4,30)*V1; V7:=IF(MA(CLOSE,58),1,0)*V1; VQ5:=EMA(IF(LOW<=VQ4,VQ3,0),3); 主力进场:IF(VQ5>REF(VQ5,1),VQ5,0),COLORRED,NODRAW; V8:=EMA(IF(LOW<=V5,(V4+V6*2)/2,0),3)/618*V7*V1; 吸筹:IF(V8>100,100,V8)*V1,COLORRED; STICKLINE(VQ5>REF(VQ5,1),0,VQ5,1,0 ),COLORRED; STICKLINE(VQ5>REF(VQ5,1),0,VQ5,1,0 ),COLOR000055; 庄家吸筹:STICKLINE(吸筹>-150,0,吸筹,8,0),COLORRED; 散户:100*(HHV(HIGH,AA)-CLOSE)/(HHV(HIGH, AA)-LLV(LOW,AA)),COLORLIBLUE,LINETHICK2; STICKLINE(VQ5>REF(VQ5,1),0,VQ5,1,0 ),COLOR000077; STICKLINE(VQ5>REF(VQ5,1),0,VQ5,1,0 ),COLOR000099; RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:=SMA(RSV,3,1); STICKLINE(VQ5>REF(VQ5,1),0,VQ5,1,0 ),COLOR0000BB; STICKLINE(VQ5>REF(VQ5,1),0,VQ5,1,0 ),COLOR0000DD; D:=SMA(K,3,1); JJ:=3*K-2*D; STICKLINE(VQ5>REF(VQ5,1),0,VQ5,1,0 ),COLOR0000FF; 洗盘:IF(VQ5<REF(VQ5,1),VQ5,0),COLORGREEN,NODRAW; STICKLINE(VQ5<REF(VQ5,1),0,VQ5,1,0),COLORGREEN; 庄家:EMA(JJ,6),COLORLIRED,LINETHICK2; STICKLINE(VQ5<REF(VQ5,1),0,VQ5,1,0),COLOR005500; STICKLINE(VQ5<REF(VQ5,1),0,VQ5,1,0),COLOR007700;
选股源码:
AA:=55; BB:=34; CC:=21; DD:=REVERSE(CC); EE:=REF(MA(C,1),10)>REF(MA(C,60),10); LC:=REF(CLOSE,1); RSI:=((SMA(MAX((CLOSE-LC),0),3,1)/SMA(ABS((CLOSE-LC)),3,1))*100); 买点:=CROSS(C,DD) AND EE; FF:=EMA(CLOSE,3); MA15:=EMA(CLOSE,21); V1:=IF(YEAR>=2038 AND MONTH>=1,0,1); V2:=REF(LOW,1)*V1; V3:=SMA(ABS(LOW-V2),3,1)/SMA(MAX(LOW-V2,0),3,1)*100*V1; VQ1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1); VQ2:=SMA(ABS(LOW-VQ1),13,1)/SMA(MAX(LOW-VQ1,0),10,1); V4:=EMA(IF(CLOSE*1.3,V3*10,V3/10),3)*V1; V5:=LLV(LOW,30)*V1; VQ3:=EMA(VQ2,10); VQ4:=LLV(LOW,33); V6:=HHV(V4,30)*V1; V7:=IF(MA(CLOSE,58),1,0)*V1; VQ5:=EMA(IF(LOW<=VQ4,VQ3,0),3); 主力进场:=IF(VQ5>REF(VQ5,1),VQ5,0),COLORRED,NODRAW; V8:=EMA(IF(LOW<=V5,(V4+V6*2)/2,0),3)/618*V7*V1; 吸筹:=IF(V8>100,100,V8)*V1,COLORRED; 庄家吸筹:=STICKLINE(吸筹>-150,0,吸筹,8,0),COLORRED; 散户:=100*(HHV(HIGH,AA)-CLOSE)/(HHV(HIGH, AA)-LLV(LOW,AA)),COLORLIBLUE,LINETHICK2; RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:=SMA(RSV,3,1); D:=SMA(K,3,1); JJ:=3*K-2*D; 洗盘:=IF(VQ5<REF(VQ5,1),VQ5,0),COLORGREEN,NODRAW; 庄家:=EMA(JJ,6),COLORLIRED,LINETHICK2; 选股:洗盘>0 AND REF(洗盘,1)=0;
|