编写要求:
公式在线网解答:
网友求助:
好像这个分时主图没有未来函数,应该不会漂移吧 请老师把 拉升 为信号做个预警指标 谢谢
KP30:=TIME0<36000;
KPGD:=H=HHV(H,0) AND KP30;
GDSJ:=BARSLAST(KPGD);
HH:REF(H,GDSJ),COLORFF00FF,POINTDOT,LINETHICK2;
过顶:IF(CROSS(C,HH),1,0),COLOR00FF00,POINTDOT,LINETHICK0;
冲高:IF(FILTER(CROSS(C,HH*1.01),15),1,0),COLOR00FFFF,POINTDOT,LINETHICK0;
DRAWTEXT(过顶,HH,'↑'),COLOR00FF00,ALIGN1;
DRAWTEXT(冲高,HH,'★拉升'),COLOR00FFFF,ALIGN1;
解答如下:
KP30:=TIME0<36000;
KPGD:=H=HHV(H,0) AND KP30;
GDSJ:=BARSLAST(KPGD);
HH:=REF(H,GDSJ);
冲高:FILTER(CROSS(C,HH*1.01),15);