Values needs to be changed depending on the instrument.
Also most of the math is unneccesary.
(100+(100*(1+x)))
y=x
x=y+1
Is the only thing you acctually need.
I just wrote it like this, so i can backtrack easy and see what i did.
//Actual Line
Linevalue=100
DRAWHLINE(100)
DRAWHLINE(100+100)
DRAWHLINE(100+(100*2))
DRAWHLINE(100+(100*(2+1)))
DRAWHLINE(100+(100*(2+x)))coloured(0,200,0)STYLE(line,3)
//Optional Extra deviation lines.
DRAWHLINE(105)
DRAWHLINE(105+100)
DRAWHLINE(105+(100*2))
DRAWHLINE(105+(100*(2+1)))
DRAWHLINE(105+(100*(2+x)))coloured(0,200,0)STYLE(DOTTEDline,1)
DRAWHLINE(195)
DRAWHLINE(195+100)
DRAWHLINE(195+(100*2))
DRAWHLINE(195+(100*(2+1)))
DRAWHLINE(195+(100*(2+x)))coloured(0,200,0)STYLE(DOTTEDline,1)
y=x
x=y+1
RETURN