Hi @TraderGlyn
Here is the indicator for use in a time frame of 5 minutes and a time frame of 1 minute…
Officially they are not multiple time frames because drawn objects in multiple time frames cause problems (with me?) but I solved it in a different way with “GetTimeFrame”…
If IntraDayBarIndex = 0 then
x0300=0
x0930=0
x1930=0
EndIf
xTF = GetTimeFrame
If xTF=300 then
If OpenTime = 035500 and x0300=0 then
HH = Highest[11](High)
LL = Lowest[11](Low)
xBarIndex = BarIndex
DrawRectangle(xBarIndex-11,LL,xBarIndex,HH) Coloured(0,255,0)
DrawSegment(xBarIndex-12,HH,xBarIndex,HH)Coloured(0,255,0)
DrawSegment(xBarIndex-12,LL,xBarIndex,LL)Coloured(255,0,0)
DrawText("High=#HH#",xBarIndex-12,HH+5*pipsize)Coloured(0,255,0)
DrawText("Low=#LL#",xBarIndex-12,LL-5*pipsize)Coloured(255,0,0)
//DrawRay(xBarIndex,HH,xBarIndex+1,HH)Coloured(0,255,0)Style(DottedLine)
//DrawRay(xBarIndex,LL,xBarIndex+1,LL)Coloured(255,0,0)Style(DottedLine)
x0300=1
EndIf
If OpenTime = 102500 and x0930=0 then
HH = Highest[11](High)
LL = Lowest[11](Low)
xBarIndex = BarIndex
DrawRectangle(xBarIndex-11,LL,xBarIndex,HH) Coloured(0,255,0)
DrawSegment(xBarIndex-12,HH,xBarIndex,HH)Coloured(0,255,0)
DrawSegment(xBarIndex-12,LL,xBarIndex,LL)Coloured(255,0,0)
DrawText("High=#HH#",xBarIndex-12,HH+5*pipsize)Coloured(0,255,0)
DrawText("Low=#LL#",xBarIndex-12,LL-5*pipsize)Coloured(255,0,0)
//DrawRay(xBarIndex,HH,xBarIndex+1,HH)Coloured(0,255,0)Style(DottedLine)
//DrawRay(xBarIndex,LL,xBarIndex+1,LL)Coloured(255,0,0)Style(DottedLine)
x0930=1
EndIf
If OpenTime = 202500 and x1930=0 then
HH = Highest[11](High)
LL = Lowest[11](Low)
xBarIndex = BarIndex
DrawRectangle(xBarIndex-11,LL,xBarIndex,HH) Coloured(0,255,0)
DrawSegment(xBarIndex-12,HH,xBarIndex,HH)Coloured(0,255,0)
DrawSegment(xBarIndex-12,LL,xBarIndex,LL)Coloured(255,0,0)
DrawText("High=#HH#",xBarIndex-12,HH+5*pipsize)Coloured(0,255,0)
DrawText("Low=#LL#",xBarIndex-12,LL-5*pipsize)Coloured(255,0,0)
//DrawRay(xBarIndex,HH,xBarIndex+1,HH)Coloured(0,255,0)Style(DottedLine)
//DrawRay(xBarIndex,LL,xBarIndex+1,LL)Coloured(255,0,0)Style(DottedLine)
x1930=1
EndIf
EndIf
If xTF=60 then
If OpenTime = 035500 and x0300=0 then
HH = Highest[55](High)
LL = Lowest[55](Low)
xBarIndex = BarIndex
DrawRectangle(xBarIndex-55,LL,xBarIndex,HH) Coloured(0,255,0)
DrawSegment(xBarIndex-60,HH,xBarIndex,HH)Coloured(0,255,0)
DrawSegment(xBarIndex-60,LL,xBarIndex,LL)Coloured(255,0,0)
DrawText("High=#HH#",xBarIndex-60,HH+5*pipsize)Coloured(0,255,0)
DrawText("Low=#LL#",xBarIndex-60,LL-5*pipsize)Coloured(255,0,0)
//DrawRay(xBarIndex,HH,xBarIndex+1,HH)Coloured(0,255,0)Style(DottedLine)
//DrawRay(xBarIndex,LL,xBarIndex+1,LL)Coloured(255,0,0)Style(DottedLine)
x0300=1
EndIf
If OpenTime = 102500 and x0930=0 then
HH = Highest[55](High)
LL = Lowest[55](Low)
xBarIndex = BarIndex
DrawRectangle(xBarIndex-55,LL,xBarIndex,HH) Coloured(0,255,0)
DrawSegment(xBarIndex-60,HH,xBarIndex,HH)Coloured(0,255,0)
DrawSegment(xBarIndex-60,LL,xBarIndex,LL)Coloured(255,0,0)
DrawText("High=#HH#",xBarIndex-60,HH+5*pipsize)Coloured(0,255,0)
DrawText("Low=#LL#",xBarIndex-60,LL-5*pipsize)Coloured(255,0,0)
//DrawRay(xBarIndex,HH,xBarIndex+1,HH)Coloured(0,255,0)Style(DottedLine)
//DrawRay(xBarIndex,LL,xBarIndex+1,LL)Coloured(255,0,0)Style(DottedLine)
x0930=1
EndIf
If OpenTime = 202500 and x1930=0 then
HH = Highest[55](High)
LL = Lowest[55](Low)
xBarIndex = BarIndex
DrawRectangle(xBarIndex-55,LL,xBarIndex,HH) Coloured(0,255,0)
DrawSegment(xBarIndex-60,HH,xBarIndex,HH)Coloured(0,255,0)
DrawSegment(xBarIndex-60,LL,xBarIndex,LL)Coloured(255,0,0)
DrawText("High=#HH#",xBarIndex-60,HH+5*pipsize)Coloured(0,255,0)
DrawText("Low=#LL#",xBarIndex-60,LL-5*pipsize)Coloured(255,0,0)
//DrawRay(xBarIndex,HH,xBarIndex+1,HH)Coloured(0,255,0)Style(DottedLine)
//DrawRay(xBarIndex,LL,xBarIndex+1,LL)Coloured(255,0,0)Style(DottedLine)
x1930=1
EndIf
EndIf
Return