通达信版本买入主图及选股指标
{买入主图及选股}
ma120:ma(close,120)coloryellow,dotline;
ma250:ma(close,250)colormagenta,dotline;
aa:=barscount(c);
ah:=hhv(h,200);
al:=llv(l,200);
a0:=(ah-al)/40;
b1:=l-a0;
stickline((aa+0)/34=floor((aa+0)/34),b1,b1-1.5*a0,2,0),colorf00ff0;
drawtext((aa+0)/34=floor((aa+0)/34),b1-1*a0,'变盘'),colorf00ff0;
var2s:=(2*close+high+low)/4;
var3s:=if(year>=2099 and month>2,0,1);
var4s:=llv(low,5); var5s:=hhv(high,4);
散户:=ema((var2s-var4s)/(var5s-var4s)*100,4)*var3s;
庄家:=ema(0.667*ref(散户,1)+0.333*散户,2)*var3s;
drawtext(cross(散户,庄家) and 散户<30,l-0.05,'←吸'),colorred;
bbb1:=ma(c,1);
b2:=sma(sma(sma(bbb1,2,1),2,1),2,1),colorred;
sma2:=ma(b2,2);
varb1:=(100 - ((90 * (hhv(high,21) - close)) / (hhv(high,21) - llv(low,21))));
var3:=(100 - ma(((100 * (hhv(high,6) - close)) / (hhv(high,6) - llv(low,6))),34));
买:drawtext(cross(varb1,var3) and b2>sma2,(low * 0.97),'●买点'),colorred;
stickline(c>1.098*ref(c,1),c,o,0,0),coloryellow;
aaa:=const(hhv(h,90));
r1:=ma(close,1);
r2:=ma(close,3);
r3:=(ma(r2,1)*1);
r4:=(ma(r2,3)*1);
lc:=ref(close,1);
rsi:=((sma(max((close - lc),0),3,1) / sma(abs((close - lc)),3,1)) * 100);
ff:=ema(close,3);
ma15:=ema(close,21);
drawtext(cross(88,rsi),(high * 1.02),'出'),colorgreen;
vare:=ma(100*(close-llv(close,34))/(hhv(high,34)-llv(low,34)),5)-20;
var12:=(high+low+close)/3;
var13:=(var12-ma(var12,14))/(0.015*avedev(var12,14));
var14:=(var12-ma(var12,70))/(0.015*avedev(var12,70));
var15:=if(var13>=150 and var13<200 and var14>=150 and var14<200,10,0);
var16:=if(var13<=-150 and var13>-200 and var14<=-150 and var14>-200,-10,var15);
var17:=(close-ma(close,13))/ma(close,13)*100;
var18:=100-abs(var17);
var19:=if(var18<90,var18,100);
var1a:=if(vare>0,vare,0);
var1b:=if(var14>=200 and var13>=150,15,if(var14<=-200 and var13<=-150,-15,var16))+60;
var1c:=var1a>48 and var1b>60 and var19<100;
drawtext(var1c and count(var1c,30)=1,high*1.02,'大笔出货'),linethick1,colorffcc66;
tt:=240/fromopen;
比:=tt;
ay2:=ema(close,12)-ema(close,26);
az2:=ema(ay2,9);
lt2:=(ay2-az2);
l211:=if(lt2,llv(l,21),drawnull),color217158,circledot;
zgd:=hhv(h,80)*0.99;
zgd2:=const(zgd);
zdd:=llv(l211,80);
zdd2:=const(zdd);
yya4:=ma(close,20);
yya5:=(close > ma(close,5));
yya6:=(ma(close,5) > ma(close,10));
yya7:=(close > ma(close,10));
yya8:=(ma(close,5) > ma(close,20));
yya9:=(close > ma(close,20));
yya10:=ref(yya4,1);
yya11:=(yya4 > yya10);
yyavx:=(((((if(yya5,10,(0 - 10)) + if(yya6,10,(0 - 10))) + if(yya7,10,(0 - 10))) + if(yya8,10,(0 - 10))) + if(yya9,10,(0 - 10))) + if(yya11,10,(0 - 10)));
dslx:=(close / indexc);
dslx1:=ma(dslx,5);
dslx2:=ma(dslx,10);
yyv1:=ma(vol,5);
yyv2:=ma(vol,10);
j1:=const(if( yyavx > 0,200,100));
j2:=const(if( yyavx > 0,00,100));
j3:=const(if( yyavx > 0,100,100));
zgd3:=zgd2;
zdd3:=zdd2;
zgd4:=zgd2;
情况1:=const(if(((cross(yyavx,1) and (yyv1 >= yyv2)) and (dslx >= dslx1)),1,0)),nodraw;
情况2:=const(if(((cross(yyavx,1) and (yyv1 < yyv2)) and (dslx >= dslx1)),1,0));
情况3:=const(if(((cross(yyavx,1) and (yyv1 > yyv2)) and (dslx < dslx1)),1,0));
情况4:=const(if(((cross(yyavx,1) and (yyv1 <= yyv2)) and (dslx < dslx1)),1,0));
情况5:=const(if(((cross(1,yyavx) and (yyv1 >= yyv2)) and (dslx >= dslx1)),1,0));
情况6:=const(if(((cross(1,yyavx) and (yyv1 < yyv2)) and (dslx >= dslx1)),1,0));
情况7:=const(if(((cross(1,yyavx) and (yyv1 >= yyv2)) and (dslx < dslx1)),1,0));
情况8:=const(if(((cross(1,yyavx) and (yyv1 < yyv2)) and (dslx < dslx1)),1,0));
情况9:=const(if(((((yyavx >= 1) and (ref(yyavx,1) > 0)) and (yyv1 >= yyv2)) and (dslx >= dslx1)),1,0));
情况10:=const(if(((((yyavx >= 1) and (ref(yyavx,1) > 0)) and (yyv1 < yyv2)) and (dslx >= dslx1)),1,0));
情况11:=const(if(((((yyavx >= 1) and (ref(yyavx,1) > 0)) and (yyv1 >= yyv2)) and (dslx < dslx1)),1,0)),nodraw;
情况12:=const(if(((((yyavx >= 1) and (ref(yyavx,1) > 0)) and (yyv1 < yyv2)) and (dslx < dslx1)),1,0));
情况13:=const(if(((((yyavx < 1) and (ref(yyavx,1) < 0)) and (yyv1 >= yyv2)) and (dslx >= dslx1)),1,0));
情况14:=const(if(((((yyavx < 1) and (ref(yyavx,1) < 0)) and (yyv1 < yyv2)) and (dslx >= dslx1)),1,0));
情况15:=const(if(((((yyavx < 1) and (ref(yyavx,1) < 0)) and (yyv1 >= yyv2)) and (dslx < dslx1)),1,0));
情况16:=const(if(((((yyavx < 1) and (ref(yyavx,1) < 0)) and (yyv1 < yyv2)) and (dslx < dslx1)),1,0));
大盘1:=const(if((cross(yyavx,1) and (yyv1 >= yyv2)),1,0));
大盘2:=const(if((cross(yyavx,1) and (yyv1 < yyv2)),1,0));
大盘3:=const(if((cross(1,yyavx) and (yyv1 >= yyv2)),1,0));
大盘4:=const(if((cross(1,yyavx) and (yyv1 < yyv2)),1,0));
大盘5:=const(if((((yyavx >= 1) and (ref(yyavx,1) > 0)) and (yyv1 >= yyv2)),1,0));
大盘6:=const(if((((yyavx >= 1) and (ref(yyavx,1) > 0)) and (yyv1 < yyv2)),1,0));
大盘7:=const(if((((yyavx < 1) and (ref(yyavx,1) < 0)) and (yyv1 >= yyv2)),1,0));
大盘8:=const(if((((yyavx < 1) and (ref(yyavx,1) < 0)) and (yyv1 < yyv2)),1,0));
mfi:=(high-low)*1000000/(vol*比);
绿灯:=mfi>=ref(mfi,1)and vol*比>=ref(vol,1);
mmm1:=const(绿灯);
衰退:=mfi<ref(mfi,1)and vol*比<ref(vol,1);
mmm2:=const(衰退);
伪装:=mfi>=ref(mfi,1)and vol*比<ref(vol,1);
mmm3:=const(伪装);
蛰伏:=mfi<ref(mfi,1)and vol*比>=ref(vol,1);
mmm4:=const(蛰伏);
wj:=(h+l+c)/3;
v1:=if(h=l,1,h-max(o,c));
v2:=if(h=l,1,max(c,o)-wj);
v3:=if(h=l,1,min(o,c)-l);
v4:=if(h=l,1,wj-min(c,o));
v5:=vol/if(h=l,4,h-l);
v6:=(v1*v5);
v7:=(v2*v5);
v8:=(v3*v5);
v9:=(v4*v5);
买盘1:=dynainfo(23)*比;
卖盘1:=dynainfo(22)*比;
买盘2:=if(islastbar and c>300,(v9+v8)*tt,(v9+v8));
卖盘2:=if(islastbar and c>300,(v6+v7)*tt,(v6+v7));
买盘:=if(islastbar and period=5 and c<300,买盘1,买盘2);
卖盘:=if(islastbar and period=5 and c<300,卖盘1,卖盘2);
{买卖差:=买盘-卖盘;}
量大:=(卖盘+买盘)/ref(vol,1)>2;
mmm5:=const(量大);
量缩:=ref(vol,1)/(卖盘+买盘)>1.5;
mmm6:=const(量缩);
卖量大:=(卖盘-买盘)/买盘>0.4;
mmm7:=const(卖量大);
买量大:=(买盘-卖盘)/卖盘>0.4;
mmm8:=const(买量大);
ts1:=if(情况1=1,0.06+0.06,0.06); ts2:=if(情况2=1,ts1+0.06,ts1);
ts3:=if(情况3=1,ts2+0.06,ts2); ts4:=if(情况4=1,ts3+0.06,ts3);
ts5:=if(情况5=1,ts4+0.06,ts4); ts6:=if(情况6=1,ts5+0.06,ts5);
ts7:=if(情况7=1,ts6+0.06,ts6); ts8:=if(情况8=1,ts7+0.06,ts7);
ts9:=if(情况9=1,ts8+0.06,ts8); ts10:=if(情况10=1,ts9+0.06,ts9);
ts11:=if(情况11=1,ts10+0.06,ts10); ts12:=if(情况12=1,ts11+0.06,ts11);
ts13:=if(情况13=1,ts12+0.06,ts12); ts14:=if(情况14=1,ts13+0.06,ts13);
ts15:=if(情况15=1,ts14+0.06,ts14); ts16:=if(情况16=1,ts15+0.06,ts15);
ts17:=if(大盘1=1,ts16+0.06,ts16); ts18:=if(大盘2=1,ts17+0.06,ts17);
ts19:=if(大盘3=1,ts18+0.06,ts18); ts20:=if(大盘4=1,ts19+0.06,ts19);
ts21:=if(大盘5=1,ts20+0.06,ts20); ts22:=if(大盘6=1,ts21+0.06,ts21);
ts23:=if(大盘7=1,ts22+0.06,ts22); ts24:=if(大盘8=1,ts23+0.06,ts23);
ts25:=if(mmm1=1,ts24+0.06,ts24);
ts26:=if(mmm2=1,ts25+0.06,ts25);
ts27:=if(mmm3=1,ts26+0.06,ts26);
ts28:=if(mmm4=1,ts27+0.06,ts27);
ts29:=if(mmm5=1,ts28+0.03,ts28);
ts30:=if(mmm6=1,ts29+0.03,ts29);
ts31:=if(mmm7=1,ts30+0.03,ts30);
ts32:=if(mmm8=1,ts31+0.03,ts31);
drawtext_fix(情况1=1 ,0.10,0,0,'量能理想,明显走强,中线参与,仓位控制在70%左右。'),colorff00ff;
drawtext_fix(情况2=1 ,0.10,0,0,'走势趋强,量能不足,短线进场,仓位控制在50%左右。'),colorff00ff;
drawtext_fix(情况3=1 ,0.10,0,0,'量价良好,并无明显走强,短线可进场,仓位50%左右。'),colorff00ff;
drawtext_fix(情况4=1 ,0.10,0,0,'形态尚可,量能不足,未全走强,短入,仓位30%左右。'),colorff00ff;
drawtext_fix(情况5=1 ,0.10,0,0,'形态已变坏,走势尚可,重仓者减大半,清仓者%观望。'),color00ffff;
drawtext_fix(情况6=1 ,0.10,0,0,'随大盘下跌,明显缩量,考虑大盘风险,减持或清仓。'),color00ffff;
drawtext_fix(情况7=1 ,0.10,0,0,'该股放量下跌,走势明显偏弱,不抢反弹,离场观望。'),colorffffff;
drawtext_fix(情况8=1 ,0.10,0,0,'该股缩量下跌,走势偏弱无力,人气散失,离场观望。'),colorffff00;
drawtext_fix(情况9=1 ,0.10,0,0,'该股形态良好,强势明显,量能充足,可以继续持有。'),color00ffff;
drawtext_fix(情况10=1,0.10,0,0,'上行趋势不变,强势依然,量能开始转弱,注意风险。'),color00ffff;
drawtext_fix(情况11=1,0.10,0,0,'该股仍然具备上涨潜力,但股性偏弱,可以考虑减仓。'),colorffffff;
drawtext_fix(情况12=1,0.10,0,0,'该股走势趋弱,量能明显不足,减大部分筹码或空仓。'),colorffff00;
drawtext_fix(情况13=1,0.10,0,0,'该股形态不佳,注意成交量变化,但目前不适合参与。'),colorffff00;
drawtext_fix(情况14=1,0.10,0,0,'该股趋势不明,股价偏弱,注意量能变化,暂不参与。'),colorffff00;
drawtext_fix(情况15=1,0.10,0,0,'有走强迹象,但量能不足,趋势不明朗,不适合操作。'),colorffff00;
drawtext_fix(情况16=1,0.10,0,0,'该股走势太弱,主动性买盘弱,没有太大的参与价值。'),colorffffff;
drawtext_fix(大盘1,0.10,0.05,0,'总势量能理想,70%仓位, 若最佳买点,否则谨慎介入。'),color00ff00;
drawtext_fix(大盘2,0.10,0.05,0,'总势趋强,量不足,若前轮下跌,短进50%,量大加仓。'),colorff00ff;
drawtext_fix(大盘3,0.10,0.05,0,'总势形态走坏,重仓者可减去大部分仓位或放空筹码。'),coloraaaaaa;
drawtext_fix(大盘4,0.10,0.05,0,'总势缩量调整,注意大盘系统风险,短线可清仓观望。'),colorffffff;
drawtext_fix(大盘5,0.10,0.05,0,'总势走势良好,量能理想,可继续持有或加仓强势股。'),color00ffff;
{
选股公式:
ma60:=ma(c,60);
ma20:=ma(c,20);a2:=ref(ma20,1);
j1:=(ma20-a2)/a2*100;mj1:=ma(j1,3);
买入:cross("kdj.k"(5,2,3),"kdj.d"(5,2,3)) and "kdj.d"(5,2,3)<30 and j1>mj1 and ma60>ref(ma60,1) and count(j1<1,3)>=1;
}
上一指标公式:老麦阴线战法见好就收指标下载
下一指标公式:找主升获利纵横指标下载
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文通达信版本买入主图及选股指标下载仅供学习研究。