ttmarok

Aroon_indicator

130 0 7
Please help improve this code.
thanks-T
Remove from Favorite Scripts Add to Favorite Scripts
// Aroon indicator -Pine script***NOT PERFECT***
// Feel free to improve this code
// I can not make the indicator to be within the range of zero and 100

study(title="Aroon_indicator", shorttitle="Aroon_v1")
length =input(14, minval=1, title="AroonLength")

up_index = highestbars(high, length)
down_index = lowestbars(low, length)


AroonUp = fixnan(((length - up_index)/length)*100 )
plot(AroonUp*-1, color=blue, title="Aroon Up", style=line, linewidth=2)

AroonDn= fixnan(((length - down_index)/length)*100 )
plot(AroonDn*-1, color=red, title="Aroon Up", style=line, linewidth=2)

hline(-150)
hline(-120)
hline(-180)
//plot(-150, title="10 Line", style=dashed, linewidth=1, color=black)
//plot(30, title="10 Line", style=dashed, linewidth=1, color=black)
English
English (UK)
English (IN)
Deutsch
Français
Español
Italiano
Polski
Türkçe
Русский
Português
Bahasa Indonesia
Bahasa Melayu
ภาษาไทย
Tiếng Việt
日本語
한국어
简体
台灣
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Contact Support Ideas Published Followers Following Private Messages Chat Sign Out