Hi
A simple indicator that draws the daily open price and then the option to draw lines above and below the open price by manually entering number of pips above and/or below price.
I use it to measure volatility
Many thanks
Mike
Hi
Indicator is very basic, daily open line is drawn with the option of pre-set lines ( manually enter number of pips) above and below the daily open.
I use it for assessing volatility.
Many thanks
Mike
This code should be good:
distance = 20
if intradaybarindex=0 then
oopen = dopen(0)
up1 = oopen+distance*pointsize
up2 = oopen+distance*2*pointsize
dn1 = oopen-distance*pointsize
dn2 = oopen-distance*2*pointsize
endif
return oopen, up1, up2, dn1, dn2
You can modify the distance from the daily open for the 2 upper and 2 lower lines with the “distance” variable at the beginning of the code.