启富主力趋势源码下载:
启富主力趋势(指标 主图/bs选股 通达信 贴图)
{启富主图}
m60:=ma(c,60);
m120:=ma(c,120);
drawband(ma(close,5),rgb(160,0,0),ma(close,10),rgb(0,168,0));
drawband(ma(close,5),rgb(55,0,0),ma(close,20),rgb(0,91,0));
drawband(ma(close,60),rgb(155,50,50),ma(close,120),rgb(83,123,68));
drawkline(h,o,l,c);
变线:=ema(ma(close,30),5),linethick0;
stickline(c>=变线 and c>=o,h,l,0,0),colorred;
stickline(c>=变线 and c>=o,c,o,2.7,1),colorred;
stickline(c>变线 and c<=o,h,l,0,1),colorcyan;stickline(c>变线 and c<=o,c,o,3,0),colorcyan;
stickline(c<变线 and c<=o,h,l,0,1),colorcyan;stickline(c<变线 and c<=o,c,o,3,0),colorcyan;
pm:ma(c,5),colorgray,linethick1;{好公式网-最好的股票公式网站www.goodgongshi.com}
if(pm<ref(pm,1),pm,drawnull),colorgray,linethick0;
if(pm>=ref(pm,1),pm,drawnull),colorred,linethick2;
if(pm=ref(pm,1),pm,drawnull),colorred,linethick2;
a:=ma(close,12)+abs(ma(close,12)-ref(ma(close,12),1));
b:=ma(close,12)+ma(close,12)-ref(ma(close,12),1);
分水岭:=if(ma(close,12)<b,b,ma(close,12));
操作线:=分水岭-(ema(c,3)-分水岭);
aa:=cross(分水岭,操作线);
stickline(aa,c,o,3,0),color0000aa;
stickline(aa,c,o,2,0),color0033cc;
stickline(aa,c,o,1,0),color0055ee;
stickline(aa,c,o,0.3,0),color0099ff;
stickline(aa,h,l,0,1),color0099ff;
rr:=cross((ma(vol,5)),(ma(vol,10))) and ma(c,2)>=ma(c,4); {and vol>=ref(vol,1)}
stickline(rr,c,o,3,0),color0000aa;
stickline(rr,c,o,2,0),color0033cc;
stickline(rr,c,o,1,0),color0055ee;
stickline(rr,c,o,0.3,0),color0099ee;
stickline(rr,h,l,0,1),color0099ff;
ma5:ma(close,5),nodraw;
ma10:ma(close,10),colorcc66ff;
ma20:ma(close,20),colorffcc66,linethick2;
ma60:ma(close,60),color00ff99,linethick2;
ma120:ma(c,120),colorgray;
ma250:ma(close,250),colorblue;
drawicon(cross(ma60,ma120),ma60,25); {60日上穿120日做记号}
drawicon(cross(ma120,ma60),ma60,15); {120日下穿60日做记号}
stickline(c<0.90*ref(c,1),c,o,3,0),colorgreen;
stickline(c>1.099*ref(c,1),c,o,3,0),coloryellow;
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));
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);
drawtext_fix(情况1=1 ,0.005,ts1,0,'【智能解盘】 量能理想,明显走强,中线参与,仓位在2/3左右'),colorff00ff;
drawtext_fix(情况2=1 ,0.005,ts2,0,'【智能解盘】 势趋强,量能不足,短线进场,仓位在1/2左右'),colorff00ff;
drawtext_fix(情况3=1 ,0.005,ts3,0,'【智能解盘】 量价良好,并没有明显走强,短线进场,仓位1/2左右。'),colorff00ff;
drawtext_fix(情况4=1 ,0.005,ts4,0,'【智能解盘】 形态尚可,量能不足,未完全走强,短线参与,仓位1/3左右。'),colorff00ff;
drawtext_fix(情况5=1 ,0.005,ts5,0,'【智能解盘】 形态变坏,走势尚可,重仓减大半,清仓者观望。'),color00ffff;
drawtext_fix(情况6=1 ,0.005,ts6,0,'【智能解盘】 随大盘一起下跌,明显缩量走势,考虑大盘风险,减持或清仓。'),color00ffff;
drawtext_fix(情况7=1 ,0.005,ts7,0,'【智能解盘】 该股放量下跌,走势明显偏弱,离场观望。'),colorffffff;
drawtext_fix(情况8=1 ,0.005,ts8,0,'【智能解盘】 该股缩量下跌,走势偏弱,离场观望。'),colorffff00;
drawtext_fix(情况9=1 ,0.005,ts9,0,'【智能解盘】 该股形态良好,强势明显,量能充足,可以继续持有。'),color00ffff;
drawtext_fix(情况10=1,0.005,ts10,0,'【智能解盘】 该股上行趋势不变,强势依然,但量能开始转弱,注意风险'),color00ffff;
drawtext_fix(情况11=1,0.005,ts11,0,'【智能解盘】 该股仍然具备上涨潜力,但股性偏弱,可考虑减仓。'),colorffffff;
drawtext_fix(情况12=1,0.005,ts12,0,'【智能解盘】 该股走势趋弱,量能不足,减持大部分筹码'),colorffff00;
drawtext_fix(情况13=1,0.005,ts13,0,'【智能解盘】 该股形态不佳,注意成交量的变化,但目前不适合参与。'),colorffff00;
drawtext_fix(情况14=1,0.005,ts14,0,'【智能解盘】 该股趋势不明,股价偏弱,注意量能变化,目前不宜参与。'),colorffff00;
drawtext_fix(情况15=1,0.005,ts15,0,'【智能解盘】 有走强迹象,但量能不足,趋势不明,不适合操作'),colorffff00;
drawtext_fix(情况16=1,0.005,ts16,0,'【智能解盘】 该股走势太弱,没有参与价值。'),colorffffff;
{板块地区概念}
所属板块:=strcat('【所属板块】',strcat(strcat(strcat(' [行业]—',hyblock),strcat(' [地域]—',dyblock)),strcat(' [概念]—',gnblock)));
drawtext_fix(islastbar,0.005,0.02,0,所属板块),color00c0c0;
{均线标记}
drawtext(islastbar,ma5,'ma5'),colorred;
drawtext(islastbar,ma10,'ma10'),colorcc66ff;
drawtext(islastbar,ma20,'ma20'),colorffcc66;
drawtext(islastbar,ma60,'ma60'),color00ff99;
drawtext(islastbar,ma120,'ma120'),colorgray;
drawtext(islastbar,ma250,'ma250'),colorblue;
{启富主力趋势}
drawgbk(c>0, rgb(0,10,10),rgb(48,0,0),0,'11',0);
aa1:=(close-llv(low,43))/(hhv(high,43)-llv(low,43))*100;
aa2:=sma(aa1,2,1);
主力趋势:sma(aa2,2,1),linethick3,colorffcc66;
压力位:100,colorred;
支撑位:0,colorgreen;
中界:50,colorffaa00;
drawtext(islastbar,中界,'中界'),colorffaa00;
a:92,color3399ff;
b:8,color3399ff;
买:stickline(cross(主力趋势,4),0,50,0,0),colorred;
drawicon(cross(主力趋势,4),58,1);
drawicon(cross(主力趋势,4),70,26);
卖:stickline(cross(96,主力趋势),100,50,0,0),colorgreen;
drawicon(cross(96,主力趋势),40,2);
drawicon(cross(96,主力趋势),30,15);
if(主力趋势>ref(主力趋势,1),主力趋势,drawnull),colormagenta,linethick3;
dif:=ema(close,12)-ema(close,26);
dea:=ema(dif,9);{好公式网-最好的股票公式网站www.goodgongshi.com}
macd:=2*(dif-dea);
macd空头a:=macd>0 and macd<ref(macd,1) and ref(macd,1)>=ref(macd,2);
均线空头a:=c<ref(c,1) and ref(c ,1)>=ref(c,2) and ref(c,2)>=ref(c,3);
趋势空头a:=主力趋势>89 and (主力趋势<=ref(主力趋势,1));
空头买点:=趋势空头a and macd空头a and 均线空头a;
macd多头b:=macd<0 and macd>ref(macd,1) and ref(macd,1)<=ref(macd,2);
均线多头b:=c>=ref(c,1) and ref(c ,1)<=ref(c,2) and ref(c,2)<=ref(c,3);
趋势多头b:=主力趋势<11 and (主力趋势>=ref(主力趋势,1));
多头买点:=趋势多头b and macd多头b and 均线多头b;
drawicon(多头买点,30,1);
drawicon(多头买点,40,7);
stickline(多头买点,0,20,0.01,0),colorred;
drawicon(空头买点,70,2);
drawicon(空头买点,60,8);
stickline(空头买点,100,80,0.01,0),colorgreen;
{启富主力b点}
aa1:=(close-llv(low,43))/(hhv(high,43)-llv(low,43))*100;
aa2:=sma(aa1,2,1);
主力趋势:=sma(aa2,2,1),linethick3,colorffcc66;
买:=stickline(cross(主力趋势,5),0,50,0,0),colorred;
dif:=ema(close,12)-ema(close,26);
dea:=ema(dif,9);
macd:=2*(dif-dea);
macd多头b:=macd<0 and macd>ref(macd,1) and ref(macd,1)<=ref(macd,2);
均线多头b:=c>=ref(c,1) and ref(c ,1)<=ref(c,2) and ref(c,2)<=ref(c,3);
趋势多头b:=主力趋势<11 and (主力趋势>=ref(主力趋势,1));
多头买点:=趋势多头b and macd多头b and 均线多头b;
主力b点选股:(多头买点 or cross(主力趋势,4))
and not(dynainfo(4)=0) {无停牌}
and not(namelike('s') or namelike('*')) {无st};
{启富主力s点}
aa1:=(close-llv(low,43))/(hhv(high,43)-llv(low,43))*100;
aa2:=sma(aa1,2,1);
主力趋势:=sma(aa2,2,1),linethick3,colorffcc66;
卖:=stickline(cross(95,主力趋势),100,50,0,0),colorgreen;
dif:=ema(close,12)-ema(close,26);
dea:=ema(dif,9);
macd:=2*(dif-dea);
macd空头a:=macd>0 and macd<ref(macd,1) and ref(macd,1)>=ref(macd,2);
均线空头a:=c<ref(c,1) and ref(c ,1)>=ref(c,2) and ref(c,2)>=ref(c,3);
趋势空头a:=主力趋势>89 and (主力趋势<=ref(主力趋势,1));
空头买点:=趋势空头a and macd空头a and 均线空头a;
主力s点选股:(空头买点 or cross(96,主力趋势))
and not(dynainfo(4)=0) {无停牌}
and not(namelike('s') or namelike('*')) {无st};
上一指标公式:轻装应战副图下载
下一指标公式:通达信公式推荐一个赚多亏少的副图指标下载
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文启富主力趋势下载仅供学习研究。