VA1:=TROUGHBARS(2,5,1);
VR1:=PEAKBARS(1,5,1);
VA2:=IF(VA1=0,1,0);
VR2:=IF(VR1=0,1,0);
DRAWLINE(REF(VA2,1),L,VA2,L,1);
DRAWLINE(REF(VR2,1),H,VR2,H,1);
VA1:=TROUGHBARS(2,5,1);
VR1:=PEAKBARS(1,5,1);
VA2:=IF(VA1=0,1,0);
VR2:=IF(VR1=0,1,0);
DRAWLINE(REF(VA2,1),L,VA2,L,1);
DRAWLINE(REF(VR2,1),H,VR2,H,1);