MarcoValente

Alpha/Bars converter

90 0 5
Simple tool to convert alpha in Bars length period. Often MA period's are express in alpha ratio, and become difficult to visualize the MA length's . Now you can convert alpha in to periods, and periods in alpha
Remove from Favorite Scripts Add to Favorite Scripts
//@version=2
//Convert the period length (bars) in alpha using traditional ratio a=2/(n+1) , and reverse.
// By Marco
study("Alpha/Bars converter")
N=input(28,title="Period (Bars)"),aph=input(.07,step=0.001,title="Alpha")
alpha=2 / (N + 1),nbar=round(2/aph)-1
plot(alpha,title="Alpha Ratio",color=red),plot(nbar,title="Period (Bars)",color=red)
Ideas Scripts Chart
United States
United Kingdom
India
España
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener 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 Billing Sign Out