TradingView
marketscripters
2020년 9월 6일 오후 7시 45분

Portfolio Backtester [MS] 

S&P 500 IndexTVC

설명

Portfolio Backtester (with rebalancing) for any assets you choose.

Simple to use, input any assets and their percentage allocations, choose a rebalance interval, then see how that portfolio performs over time.

To compare two or more portfolios, add this indicator multiple times, click and drag one on top of the other (into the same pane), then pin both to the same scale.

Its recommended to view this "indicator" on an asset with lots of historical data in order to have the most flexibility in a Start Date. Calculations are limited by chart you're viewing.

Settings
• Input the portfolio's assets
• Input the assets' allocations
• Input start and end dates
• Set the initial capital investment
• Set the rebalancing period (visualized as dots on the chart)
• Display Performance label
• Display Rebalancing labels


Things To Note
• The Start Date will be the later of the date you enter and the first candle of the chart you're viewing.
• If an asset's data doesn't exist at the start or any rebalance, it's percentage allocation will go to cash.
• The backtester calculates purely on asset price, and does not take into account any commissions, fees, dividends, or any other extra additions or deductions.


Version 1: only supports whole-shares, and not fractional-shares of assets.


PM us with any questions about this indicator.

릴리즈 노트

Cleans up Settings window and allows for color selection.

릴리즈 노트

Update to PineScript v5
코멘트
Mpoweru
Wow, fantastic work! Thanks for sharing with the community.
ely2727
THIS ONE IS UNDERRATED GEM. It should have received more appreciation! Thank you for this!
marketscripters
@ely2727, Thank you!! Glad you like it 😁
2231705aaabd41bf9c889dc0a6ac3d
Masterpiece! Something, what I've been looking from quite some time now
marketscripters
@2231705aaabd41bf9c889dc0a6ac3d, glad you like it! 🙂
inatangle
I've been waiting for something like this for a while now.

Would love the ability to rebalance quarterly and semi annually.
marketscripters
@inatangle, I'm happy you like it! :)
더보기