# Thread: CD_Average Daily Range Zones

1. ## CD_Average Daily Range Zones

Hi everyone
I need someone to create an indicator based on the script below

//CD
//Average Daily Range Levels - 10 day

study(title="CD_Average Daily Range Zones", shorttitle="CD_Daily High/Low Zones V01", overlay=true)

//dayHigh=security(tickerid, 'D', high[1])
OPEN=security(tickerid, 'D', open)

dayrange=(high - low)

r1 = security(tickerid, 'D', dayrange[1])
r2 = security(tickerid, 'D', dayrange[2])
r3 = security(tickerid, 'D', dayrange[3])
r4= security(tickerid, 'D', dayrange[4])
r5= security(tickerid, 'D', dayrange[5])
r6 = security(tickerid, 'D', dayrange[6])
r7 = security(tickerid, 'D', dayrange[7])
r8 = security(tickerid, 'D', dayrange[8])
r9= security(tickerid, 'D', dayrange[9])
r10= security(tickerid, 'D', dayrange[10])

adr_10 = (r1+r2+r3+r4+r5+r6+r7+r8+r9+r10) /10
adr_9 = (r1+r2+r3+r4+r5+r6+r7+r8+r9) /9
adr_8 = (r1+r2+r3+r4+r5+r6+r7+r8) /8
adr_7 = (r1+r2+r3+r4+r5+r6+r7) /7
adr_6 = (r1+r2+r3+r4+r5+r6) /6
adr_5 = (r1+r2+r3+r4+r5) /5
adr_4 = (r1+r2+r3+r4) /4
adr_3 = (r1+r2+r3) /3

//plot

#### Tags for this Thread

attach, average, based, color, color=green, create, daily, green, high, high/low, indicator, levels, linewidth=2, range, red, script, security, securitytickerid, short, style, title=adr, true, zone

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•