Hi, Nicolas et al,
I am probably being a little dim, but I am struggling to get the exactness I require.
I am trying to get the highs and lows between two times. Could you cast your eyes over this to see where I am going wrong?
Many thanks,
Robert
defparam drawonlastbaronly=false
////////////Asia////////////
once ascount=0
AsOP=020000
AsCl=050000
if time=asop then
ascount=ascount+1
$stct[0]=barindex
$price[0]=open
elsif time=ascl then
$endct[0]=(barindex)
$close[0]=highest[ascount](high)
endif
for i=$stct[0] to $endct[0] do
drawrectangle($stct[0],$price[0],$endct[0],$close[0])
break
next
////////////London///////////
//LonOp=020000
//LonCl=050000
////////////NY//////////////
//NYOp=070000
//NYCl=100000
DRAWCANDLE(open, high, low, close)
return