Professional Documents
Culture Documents
ColorCoded ATR Percentage Indicator For PRT
ColorCoded ATR Percentage Indicator For PRT
//Red = Volatile//
//Green = Normal//
//Blue = Quiet//
ATRP = (averagetruerange[21](close)/close)*100
atrpma = average[504](atrp)
ATRPSD = STD[504](ATRP)
VolColRed = 1
Else
VolColRed = 0
endif
if ATRP <= (ATRPMA + 1*ATRPSD) and ATRP >= (ATRPMA - 1*ATRPSD) then
VolColGreen = 1
Else
VolColGreen = 0
endif
VolColBlue = 1
Else
VolColBlue = 0
endif
Volatile = VolColRed = 1
Normal = VolColGreen = 1
Quiet = VolColBlue = 1
if volatile then
r = 255
else
r=0
endif
if Normal then
g = 255
else
g=0
endif
if Quiet then
b = 255
else
b=0
endif