ttmarok

Aroon_indicator

77 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)
United States
United Kingdom
India
España
France
Italia
Polska
Brasil
Россия
Türkiye
Indonesia
日本
한국
Home Stock Screener Forex Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Account and Billing Sign Out