源码
{散户操盘}
var1w:=if(year>=2005 and month>=11 and day>=1,0,1);
qq:=(ma(c,1)+ma(c,3)+ma(c,5)+ma(c,7)+ma(c,9))/5;
ww:=(ma(c,2)+ma(c,4)+ma(c,6)+ma(c,8)+ma(c,10))/5;
hy:=ema(qq,2);
dv:=ema(ww,5);
var28:=max(ema(qq,2)-ema(ww,5),0)*300;
var29:=ema(var28,5);
ss:=ema(var29,2);
风险系数:(var29-ss)/10*var1w,pointdot;
股海波浪:var29*var1w,stick,colorff00ff;
stickline(var29>ref(var29,1) and var1w,var29,0,1,0),colorff0000;
stickline(var29>ref(var29,1) and var1w,var29,ss,2,0),colorff00ff;
stickline(var29
stickline(var29
ks:=(c-ma(c,13))/ma(c,13)*(-100);
金线:=ema(ks/10+ema(c,10),3);
drawicon(金线<=c and var1w,0,12);
drawicon(金线>=c and var1w,0,11);
升跌:=ema((c/ma((2*c+h+l)/4,10)-1)*100,3);
drawicon(升跌>=0 and var1w,100,9);
drawicon(升跌<=0 and var1w,100,10);
ksa:=("1A0001$close"-ma("1A0001$close",13))/ma("1A0001$close",13)*(-100);
金线a:=ema(ksa/10+ema("1A0001$close",10),3);
买入精灵:if(cross(hy,dv) and var1w,8,0),colorffff00;
卖出精灵:if(cross(dv,hy) and var1w,80,92),LINETHICK0,color00ff00;
stickline(卖出精灵=80,88,92,1,0),color00ff00;
DRAWTEXT(卖出精灵=80,86,'☆'),ALIGN1,color00ff00;
lb:=ref(c,1);
varea:=sma(max(c-lb,0),6,1)/sma(abs(c-lb),6,1)*100;
stickline(cross(84,varea) and var1w,92,80,6,0),colorff0000;
drawicon(cross(84,varea) and var1w,75,7);
rsi5:=sma(max(c-lb,0),5,1)/sma(abs(c-lb),5,1)*100;
stickline(cross(80,rsi5) and var1w,92,80,6,0),colorff0000;
drawicon(cross(80,rsi5) and var1w,75,7);
var2:=600*(ema(c,3)-ema(l,30))/ema(l,30);
var3:=ema(var2,2);
var4:=(winner(20*c/100)-winner(20*c/100))*100;
var5:=(-100)*(winner(20*c/100)-winner(20*c/100))+2;
stickline(filter(var4+var5<7 and cross(var3,var2) and var2>50 and var3>var4,8) and var1w,92,80,6,0),colorff0000;
股价:=(c-llv(l,360))/(hhv(h,360)-llv(l,360))*80;
aa:=ema(股价,3);
牛:=ema(aa,3);
cb:=winner(c)*100;
cc:=ema(cb,2);
aaa:=ema(cc,3);
活筹指数:=aaa;
抄底a:=if(活筹指数<0.8,20,0);
多杀多:=100*(1-winner(c))>99.8 and v/capital*100<5 and 100*(winner(1.1*c)-winner(0.9*c))<3.9;
超跌★:c>ref(c,1) and ref(多杀多,1)>0 and var1w,colorff00ff;
stickline(c>ref(c,1) and ref(多杀多,1)>0 and var1w,0,5,5,0),colorff00ff;
drawicon(c>ref(c,1) and ref(多杀多,1)>0 and var1w,12,7);
drawtext(c>ref(c,1) and ref(多杀多,1)>0 and var1w,20,'★'),color00ffff;
aal:=ema(cc,5);
活筹指数L:=aal;
stickline(活筹指数L<1 and 牛<1 and var1w,10,0,6,0),colorffffff;
stickline(活筹指数L>99,100 and var1w,60,6,0),colorffff00;
drawtext(活筹指数L<1 and 牛<1 and var1w,20,'★'),color00ffff;
var3b:=1;
var3c:=(h+l+c*2)/4*var3b;
var3d:=ema(var3c,21);
var3e:=std(var3c,21);
var3f:=((var3c-var3d)/var3e*100+200)/4*var3b;
var40:=(ema(var3f,5)-25)*1.56*var3b;
var41:=ema(var40,2)*1.22*var3b;
ajd:=ema(var41,2)*var3b;
ajj:=3*var41-2*ajd*var3b;
stickline(ajj>120 and var1w,85,92,4,0),colorffffff;
0,Linethick2,colorff0000;
102,Linethick2,colorffffff;
92,Linethick2,colorffffff;
var1n:=1;
var2na:=ref(c,1);
var3n:=sma(max(c-var2na,0),6,1)/sma(abs(c-var2na),6,1)*100;
var4n:=(1+5*0.02)*c;