What Is This? This script code adds a Monthly Strategy Performance Table to your Pine Script strategy scripts so you can see a month-by-month and year-by-year breakdown of your P&L as a percentage of your account balance. The table is based on realized equity rather than open equity, so it only updates the metrics when a trade is closed. That's why some...
This indicator is built to mesure the performance of a stock vs the index of choice. it is best use for the intraday session because it doesn't take gap into account when doing the calculation. This is how i made my math (using AAPL compared to SPY for simplicity) (change AAPL / ATR AAPL) - (change SPY / ATR SPY) * beta factor * volume factor change is calculated...
Library "Bitwise, Encode, Decode" Bitwise, Encode, Decode, and more Library docs() Hover-Over Documentation for inside Text Editor bAnd(a, b) Returns the bitwise AND of two integers Parameters: a : `int` - The first integer b : `int` - The second integer Returns: `int` - The bitwise AND of the two integers bOr(a, b) Performs a...
Use this indicator on Daily Timeframe This script compares Overnight vs Intraday Performance based on the Day of the Week (DOW) - Sun - Sat of index/stock/currency/commodity symbols. ON column indicates Overnight performance = open/close -1 ID column indicates Intraday performance = close-open/1 The calculations are detailed in the tooltips of the individual...
this scrip is modified of Performance Table () of TradingView user @BeeHolder = Thank u very much. - @BeeHolder formula is based on daily basis, but my calculation is based on respective day, week and month. - The formula of the calculation is (Current Close - Previous Close) * 100 / Previous Close, where Past value is: 1D = close 1 day before 5D = close 5 day...
Hello Traders. Lets keep it simple.. 1. Take the major pairs that have USD in them and watch their change over a specific timeframe. 2. Now lets sort these changes of each pair from the most positive to the most negative. Good, I see you have some ideas already. This is exactly what this indicator does. You will visualize the biggest change in pairs...
It's a simple example of how you can present your strategy's monthly performance in a chart. You maybe know that there is no support of these kind of charts in TradingView so this chart is actually a table object under the hood. Table visual appearance is customizable, you can change: Location Bar Width / High Colors Thanks to @MUQWISHI for hard work,...
Displays the Relative Strength (RS) of a symbol in relation to some common sector ETFs, SPX and NDX (select from drop-down list). This is done by dividing the symbol's price by the chosen sector ETF's price. You can also select a symbol of your choice to compare against. Interpretation: RS line ascending: symbol performs stronger than the sector ETF. RS line...
This script was born out of my quest to be able to display strategy back test statistics on charts to allow for easier backtesting on devices that do not natively support backtest engine (such as mobile phones, when I am backtesting from away from my computer). There are already a few good ones on TradingView, but most / many are too complicated for my...
An indicator that lets you visualize the historical Yearly Percentage returns of any symbol . Key Features: Displays the yearly returns from start to end of each year Displays a table showing all yearly returns for current symbol Displays start of each year as a vertical line Displays up to 5 custom horizontal levels Table Settings: ...
Some time ago I published Monthly returns table. Now It's time for weekly one. To get it work you need a pretty big screen, but I hope it will be useful for some of you. Features of this table includes: Display weekly returns of your strategy, benchmark, and alpha over this benchmark. Select benchmark to be another instrument Select the date from...
This indicator allows to compare relative performance of two indices or securities. It is the update of the previous version rewritten in Pine Script 5 version.
This indicator plots the percentage performance from the open of up to 20 different customizable tickers. Enjoy!
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 -...