Nochmals Danke für Ihre Hilfestellung Ich habe so hinbekommen wie Ich es wollte der erste Block ist fertig .
Mit Ihrer Hilfe ging es sehr viel einfacher wie Ich gedacht hatte.
Wünsche Ihnen noch einen schönen Abend
DEFPARAM DrawOnLastBarOnly = true
Timeframe(Daily)
OP = Open
HI = high
LO = low
CL = close
rn = range / 4
//
Timeframe(default)
IF OpenDay[1]<>OpenDay THEN
Startbar = barindex-x
endif
hh = Lo-20//highest[200](high)
ll = Lo-22//lowest[200](low)
sx1 = startbar
rt1 = startbar+6
sx2 = startbar+6
rt2 = startbar+12
sx3 = startbar+12
rt3 = startbar+18
sx4 = startbar+18
rt4 = startbar+24
drawrectangle(sx1,hh,rt1,ll) coloured("Gray",55) bordercolor("Gray")
drawrectangle(sx2,hh,rt2,ll) coloured("Red",55) bordercolor("Gray")
drawrectangle(sx3,hh,rt3,ll) coloured("Green",55) bordercolor("Gray")
drawrectangle(sx4,hh,rt4,ll) coloured("Gray",55) bordercolor("Gray")
drawrectangle(sx1,hh-2,rt4,ll-2) coloured("Gray",55) bordercolor("Gray")
//
DrawVline(Barindex + 2)
DrawText("Daily",BarIndex + 10,HI + rn)
IF CL >= OP THEN
DrawRectangle(BarIndex + 6,OP,BarIndex + 14,CL) coloured("Blue") bordercolor("Blue") //Bullish Body
DrawSegment(BarIndex + 10,HI,BarIndex + 10,CL) coloured("Black") //Upper wick
DrawSegment(BarIndex + 10,OP,BarIndex + 10,LO) coloured("Black") //Upper wick
ELSE
DrawRectangle(BarIndex + 6,OP,BarIndex + 14,CL) coloured("Red") bordercolor("Red") //Bearish Body
DrawSegment(BarIndex + 10,HI,BarIndex + 10,OP) coloured("Black") //Upper wick
DrawSegment(BarIndex + 10,CL,BarIndex + 10,LO) coloured("Black") //Upper wick
ENDIF
return