求哪位大神帮忙建两个选股公式,谢谢了!!!
发布网友
发布时间:2023-07-17 17:37
我来回答
共1个回答
热心网友
时间:2023-10-08 20:02
条件预警公式如下(已经通过测试):
a1:=ema(c,12)-ema(c,25);
a2:=ema(a1,6);
获利回吐:=(a2>=0)*a2,colorwhite,linethick0;
大黑马:=(a2<0)*a2,colord4ff7f,linethick0;
坚绝做空:=(a1<0)*a1,colorb00058,linethick0;
买入持股:=(a1>=0)*a1,colorred,linethick0;
var9:="dmi.adx"(12,6);
vara:="dmi.adxr"(12,6);
varb:=close>ma(close,30)
and
close
ref(ma(close,30),1);
vard:=barslast(cross(ma(close,5),ma(close,10)))
ref(ema(close,30),2);
var11:=if(varf=1,50,0);
多空:=ema((close-ma((2*close+high+low)/4,30))/ma((2*close+high+low)/4,30)*100,3),colorwhite;
drawtext(filter(varf=1,3),25,'黑马出现'),colorred
;