编写要求:
历史最底价格上20%到30%开始横盘的公式。
www.gszx.com.cn网解答:
{N横盘天数}
A1 :=COUNT(CLOSE>0,0)>N AND (HHV(CLOSE,N)-LLV(CLOSE,N))/LLV(CLOSE,N)<=0.1; A2 :=SUM(C,N)/N; A3 :=A2>1.2*LLV(L,0) AND A2<1.3*LLV(L,0); XG :=A1 AND A3;