Defparam DRAWONLASTBARONLY =true
defparam CALCULATEONLASTBARS = 300
top=t
bodem=b
V=top-bodem
// instappen
ESH=B+0.5*v
DRAWHLINE(ESH)
DRAWTEXT(" EnterShort=#ESH#", barindex, f*ESH ,dialog, standard, 25)coloured(55,155,250,255)
st2=B+v
DRAWSEGMENT(barindex[p], st2, barindex[q], st2)coloured(255,55,0,255)
DRAWTEXT(" StopShort=#st2#", barindex, ST2, dialog, standard, 15)coloured(255,55,0,255)
TP0=b
DRAWSEGMENT(barindex[r],TP0, barindex[q], TP0)coloured(125,125,125,255)
Drawtext(" Lowest=#b#", barindex[21], f*TP0, dialog,standard, 15)coloured(155,155,155,255)
TPSH1=b
DRAWSEGMENT(barindex[p], TPSH1, barindex[q], TPSH1)coloured(255,55,0,255)
DRAWTEXT(" TP 1(Sh)=#TPSH1#", barindex, TPSH1,dialog, standard,15)coloured(255,55,0,255)
TPSH2=t-1.272*V
DRAWSEGMENT(barindex[p], TPSH2, barindex[q], TPSH2)coloured(255,55,0,255)
DRAWTEXT(" TP 2(Sh)=#TPSH2#", barindex, TPSH2, dialog, standard, 15)coloured(255,55,0,255)
TPSH3= t-1.618*v
DRAWSEGMENT(barindex[p], TPSH3, barindex[q], TPSH3)coloured(255,55,0,255)
DRAWTEXT(" TP 3(Sh)=#TPSH3#", barindex, TPSH3, dialog, standard, 15)coloured(255,55,0,255)
TPSH4= 2.058-Target4*v
DRAWSEGMENT(barindex[p], TPSH4, barindex[q], TPSH4)coloured(255,55,0,255)
DRAWTEXT(" TP 4(Sh)=#TPSH4#", barindex, TPSH4, dialog, standard, 15)coloured(255,55,0,255)
begin=top
DRAWSEGMENT(barindex[r-(round(r/2))],top, barindex[q], top)coloured(125,125,125,255)
Drawtext(" Highest#begin#", barindex[21],f* begin, dialog,Standard, 15)coloured(155,155,155,255)
return top coloured(125,125,125,255)style(dottedline,1)as"Hoogste", ST2 coloured(205,155,55,255)style(dottedline,1) as"StopLoss", ESH coloured(55,55,255,255)style(dottedline,1) as"EnterShort", TPSH1 coloured(0,105,205,255)style(dottedline,1) as"Targetline 1", TPSH2 coloured(0,155,205,255)style(dottedline,1) as"Targetline 2", TPSH3 coloured(0,155,205,255)style(dottedline,1) as"Targetline 3", TPSH4 coloured(0,155,205,255)style(dottedline,1) as"Targetline 4", TP0 coloured(125,125,125,255)style(dottedline,1)as "bodem"