九毛八公式指标
随便一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;