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<BB and BB<AB,COP,'' );
DRAWTEXT(CB<BB and BB<AB,OP,'' );
DRAWTEXT(CB<BB and BB<AB,XOP,'' );
DCOP:=B-0.618*ABS(D1-C1);
DOP:=B-1*ABS(D1-C1);
DXOP:=B-1.618*ABS(D1-C1);
DRAWTEXT(BB<CB and CB<DB,DCOP,'' );
DRAWTEXT(BB<CB and CB<DB,DOP,'' );
DRAWTEXT(BB<CB and CB<DB,DXOP,'' );