macd美人眼新美人眼
{macd美人眼}
{背景颜色设定}
drawrectrel(0,10,200,1000,rgb(0,0,255)),layer0;
{参数}
short:=12;long:=26;m:=9;
diff1:=ema(close,short) - ema(close,long);
dea1:=ema(diff1,m);
macd:2*(diff1-dea1),linethick0;
diff : ema(close,short) - ema(close,long),colorff00ff,linethick0;
dea : ema(diff1,m),colorwhite,linethick0;
ah:hhv(diff1,55),color6600ff,linethick0,layer0;
partline(ah,ah),colorwhite,pointdot,linethick0,layer0;
drawicon( ref(ah=diff1,1) and diff<ref(diff1,1),ah*0.65,8),align1;
al:llv(diff1,55),color248a24,linethick0,layer0;
partline(al,al),colorwhite,pointdot,linethick0,layer0;
drawicon( ref(al=diff1,1) and diff>ref(diff1,1),al*0.65,7),align1;
{美人眼}
var1:=hhv(dea,53);
var2:=llv(dea,30);
var3:=dea-(diff-dea);
up:if(diff>var1 and dea=var1,max(llv(var1,10),var3),var1),colorbb9a00,linethick0,layer0;
dn:if(diff<var2 and dea=var2,min(hhv(var2,10),var3),var2),coloraa00bb,linethick0,layer0;
美人眼:cross(diff ,dea ) and cross( diff,dn ) and dn<0,linethick0;
stickline(美人眼,-0.1,-0.20,6,0),colorred;
{美人眼a:美人眼*al,stick,linethick4,color8080ff;}
drawtext(美人眼,-0.15,'美人眼'),align1,color8080ff,linethick2,layer1;
{美人瞎眼:=cross(dea ,diff ) and cross( up,diff ) and diff<up;
美人瞎眼a:美人瞎眼*ah,stick,linethick4,color9ca010;
drawtext(美人瞎眼,dn,'美人瞎眼'),align1,color9ca010,linethick2,layer0;}
{●60零上金叉:if(cross(diff,dea) and diff>0,0.3,0),color6600ff,pointdot;
stickline(●60零上金叉,diff,ah,4,0),color6600ff;}
■零下金叉:if(cross(diff,dea) and diff<-0.001,0.3,0),colorwhite,pointdot,linethick0;
stickline(■零下金叉,0.1,0.20,6,0),colorffffff;
drawtext(■零下金叉,0.15,'零下金叉'),align1,color6600ff,layer1;
jccount:=count(cross(diff,dea),barslast(dea>=0));
■二次金叉:if(cross(diff,dea) and dea<0 and count(jccount=2,21)=1,0.2,0),colorred,pointdot,linethick0;
stickline(■二次金叉,0.20,0.3,6,0),colorred;
drawtext(■二次金叉,0.25,'二次金叉'),align1,colorffffff,layer1;
a3:=cross(diff,dea) and dea<0;
■零下二次金叉:if(filter(count(a3,21)=2,10) and dea<0,0.05,0),colorblue,pointdot,linethick0;
stickline(■零下二次金叉,0.3,0.4,6,0),colorblue;
drawtext(■零下二次金叉,0.35,'零下二次金叉'),align1,coloryellow,layer1;
a1:=barslast(ref(cross(diff,dea),1));
■底背离:if(ref(close,a1+1)>close and diff>ref(diff,a1+1) and cross(diff,dea),0.1,0),colorffff00;
{底背离1:stickline(ref(close,a1+1)>close and diff>ref(diff,a1+1) and cross(diff,dea),0,al,4,0),color00ff00;}
stickline(■底背离,0.2,0.25,6,0),colorffff00;
{drawline(a1=0,dea,■底背离,dea,0),coloryellow};
{a2:=barslast(ref(cross(dea,diff),1));
顶背离:stickline(ref(close,a2+1)<close and ref(diff,a2+1)>diff and cross(dea,diff),0,diff,4,0),colorblack;
drawline(a2=0,dea,顶背离,dea,0),colorgreen;}
中线:0,linethick2,coloryellow,layer1;
{绿色}
stickline(macd<ref(macd,1)and macd>0,0,macd,8,0 ),color008800;
stickline(macd<ref(macd,1)and macd>0,0,macd,7,0 ),color009900;
stickline(macd<ref(macd,1)and macd>0,0,macd,6,0 ),color00aa00;
stickline(macd<ref(macd,1)and macd>0,0,macd,5,0 ),color00bb00;
stickline(macd<ref(macd,1)and macd>0,0,macd,4,0 ),color00cc00;
stickline(macd<ref(macd,1)and macd>0,0,macd,3,0 ),color00dd00;
stickline(macd<ref(macd,1)and macd>0,0,macd,2,0 ),color00ee00;
stickline(macd<ref(macd,1)and macd>0,0,macd,1,0 ),color00ff00;
{红色}
stickline(macd>=ref(macd,1)and macd>0,0,macd,8,0 ),color000088;
stickline(macd>=ref(macd,1)and macd>0,0,macd,7,0 ),color000099;
stickline(macd>=ref(macd,1)and macd>0,0,macd,6,0 ),color0000aa;
stickline(macd>=ref(macd,1)and macd>0,0,macd,5,0 ),color0000bb;
stickline(macd>=ref(macd,1)and macd>0,0,macd,4,0 ),color0000cc;
stickline(macd>=ref(macd,1)and macd>0,0,macd,3,0 ),color0000dd;
stickline(macd>=ref(macd,1)and macd>0,0,macd,2,0 ),color0000ee;
stickline(macd>=ref(macd,1)and macd>0,0,macd,1,0 ),color0000ff;
{黄色}
stickline(macd>ref(macd,1)and macd<0,0,macd,8,0 ),color338fdd;
stickline(macd>ref(macd,1)and macd<0,0,macd,7,0 ),color339fdd;
stickline(macd>ref(macd,1)and macd<0,0,macd,6,0 ),color33afdd;
stickline(macd>ref(macd,1)and macd<0,0,macd,5,0 ),color33bfdd;
stickline(macd>ref(macd,1)and macd<0,0,macd,4,0 ),color33cfdd;
stickline(macd>ref(macd,1)and macd<0,0,macd,3,0 ),color33dfdd;
stickline(macd>ref(macd,1)and macd<0,0,macd,2,0 ),color33efdd;
stickline(macd>ref(macd,1)and macd<0,0,macd,1,0 ),color33ffdd;
{蓝色}
stickline(macd<=ref(macd,1)and macd<0,0,macd,8,0 ),colorff4400;
stickline(macd<=ref(macd,1)and macd<0,0,macd,7,0 ),colorff6600;
stickline(macd<=ref(macd,1)and macd<0,0,macd,6,0 ),colorff7700;
stickline(macd<=ref(macd,1)and macd<0,0,macd,5,0 ),colorff8800;
stickline(macd<=ref(macd,1)and macd<0,0,macd,4,0 ),colorff9900;
stickline(macd<=ref(macd,1)and macd<0,0,macd,3,0 ),colorffaa00;
stickline(macd<=ref(macd,1)and macd<0,0,macd,2,0 ),colorffbb00;
stickline(macd<=ref(macd,1)and macd<0,0,macd,1,0 ),colorffcc00;
{当日及时行情}
drawtextrel(5,70,'今 美 人 眼:'+numtostrn(美人眼,0)),colorffffff,linethick1,layer0;
drawtextrel(5,250,'日 零下金叉:'+numtostrn(■零下金叉,0)),colorffffff,linethick1,layer0;
drawtextrel(5,430,'行 二次金叉:'+numtostrn(■二次金叉,0)),colorffffff,linethick1,layer0;
drawtextrel(5,610,'情 零下二次金叉:'+numtostrn(■零下二次金叉,0)),colorffffff,linethick1,layer0;
drawtextrel(5,790,'表 趋 势:'),colorffffff,linethick1,layer0;
mry1:=美人眼=1;
mry2:=美人眼=0 and ( ■零下金叉>0 or ■二次金叉>0 or ■零下二次金叉>0 );
mry3:=美人眼=0 and ■零下金叉=0 and ■二次金叉=0 and ■零下二次金叉=0 ;
if barstatus=2 and mry1 then begin
drawtextrel(25,70,' ● 对你抛媚眼!'),colorred,layer0;
end
else
if barstatus=2 and mry2 then begin
drawtextrel(25,70,' ● 不理你!'),colorgreen,layer0;
end
else
if barstatus=2 and mry3 then begin
drawtextrel(25,70,' ● 看 !'),colorgreen,layer0;
end;
lxjc1:=■零下金叉>0;
lxjc2:=■零下金叉=0 and (■二次金叉>0 or ■零下二次金叉>0);
lxjc3:=■零下金叉=0 and ■二次金叉=0 and ■零下二次金叉=0 and 美人眼=0 ;
if barstatus=2 and lxjc1 then begin
drawtextrel(25,250,' ● 好消息!'),colorred,layer0;
end
else
if barstatus=2 and lxjc2 then begin
drawtextrel(25,250,' ● 闲闲没事 !'),colorgreen,layer0;
end
else
if barstatus=2 and lxjc3 then begin
drawtextrel(25,250,' ● 趋 !'),colorgreen,layer0;
end
ecjc1:=■二次金叉>0;
ecjc2:=■二次金叉=0 and ( ■零下金叉>0 or ■零下二次金叉>0 );
ecjc3:=■二次金叉=0 and ■零下金叉=0 and ■零下二次金叉=0 and 美人眼=0 ;
if barstatus=2 and ecjc1 then begin
drawtextrel(25,430,' ● 乐透开了!'),colorred,layer0;
end
else
if barstatus=2 and ecjc2 then begin
drawtextrel(25,430,' ● 喝茶去 !'),colorgreen,layer0;
end
else
if barstatus=2 and ecjc3 then begin
drawtextrel(25,430,' ● 势 !'),colorgreen,layer0;
end
lxecjc1:=■零下二次金叉>0;
lxecjc2:=■零下二次金叉=0 and ( ■零下金叉>0 or ■二次金叉>0);
lxecjc3:=■零下二次金叉=0 and ■二次金叉=0 and ■零下金叉=0 and 美人眼=0 ;
if barstatus=2 and lxecjc1 then begin
drawtextrel(25,610,' ● 中头彩了!'),colorred,layer0;
end
else
if barstatus=2 and lxecjc2 then begin
drawtextrel(25,610,' ● 等 吧 !'),colorgreen,layer0;
end
else
if barstatus=2 and lxecjc3 then begin
drawtextrel(25,610,' ● 线 !'),colorgreen,layer0;
end
准备1:=macd>0 and macd>ref(macd,1);
准备2:=macd>0 and macd<ref(macd,1);
板凳1:=macd<0 and macd>ref(macd,1);
板凳2:=macd<0 and macd<ref(macd,1);
if barstatus=2 and 准备1 then begin
drawtextrel(25,790,' ● 起跑线上 趋势上升中!'),colorred,layer0;
end
else
if barstatus=2 and 准备2 then begin
drawtextrel(25,790,' ● 起跑线上 趋势下跌中!'),colorgreen,layer0;
end;
if barstatus=2 and 板凳1 then begin
drawtextrel(25,790,' ● 板凳球员 趋势上升中!'),colorred,layer0;
end
else
if barstatus=2 and 板凳2 then begin
drawtextrel(25,790,' ● 板凳球员 趋势下跌中!!'),colorgreen,layer0;
end;
上一指标公式:只为看着方便增加主图显示内容公式下载 大智慧源码只为
下一指标公式:新发动机副图图公式下载 大智慧源码新发
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文MACD美人眼新美人眼公式下载 大智慧美人仅供学习研究。