zig(1,10);
B:=PEAK(1,10,1);
D1:=PEAK(1,10,2);
A:=TROUGH(1,10,2);
C1:=TROUGH(1,10,1);
BB:=PEAKBARS(1,10,1);
DB:=PEAKBARS(1,10,2);
AB:=TROUGHBARS(1,10,2);
CB:=TROUGHBARS(1,10,1);
COP:=C1+0.618*Abs(B-A);
OP:=C1+1*ABS(B-A);
XOP:=C1+1.618*ABS(B-A);
DRAWTEXT(CB
DXOP:=B-1.618*ABS(D1-C1);
DRAWTEXT(BB