purpose :implementation of MAD Mean Absolute Deviation in pinescript implementation by : patmaba type : measures of spread Mean absolute deviation The mean absolute deviation of a dataset is the average distance between each data point and the mean. It gives us an idea about the variability in a dataset. Here's how to calculate the median absolute deviation. Step...

18

Volume indicator judging level of volume per bar accordingly to Volume Spread Analysis rules. It allows either to set static volume levels or dynamic ones based on ratio comparable to Moving Average. Bars are coloured based on ratio or static levels, visually presenting level of Volume (low, average, high, ultra high).

1560

Preface: I'm just the bartender serving today's freshly blended concoction; I'd like to send a massive THANK YOU to all the coders and PineWizards for the locally-sourced ingredients. I am simply a code editor, not a code author. Many thanks to these original authors! Source 1 (Aug 8, 2019): Source 2 (Aug 11, 2019): About the Indicator: The term yield curve...

34

Hey everyone, I have been using volume a lot more lately as price action can sometimes get manipulated but volume shows us the truth! Anyways, I have enjoyed the Volume Spread for VSA indicator but wished I had the code to change a few settings. This volume indicator includes spread analysis with the ability to customize input values and I'm making it open source...

347

Measures spread of the candle, useful especially for Volume Spread Analysis (VSA) and to measure trend strength. Spread is coloured based on level comparable to Moving Average.

333

This script implements a rebrushed distance-based pair trading strategy. In this strategy, normally they trade the difference between the prices of two instruments. This difference is also called spread. Here, however we’ll trade the difference between two time frames of one instrument. And that's the main trick. Common procedure consists of the following...

633

//Every spread & central tendency measure in 1 script with comfortable visualization, including scrips's status line. Spread measures: - Standard deviation (for most cases); - Average deviation (if there are extreme values); - GstDev - Geometric Standard Deviation (exclusively for Geometric Mean); - HstDev - Harmonic Deviation (exclusively for Harmonic...

436

Correlation Based Pair Trading Strategy (Trading the spread) There are three popular styles of Pair trading: * Distance based pair trading * Correlation based pair trading * Cointegration based pair trading The correlation based strategy is to short the outperforming instrument and go long on the underperforming one whenever the temporary correlation weakens...

284

This is for displaying a price line showing the spread difference of brokers such as 1broker.com or trading212.com where price is different than actual price. It may also be used as an ask line or to provide an additional alternate chart. Version 2.1: - JPY pip correction - Price Line - Area - Kagi, Does not work on Forex pairs! - Western Bar - Candlesticks -...

263

Simple spread between two tickers. Click format to set inputs for tickers. ex: "COINBASE:BTC:USD"

160

This script is very much beta! This is a simple script to visualize how two symbols move in relation to each other. For example if the underlying symbol is a 2x Gold ETF (meaning the ticker moves at 2x the spot price of gold---if gold goes up 3% this ticker should go up 6%) and the comparison symbol is an 2x inverse gold ETF (at gold up 3% this should move down...

140

This indicator shows the percentage variation of: gap close to close (day including gap) open to close (without gap) The green bars represent the days when the variation did not reach the selected range. The red bars show the days when the variation was higher than the selected range. Best timeframe : DAY

11

This script lets you chart a spread of a maximum of 3 tickers (one of them being the ticker in the main chart). Y axis is the currency amount of the spread, that is calculated by this formula: Y = PnL = quantity * price * handleValue Y is calculated for each ticker specified, and the sum of Ys obtained is plotted. this way it is possible to view the PnL of the...

21

This is for displaying a price line showing the spread difference of brokers such as 1broker.com or trading212.com where price is different than actual price. It may also be used as an ask line. Version 2 is well featured with a toggle for JPY pairs. As well as 5 different traditional charts: Candlesticks, Heikenashi, Renko, Western Bar, Area. If you like this...

191

Example of applying polynomial regression channel to spreads or hedges between 2 assets.

214

This script helps you discern the relative change of each leg in a two-legged spread over a given period. The main plot is a difference in log return over the number of bars identified by the "lag" parameter. E.g. if "lag" is 10 and leg one has increased 3% over the past ten bars, while leg two has only increased 1%, the plot value is 2%. The main plot is also...

16

This indicator shows the percent change between the highs and the lows (or optionally the open and close) of each candle. You may also set a low and a high percent threshold to better highlight the candles that exceed your desired spread percent. Red signifies low spread, green is high spread - these are unrelated to the color of the candle body. There is also the...

103