大智慧散户看盘副图指标
源码
{散户看盘}
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<ref(var29,1) and var1w,0,var29,1,0),colorffff00;
stickline(var29<ref(var29,1) and var1w,var29,ss,2,0),colorffffff;
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;
var5n:=(1-5*0.02)*c;
var6n:=100*(winner(var4n)-winner(var5n))*1;
建仓指标:=ema(100-var6n,3)/1*var1n;
drawicon(建仓指标>85,0.2,6);
var1m:=if(c>=hhv(c,10),10,0);
var2m:=if(c>=hhv(c,30),10,0);
var3m:=if(c>=hhv(c,60),10,0);
var4m:=count(c>ref(c,1),10)*2;
var5m:=count(v>ref(v,1) and c>o,10)*2;
var6m:=if(ma(c,5)>ref(ma(c,5),1),5,if(ma(c,5)<ref(ma(c,5),1),-5,0));
var7m:=if(ma(c,10)>ref(ma(c,10),1),10,if(ma(c,10)<ref(ma(c,10),1),-10,0));
var8m:=if(ma(c,20)>ref(ma(c,20),1),10,if(ma(c,20)<ref(ma(c,20),1),-10,0));
var9m:=if(ma(v,5)>ma(v,10),5,0);
评比分数:=var1m+var2m+var3m+var4m+var5m+var6m+var7m+var8m+var9m;
综合分数:=ema(评比分数,2);
股价A:=(c-llv(l,200.135))/(hhv(h,200.135)-llv(l,200))*80;
zy:=c/indexc*100;
zy1:=ema(zy,3);
qqn:=(ma(c,1)+ma(c,3)+ma(c,5)+ma(c,7)+ma(c,9))/5;
wwn:=(ma(c,2)+ma(c,4)+ma(c,6)+ma(c,8)+ma(c,10))/5;
an:=ema(qqn,3);
bn:=ema(wwn,10);
varn:=ema(amount,1)/ema(v,1)/100;
aan:=if(date<1340501,dma(an,varn),0);
bbn:=if(date<1340501,dma(bn,varn),0);
var2n:=max(2*(aan-bbn),0)*100;
资金流向值:ema(var2n,2),stick,colorff0000;
www:=资金流向值*amount/70*100/1000000;
vvv:=if(cross(hy,dv),c,ref(c,barslast(cross(hy,dv))));
vvm:=if(cross(dv,hy),c,ref(c,barslast(cross(dv,hy))));
持仓价格:=ema(vvv,1);
空仓价格:=ema(vvm,1);
持仓利润:=(c-持仓价格)/持仓价格*100;
空头利润:=(空仓价格-c)/c*100;
DRAWTEXT(c>0 and BARSTATUS=2,70,'个股决策分析:
DRAWTEXT(金线<=c and BARSTATUS=2,60,'个股操作状态=
DRAWTEXT(金线>=c and BARSTATUS=2,60,'个股操作状态=
DRAWTEXT(zy1>ref(zy1,1) and BARSTATUS=2,50,'指数对比分析:强于大盘。
DRAWTEXT(zy1<ref(zy1,1) and BARSTATUS=2,50,'指数对比分析:弱于大盘。
DRAWTEXT(zy1=ref(zy1,1) and BARSTATUS=2,50,'指数对比分析:平衡大盘。
DRAWTEXT(综合分数>=40 and 股价A>0.1 and 股价A<25 and BARSTATUS=2,40,'股票风险分析:初强势区域
DRAWTEXT(综合分数>=40 and 股价A>25 and 股价A<45 and BARSTATUS=2,40,'股票风险分析:中强势区域
DRAWTEXT(综合分数>=40 and 股价A>45 and 股价A<60 and BARSTATUS=2,40,'股票风险分析:中强势后期
DRAWTEXT(综合分数>=40 and 股价A>=60 and 股价A<=75 and BARSTATUS=2,40,'股票风险分析:末强势区域
DRAWTEXT(综合分数>=40 and 股价A>=75 and 股价A<=90 and BARSTATUS=2,40,'股票风险分析:末强势后期
DRAWTEXT(综合分数<0 and 股价A>0.1 and 股价A<5 and BARSTATUS=2,40,'股票风险分析:超低位弱势
DRAWTEXT(综合分数<0 and 股价A>5 and 股价A<25 and BARSTATUS=2,40,'股票风险分析:低位弱势区
DRAWTEXT(综合分数<0 and 股价A>25 and 股价A<60 and BARSTATUS=2,40,'股票风险分析:中位弱势区
DRAWTEXT(综合分数<0 and 股价A>60 and 股价A<90 and BARSTATUS=2,40,'股票风险分析:高位弱势区
DRAWTEXT(综合分数<40 and 综合分数>0 and 股价A>0.1 and 股价A<5 and BARSTATUS=2,40,'股票风险分析:超低位调整
DRAWTEXT(综合分数<40 and 综合分数>0 and 股价A>5 and 股价A<25 and BARSTATUS=2,40,'股票风险分析:低位调整区
DRAWTEXT(综合分数<40 and 综合分数>0 and 股价A>25 and 股价A<55 and BARSTATUS=2,40,'股票风险分析:中位调整区
DRAWTEXT(综合分数<40 and 综合分数>0 and 股价A>55 and 股价A<65 and BARSTATUS=2,40,'股票风险分析:次高位调整
DRAWTEXT(综合分数<40 and 综合分数>0 and 股价A>65 and 股价A<90 and BARSTATUS=2,40,'股票风险分析:高位调整区
DRAWTEXT(www>ref(www,1) and 资金流向值>0 and BARSTATUS=2,30,'主力动向:资金流入↑'+NUMTOSTRN(www,1)+'
DRAWTEXT(www<ref(www,1) and 资金流向值>0 and BARSTATUS=2,30,'主力动向:资金流出↓'+NUMTOSTRN(www,1)+'
DRAWTEXT(www=0 and BARSTATUS=2,30,'主力动向:资金流出='+NUMTOSTRN(www,1)+'
DRAWTEXT(c>0 and BARSTATUS=2,80,'个股买卖分析:'),ALIGN2,colorffffff;
DRAWTEXT(空仓价格 and hy<dv and BARSTATUS=2,70,'卖出精灵 ▼ 空仓中'),ALIGN2,colorff00ff;
DRAWTEXT(持仓价格 and hy>=dv and BARSTATUS=2,70,'买入精灵 ▲ 持仓中'),ALIGN2,colorff00ff;
DRAWTEXT(持仓价格>0 and hy>=dv and BARSTATUS=2,60,'持仓价格:'+NUMTOSTRN(持仓价格,2)),ALIGN2,color00ffff;
DRAWTEXT(空仓价格>0 and hy<=dv and BARSTATUS=2,60,'空仓价格:'+NUMTOSTRN(空仓价格,2)),ALIGN2,color00ffff;
DRAWTEXT(c>0 and BARSTATUS=2,50,'最新价格:'+NUMTOSTRN(c,2)),ALIGN2,colorffff00;
DRAWTEXT(持仓利润>=0 and hy>=dv and BARSTATUS=2,40,'多头利润%:'+NUMTOSTRN(持仓利润,2)),ALIGN2,colorffff00;
DRAWTEXT(持仓利润<0 and hy>=dv and BARSTATUS=2,40,'多头利润%:'+NUMTOSTRN(持仓利润,2)),ALIGN2,colorffff00;
DRAWTEXT(持仓价格>0 and hy>=dv and BARSTATUS=2,30,'多头止赢位:'+NUMTOSTRN(持仓价格*1.13,2)),ALIGN2,colorffff00;
DRAWTEXT(空头利润<=0 and hy<dv and BARSTATUS=2,40,'空头利润%:'+NUMTOSTRN(空头利润,2)),ALIGN2,colorffff00;
DRAWTEXT(空头利润>0 and hy<dv and BARSTATUS=2,40,'空头利润%:'+NUMTOSTRN(空头利润,2)),ALIGN2,colorffff00;
DRAWTEXT(空仓价格>0 and hy<dv and BARSTATUS=2,30,'空头回补位:'+NUMTOSTRN(空仓价格*0.87,2)),ALIGN2,colorffff00;
DRAWTEXT(空仓价格>0 and hy<dv and BARSTATUS=2,20,'多头最后防线:'+NUMTOSTRN(空仓价格*0.965,2)),ALIGN2,color0000ff;
DRAWTEXT(持仓价格>0 and hy>=dv and BARSTATUS=2,20,'空头最后防线:'+NUMTOSTRN(持仓价格*1.035,2)),ALIGN2,color0000ff;
DRAWTEXT(活筹指数L<1 and 牛<1 and BARSTATUS=2,10,'股价超跌:关注'),ALIGN2,colorffffff;
DRAWTEXT(c>ref(c,1) and ref(多杀多,1)>0 and BARSTATUS=2,10,'股价超跌:有反弹要求'),ALIGN2,colorffffff;
DRAWTEXT(cross(84,varea) and cross(80,rsi5) and BARSTATUS=2,10,'股价偏高:注意减仓'),ALIGN2,colorffffff;
DRAWTEXT(filter(var4+var5<7 and cross(var3,var2) and var2>50 and var3>var4,8) and BARSTATUS=2,10,'股价偏高:注意减仓'),ALIGN2,colorffffff;
DRAWTEXT(ajj>120 and BARSTATUS=2,10,'股价偏高:注意减仓'),ALIGN2,colorffffff;
DRAWTEXT(建仓指标>85 and BARSTATUS=2,10,'可以分批建仓'),ALIGN2,colorffffff;