This script visualizes the relative performance of a primary asset against a benchmark composed of three reference assets. Here's how it works: User Inputs: - Users specify ticker symbols for three reference assets (default: Platinum, Palladium, Rhodium). Data Retrieval: - Fetches closing prices for the primary asset (the one the script is applied to) and...
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...
Are you consistently beating the standard "Buy and Hold" benchmark? Check your performance against the next most common strategy: Buy at the start of the holiday season and close in the new year. By default, the strategy starts with $100,000 and risks 25% of the account on each swing trade. Commission is set to be 0.5% of each trade. You can tweak the...
Beta value of a stock relative to benchmark index. Thanks to Ricardo Santos for the original script. This script is adapted from it. To understand beta, refer Investopedia link: www.investopedia.com A beta value of 1 means the stock is directly correlated to benchmark index - volatility would be same as overall market. Beta value less than 1 and greater than 0...
First off, a huge thank you to the following people: LEGION: LazyBear: www.tradingview.com xSilas: www.tradingview.com Ni6HTH4awK: www.tradingview.com sco77m4r7and: SNOW_CITY: www.tradingview.com oh92: www.tradingview.com alexgrover: www.tradingview.com cI8DH: www.tradingview.com DonovanWall: www.tradingview.com shtcoinr: www.tradingview.com This is the...
First off, a huge thank you to the following people: @LEGION: @LazyBear: www.tradingview.com @xSilas: www.tradingview.com @Ni6HTH4awK: www.tradingview.com @sco77m4r7and: @SNOW_CITY: www.tradingview.com @oh92: www.tradingview.com @alexgrover: www.tradingview.com @cI8DH: www.tradingview.com @DonovanWall: www.tradingview.com This is my second iteration...
First off, a huge thank you to the following people: LEGION: LazyBear: www.tradingview.com xSilas: www.tradingview.com Ni6HTH4awK: www.tradingview.com sco77m4r7and: SNOW_CITY: www.tradingview.com oh92: www.tradingview.com alexgrover: www.tradingview.com cI8DH: www.tradingview.com DonovanWall: www.tradingview.com Since I've been on TradingView I've become...