大智慧成本主图指标公式,大智慧L2黄金分割线的全新画法
admin888
|大智慧成本主图指标公式,大智慧L2黄金分割线的全新画法
大智慧成本主图指标公式
成本:maXcy,colorff9900;
趋势:ma(c,90),colorred;
MA14:MA(CLOSE,14);
码:cost(50),coloryellow;
diff:=ema(CLOSE,12)-EMA(CLOSE,26);
dea:=EMA(diff,9);
多头:STICKLINE(diff>dea,C,O,8,0),colorred;
STICKLINE(diff>dea,H,L,0,0),colorred;
空头:STICKLINE(diff<=dea,C,O,8,0),colorgray;
STICKLINE(diff<=dea,H,L,0,0),colorgray;
DRAWTEXT(crOSS(diff,dea),L-0.2,'买入'),colorwhite;
diff1:=EMA(CLOSE,12)-EMA(CLOSE,26);
dea1:=EMA(diff1,9);
多头1:STICKLINE(diff1>dea1,C,O,8,0),colorred;
STICKLINE(diff>dea1,H,L,0,0),colorred;
空头1:STICKLINE(diff1<=dea1,C,O,8,0),colorgray;
STICKLINE(diff1<=dea1,H,L,0,0),colorgray;
DRAWTEXT(CROSS(diff1,dea1),L-0.2,'买入'),colorwhite;
大智慧L2黄金分割线的全新画法
{大智慧L2黄金分割线的全新画法(新函数的用法)}ah:hhvall(h); al:llvall(l); {注意指标
叠加该函数有循环或分支中将不准确,慎重使用叠加方式}ahl:=ah-al;
a23:al+ahl*0.236,coloraaaaaa;
a38:al+ahl*0.382,color00aaaa;
a61:al+ahl*0.618,color00aaaa;
a76:al+ahl*0.764,coloraaaaaa;
{标注数字}y:=999;DRAWTEXTREL(0,0,'100% '+ah),coloraaaaaa;
DRAWTEXTREL(0,y*0.236,'0.764% '+a76),coloraaaaaa;
DRAWTEXTREL(0,y*0.382,'0.618% '+a61),color00aaaa;
DRAWTEXTREL(0,y*0.618,'0.382% '+a38),color00aaaa;
DRAWTEXTREL(0,y*0.764,'0.236% '+a23),coloraaaaaa;
DRAWTEXTREL(0,y-30,'最低 '+ah),coloraaaaaa;
牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。