随便一ZIG,取峰谷三分之一,和三分之二并从前一拐点连线
2020/1/13 19:09:40
公式编写说明:
随便一ZIG,取峰谷三分之一,和三分之二并从前一拐点连线
公式源码回答:
ZIG(4,10);
H1:=BARSLAST(ZIG(4,10)=PEAK(4,10,1));
H2:=SETVAL(H1>=0,ZIG(4,10),-H1,ZIG(4,10));
L1:=BARSLAST(ZIG(4,10)=TROUGH(4,10,1));
L2:=SETVAL(L1>=0,ZIG(4,10),-L1,ZIG(4,10));
AA:=BACKSET(BARSTATUS=2 AND (L1<5 OR H1<L1),H1+1);
HL1:=REF(PEAK(4,10,1)-(PEAK(4,10,1)-L2)/3,H1);{1/3}
HL2:=REF(PEAK(4,10,1)-(PEAK(4,10,1)-L2)*2/3,H1);{2/3}
DRAWLINE(L1=0,ZIG(4,10),CROSS(HL1,ZIG(4,10)),ZIG(4,10),0),COLORGREEN;
DRAWLINE(L1=0,ZIG(4,10),CROSS(HL2,ZIG(4,10)),ZIG(4,10),0),COLORGREEN;
LH1:=REF(H2-(H2-L2)*1/3,H1);
LH2:=REF(H2-(H2-L2)*2/3,H1);
DRAWLINE(H1=0 AND AA=0,ZIG(4,10),CROSS(ZIG(4,10),LH1) AND AA=0,ZIG(4,10),0),COLORYELLOW;
DRAWLINE(H1=0 AND AA=0,ZIG(4,10),CROSS(ZIG(4,10),LH2) AND AA=0,ZIG(4,10),0),COLORYELLOW;
投股票 网 www.tou18.c n
股市公式下载推荐