伏击波段: //FJ波段 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); 波动:MA(CLOSE,10000); STICKLINE((MA15 > REF(MA15,1)),MA15,MA15,9,6),LINETHICK2,color0000FF; STICKLINE((MA15 < REF(MA15,1)),MA15,MA15,9,6),LINETHICK2,colorFF0000; DRAWTEXT(CROSS(FF,MA15),(LOW * 0.99),'★向上'),Color00FFFF; DRAWTEXT(CROSS(MA15,FF),(HIGH * 1.02),'●向下'),colorblue; DRAWTEXT(CROSS(85,RSI),(HIGH * 1.02),'●回调'),colorgreen; 买线:=EMA(C,2); 卖线:=EMA(SLOPE(C,21)*20+C,42); BU:=CROSS(买线,卖线); SEL:=CROSS(卖线,买线); STICKLINE(买线>=卖线,LOW,HIGH,1,0),colorred; STICKLINE(买线>=卖线,CLOSE,OPEN,4.5,0),color0000aa; STICKLINE(买线>=卖线,CLOSE,OPEN,4,0),color0000cc; STICKLINE(买线>=卖线,CLOSE,OPEN,3,0),color0000cc; STICKLINE(买线>=卖线,CLOSE,OPEN,2,0),color0000ee; STICKLINE(买线<卖线,CLOSE,OPEN,4.5,0),coloraaaa00; STICKLINE(买线<卖线,CLOSE,OPEN,4,0),colorbbbb00; STICKLINE(买线<卖线,CLOSE,OPEN,3,0),colorcccc00; STICKLINE(买线<卖线,CLOSE,OPEN,2,0),coloreeee00; STICKLINE(买线<卖线,LOW,HIGH,1,0),colorffff00; STICKLINE(CROSS(买线,卖线) OR CROSS(卖线,买线),OPEN,CLOSE,3,0),color00ffff; 趋势线: EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2),linethick1,ColorFFffFF; 界: MA(CLOSE,27),linethick1,COLORff00ff; GET:ZIG(3,5),coloryellow,linethick2; PL5:=ZIG(3,5); EN1:=pl5>REF(pl5,1) AND REF(pl5,1)<=REF(pl5,2) AND REF(pl5,2)<=REF(pl5,3); EX1:=pl5<REF(pl5,1) AND REF(pl5,1)>=REF(pl5,2) AND REF(pl5,2)>=REF(pl5,3); PL10:=ZIG(3,10); EN2:=pl10>REF(pl10,1) AND REF(pl10,1)<=REF(pl10,2) AND REF(pl10,2)<=REF(pl10,3); EX2:=pl10<REF(pl10,1) AND REF(pl10,1)>=REF(pl10,2) AND REF(pl10,2)>=REF(pl10,3); PL20:=ZIG(3,20); EN3:=pl20>REF(pl20,1) AND REF(pl20,1)<=REF(pl20,2) AND REF(pl20,2)<=REF(pl20,3); EX3:=pl20<REF(pl20,1) AND REF(pl20,1)>=REF(pl20,2) AND REF(pl20,2)>=REF(pl20,3); 走强1:=BARSLAST(PL5<REF(PL5,1)); 走弱1:=BARSLAST(PL5>REF(PL5,1)); 走强2:=BARSLAST(PL10<REF(PL10,1)); 走弱2:=BARSLAST(PL10>REF(PL10,1)); 走强3:=BARSLAST(PL20<REF(PL20,1)); 走弱3:=BARSLAST(PL20>REF(PL20,1)); ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0); ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0); DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0); DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0); ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0); ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0); DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0); DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0); DRAWTEXT(EN1 AND DTJZ5=1,L*0.98,'㈠'),COLORFFFF00; DRAWTEXT(EX1 AND DTJD5=2,H*1.02,'㈡'),COLORFFFF00; DRAWTEXT(EN2 AND ZTJZ5=1,L*0.98,'㈢'),COLORFFFF00; .............. 愚人强势(顶尖财经 股票学院: www.58188.com): N:=9; VAR1:=(C-REF(C,1))/REF(C,1); VAR2:=(INDEXC-REF(INDEXC,1))/REF(INDEXC,1); 个股:=EMA(SUM(VAR1,20),5); 大盘:=EMA(SUM(VAR2,20),5); 领涨:=(个股-大盘)>=0; Var3:=(C-LLV(L,125))/(HHV(H,125)-LLV(L,125))*100; Var4:=SMA(Var3,72,1); Var5:=SMA(Var4,34,1); 中线趋势:=3*Var4-2*Var5; 中线趋势升:=(中线趋势-REF(中线趋势,1))>=0; 均五升:=(MA(C,5)-REF(MA(C,5),1))>=0; 均十升:=(MA(C,10)-REF(MA(C,10),1))>=0; STICKLINE(均五升 AND 均十升 AND 中线趋势升,0+0.5,0-0.5,6,1),colorffff00,linethick4; 强势:IF(均五升 AND 均十升 AND 中线趋势升 AND 领涨,4,0),colorff99ff; VAR6:=(2*C+H+L)/4; VAR7:=LLV(L,n); VAR8:=HHV(H,n); 操作:EMA((VAR6-VAR7)/(VAR8-VAR7)*100,13)-50,linethick0,colorred; 趋势:EMA(0.618*REF(操作,1)+0.382*操作,3),colorffff00,linethick2; STICKLINE(操作>趋势 AND 操作>=REF(操作,1),操作+5,趋势-1,3.5,0),colorred,linethick2; STICKLINE(操作>=趋势,趋势,趋势,3.5,0),coloryellow,linethick2; STICKLINE(操作<趋势,趋势+0.5,趋势-0.5,3.5,0),colorffff00,linethick2; STICKLINE(强势=4,操作+6,趋势-1,4,0),colorff99ff; 强弱界:0,colorffff00; STICKLINE(操作>=趋势 AND 均五升 AND 均十升 AND 中线趋势升,趋势-3,趋势-7,4,0),color64A0E6; 运动:=IF(操作>=趋势 AND 均五升 AND 均十升 AND 中线趋势升 AND 趋势<0,1,0); 买进:IF(运动=1 AND COUNT(运动=1,5)=1,8,0),colorred,linethick1; DRAWTEXT(买进=8,操作,'买进'),colorcc33cc; BIAS1:=(C-MA(C,6))/MA(C,6)*100; BIAS2:=(C-MA(C,12))/MA(C,12)*100; BIAS3:=(C-MA(C,24))/MA(C,24)*100; BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6; 乖离:=MA(BIAS,3); 准备:STICKLINE(乖离<-6 AND 乖离>=-12,-6,0,6,1 ),COLOR33ffcc; 抄底一:IF(乖离<-12 AND 乖离>=-18,-12,0),COLOR33cccc,STICK; STICKLINE(乖离<-12 AND 乖离>=-18,-12,0,6,0) ,COLOR33cccc; 抄底二:IF(乖离<-18,-18,0),COLOR3399cc,STICK; STICKLINE(乖离<-18,-18,0,6 ,0) ,COLOR3399cc; 抄底:IF(买进=8 AND COUNT(乖离<-12,10)>=1,10,0),linethick0,colorred; STICKLINE(抄底=10,10,0,10,1),colorred; DRAWTEXT(抄底=10,10,'←抄底'),color00ff00; DRAWTEXT(CROSS(操作,趋势) AND (操作>-30),操作,'▲'),colorred; DRAWTEXT(CROSS(趋势,操作) AND (操作>-20),操作,'▼' ),Color00FF00; DRAWTEXT(CROSS(操作,强弱界),操作,'始'); DRAWTEXT(CROSS(操作,趋势),操作,'终'); |
上一篇:同花顺源码:愚人变色+起爆点