luminaryfi

Alpha & Beta

luminaryfi 업데이트됨   
Alpha & Beta Indicators for Portfolio Performance

β = Σ Correlation (RP, RM) * (σP/σM)

α P = E(RP) –

Where,
RP = Portfolio Return (or Investment Return)
RM = Market Return (or Benchmark Index)
RF = Risk-Free Rate


How to use the Indicator

RM = SPX (Default)
The Market Return for the indicator has the options of $SPX, $NDX, or $DJI (S&P 500, Nasdaq 100, Dow 30)

RF = FRED: DTB3
The Risk-Free Rate in the Indicator is set to the 3-Month Treasury Bill: Secondary Market Rate

The Default Timeframe is 1260 or 5-Years (252 Trading Days in One Year)

RP = The symbol you enter
HOWEVER, you can determine your portfolio value by following the following directions below.


Note: I am currently working on an indicator that will allow you to insert the weights of your positions.


Complete Portfolio Analysis Directions



You will first need...
a) spreadsheet application - Google Sheets is Free, but Microsoft Excel will convert ticker symbols to Stocks and Retrieve Data.
b) your current stock tickers, quantity of shares, and last price information

In the spreadsheet,
In the first column list the stock tickers...
AMZN
AAPL
TSLA

In the second column list the quantity of shares you own...
5
10
0.20

In the third column insert the last price
Excel: Three tickers will automatically give you the option to "Convert to Stocks",
after conversion, click once on cell and click the small tab in the upper right-hand of the highlighted cell.
Click the tab and a menu pops up
Find "Price", "Price Extended-Hours", or "Previous Close"...
$3,284.72
$497.48
$2,049.98

Next, multiply the number of shares by the price (Stock Market Value)
Excel: in fourth column type "=(B1*C1)", "=(B2*C2)", "=(B3*C3)"...
= $16,423.60
= $4,974.80
= $410.00

add the three calculated numbers together or click "ΣAutoSum" (Portfolio Market Value)
= $21,808.40

Last, divide the market value of AMZN ($16,423.60) by the Portfolio Market Value ($21,808.40) for each of the stocks.
= 0.7531
= 0.2281
= 0.0188
These values are the weight of the stock in your portfolio.

Go back to TradingView

Enter into the "search box" the following...

AMZN*0.7531 + AAPL*0.2281 + TSLA*0.0188

and click Enter

Now you can use the "Alpha & Beta" Indicator to analyze your entire portfolio!
릴리즈 노트:
Update: hline(0.0) and hline(-0.5).
릴리즈 노트:
Correction in Beta.
Alpha is now expressed in a percentage.
릴리즈 노트:
alpha = jensen's measure (expected portfolio return or 'ex-ante'

added DGS2, DGS5, DGS10, DGS30 risk-free rates
릴리즈 노트:
//ticker change for reference
오픈 소스 스크립트

이 스크립트의 오써는 참된 트레이딩뷰의 스피릿으로 이 스크립트를 오픈소스로 퍼블리쉬하여 트레이더들로 하여금 이해 및 검증할 수 있도록 하였습니다. 오써를 응원합니다! 스크립트를 무료로 쓸 수 있지만, 다른 퍼블리케이션에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

차트에 이 스크립트를 사용하시겠습니까?