OPEN-SOURCE SCRIPT

Asset Allocation Calculator

91
Overview
This script is a tool that automatically calculates asset allocation for your investment portfolio. Users can set the weight of multiple assets and monitor the portfolio value in real time based on price fluctuations.


Key Features
  • Supports input of asset allocation percentages
  • Dynamic allocation calculation based on real-time price data
  • Automatically calculates allocated amounts for each asset based on the total investment amount
  • User-friendly interface with intuitive visual feedback


Settings
  • Total Capital : Enter the total capital, including the value of assets.
  • Quantity rounding : Using the rounding function may cause the target allocation to exceed 100%.
  • Tickers, Weight, Holdings :
    To retrieve accurate asset prices, specify both the exchange and the ticker.
    If you want to include cash in your portfolio, use $.
    Ensure that the total allocation sums to 100%.
    Refer to the pre-filled example for the correct format.
  • Table Settings : You can adjust the table's position, height, font size, and background color.


How to Use
  • By buying or selling the quantity shown in the Buy column, you can continuously maintain your target allocation.
  • Hold - Current holdings
  • Buy - Quantity to buy or sell to reach the target allocation
  • Target - Quantity aimed for after buying or selling


Caution
  • It can only calculate for a single currency, so do not mix multiple currency markets.



자산 배분 계산기

소개
이 스크립트는 투자 포트폴리오의 자산 배분을 자동으로 계산해주는 도구입니다. 사용자는 여러 자산의 비중을 설정할 수 있으며, 가격 변동에 따라 포트폴리오 가치를 실시간으로 모니터링할 수 있습니다.


주요 기능
  • 자산 배분 비율 입력 지원
  • 실시간 가격 데이터를 기반으로 한 동적 배분 계산
  • 총 투자 금액을 기준으로 각 자산에 할당된 금액 자동 계산
  • 직관적인 시각적 피드백을 제공하는 사용자 친화적인 인터페이스


설정
  • Total Capital : 자산 가치를 포함한 총 자본금을 입력하세요.
  • Quantity rounding : 반올림 기능을 사용하면 목표 비중이 100%를 초과할 수 있습니다.
  • Tickers, Weight, Holdings :
    정확한 자산 가격을 불러오기 위해 거래소와 티커를 함께 입력하세요.
    포트폴리오에 현금을 포함하려면 '$'를 사용하세요.
    비중 합계가 반드시 100%가 되도록 설정하세요.
    예제 형식을 참고하여 올바르게 입력하세요.

    한국(원화) 시장을 위한 입력 예시입니다.
    KRX:360750, 17.5, 100
    KRX:310960, 17.5, 120
    KRX:148070, 25, 20
    KRX:305080, 25, 10
    KRX:139320, 10, 150
    UPBIT:BTCKRW, 5, 0.002
    $,0,5000000

  • Table Settings : 테이블의 위치, 높이, 글자 크기 및 배경색을 조정할 수 있습니다.


사용 방법
  • Buy 열에 표시된 수량만큼 매수 또는 매도하면 목표 비중을 지속적으로 유지할 수 있습니다.
  • Hold - 현재 보유 수량
  • Buy - 목표 비중을 맞추기 위해 매수 또는 매도해야 하는 수량
  • Target - 매수, 매도 후 목표로 하는 수량


주의
  • 한 가지 통화로만 계산할 수 있으니 여러 통화 시장을 혼용하지 마세요.

Pernyataan Penyangkalan

Informasi dan publikasi tidak dimaksudkan untuk menjadi, dan bukan merupakan saran keuangan, investasi, perdagangan, atau rekomendasi lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Persyaratan Penggunaan.