m1:= 5;
m2:=10;
m3:=20;
m4:=30;
m5:=60;
m6:=120;
m7:=250;
stickline(close> ref(close,1) ,high,low,0,1 ),colorred;
stickline(close> ref(close,1) ,open,close,3.1,0 ),color000033;
stickline(close> ref(close,1) ,open,close,2.7,0 ),color000066;
stickline(close> ref(close,1) ,open,close,2.1,0 ),color000099;
stickline(close> ref(close,1) ,open,close,1.5,0 ),color0000cc;
stickline(close> ref(close,1) ,open,close,0.9,0 ),color0000ff;
stickline(close> ref(close,1) ,open,close,0.3,0 ),colorcc66ff;
stickline(close< ref(close,1) ,high,low,0,1 ),colorcyan;
stickline(close< ref(close,1) ,open,close,3.1,0 ),color990000;
stickline(close< ref(close,1) ,open,close,2.7,0 ),colorcc0000;
stickline(close< ref(close,1) ,open,close,2.1,0 ),colorff4400;
stickline(close< ref(close,1) ,open,close,1.5,0 ),colorff8800;
stickline(close< ref(close,1) ,open,close,0.9,0 ),colorffcc00;
stickline(close< ref(close,1) ,open,close,0.3,0 ),colorcyan;
stickline(close= ref(close,1) ,high,low,0,1 ),colorwhite;
stickline(close= ref(close,1) ,open,close,3.1,0 ),color555555;
stickline(close= ref(close,1) ,open,close,2.7,0 ),color777777;
stickline(close= ref(close,1) ,open,close,2.1,0 ),color999999;
stickline(close= ref(close,1) ,open,close,1.5,0 ),colorbbbbbb;
stickline(close= ref(close,1) ,open,close,0.9,0 ),colordddddd;
stickline(close= ref(close,1) ,open,close,0.3,0 ),colorffffff;
{一:ma(close,5);
二:ma(close,10);
三:ma(close,20);
四:ma(close,30);
五:ma(close,60);
六:ma(close,120);
七:ma(close,250);}
{十日叉:if(cross(一,二),一,drawnull),crossdot,colorffffff,linethick2;
廿日叉:if(cross(二,三),二,drawnull),crossdot,color00ffff,linethick2;
卅日叉:if(cross(三,四),三,drawnull),crossdot,color0099ff,linethick2;
五日线:if(一>=ref(一,1) and 一>=二,一,drawnull),colorffffff,linethick2;
十日线:if(二>=ref(二,1) and 二>=三,二,drawnull),color00ffff,linethick2;
廿日线:if(三>=ref(三,1) and 三>=四,三,drawnull),colorff00ff,linethick2;}
{轨道}
ma5:=ma(close,5);
ma10:=ma(close,10);
ma30:=ma(close,30);
红轨道:ma(ma(close,3),1),linethick2,color0000ff;
绿轨道:ma(ma(close,3),3),linethick2,color00ff00;
{//布林线
bbi:(ma(close,3)+ma(close,6)+ma(close,12)+ma(close,24))/4;
upr:bbi+p*std(bbi,n);
dwn:bbi-p*std(bbi,n);}
{红绿箭头}
aa1:=3*sma((c-llv(l,9))/(hhv(h,9)-llv(l,9))*100,3,1)-2*sma(sma((c-llv(l,9))/(hhv(h,9)-llv(l,9))*100,3,1),3,1);
加仓:=if(cross(aa1,ref(aa1+0.01,1)) and llv(aa1,2)=llv(aa1,8) and between(aa1,20,60),1,0);
波段底:=(3)*(sma(((close - llv(low,27))/(hhv(high,27) - llv(low,27)))*(100),5,1)) -
(2)*(sma(sma(((close - llv(low,27))/(hhv(high,27) - llv(low,27)))*(100),5,1),3,1));
减仓:=(cross(c,ma5) or (o<ma5 and c>ma5)) and v>ref(v,1) and ma5>ref(ma5,1) and ma10>ref(ma10,1);
回头:=(ma10>ma30 and ma(c,20)>ma30 andma30>ref(ma30,1)) and ma5>ma10 and not(ma5>ref(ma5,1)) and ref(ma5>ref(ma5,1),1);
{drawicon(加仓,l*0.97,1);
drawicon(cross(波段底,3),l*0.97,1);
drawicon(减仓>0 ,h*1.03,2);
drawicon(回头>0 ,h*1.03,2);}
drawtext(加仓,low*0.99,'买进'),color00bbff;
drawtext(cross(波段底,3),low*0.97,'买进'),color0000ff;
drawtext(减仓>0,h*1.03,'卖出'),colorffff00;
drawtext(回头>0,h*1.03,'卖出'),color00ff00;
{
diff:=ema(close,12)-ema(close,26);
dea:=ema(diff,9);
macd:=2*(diff-dea);
macd1:=cross(diff,dea) and count(macd>0,1)=1;
rsv:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
k:=sma(rsv,9,1);
d:=sma(k,9,1);
j:=3*k-2*d;
kdj1:=cross(k,d) and cross(j,d);
均线:=cross(ma(c,5),ma(c,10));
量线:=cross(ma(v,5),ma(v,10));
scc:=macd1 and kdj1 and 均线 and 量线;
sc1:=macd1 and kdj1;
sc2:=均线 and 量线;
sc3:=均线 and macd1;
sc4:=量线 and kdj1;
sc5:=均线 and kdj1;
sc6:=macd1 and 量线;
drawicon(sc1 or sc2 or sc3 or sc4 or sc5 or sc6,l*0.95,11);
drawicon(scc,l*0.96,7);
drawicon(cross(一,二),l*0.95,1);
drawicon(cross(二,三),l*0.95,1);
drawicon(cross(三,四),l*0.95,1);
drawicon(cross(二,一),h*1.05,2);
drawicon(cross(三,二),h*1.05,2);
drawicon(cross(四,三),h*1.05,2);
var1:=3;
var3:=(3)*(sma(((close - llv(low,27))/(hhv(high,27) - llv(low,27)))*(100),5,1)) - (2)*(sma(sma(((close - llv(low,27))/(hhv(high,27) - llv(low,27)))*(100),5,1),3,1));
drawicon(cross(var3,var1),l*0.95,1);};
上一指标公式:看色操作指标详解 通达信操作
下一指标公式:硬上四下指标详解 通达信
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文东郭均线指标详解 通达信源码东郭仅供学习研究。