强弱支撑: 高幅:=(H-REF(C,1))/REF(C,1)*100,LINETHICK; 高跌:=(C-H)/H*100,LINETHICK; 低幅:=(L-REF(C,1))/REF(C,1)*100,LINETHICK; 低涨:=(C-L)/L*100,LINETHICK,coloryellow; 均价A:=(O+2*H+2*L+3*C)/8; 上影线:=H-MAX(O,C); 下影线:=MIN(O,C)-L; 价能:=(下影线-上影线)+(H-REF(C,1)+C-H+L-REF(C,1)+C-L)/4; 均价B:=(O+H+L+C)/4+价能; 均价:=(均价A+均价B)/2; 支撑A:=(REF((高幅+高跌+低幅+低涨)/4,1)+(高幅+高跌+低幅+低涨)/4)/2*REF(均价,1),LINETHICK1,colormagenta; 支撑:MA(支撑A,3),COLORSTICK; 强弱线A:=MA(支撑A,21); STICKLINE(支撑>=0 AND 支撑>=REF(支撑,1),0,支撑,2,0),colorred; STICKLINE(支撑>=0 AND 支撑<=REF(支撑,1),0,支撑,2,0),colorgreen; STICKLINE(支撑<=0 AND 支撑>=REF(支撑,1),0,支撑,2,0),COLORFF00FF; STICKLINE(支撑<=0 AND 支撑<=REF(支撑,1),0,支撑,2,0),colorcyan; 强弱线:MA(支撑A,21); 通道: A1A:=EMA(CLOSE,9); A1B:=((A1A-EMA(CLOSE,5))<0); A1C:=((A1A-EMA(CLOSE,5))>0); A1D:=BARSLAST(A1B); A1E:=BARSLAST(A1C); A1F:=IF((A1E>0),(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100,0); A20:=SUM(A1F,0); A21:=IF((A1D>0),(0-2),0); A22:=IF((A1E>0),SUM((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100,A1E),0); A23:=A22/A1E; A25:=EMA(EMA(EMA(CLOSE,3),2),3); 上升通道:((A25-REF(A25,1))+A25),colorred; 反转通道:MA(上升通道,15),colorgreen; 买入:((REF(A21,1)=(0-2)) AND (A21=0)),NODRAW; 卖出:COUNT(上升通道<REF(上升通道,2),2)=1 AND 上升通道>反转通道 AND C<O,NODRAW; STICKLINE((上升通道>反转通道),反转通道,上升通道,1,0),colormagenta; STICKLINE((反转通道>上升通道),上升通道,反转通道,1,0),COLORFF0000; DRAWICON(买入,上升通道*1.01,5); DRAWICON((卖出 OR ((REF(A1E,1)>0) AND (A1E=0))),上升通道*1.01,6); 抓涨停(顶尖财经 股票学院: www.58188.com): M3:=MA(CLOSE,3); UPPER:=(1+9/100)*MA(CLOSE,9)*0.96; 主升浪:(m3-UPPER)/upper*100; a2:=REF(主升浪,1); a3:=REF(主升浪,2); S:=(EMA(C,5)-REF(EMA(C,5),1))/REF(EMA(C,5),1)*100; 爆发线:MA(s,3)*2-3,colorred; 强势:=-1,colorgreen; 差值:主升浪-爆发线; 爆发:0 |