MarcoValente

Alpha/Bars converter

111 0 6
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)
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