{谦穗主图}{主图} MA1:MA(CLOSE,5),CoLor00FFFF; MA2:MA(CLOSE,21),CoLorFF00FF; MA3:MA(CLOSE,55),CoLor00FF00; MA4:MA(CLOSE,123),CoLorFFFFFF; MA5:MA(CLOSE,233),CoLorFFFF00; MA6:MA(CLOSE,300),CoLor0000FF; JJ:=(CLOSE+HIGH+LOW)/(3); A:=EMA(JJ,10); B:=REF(A,1); A,POINTDOT,CoLor00FFFF; B,POINTDOT,CoLor00FFFF; STICKLINE((A>B),A,B,5,0),CoLor00FFFF; STICKLINE((A<B),A,B,5,0),CoLorFF0000; LC:=REF(CLOSE,1); RSI1:=((SMA(MAX(CLOSE-LC,0),4,1))/(SMA(ABS(CLOSE-LC),4,1)))*(100); RSI2:=((SMA(MAX(CLOSE-LC,0),8,1))/(SMA(ABS(CLOSE-LC),8,1)))*(100); RSI3:=((SMA(MAX(CLOSE-LC,0),12,1))/(SMA(ABS(CLOSE-LC),12,1)))*(100); VAR1:=(RSI1+RSI2+RSI3)/(3); VAR2:=MA(CLOSE,5); VAR3:=MA(CLOSE,10); VAR4:=MA(CLOSE,20); VAR5:=MA(CLOSE,30); VAR6:=(VAR2+VAR3+VAR4+VAR5)/(4); VAR7:=((VAR6-REF(VAR6,3))/(REF(VAR6,13)))*(100); VAR8:=EMA(VAR7,6); VAR9:=IF((DATE>1341231),0,VAR8); 趋势:=VAR9; 底:=(趋势<0) AND (VAR1<20); DRAWICON((趋势>2) AND CROSS(70,VAR1),HIGH,2),CoLor00FFFF; DRAWICON((底=0) AND REF((底>0),1),(LOW)*(1.05),1),CoLorFF00FF; DRAWTEXT((趋势>4) AND CROSS(85,VAR1) AND (VAR9<REF(VAR9,1)),HIGH,'卖'),CoLor00FF00; DRAWTEXT((趋势<(-4)) AND CROSS(10,VAR1) AND (VAR9>REF(VAR9,1)),LOW,'买'),CoLorFFFFFF; DRAWTEXT((趋势>8) AND (趋势<REF(趋势,1)) AND REF(CROSS(70,VAR1),1),HIGH,'筑顶'),CoLorFFFF00; A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1)); B3:=(REF(LOW,A3+1)>LOW) AND (REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24)) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)); DRAWTEXT((FILTER((B3>0),5))*(0.1),LOW,'底背离'),CoLor0000FF; C3:=BARSLAST(REF(CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1)); D3:=(REF(HIGH,C3+1)<HIGH) AND (REF("RSI.RSI1"(6,12,24),C3+1)>"RSI.RSI1"(6,12,24)) AND CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)); DRAWTEXT(FILTER((D3>0),5),HIGH,'顶背离'),CoLor00FFFF; DRAWTEXT((DATE>1341231),LOW,'过期'),CoLorFF0000; {------------------ ------------------} |
