机构持仓进场,有买卖信号(通达信公式 副图 源码 测试图)
{机构进场加仓}AA:=WINNER(CLOSE+CLOSE*15/100)*100;BB:=WINNER(CLOSE+CLOSE*0/100)*100;CC:=AA-BB;DD:=(WINNER(CLOSE-CLOSE*0.1/100)-WINNER(CLOSE-CLOSE*15/100))*100;EE:=CC<3 AND DD<0.5 AND OPEN<>LOW;A1:=DYNAINFO(6);A2:=IF(LOW>A1,0,IF(HIGH<A1,1,(A1-LOW+0.01)/(HIGH-LOW+0.01)));A3:=VOL/WINNER(LOW);A4:=REF(HHV(CLOSE,120),1);A5:=REF(LLV(CLOSE,120),1);A6:=100*(CLOSE-A5)/(A4-A5);A7:=A2>0 OR A2=1;A8:=A7 AND A3/REF(A3,3)>=3 AND A6<80;A9:=REF(A8,1) OR REF(A8,2) OR REF(A8,3) OR REF(A8,4);A10:=A8 AND A9;A11:=IF(FILTER(A8,3),5,0);A12:=IF(FILTER(A10,3) OR EE,10,0);进场日:IF(A11,1,0),LINETHICK0;STICKLINE(A12,100,15,5,0),COLORFF00FF;加仓日:IF(A12,1,0),LINETHICK0;STICKLINE(A12,100,15,5,0),COLORFF00FF;STICKLINE(A11,50,5,5,0),COLORFF7700;STICKLINE(A11,50,5,4.5,0),COLORFF8800;STICKLINE(A11,50,5,4,0),COLORFF9900;STICKLINE(A11,50,5,3.5,0),COLORFFAA00;STICKLINE(A11,50,5,3,0),COLORFFBB00;STICKLINE(A11,50,5,2.5,0),COLORFFCC00;STICKLINE(A11,50,5,2,0),COLORFFDD00;STICKLINE(A11,50,5,1,0),COLORFFEE00;STICKLINE(A12,100,15,4.5,0),COLOR102099;STICKLINE(A12,100,15,4,0),COLOR1020AA;STICKLINE(A12,100,15,3.5,0),COLOR1020BB;STICKLINE(A12,100,15,3,0),COLOR1020CC;STICKLINE(A12,100,15,2.5,0),COLOR1020DD;STICKLINE(A12,100,15,2,0),COLOR1020EE; STICKLINE(A12,100,15,1,0),COLOR1020FF; DRAWTEXT(A11,48,'进场'),COLORYELLOW; DRAWTEXT(A12,77,'加仓'),COLORWHITE;{持仓线}VAR1:=IF(YEAR>=2993 AND MONTH>=1,0,1);VAR2:=REF(LOW,1)*VAR1;VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100*VAR1;VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3)*VAR1;VAR5:=LLV(LOW,30)*VAR1;VAR6:=HHV(VAR4,30)*VAR1;VAR7:=IF(MA(CLOSE,58),1,0)*VAR1;VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7*VAR1;VAR9:=IF(VAR8>100,100,VAR8)*VAR1;吸筹:IF((VAR9>-150),VAR9,0),DRAWNULL,COLORMAGENTA;STICKLINE(VAR9>-150,0,VAR9,6,1), , COLORMAGENTA;持筹线: (CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100*VAR1, , COLORGREEN;抄底: IF(CROSS(持筹线,-24),1,0), , COLORRED;STICKLINE(CROSS(持筹线,-24),100,0,6,0), , COLORGREEN;先知: (CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100*VAR1, , COLORYELLOW;{可能放量拉升: 0*VAR1, , COLORWHITE;}启动