I keep working on trying to make TradingView strategies look fancier. A few months ago I published the first version of the Monthly Returns for Strategies in Pine Script. I received quite a lot of good feedback and quite a lot of requests to update it. This is a more advanced version of the Monthly Returns, in it, you can: Display monthly returns of your...
Backtesting indicators is easy , just add the following line of code to your script: plot(longEntry ? 1 : shortEntry ? -1 : longTP ? 0.5 : shortTP ? -0.5 : 0, color=na, editable=false, title='Backtest') These numbers are defined as constants in the backtester source-code. After adding this indicator to your chart: 1. Open Settings 2. Select supported...
Library "bench" A simple banchmark library to analyse script performance and bottlenecks. Very useful if you are developing an overly complex application in Pine Script, or trying to optimise a library / function / algorithm... Supports artificial looping benchmarks (of fast functions) Supports integrated linear benchmarks (of expensive scripts) One...
This indicator takes the Performance Table from @BeeHolder and converts it to a Relative Performance table so you can compare the current chart vs. an Index (or whatever other ticker you want) to see the relative performance of one vs. the other. I also added a cell for ADR, which is also the same value as "Monthly Volatility" in the stock screener. This can be...
This indicator shows real-time current day performance for 11 ETFs that divide the S&P 500 into eleven sector index funds. The list of different sector ETFs this indicator tracks is as follows - 1. SPY - S&P 500 Index 2. XLC - Communication Services 3. XLY - Consumer Discretionary 4. XLP - Consumer Staples 5. XLE - Energy 6. XLF - Financials 7. XLV -...
This Indicator displays the momentum (performance) of the symbol in percent. You can compare the performance with other symbols. The default benchmarks are the S&P 500, the MSCI World and the FTSE All World EX US. The default length corresponds to one year in the timeframes monthly, weekly and daily. In intraday the default length is 200, but you can also set...
This indicator combines several tools that are used daily for analysis: The performance of the action we are seeing. The percentage of retracement the stock has made from its all time high. Possibility of using up to four exponential or simple moving averages in the length we want. It allows to see or not the levels of four moving averages in daily...
For those that want technical ratings but don't want waste valuable screen real estate. Candles are colored to the rating strength. It also plots the results for "total", "MA" and "other" in a table on right of screen. Table and candle coloring can be turned off in style settings. This script uses the built in Technical Ratings indicator. For more informations on...
This indicator is based on the Performance section in the TradingView's sidebar and uses new Pine tables functionality. It compares the current price of the symbol to its past price and calculates the rate of return to make it easier to track the performance of the symbol. Note that the Performance sidebar is not updated in real-time, while this indicator is, so...
Description: This indicator uses Bollinger Bands with a set of 22 different moving averages as a center MA plus a custom signal generation and performance measurement modules.
Description: This is a preprocessed and standardized version of RSI indicator. You can replace RSI with any other indicator of your choice. Use this code as a framework for your ideas. Time Threshold parameter is useful in handling a repainting issue. By setting it to higher values you can effectively eliminate repainting! Cumulative Return, Win/Loss and Win Rate...
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,...
This indicator allows to compare the performance (% change) of a given symbol with the larger market ( AMEX:SPY ) and/or with a custom symbol, which defaults to AMEX:XLK (an ETF tracking technology companies from the S&P 500). The performance for the current symbol is displayed as a blue histogram, while performance for the AMEX:SPY and the custom symbol are...
Alpha Performance of Period (PoP) produces a visualization of returns (gains and losses) over a quarterly, monthly, or annual period. It also displays the total % gain and loss over any length of days, months, and years as defined by the user. Performance of Period (PoP) can be used to understand the performance of an asset over multiple periods using a single...
A rate of return (RoR) is the net gain or loss of an investment over a specified time period, expressed as a percentage of the investment’s initial cost
Hello, 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,...
A historic risk-off flag. When the Gold-Stocks Ratio is above the 200 week moving average, investors may fair better holding gold and avoiding equities, as was the case for the last 20 years.
This indicator is to be used only by the values it gives back, don't use the lines . In "current week days" choose number of days that already BEGAN this week (ex. on Wednesday type 3) Green1 - Current Daily Range Orange1 - Average Daily Range Green2 - Current Weekly Range Red1 - Average Weekly Range Orange2 - Today's price movement compared to the average...