飞狐逃顶 源码公式:
ma3:ma(close,4),colorffffff,linethick1;
ma8:ma(close,8),color208fff,linethick1;
ma49:=ma(close,49),color00ff00,linethick1;
angel:=ema(c,2),colorf00ff0;
devil:ema(slope(c,21)*20+c,42),pointdot,colorf00ff0,linethick3;
buy:=cross(angel,devil);
sel:=cross(devil,angel);
stickline(cross(angel,devil) or cross (devil,angel),open,close,5,0),colorf00ff0;
drawtext(buy,low*0.99,''),coloryellow,linethick3;
drawtext(sel,high*1.03,''),color00ff00,linethick3;
z:zig(3,5),color00ffff,linethick2;
var4:=peakbars(3,5,1)<10;
var5:=if(var4=1,2,0);
顶:= if(var5=2,2,0);
顶a:if(顶>ref(顶,1),50,0),color00ff00,linethick2;
drawtext(顶a=50,100,'↓快走'),colorccff66; |