M:=55; N:=34; LC:=REF(CLOSE,1); RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100); FF:=EMA(CLOSE,3); MA15:=EMA(CLOSE,21); GU1:=IF(YEAR>=2038 AND MONTH>=1,0,1); GU2:=REF(LOW,1)*GU1; GU3:=SMA(ABS(LOW-GU2),3,1)/SMA(MAX(LOW-GU2,0),3,1)*100*GU1; GU4:=EMA(IF(CLOSE*1.3,GU3*10,GU3/10),3)*GU1; GU5:=LLV(LOW,30)*GU1; GU6:=HHV(GU4,30)*GU1; GU7:=IF(MA(CLOSE,58),1,0)*GU1; GU8:=EMA(IF(LOW<=GU5,(GU4+GU6*2)/2,0),3)/618*GU7*GU1; 吸筹:IF(GU8>100,100,GU8)*GU1,colorred; 庄家吸筹:STICKLINE(吸筹>-150,0,吸筹,8,0),colorred; RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100; K:=SMA(RSV,3,1); D:=SMA(K,3,1); J:=3*K-2*D; 庄家:EMA(J,6),colorred,LINETHICK2; 散户: 100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M)),colorgreen,LINETHICK2; 一级买点:DRAWTEXT(CROSS(14,吸筹),10,'买一'),coloryellow; 二级买点:DRAWTEXT(CROSS(庄家,散户) AND 庄家<50,30,'买二'),colorred; 一级卖点:DRAWTEXT(CROSS(88,庄家),80,'卖一'),colorgreen; 二级卖点:DRAWTEXT(CROSS(散户,庄家),60,'卖二'),colorcyan; DRAWICON(CROSS(庄家,散户),庄家*0.95,4); DRAWICON(CROSS(散户,庄家),散户*1.05,5); LC:=REF(CLOSE,1); RSI6:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,LINETHICK2,colormagenta; DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA:=EMA(DIFF,9); MACD:=(DIFF-DEA)*2; 进攻:STICKLINE((CROSS(RSI6,20) OR CROSS(RSI6,30)),0,50,8,0),colormagenta; 撤退:STICKLINE(CROSS(80,RSI6),50,100,8,0),colorgreen; 买线:=ZIG(3,10); 卖线:=MA(买线,2); BU:=CROSS(买线,卖线); SEL:=CROSS(卖线,买线); DRAWTEXT(BU,20,'★机构'),LINETHICK2,coloryellow; DRAWTEXT(SEL AND KD.K>70 ,80,'☆清仓'),LINETHICK1,colorgreen; |
上一篇:趋势赢在买卖(同花顺公式源码)
下一篇:趋势买卖(同花顺公式源码)