RedK_Portfolio Tracker v2: few enhancements and display optionsThis is an update for the PTracker v1 that I published couple of days ago. wanted to publish this as a separate script to get a chance to show how the new Portfolio Summary Infobox can be displayed on the price chart as an option. In my opinion, that info box is the most important element in this tool and that's the piece i was most looking for.
quick note here: you can track your portfolio (if not so many positions) by entering something like (without the brackets) in TradingView's chart symbol area - TradingView will resolve these symbols and chart the total -- there's a nice post by our friend @boji1 about this in a lot more details - however, that wouldn't show the stats that i need to look at to track my portfolio on daily basis.
i also made couple of other enhancements, like adding the ability to include "free cash" in the portfolio - While this free cash value will impact the Total P/L and P/L %, as part of the overall portfolio (and the denominator), it will not impact the "cost of positions" or the (current) "value of positions" -- also "Cash" will not count towards the total 10 positions that we can track with this tool.
Using Portfolio Tracker as a floating panel on the price chart
====================================================
By default, when the Portfolio Tracker is added to the chart, it will occupy its own lower panel like the picture above.
if your charts are already busy (like mine :)) - you most probably already have a couple of lower studies and it's crowded there.
in this case, you can use the Object Tree tool after adding the PTracker, to drag it onto the price panel, or you can also do that by right-clicking on the infobox and choose to move up to the price panel.
when you do that, remember to also use the Style settings of PTracker to hide both Portfolio and PnL plots, and choose Scale = no scale - this way you get the infobox to work like a floating panel on the price chart
here's a screenshot that shows this scenario - also shows how the infobox color can be easily changed from the PTracker settings to suit your chart background and for best visibility
i hope this is useful in your trading - i look forward to @TradingView team surprising us with a real portfolio tracking capability soon :)
good luck.
Portfolio management
Simple Portfolio TrackerThis is just a simple portfolio tracker that i started to play around with - i'm sure there are smarter ways to do this, but i chose the simpler way :) -- please feel free to use this, or consider it as a starting point to your own indicator.
i will come back later and add some more stuff once i get time. for example, show the total value, recent change, P&L % ..etc
So the simple idea is to track a portfolio of few positions and watch how the total portfolio and the PnL changes over time as the price of the individual holdings move up and down. it can be added to any chart.
The code is currently set to track 5 positions - settings allow to enter if the positions is used or not, symbol, amount and cost price..
** note: more positions can be added by editing the code and copying and pasting the marked "position block" that contains the input statements and the calculations, then changing/replacing the position identifier (_1, _2, ..etc) in all variables with new number..
--- don't forget to add these extra positions you insert in the code to the formula lines that calculate the totals
i tried to make this as easy as possible in the code. the code includes a sample portfolio as default values just to help "demo" how this works
the input is made easy, thanks to the recent addition of the "inline" feature in the input() statement
i don't know if some traders will find this useful ?? or if more about how to use it is needed.. let me know in the comments.. as i mentioned, i was just playing with the idea over the weekend so didn't really put a lot of work into it.
Credits and thanks to @boji1 for inspiring this :)
Portfolio Backtester [MS]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.
Portfolio ManagerMeet our all-new Portfolio Manager
The idea of such a tool was the lack of anything like that out there. Recently I've seen that the culture most common around the newcomers to trading has become extraordinarily scalping-like and much leaned on high-risk operations.
Fundamental cornerstones of math and statistics that are keys to lasting networth growth have been wholly forgotten.
One of the most efficient and simple ways that I tell my friends to make money without getting too technical is diversification.
It's merely math; I suggest reading about the Modern Portfolio Theory, based on the work about diversification of uncorrelated assets by Markowitz(Nobel-winner because of that).
Translating it to mere humans, the more assets you have, the more uncorrelated they are(as in their pattern of moves are nothing alike), the fewer risks of losing money in a given time you have.
So by following such stats, it's clear to say that's always important to trade on different fronts.
To quantify and qualify who diversified you are and how much risk you're taking, we decided to create a pretty handy tool.
Let's get the samba going:
C-Index is the individual correlation score of that asset compared to the given portfolio correlation average.
C-Score is the final correlation score of your portfolio.
Below that, we got the performance tracker, whatever timeframe you're benchmarking your portfolio, it will show there. I like to back-test for one year.
And last but not least, we have a proprietary risk exposure gauge, so we run a few math tricks, and we calculate how was the maximum of your investment that was exposed through-out the time range we set in. So let's say we have a 10% risk exposure over 365 days. It means that over one year at maximum we could have lost 10% of our investment.
If you're not familiar with correlation:
-> +100 score = Fully Correlated(Similar Behaviors)
-> 0 Score = Totally Uncorrelated(Different Behaviors)
-> -100 score = Inversely Correlated(Opposite Behaviors)
So any asset that averages between -20 and 20 is very little correlated to its comparison. Therefore, their pattern of behavior tend to be independent
By comparing the change and the risk exposure, you can assess your risk/reward ratio - golden information.
Not only that, but we also added several markets so you can easily benchmark your portfolio(up to 9 custom assets) to a diversified gamma of markets in the world.
We diversified each benchmark portfolio within its available industries for maximum risk mitigation.
You can change your benchmark range, nine custom assets, labels preferences, and nine benchmark portfolios, including NIKKEI, NASDAQ, IBOV , ASX , DAX , CRYPTO, FOREX, FTSE , SHANGHAI.
If you liked what you see take a look at our signare to get access to our scripts!
Portfolio and Risk Management: Gold Based Net Growth CoefficientHello, if our topic is stocks, whatever signal we get, we have to divide and reduce the risk.
Apart from the risk, we need inflation-free figures to detect a clear growth.
Gold is one of the most successful tools to beat inflation in this regard in the historical context.
When the economy is good, we have to beat both commodities and inflation.
For this purpose, I found it appropriate to develop a net growth factor free from gold growth.
Investors need several stocks with a high growth rate and as much risk-free as possible.
Personally, I think that the science of portfolio and risk management will last a lifetime and should continue.
I think this subject is a research and development subject.(R & D)
My research and publications on this matter will continue publicly.
I wish everyone a good day.
NOTE : You can determine the return in the time period you want to look back by adjusting the period in the rate you want from the menu.
The standard value is 200 days. (1 year)
Portfolio Tool [QuantNomad]It's a pretty simple indicator that allows you to calculate portfolio performance directly in TradingView.
You can use up to 5 symbols in your portfolio, select rebalancing frequency and compare it to a benchmark.
It's a pro indicator, you can have access to it for a small fee. Link to my PRO indicators you can find in my signature.
Will be happy to hear your feedback.
- How do you want to use this indicator?
- What other features do you want in it?
Combo Month-to-Month % Return (July - December)This tool acts as Month-to-Month % Return but in Combo mode. Allows to compare the asset's monthly performances across the preferred years. It works everywhere but better in use on the daily timeframe.
Combo Month-to-Month % Return (January - June)This tool acts as Month-to-Month % Return but in Combo mode. Allows to compare the asset's monthly performances across the preferred years. It works everywhere but better in use on the daily timeframe.
TradeSpec-Designed for Crypto, Stocks, Currencies and Futures TradeSpec- Overview
1. Main Trend (gray line) lets you see your trailing stop as the the trend progresses and provide a definitive point to know where to execute your sell and lock in your profits. Also, you have the ability to adjust the indicator value based on your trading time frame and objective.
2. Initial stop value (pink dotted line) can be used to determine position size.
3. Specific price bars ( yellow or green) are highlighted to show potential starting points for new or continued trends.
4. Price Alerts Indicator (orange or green crosses above price) looks to highlight areas of importance during a trend. Become aware when the trend could be ready to plateau for a while or when a top could be forming. The alert markers can be used to tighten your trailing stop, remove a portion of the trade, or be used as an indication to remove the position entirely.
Order Size CalculatorScript to calculate the amount of stocks for of an order in relation to depot size (money), risk awareness, profit target and ATR
Order Size CalculatorThis script calculates the amount of stocks in a trade based on risk awareness.
The risk awarness is part of portfolio management and the book "sustainable & successfull trading" by Faik Giese.
Input is depot size (cash and stocks), risk per depot position, max. Stop-Loss and ATR.