飞狐强势整理副图指标
源码
N:=5;M:=2;
a1:=abs((c-ref(c,1))/ref(c,1))<=0.05
a2:=ref(c,1)>ref(o,1) and (ref(c,1)/ref(o,1))>=1+m/100
a3:=if(a1 and a2,3,0);
a4:=barslast(a1 and a2);
a8:=ref(c,a4+1);
a5:=abs((c-ref(c,1))/ref(c,1))<=0.03
a6:=(c>=a8 and c/a8<=(1+n/100));
a4=count(a5 and a6,a4) ;