sp:close,colorwhite;
p1=ma(close,n1);
p2=ma(close,n2);
p3=ma(close,n3);
p4=ma(close,n4);
p5=ma(close,n5);
v1=ma(vol,n1);
v2=ma(vol,n2);
v3=ma(vol,n3);
v4=ma(vol,n4);
v5=ma(vol,n5);
价金叉=cross(p1,p2) or (ref(p2,2)>ref(p1,2) and p1>p2);
量金叉=cross(v1,v2) or (ref(v2,2)>ref(v1,2) and v1>v2);
价死叉=cross(p2,p1) or (ref(p1,2)>ref(p2,2) and p1<p2);
量死叉=cross(v2,v1) or (ref(v1,2)>ref(v2,2) and v1<v2) ;
diff = ema(close,short) - ema(close,long);
dea = ema(diff,m);
//macd = 2*(diff-dea);
mjx=cross(diff,dea) or (ref(diff,2)>ref(dea,2) and diff<dea);
msx=cross(dea,diff) or (ref(dea,2)>ref(diff,2) and dea<diff);
三金叉=if(价金叉 and 量金叉 and mjx,1,0);
三死叉=if(价死叉 and 量死叉 and msx,1,0);
单金叉=if(cross(p1,p2) and v1>v2 and (diff>dea or cross(diff,dea)),1,0);
单死叉=if(cross(p2,p1) and v1<v2 and (diff<dea or cross(dea,diff)),1,0);
drawicon(三金叉 + 单金叉,close,1);
drawicon(三死叉 + 单死叉,close,2);
//短线价托
ptbs=if(cross(p1,p2) and p1<p3,p2,if(cross(p2,p1),0,ref(ptbs,1)));
ptts=if(ptbs and cross(p1,p3),p1,if(cross(p3,p1) ,0,ref(ptts,1)));
pts=if(ptbs and ptts and cross(p2,p3),1,0);
stickline(pts,ptbs,ptts,10,0),coloryellow;
//长线价托
ptbl=if(cross(p3,p4) and p3<p5,p4,if(cross(p4,p3),0,ref(ptbl,1)));
pttl=if(ptbl and cross(p3,p5),p3,if(cross(p5,p3) ,0,ref(pttl,1)));
ptl=if(ptbl and pttl and cross(p4,p5),1,0);
stickline(ptl,ptbl,pttl,10,0),colorred;
//短线金蜘蛛
jzzs=if(cross(p1,p2) and cross(p1,p3),1,0);
drawtext(jzzs,p1,'☆'),coloryellow;
//长线金蜘蛛
jzzl=if(cross(p3,p4) and cross(p3,p5),1,0);
drawtext(jzzl,p1,'☆'),colorred;
//短线价压
pyts=if(cross(p2,p1) and p1>p3,p2,if(cross(p1,p2),0,ref(pyts,1)));
pybs=if(pyts and cross(p3,p1),p1,if(cross(p1,p3),0,ref(pybs,1)));
pys=if(pybs and pyts and cross(p3,p2),1,0);
stickline(pys,pybs,pyts,10,0),colorliblue;
//长线价压
pytl=if(cross(p4,p3) and p3>p5,p4,if(cross(p3,p4),0,ref(pytl,1)));
pybl=if(pytl and cross(p5,p3),p3,if(cross(p3,p5),0,ref(pybl,1)));
pyl=if(pybl and pytl and cross(p5,p4),1,0);
stickline(pyl,pybl,pytl,10,0),colorgreen;
//短线死蜘蛛
szzs=if(cross(p2,p1) and cross(p3,p1),1,0);
drawtext(szzs,p1,'☆'),colorliblue;
//长线死蜘蛛
szzl=if(cross(p4,p3) and cross(p5,p3),1,0);
drawtext(szzl,p1,'☆'),colorgreen;
铡刀1=if(p4>max(p3,p5) and open>p4 and close<min(p3,p5),1,0);
铡刀2=if(open>p3 and open>p4 and open>p5 and close<p3 and close<p4 and close<p5,1,0);
drawicon(铡刀1 and 铡刀2,close,2);
芙蓉出水=if(p4<min(p3,p5) and open<p4 and close>max(p3,p5),1,0);
drawicon(芙蓉出水,close,1);
上一指标公式:得心应手详解 同花顺得心应手
下一指标公式:GBS出现缺口等2根详解 同花顺缺口
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文短线助手详解 同花顺助手仅供学习研究。