编写条件:
编写方法:
网友求助:
只显示最近60天内最后一次涨停最高价划线公式,并且划线长度不要超过10天,之前的就不要画了。
ZT:=C/REF(C,1)>1.0945 AND C=H;
AA:=REF(C,BArslAST(ZT AND CURRBARSCOUNT<60));
DRAWLINE(ZT,C,1,REF(AA,1),1);
解答如下:
ZT:=C/REF(C,1)>1.0945 AND C=H;
A:=BARSLAST(ZT);
B:=BacKSET(ISLASTBAR AND A<=60,A+1);
DRAWLINE(B>REF(B,1),H,SUM(B,0)<=11 AND SUM(B,0)>1,REF(H,A),0),COLORGREEN,DOTLINE;
A:=BARSLAST(ZT);
B:=BacKSET(ISLASTBAR AND A<=60,A+1);
DRAWLINE(B>REF(B,1),H,SUM(B,0)<=11 AND SUM(B,0)>1,REF(H,A),0),COLORGREEN,DOTLINE;