请老师编写一个涨停K线上往右引出黄金分割的线,如果涨停K线是高开的以前一天收盘计算,往右引出20天
爱约股解答:
ZT:=C/REF(C,1)>1.09465 AND C=H AND O<=REF(C,1);
GKZT:=C/REF(C,1)>1.09465 AND C=H AND O>REF(C,1);
GKX:=DRAWLINE(GKZT,REF(C,1),REF(GKZT,1),REF(C,2),1);
ZTX:=DRAWLINE(ZT,C,REF(ZT,1),REF(C,1),1);
涨停:IF(BARSLAST(ZT)<=20,ZTX,DRAWNULL);
高开涨停:IF(BARSLAST(GKZT)<=20,GKX,DRAWNULL);