压力线,叠加至主图
源码:
A1:=REF(C,10)=HHV(C,2*10+1);
B1:=FILTER(A1,10);
C1:=BACKSET(B1,10+1);
HD:=FILTER(C1,10);
近期压力:REF(C,BARSLAST(HD)) NODRAW;
AS1:=REF(C,60)=HHV(C,2*60+1);
AS2:=FILTER(AS1,60);
AS3:=BACKSET(AS2,60+1);
AS4:=FILTER(AS3,60);
长期压力:REF(C,BARSLAST(AS4)) NODRAW;
STICKLINE(C,近期压力,近期压力,10,0),COLORYELLOW ;
DRAWTEXT(ISLASTBAR,近期压力,' 近压力线');
STICKLINE(C,长期压力,长期压力,10,0),COLORRED;
DRAWTEXT(ISLASTBAR,长期压力,' 长压力线');
726599625.jpg
|