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 ; |