acon:h=hhv(h,10);//当前是10周期高点
bcon:count(acon,20)=1 and acon;//20周期内第一次满足acon
con:amount>2*ma(amount,10) and bcon;
d1:valuewhen(con,date);//最近一次满足该条件的日期
o1:valuewhen(con,open);//大阳线的开盘价
len:=barslast(con);
h3:valuewhen(len<3 and len>=0,hhv(h,len));//大阳线之后三个K内的最高价
l3:valuewhen(len<3 and len>=0,llv(l,len));
c_after3:valuewhen(len>=3,c);//大阳线之后的收盘价