225 0 8
Please help improve this code.
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)

//plot(-150, title="10 Line", style=dashed, linewidth=1, color=black)
//plot(30, title="10 Line", style=dashed, linewidth=1, color=black)
EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
SV Svenska
TR Türkçe
RU Русский
PT Português
ID Bahasa Indonesia
MS Bahasa Melayu
TH ภาษาไทย
VI Tiếng Việt
JA 日本語
KO 한국어
ZH 简体中文
ZH 繁體中文
AR العربية
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