精幅:=25;
倍量:=V>REF(V,1)*1.71 AND C>REF(C,1)*1.03;
WZ1:=BARSLAST(倍量),NODRAW;
WZ2:=REF(WZ1,WZ1+1)+1+WZ1,NODRAW;
WZ3:=REF(WZ2,WZ2)+WZ2,NODRAW;
TJ:=倍量 AND RANGE(REF(L,WZ2),L*(1-精幅/1000),L*(1+精幅/1000)) AND RANGE(REF(L,WZ3),L*(1-精幅/1000),L*(1+精幅/1000));
精准线:REF(L,BARSLAST(TJ)),COLORMAGENTA;
选:RANGE(CLOSE,精准线,精准线*(1+精幅/1000)),COLORRED,NODRAW;
STICKLINE(选,O,C,-1,0),COLORYELLOW;
DRAWICON(选,H*1.01,1);
|