不要太贪心,注意止损,一般一个月可获益20%以上。底部大胆买入,中间波动不管,顶部一定要出
jj:=(close+high+low)/3;
a:=ema(jj,10);
b:=ref(a,1);
stickline(a>b,a,b,5,0),coloryellow;
stickline(a<b,a,b,5,0),colorblue;
m1:ema(close,3);
m2:ema(close,8);
m3:ema(m2,13);
m4:ema(m2,55);
var1:=ema(m3,55);
m5:ema(m4,81), colorred,linethick2;
var2:=(ref(high,1)+ref(low,1))/2;
var3:=ma(close,21)+2*std(close,21);
drawicon(cross(var2,var3),high*1.035,2);
drawtext(cross(var2,var3),high*1.02,'卖出'), colorgreen;
var4:=ref(close,1);
var5:=sma(max(close-var4,0),7,1)/sma(abs(close-var4),7,1)*100;
var6:=cross(79,var5);
var7:=filter(var6,4);
drawicon(var7,high*1.035,2);
drawtext(var7,high*1.02,'卖出'), colorgreen;
a7:=(2*c+h+l)/4;
var10:=llv(low,34);
var11:=hhv(high,34);
sk:=ema((a7-var1)/(var2-var1)*100,7);
sd:=ema(0.667*ref(sk,1)+0.333*sk,5);
drawtext(if(count(close<ref(close,1),8)/8>6/10 and vol>=1.5*ma(vol,5) and
count(sk>=sd,3) and ref(low,1)=llv(low,120),1,0),low,'买进') ,colorred;
drawtext(if(count(close<ref(close,1),13)/13>6/10 and
count(sk>sd,6) and ref(low,5)=llv(low,120) and ref(close>=open,4) and
ref(close>open,3) and ref(close>open,2) and ref(open>close,1) and
open>ref(close,1),1,0),low,'买进'), colorred;
d:=ma(close,80)-ma(close,10)/3;
drawtext(if(close<d and vol/240>ma(vol,5)/240 and close>ref(close,1)*1.08
and close<ma(close,13)*1.3,1,0),low,'抄底'),colorred;