Hello! Thank you for your help!! There is my code:
defparam drawonlastbaronly = true
if a < b then
n = c+(b-a)
e = b+(b-a)
v = b+(b-c)
nt = c+(c-a)
else
n = c-(a-b)
e = b-(a-b)
v = b-(c-b)
nt = c-(a-c)
endif
drawhline(n)coloured(255,140,0)
DRAWTEXT(“Wave N #N#”, barindex + 25, N + (N * 0.003), Dialog, Standard, 12) COLOURED(255,140,0)
DRAWHLINE(e)coloured(0,191,255)
DRAWTEXT(“Wave E #E#”, barindex + 25, E + (E * 0.003), Dialog, Standard, 12) COLOURED(0,191,255)
DRAWHLINE(v)coloured(255,0,0)
DRAWTEXT(“Wave V #V#”, barindex + 25, V + (V * 0.003), Dialog, Standard, 12) COLOURED(255,0,0)
DRAWHLINE(nt)coloured(225,215,0)
DRAWTEXT(“Wave NT #NT#”, barindex + 25, NT + (NT * 0.003), Dialog, Standard, 12) COLOURED(225,215,0)
return n, e, v, nt