1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
| LC:=REF(CLOSE,1); RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; SG:=CROSS(85,RSI1)*30,COLOR00FF00,LINETHICK2; 卖:IF(SG,6.5,0),STICK,COLORGREEN,LINETHICK4; SG1:=(CLOSE-LLV(LOW,32))/(HHV(HIGH,32)-LLV(LOW,32))*1.2*CLOSE; E1:=EMA(SG1,3); E2:=EMA(SG1,5); E3:=EMA(SG1,7); STICKLINE(E1>E2,E3,E1,3,1),COLORRED; STICKLINE(E1<E2,E3,E1,2,0),COLORCYAN; T1:=E2>E3 AND E1<REF(E1,1); T2:=E2<E3 AND E1>REF(E1,1); STICKLINE(T1,E1,E3,2,0),COLORYELLOW; STICKLINE(T2,E1,E3,3,1),COLORFF00FF; SG2:=SMA(SG1,13,1); 分水岭:SMA(SG2,2.5,1.5),LINETHICK2,COLORWHITE; 牛线:3*SG2-2*分水岭,LINETHICK2,COLORFF00FF ; 熊线:4*分水岭-3*SG2,LINETHICK2,COLORFF6633; TJ1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; DRAWICON(CROSS(90,TJ1),H*0.8,9); TJ2:=HHV(HIGH,34); TJ3:=(2*CLOSE+HIGH+LOW)/4; TJ4:=LLV(LOW,34); TJ5:=EMA(((TJ3-TJ4)/(TJ2-TJ4))*100,13); TJ6:=EMA(0.667*REF(TJ5,1)+0.333*TJ5,2); TJ7:=TJ5-TJ6>1 AND TJ5<30 AND TJ6<30; DRAWTEXT(FILTER(TJ7,30),L*0.05,'▲短买'),COLOR00FFFF; ZB1:=SMA(MAX(C-LC,0),6,1)/SMA(ABS(C-LC),6,1)*100; DRAWTEXT(CROSS(82,ZB1),H*0.9,'◆减仓'),COLORGREEN; DRAWTEXT_FIX(C>O,0.01,0.9,0,'公众号:水哥指标库'),COLORWHITE; RSI2:=(C-LLV(L,25))/(HHV(HIGH,25)-LLV(L,25))*100; K:=SMA(RSI2,3,1); D:=SMA(K,3,1); J:=3*K-2*D; ZB2:=(2*C+H+L)/3; ZB3:=EMA(EMA(EMA(ZB2,4),4),4); ZB4:=(ZB3-REF(ZB3,1))/REF(ZB3,1)*100; ZB5:=MA(ZB4,3)+0.03; ZB6:=MA(ZB4,1); DRAWICON(CROSS(ZB5,ZB6) AND J>90,H*0.96,12),COLORGREEN; DRAWTEXT(CROSS(ZB5,ZB6) AND J>90,H*1.02,'卖'),COLORCYAN; RSI:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100; 抓庄:CROSS(RSI,11)*10,COLORRED;
|