{山水先生优化阿土包} input:n(13,1,100),m(9,1,100),m1(3,1,100); DRAWGBK((DATE > 0),COLORRGB(40,40,173),COLORRGB(1,1,14),1); Var1:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100; Var2:=SMA(Var1,M1,1); 卖线: SMA(Var2,M1,1); Var3:=(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M))*100; Var4:=SMA(Var3,M1,1); Var5:=SMA(Var4,M1,1); //组合指标1 STKINDI('1A0001','kdj.k',0,DATAPERIOD),LINEDOT; STKINDI('1A0001','kdj.d',0,DATAPERIOD),LINEDOT,COLORBROWN; Var1:=EMA((CLOSE-MA(CLOSE,13))/MA(CLOSE,13),15); Var2:=LLV(LOW,10); Var3:=HHV(HIGH,25); Var4:= EMA((CLOSE-Var2)/(Var3-Var2)*100,4),coloryellow,linethick2; DRAWICON(Var1>0,105,10); DRAWICON(Var1<0,105,11); DRAWICON(Var1>0,-10,10); DRAWICON(Var1<0,-10,11); STICKLINE(Var4>ref(Var4,1) ,Var4 ,ref(Var4,1),8 ,1),colorred; STICKLINE(Var4<=ref(Var4,1) ,Var4 ,ref(Var4,1),8 ,1),colorgreen; -18.2,COLORBLUE; 5 COLORYELLOW; 107,COLORRED; 90,COLORMAGENTA; DRAWICON( FILTER(cross(Var4,10),20),Var4+0.02 ,1 ); DRAWICON( FILTER(cross(80,Var4),20),Var4+0.02,2 ); DRAWICON( FILTER(cross(Var4,20),20),Var4+0.02 ,1 ); DRAWICON( FILTER(cross(90,Var4),20),Var4+0.02,2 ); 买入线:= SMA(Var5,M1,1); 必卖线: SMA(卖线,M1,1); 高压线: 85; 触底线: 9; DRAWTEXT(买入线>76.5 AND CROSS(卖线,必卖线),必卖线*1.15,'进'); DRAWTEXT(买入线>56 AND 买入线<=76 AND CROSS(卖线,必卖线),卖线,'留意'),colorwhite; DRAWTEXT(买入线<45 AND 卖线>78 AND 必卖线>78 AND CROSS(必卖线,卖线),必卖线,'跑'),colorwhite; DRAWTEXT(CROSS(买入线,78.5),买入线,'关注'),colorred ; DRAWTEXT(CROSS(买入线,85),买入线,'重点关注'),colorwhite ; |
