var1:=ma1>ma2;var2:=ma2>ma3;con1:=sum(var1,8)=8 and sum(var2,8)=8;{ma1>ma2 ma2>na3 持续8个日期以上都满足}con2:=o>ma1 and c>ma1;{并且(开盘价、收盘价)>ma1}con3:=c/ref(c,1)>1.07;{涨幅大于1.07}drawtext(con1 and con2 and con3,low,'抢')1、不知道lz的ma1、ma2、ma3是什么,所以没有加上去啦。2、并且(开盘价、收盘价)>ma1--→这个也是连续8天吗?如果也要连续八天实体都在ma1之上,只要加上con22:=sum(con2,8)=8,然后drawtext里面的con2改成con22就可以了。3、建议抢字输出不要在low(如果您是主图叠加的话),因为会遮住的,最好乘以一个比率,例如low*0.98,指标也是一门艺术,好的指标起码也要给您好的心情。 20210311
以下代码是博易**所用xg1:=ref(h=hhv(h,4),1) and ref(v=hhv(v,4),1) and v<ref(v,1)/2 and h<ref(h,1) and sma(max(close-ref(close,1),0),6,1)/sma(abs(close-ref(close,1)),6,1)*100>70;xg2:=ref(h=hhv(h,4),1) a...
ljty2010|六级(o/ref(c,1)-1)*100>2 and (o/ref(c,1)-1)*100<6;=============================================上式没有排除开盘不是跳空的,完善如下(o/ref(c,1)-1)*100>2 and (o/ref(c,1)-1)*100<6 and o>ref(h,1);===...