飞狐长线牛股主图指标
源码
p1:=12;
Var1:=EMA(CLOSE,P1);
Var2:=EMA(CLOSE,P2);
长线牛股: (CLOSE-Var1)*2/(P1+1)+Var1, ,
Var3:=(CLOSE-Var2)*2/(P2+1)+Var2;
DRAWICON(FILTER(CROSS(长线牛股,Var3),20),长线牛股,1);
DRAWICON(FILTER(CROSS(Var3,长线牛股),20),长线牛股,2);
洼地: IF(长线牛股>Var3,Var3,长线牛股), , COLORGREEN;
生命线: Var3, ,
STICKLINE(长线牛股>生命线,生命线,长线牛股,2,1),COLOR0000ff;
STICKLINE(生命线>洼地,洼地,生命线,1,1),COLOR00ff00;