Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
24 views2 pages

Dynamic Zone - Monthly

Indicator use

Uploaded by

tanuk050205
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views2 pages

Dynamic Zone - Monthly

Indicator use

Uploaded by

tanuk050205
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

// This source code is subject to the terms of the Mozilla Public License 2.

0 at
https://mozilla.org/MPL/2.0/
// © TraderInsights21

//@version=3
//Average Monthly Range Levels - 10 Month

study(title="Dynamic Zone - Monthly", shorttitle="Dynamic Zone - Monthly",


overlay=true)

//dayHigh=security(tickerid, 'M', high[1])


OPEN=security(tickerid, 'M', open)

//ADR L
dayrange=(high - low)

r1 = security(tickerid, 'M', dayrange[1])


r2 = security(tickerid, 'M', dayrange[2])
r3 = security(tickerid, 'M', dayrange[3])
r4= security(tickerid, 'M', dayrange[4])
r5= security(tickerid, 'M', dayrange[5])
r6 = security(tickerid, 'M', dayrange[6])
r7 = security(tickerid, 'M', dayrange[7])
r8 = security(tickerid, 'M', dayrange[8])
r9= security(tickerid, 'M', dayrange[9])
r10= security(tickerid, 'M', 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
adr_2= (r1+r2)/2
adr_1 = r1

//plot
adrhigh10=plot((OPEN+(adr_10/2)) , title="Month
High",style=circles,color=#d9b011,linewidth=2)
adrlow10=plot((OPEN-(adr_10/2)), title="Month Low",style=circles,
color=#d9b011,linewidth=2)
//adrhigh9=plot((OPEN+(adr_9/2)) , title="ADR
High9",style=circles,color=red,linewidth=2)
//adrlow9=plot((OPEN-(adr_9/2)), title="ADR LOW9",style=circles,
color=green,linewidth=2)
//adrhigh8=plot((OPEN+(adr_8/2)) , title="ADR
High8",style=circles,color=red,linewidth=2)
//adrlow8=plot((OPEN-(adr_8/2)), title="ADR LOW8",style=circles,
color=green,linewidth=2)
//adrhigh7=plot((OPEN+(adr_7/2)) , title="ADR
High7",style=circles,color=red,linewidth=2)
//adrlow7=plot((OPEN-(adr_7/2)), title="ADR LOW7",style=circles,
color=green,linewidth=2)
//adrhigh6=plot((OPEN+(adr_6/2)) , title="ADR
High6",style=circles,color=red,linewidth=2)
//adrlow6=plot((OPEN-(adr_6/2)), title="ADR LOW6",style=circles,
color=green,linewidth=2)
adrhigh5=plot((OPEN+(adr_5/2)) , title="Month
High",style=circles,color=#d9b011,linewidth=2)
adrlow5=plot((OPEN-(adr_5/2)), title="Month Low",style=circles,
color=#d9b011,linewidth=2)
//adrhigh4=plot((OPEN+(adr_4/2)) , title="ADR
High4",style=circles,color=red,linewidth=2)
//adrlow4=plot((OPEN-(adr_4/2)), title="ADR LOW4",style=circles,
color=green,linewidth=2)
//adrhigh3=plot((OPEN+(adr_3/2)) , title="ADR
High3",style=circles,color=red,linewidth=2)
//adrlow3=plot((OPEN-(adr_3/2)), title="ADR LOW3",style=circles,
color=green,linewidth=2)
//adrhigh2=plot((OPEN+(adr_2/2)) , title="ADR
High2",style=circles,color=red,linewidth=2)
//adrlow2=plot((OPEN-(adr_2/2)), title="ADR LOW2",style=circles,
color=green,linewidth=2)
//adrhigh1=plot((OPEN+(adr_1/2)) , title="ADR
High1",style=circles,color=red,linewidth=2)
//adrlow1=plot((OPEN-(adr_1/2)), title="ADR LOW1",style=circles,
color=green,linewidth=2)

fill(adrlow10,adrlow5,color=#d9b011)
fill(adrhigh10,adrhigh5,color=#d9b011)
//fill(adrlow2,adrlow9,color=lime)
//fill(adrhigh2,adrhigh9,color=maroon)
//fill(adrlow3,adrlow8,color=lime)
//fill(adrhigh3,adrhigh8,color=maroon)
//fill(adrlow4,adrlow7,color=lime)
//fill(adrhigh4,adrhigh7,color=maroon)
//fill(adrlow6,adrlow2,color=lime)
//fill(adrhigh6,adrhigh2,color=maroon)

You might also like