编写要求:
大智慧在主图显示,新股上市30天内涨停板个数的公式。
www.gszx.com.cn网解答:
xgzts:if(barssince(c>0)<=30,count(1.1*ref(c,1)-c<=0.01 and c=h,barssince(c>0)),count(1.1*ref(c,1)-c<=0.01 and c=h,barssince(c>0))-count(1.1*ref(c,1)-c<=0.01 and c=h,barslast(barssince(c>0)=30)));