文华财经峰谷线顶底高低点自动画线主图公式
谷:=TROUGHBARS(H,5,2,1);
峰:=PEAKBARS(H,5,2,1);
DRAWTEXT(CROSS(谷,峰),H*1.005,’高’),COLORGREEN;
DRAWCOLORKLINE(CROSS(谷,峰),COLORMAGENTA,0);
DRAWTEXT(CROSS(峰,谷),L*0.99,’底’),COLORYELLOW;
DRAWCOLORKLINE(CROSS(峰,谷),COLORMAGENTA,0);
DRAWTEXT(REF(CROSS(谷,峰),1),REF(H,1)*1.005,’ 顶’) ,COLORYELLOW;
DRAWTEXT(REF(CROSS(峰,谷),1),REF(L,1)*0.993,’ 进’),COLORFF00FF;
SCG DTS:=BARSLAST(CROSS(谷,峰));
SCD DTS:=BARSLAST(CROSS(峰,谷));
SCGDGZ:=HHV(H,SCGDTS+1);
SCDDDZ:=LLV(L,SCDDTS+1);
ZD D:=(SCG DGZ-L)/L*100;
ZDZ:=(H-SCDDDZ)/SCDDDZ*100;
最大涨幅:=IF(谷
最大跌幅:=IF(谷>峰,ZDD,0),NODRAW;
DRAWNUMBER1(谷
DRAWNUMBER1(谷>峰 AND ISLASTBAR,H*1.04, 最大跌幅,2),COLORGREEN;
DRAWLINE1(CROSS(谷,峰),H,CROSS(峰,谷),L,0),COLORGREEN;
DRAWLINE1(CROSS(峰,谷),L,CROSS(谷,峰),H,0),COLORRED;