I was curious to see what Pine uses to accumulate numbers. It looks like it uses the simple "add em up" approach, rather than a compensated summation. This means that especially for large numbers, there is an inherent error amount. This script implements the Kahan Summation Algorithm, also known as compensated summation. en.wikipedia.org This is part 2 of my...
While trying to figure out how to make the STDEV function use an exponential moving average instead of simple moving average , I discovered the builtin function doesn't really use either. Check it out, it's amazing how different the two-pass algorithm is from the builtin! Eventually I reverse-engineered and discovered that STDEV uses the Naiive algorithm and...
The same as my previous Exponential Bollinger Bands script, but now you can set a desired offset for the indicator. I have published this as a new script that way those who prefer the old script can continue to use it without seeing any changes.
This is a simple gauge of volatility using the Coefficient of Variation. COV is calculated by dividing standard deviation of price by the expected (average) price. Custom color scheme indicates increases and decreases in volatility, which is indicated when the COV forms new half period highs and lows.
Each bar’s return against a volatility-adjusted baseline, as a standard deviation of the last 20 bars’ returns as per Adam H. Grimes SigmaSpikes(R). adamhgrimes.com www.marketlifetrading.com
Price Change as Standard Deviation Spikes Plots price changes scaled to daily StdDev for the period The Close price change is plotted as a thick bar coloured green for up close, red for down close The High price change is plotted as a thin bar coloured aqua The Low price change is plotted as a thin bar coloured orange Can be used to understand the statistical...
This is a price volatility compression and expansion indicator that uses the ratio of the Bollinger Band and Keltner Ratio. Red segments indicate extreme price volatility compression that can be ideal entry points for stock/futures/forex and/or options positions. Aqua segments indicate price volatility is expanding. Blue segments indicate price volatility is...
DISCLAIMER: The Following indicator/code IS NOT intended to be a formal investment advice or recommendation by the author, nor should be construed as such. Users will be fully responsible by their use regarding their own trading vehicles/assets. The embedded code and ideas within this work are FREELY AND PUBLICLY available on the Web for NON LUCRATIVE...
Plots the standard deviation resistance/support levels. Input the previous settlement price and the implied volatility. credit to u/UberBotMan and u/Living_Granger for the idea and formulas (preview example is using settlement of 2420 and IV of 11)
Simple function that plots the standard deviation of an assets' price.
original script by /u/SandroTurriate/ - I just made some small changes. Vwap + standard deviation bands. Good for reversal trading among other things. Used intraday. Very useful when price is ranging. I added the option to fill the spaces between the deviation lines with color and also the option to add some extra bands. That's about it. Color/length/style etc...
GEOMETRIC STANDARD DEVIATION BANDS Ver.1 By Ricardo M Arjona @XeL_Arjona DISCLAIMER: The Following indicator/code IS NOT intended to be a formal investment advice or recommendation by the author, nor should be construed as such. Users will be fully responsible by their use regarding their own trading vehicles/assets. The embedded code and ideas within...
Standard Error Bands - Code by @XeL_arjona Original implementation by: Traders issue: Stocks & Commodities V. 14:9 (375-379): Standard Error Bands by Jon Andersen Version 1 For a quick and publicly open explanation of this Statistical indicator, you can refer at Here! Extract from the former URL: Standard Error bands are...
ACCUMULATION / DISTRIBUTION CLOUD with MORPHIC DEVIATION BANDS Ver. 2.0.beta.23:08:2015 by Ricardo M. Arjona @XeL_Arjona DISCLAIMER The Following indicator/code IS NOT intended to be a formal investment advice or recommendation by the author, nor should be construed as such. Users will be fully responsible by their use regarding their own trading...
The script combines 3 single Bollinger bands into one script for easy plotting and range modification. It can be used for analyzing a market with multiple time frames and ranges using Fibonacci series as the range.