MarcoValente

Alpha/Bars converter

120 0 8
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
Deutschland
France
España
Italia
Polska
Türkiye
Россия
Brasil
Indonesia
Malaysia
Việt Nam
日本
한국
简体
繁體
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 Priority Support Contact Support Ideas Published Followers Following Private Messages Chat Sign Out