Var1:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*80; 黑码: SMA(Var1,7,1),linethick2; Var2:=SMA(黑码,5,1); 草原: IF(CROSS(黑码,Var2) AND cross(ma(c,5),ma(c,13) and 黑码>50) ,Var2*2,Var2),coloryellow; 买入:=CROSS(黑码,草原)and 黑码<30 and 草原>ref(草原,1); DRAWICON(FILTER(买入 or 黑码<ref(黑码,3)and 黑码>ref(黑码,1)and 黑码<20 ,7),黑码,1 ); 卖出:FILTER(黑码>ref(黑码,2)and 黑码<ref(黑码,1)and 黑码>50,5); DRAWICON(卖出,黑码*1.05,2); STICKLINE(黑码>Var2,黑码,草原,0,0); STICKLINE(黑码<Var2,黑码,Var2,0,0),colorgreen ; |