随便一ZIG,取峰谷三分之一,和三分之二并从前一拐点连线
2020/1/13 18:38:24
公式编写说明:
随便一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 .kanguba.com
其它股票公式列表