随便一ZIG,取峰谷三分之一,和三分之二并从前一拐点连线
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个

编写要求:

随便一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;

选股票看什么指标最好 >股票指标网